/* ==========================================================================
   Uplinex Design System - Corporate Recruitment, HR & Workforce Solutions
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #0369a1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Header Logo: Prominent, clearly visible size without distortion */
.site-logo img {
  height: 60px;
  width: auto;
  max-width: 280px;
  background: transparent !important;
  object-fit: contain;
  display: block;
}

/* Footer Logo: Original colors preserved, no filters */
.footer-logo img {
  height: 54px;
  width: auto;
  max-width: 260px;
  background: transparent !important;
  object-fit: contain;
  display: block;
}

/* Main Navigation Bar */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-list > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list > li > a {
  font-size: 0.96rem;
  font-weight: 700;
  color: #1e293b;
  padding: 8px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: #0284c7 !important;
}

/* Universal Form Validation States */
.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.validation-error-text {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.btn.disabled,
.btn:disabled,
button[type="submit"]:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(40%);
  box-shadow: none !important;
}

/* ==========================================================================
   Corporate Dropdown Menu (OUR SERVICES - Compact Category Hover Flyout)
   ========================================================================== */
.has-megamenu {
  position: relative !important;
}

.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  display: none;
  z-index: 9999;
  list-style: none;
  margin: 0;
}

.has-megamenu:hover > .services-dropdown,
.has-megamenu:focus-within > .services-dropdown,
.services-dropdown:hover {
  display: block !important;
}

.cat-dropdown-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cat-dropdown-link:hover,
.cat-dropdown-item:hover > .cat-dropdown-link {
  background-color: #f1f5f9;
  color: #0284c7;
}

.cat-dropdown-link .cat-arrow {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 800;
  margin-left: 14px;
}

.cat-dropdown-item:hover > .cat-dropdown-link .cat-arrow {
  color: #0284c7;
}

/* Flyout Submenu (Shows ONLY hovered category's services) */
.cat-submenu {
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 290px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  padding: 6px 0;
  display: none;
  z-index: 10000;
  list-style: none;
  margin: 0;
}

.cat-dropdown-item:hover > .cat-submenu,
.cat-submenu:hover {
  display: block !important;
}

.cat-submenu-header {
  padding: 8px 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.cat-submenu-header a {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0284c7;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}

.cat-submenu-header a:hover {
  text-decoration: underline;
}

.service-sublink {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.service-sublink:hover {
  background-color: #e0f2fe;
  color: #0284c7;
  padding-left: 22px;
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #0f172a;
}

.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
}

.mobile-drawer.open {
  display: block !important;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-links > li > a {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: block;
  padding: 6px 0;
  text-decoration: none;
}

.mobile-category-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0284c7;
  padding: 6px 0 4px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-service-sublist {
  list-style: none;
  padding-left: 12px;
  display: none;
  margin-bottom: 6px;
}

.mobile-service-sublist.open {
  display: block;
}

.mobile-service-sublist li a {
  font-size: 0.84rem;
  color: #475569;
  padding: 4px 0;
  display: block;
  text-decoration: none;
}

@media (min-width: 901px) {
  .mobile-toggle,
  .mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: block !important;
  }
  .megamenu-dropdown {
    display: none !important;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0369a1;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-navy {
  background: #0f172a;
  color: #ffffff;
}

.btn-navy:hover {
  background: #1e293b;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  color: #0284c7;
}

.btn-outline:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero & Layout Elements
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 54px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.hero-stat {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.section-badge {
  color: #0284c7;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.02rem;
  color: #64748b;
  line-height: 1.6;
}

/* Category Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.1);
  border-color: #0284c7;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.service-desc {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-features li {
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.service-features li::before {
  content: "✓";
  color: #0284c7;
  font-weight: 800;
  margin-top: 1px;
}

.service-cta-wrapper {
  margin-top: auto;
  padding-top: 12px;
}

/* ==========================================================================
   Full-Width Clean Service Detail Page Layout (No Sidebar)
   ========================================================================== */
.service-detail-container {
  max-width: 1000px;
  margin: 0 auto;
}

.detail-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 34px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.detail-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.detail-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: #0284c7;
  border-radius: 2px;
}

.detail-offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.offering-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
}

.offering-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.offering-card-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

/* Process Flow Layout */
.process-flow-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.process-node {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.process-node:hover {
  border-color: #0284c7;
}

.process-node-num {
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.process-node-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.process-node-content p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Industries & Why Choose Grids */
.industries-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.industry-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* FAQs */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

/* Detail CTA Box */
.detail-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 38px;
  text-align: center;
  margin-top: 32px;
}

.detail-cta-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.detail-cta-box p {
  color: #cbd5e1;
  font-size: 0.96rem;
  max-width: 620px;
  margin: 0 auto 24px auto;
}

/* Explore Other Services Box */
.explore-others-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.explore-others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.explore-other-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.explore-other-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.explore-other-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.explore-other-card p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 28px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.footer-title {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-list {
    gap: 16px;
  }
  .megamenu-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
  .site-logo img {
    height: 48px;
    max-width: 220px;
  }
  .header-main {
    height: 70px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .site-logo img {
    height: 40px;
    max-width: 180px;
  }
  .header-main .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
  }
  .detail-section-card {
    padding: 20px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
