:root {
      --bg: #ffffff;
      --surface: #fff5ec;
      --surface-2: #faf7f2;
      --ink: #0e1430;
      --ink-soft: #4b5575;
      --muted: #5d667e;
      --line: #ece6db;
      --line-cool: #e6e9f2;
      --brand: #1d4ed8;
      --brand-dark: #1e40af;
      --brand-deep: #0e1430;
      --accent: #c44100;
      --accent-soft: #ff8e4f;
      --cta: #c44100;
      --cta-dark: #a33300;
      --success: #1f9d6e;
      --shadow-sm: 0 1px 2px rgba(14, 20, 48, .04), 0 1px 3px rgba(14, 20, 48, .05);
      --shadow-md: 0 8px 24px rgba(14, 20, 48, .06), 0 2px 6px rgba(14, 20, 48, .04);
      --shadow-lg: 0 20px 50px rgba(14, 20, 48, .12);
      --radius: 14px;
      --radius-lg: 22px;
      --container: 1180px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0 }
    html { scroll-behavior: smooth }
    body {
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      color: var(--ink);
      background: var(--bg);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none }
    h1, h2, h3, h4 {
      font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
      line-height: 1.2;
      color: var(--ink)
    }
    .container {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 20px
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 24px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 15px;
      border: 0;
      cursor: pointer;
      transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
      white-space: nowrap;
    }
    .btn-primary {
      background: var(--cta);
      color: #fff;
      box-shadow: 0 10px 24px rgba(255, 106, 26, .30)
    }
    .btn-primary:hover {
      background: var(--cta-dark);
      transform: translateY(-1px);
      box-shadow: 0 12px 28px rgba(229, 90, 16, .38)
    }
    .btn-secondary {
      background: #fff;
      color: var(--brand);
      border: 1.5px solid var(--brand)
    }
    .btn-secondary:hover {
      background: var(--brand);
      color: #fff
    }
    .btn-block { width: 100% }
    .btn-sm { padding: 10px 18px; font-size: 14px }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255, 255, 255, .92);
      backdrop-filter: saturate(140%) blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 20px;
      gap: 16px
    }
    .logo img { height: 35px; width: auto }
    .nav-links { display: flex; align-items: center; gap: 26px }
    .nav-links a { font-weight: 600; color: var(--ink-soft); font-size: 15px }
    .nav-links a:hover { color: var(--brand) }
    .nav-cta { display: flex; gap: 10px }

    .detail-layout {
      padding: 60px 0 80px;
      display: grid;
      grid-template-columns: 1.8fr 1fr;
      gap: 40px;
    }
    @media (max-width: 960px) {
      .detail-layout { grid-template-columns: 1fr; gap: 30px; }
      .nav-links { display: none }
    }

    .article-container {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 40px;
      box-shadow: var(--shadow-sm);
    }
    @media (max-width: 600px) {
      .article-container { padding: 24px; }
    }
    .article-date {
      font-size: 13px;
      color: var(--muted);
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 16px;
      display: block;
    }
    .article-title {
      font-size: clamp(24px, 4vw, 32px);
      font-weight: 800;
      color: var(--ink);
      line-height: 1.3;
      margin-bottom: 24px;
    }
    .article-content {
      font-size: 16.5px;
      color: var(--ink-soft);
      line-height: 1.8;
      margin-bottom: 30px;
    }
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--brand);
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 24px;
    }

    .counseling-sidebar {
      background: var(--surface);
      border: 1.5px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 30px;
      position: sticky;
      top: 100px;
      height: fit-content;
      box-shadow: var(--shadow-md);
    }
    .counseling-sidebar h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
    .counseling-sidebar p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 20px; }

    .field { margin-bottom: 12px }
    .field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft) }
    .field input, .field select {
      width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px;
      font-family: inherit; color: var(--ink); background: #fff; transition: border .15s;
    }
    .field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,78,216,.15) }

    footer { background: var(--surface-2); color: var(--ink-soft); padding: 50px 0 24px; border-top: 1px solid var(--line); margin-top: 60px; }
    .foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1fr; gap: 30px; margin-bottom: 30px }
    footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px }
    footer a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-soft) }
    footer a:hover { color: var(--cta) }
    .copyright { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 13px; color: var(--muted) }

    /* Footer Mobile Optimization */
    footer .foot-grid a[href^="tel:"], footer .foot-grid a[href^="mailto:"] {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      gap: 8px !important;
      max-width: 100% !important;
    }
    @media (max-width: 600px) {
      .foot-grid { grid-template-columns: 1fr !important; }
      footer .foot-grid a[href^="tel:"], footer .foot-grid a[href^="mailto:"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
      }
      footer .foot-grid a[href^="tel:"] span, footer .foot-grid a[href^="mailto:"] span {
        white-space: normal !important;
        word-break: break-all !important;
      }
      footer .foot-grid a[href^="tel:"] span[style*="background"], footer .foot-grid a[href^="mailto:"] span[style*="background"] {
        white-space: nowrap !important;
        word-break: normal !important;
      }
    }


    .whatsapp-float {
      position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
      background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 10px 25px rgba(37,211,102,.45); z-index: 40; transition: transform .2s; cursor: pointer; border: 0; outline: none;
    }
    .whatsapp-float:hover { transform: scale(1.08) }
    .whatsapp-float svg { width: 30px; height: 30px }

    #toast {
      position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
      background: #0e1430; color: #fff; padding: 12px 24px; border-radius: 99px; font-weight: 700;
      font-size: 14px; box-shadow: var(--shadow-lg); z-index: 1000; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      pointer-events: none; opacity: 0;
    }
    #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

#cookieConsentBanner {
      position: fixed;
      bottom: 24px;
      right: 24px;
      max-width: 400px;
      background: rgba(14, 20, 48, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1.5px solid rgba(236, 230, 219, 0.15);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
      z-index: 10000;
      color: #ffffff;
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes slideUpCookie {
      from { transform: translateY(100px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes slideDownCookie {
      from { transform: translateY(0); opacity: 1; }
      to { transform: translateY(100px); opacity: 0; }
    }
    @media (max-width: 480px) {
      #cookieConsentBanner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
        padding: 20px;
      }
    }
    .cookie-container h3 {
      font-size: 17px;
      font-weight: 800;
      margin-bottom: 8px;
      color: #ffffff;
      font-family: 'Poppins', sans-serif;
    }
    .cookie-container p {
      font-size: 13px;
      color: #b4bccc;
      line-height: 1.5;
      margin-bottom: 16px;
    }
    .cookie-container p a {
      color: #ff6a1a;
      text-decoration: underline;
      font-weight: 600;
    }
    .cookie-container p a:hover {
      color: #ff8a3d;
    }
    .cookie-buttons {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }
    .cookie-btn {
      padding: 10px 16px;
      border-radius: 99px;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      border: 0;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      white-space: nowrap;
    }
    .cookie-customize {
      background: transparent;
      color: #b4bccc;
      border: 1px solid rgba(180, 188, 204, 0.3);
    }
    .cookie-customize:hover {
      background: rgba(255, 255, 255, 0.05);
      color: #ffffff;
    }
    .cookie-reject {
      background: transparent;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    .cookie-reject:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    .cookie-accept {
      background: #ff6a1a;
      color: #ffffff;
    }
    .cookie-accept:hover {
      background: #e55a10;
    }
    .cookie-options {
      margin-bottom: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 12px;
    }
    .cookie-option-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 8px;
      text-align: left;
    }
    .cookie-option-item input[type="checkbox"] {
      width: 16px;
      height: 16px;
      accent-color: #ff6a1a;
      margin-top: 2px;
      flex-shrink: 0;
    }
    .cookie-option-text h4 {
      font-size: 12.5px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 2px;
    }
    .cookie-option-text p {
      font-size: 11px;
      color: #b4bccc;
      margin-bottom: 0;
      line-height: 1.3;
    }
  
/* Navigation header fix for laptops and smaller desktops to prevent wrapping and alignment issues */
.nav-links a {
  white-space: nowrap !important;
}
@media (min-width: 961px) and (max-width: 1280px) {
  .nav {
    padding: 10px 16px !important;
    gap: 10px !important;
  }
  .nav-links {
    gap: 12px !important;
  }
  .nav-links a {
    font-size: 13.5px !important;
  }
  .nav-cta {
    gap: 6px !important;
  }
  .nav-cta .btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  .logo img {
    height: 28px !important;
  }
}



/* Mobile header overlapping overlay fix */
@media (max-width: 960px) {
  .nav-cta {
    display: none !important;
  }
}

/* ============ MERGED DROPDOWN & FOOTER LAYOUT STYLES ============ */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  padding: 24px;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: block;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 24px;
}

.dropdown-col {
  text-align: left;
}

.dropdown-col h4 {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 6px;
}

.dropdown-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft) !important;
  padding: 6px 0;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.dropdown-col a:hover {
  color: var(--brand) !important;
  transform: translateX(3px);
}

/* Responsive adjustments for dropdown on mobile */
@media (max-width: 960px) {
  .dropdown-container {
    display: block;
    width: 100%;
    text-align: center;
  }
  .dropdown-trigger {
    justify-content: center;
    width: 100%;
    padding: 10px 0;
  }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 10px 0 0 10px !important;
    min-width: 100% !important;
    background: transparent !important;
  }
  .dropdown-menu-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .dropdown-col h4 {
    border-bottom: 1px solid rgba(14,20,48,0.08) !important;
    color: var(--brand) !important;
    text-align: center;
  }
  .dropdown-col a {
    text-align: center;
    padding: 8px 0 !important;
    font-size: 14.5px !important;
  }
  .dropdown-col a:hover {
    transform: none !important;
  }
}





/* ============ Footer Dark SEO Megagrid ============ */
.footer-seo-megagrid {
  background: #0f172a;
  color: #f8fafc;
  padding: 60px 0;
  border-top: 1px solid #1e293b;
  text-align: left;
}
.seo-grid-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}
.seo-grid-col {
  text-align: left;
}
.seo-grid-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #334155;
  padding-bottom: 6px;
}
.seo-grid-col a {
  display: block !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  padding: 4px 0 !important;
  font-weight: 500;
  transition: color 0.15s;
  white-space: normal;
  line-height: 1.4;
}
.seo-grid-col a:hover {
  color: #f97316 !important;
}

/* ============ Main Footer 5-Column Grid ============ */
footer {
  background: #fffcf8;
  color: var(--ink-soft);
  padding: 50px 0 24px;
  border-top: 1px solid var(--line);
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
}
footer h4 {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
footer a {
  display: block !important;
  padding: 5px 0 !important;
  font-size: 14px !important;
  color: var(--ink-soft) !important;
}
footer a:hover {
  color: var(--brand) !important;
}

@media (max-width: 1024px) {
  .seo-grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  footer .foot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .seo-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer .foot-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .seo-grid-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .seo-grid-col {
    text-align: center !important;
  }
  .seo-grid-col a {
    text-align: center !important;
  }
  footer .foot-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  footer .foot-grid div {
    text-align: center !important;
  }
  footer .foot-grid a {
    text-align: center !important;
  }
}
