/* Top Utility Strip (Exact Specs: 40px, #de2b24, Inter 12px/500) */
.top-utility-bar {
  background-color: var(--brand-red); /*[cite: 15] */
  color: var(--white);               /*[cite: 15] */
  font-family: var(--font-body);
  font-size: 12px;                   /*[cite: 15] */
  font-weight: 500;                  /*[cite: 15] */
  height: 40px;                      /*[cite: 15] */
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
}

.top-utility-inner {
  display: flex;                     /*[cite: 15] */
  justify-content: space-between;    /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  width: 100%;                       /*[cite: 15] */
}

.top-left-contacts {
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 16px;                         /*[cite: 15] */
}
.top-left-contacts a {
  display: inline-flex;              /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 5px;                          /*[cite: 15] */
  color: #fff;                       /*[cite: 15] */
}

.top-social-icons {
  display: inline-flex;              /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 10px;                         /*[cite: 15] */
  margin-left: 8px;                  /*[cite: 15] */
}
.top-social-icons a {
  color: #fff;                       /*[cite: 15] */
  opacity: 0.95;                     /*[cite: 15] */
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
}
.top-social-icons a:hover {
  opacity: 1;                        /*[cite: 15] */
  transform: scale(1.1);             /*[cite: 15] */
}

/* Accessibility & Language Toolbar in Top Utility Strip */
.top-a11y-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.top-lang-switch,
.top-font-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-a11y-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.top-a11y-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.top-a11y-btn.active {
  background: #ffffff;
  color: var(--brand-red);
  font-weight: 800;
}

.top-a11y-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

/* Mobile Quick Accessibility Bar in Drawer */
.mobile-a11y-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border-line);
  gap: 10px;
}

.mobile-lang-switch,
.mobile-a11y-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-a11y-pill {
  background: #ffffff;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-ink);
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-a11y-pill.active {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.top-right-links {
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 18px;                         /*[cite: 15] */
}
.top-right-links a {
  color: #fff;                       /*[cite: 15] */
  font-weight: 500;                  /*[cite: 15] */
}
.top-right-links a:hover {
  text-decoration: underline;        /*[cite: 15] */
  text-underline-offset: 3px;        /*[cite: 15] */
}

#site-header-slot {
  display: contents;
}

/* Main Navigation Bar (80px, #FFFFFF, border: #E4E7EC) */
.site-main-header {
  position: sticky;                  /*[cite: 15] */
  top: 0;                            /*[cite: 15] */
  z-index: 1000;                     /*[cite: 15] */
  background: #ffffff;               /*[cite: 15] */
  height: 80px;                      /*[cite: 15] */
  border-bottom: 1px solid var(--border-line); /*[cite: 15] */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);  /*[cite: 15] */
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
}

.nav-container {
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  justify-content: space-between;    /*[cite: 15] */
  width: 100%;                       /*[cite: 15] */
  gap: 16px;
}

.site-logo,
.brand-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img,
.brand-logo-wrap img {
  height: 50px;                      /*[cite: 15] */
  width: auto;                       /*[cite: 15] */
  object-fit: contain;               /*[cite: 15] */
}

.main-nav-links {
  display: flex;                     /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 8px;                          /*[cite: 15] */
  flex-wrap: nowrap;                 /*[cite: 15] */
}

.nav-item {
  position: relative;                /*[cite: 15] */
}

.nav-link {
  font-family: var(--font-head);     /*[cite: 15] */
  font-size: 0.8rem;                 /*[cite: 15] */
  font-weight: 700;                  /*[cite: 15] */
  color: #2b2e34;                    /*[cite: 15] */
  display: inline-flex;              /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  gap: 4px;                          /*[cite: 15] */
  padding: 10px 14px;
  letter-spacing: 0.02em;            /*[cite: 15] */
  text-transform: uppercase;         /*[cite: 15] */
  background: none;                  /*[cite: 15] */
  border: none;                      /*[cite: 15] */
  cursor: pointer;                   /*[cite: 15] */
  white-space: nowrap;               /*[cite: 15] */
  border-radius: var(--radius-sm);   /*[cite: 15] */
  transition: var(--transition);     /*[cite: 15] */
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--brand-red);           /*[cite: 15] */
  background-color: var(--surface-light);
}

/* Active Navigation Indicators */
.nav-link.active,
.nav-item.active > .nav-link {
  color: var(--brand-red) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.nav-link.active svg,
.nav-link.active i,
.nav-item.active > .nav-link svg,
.nav-item.active > .nav-link i {
  color: var(--brand-red) !important;
  stroke: var(--brand-red) !important;
}

.sub-menu a.active {
  background-color: var(--brand-red-light);
  color: var(--brand-red) !important;
  font-weight: 700;
  border-left: 3px solid var(--brand-red);
  padding-left: 20px;
}

.mega-col a.active {
  color: var(--brand-red) !important;
  font-weight: 700;
  border-left: 2px solid var(--brand-red);
  padding-left: 6px;
}

.top-right-links a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-nav-link.active,
.mobile-accordion-btn.active {
  color: var(--brand-red) !important;
  font-weight: 800;
  border-left: 3px solid var(--brand-red);
  padding-left: 10px;
}

.mobile-sub-menu a.active {
  color: var(--brand-red) !important;
  font-weight: 700;
  background-color: #fff;
  border-left: 3px solid var(--brand-red);
  padding-left: 14px;
}

/* 4-Column Wide Mega-Menu (Loans, Services & Embedded Tools) */
.mega-menu-wide {
  position: absolute;
  top: 100%;
  left: -120px;
  width: 820px;
  background: var(--white);           /*[cite: 15] */
  border-radius: var(--radius-sm);   /*[cite: 15] */
  box-shadow: var(--shadow-lg);       /*[cite: 15] */
  border: 1px solid var(--border-line); /*[cite: 15] */
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);        /*[cite: 15] */
  transition: var(--transition);      /*[cite: 15] */
  z-index: 100;                       /*[cite: 15] */
}

.nav-item:hover .mega-menu-wide {
  opacity: 1;                         /*[cite: 15] */
  visibility: visible;                /*[cite: 15] */
  transform: translateY(0);           /*[cite: 15] */
}

.mega-col h5 {
  font-family: var(--font-head);     /*[cite: 15] */
  font-size: 0.72rem;                /*[cite: 15] */
  font-weight: 800;                  /*[cite: 15] */
  color: var(--brand-red);           /*[cite: 15] */
  text-transform: uppercase;         /*[cite: 15] */
  letter-spacing: 0.06em;            /*[cite: 15] */
  padding-bottom: 6px;               /*[cite: 15] */
  margin-bottom: 8px;                /*[cite: 15] */
  border-bottom: 1.5px solid var(--brand-red-light); /*[cite: 15] */
}

.mega-col a {
  display: block;                    /*[cite: 15] */
  padding: 5px 0;                    /*[cite: 15] */
  font-size: 0.78rem;                /*[cite: 15] */
  font-weight: 600;                  /*[cite: 15] */
  color: var(--dark-muted);          /*[cite: 15] */
  line-height: 1.35;                 /*[cite: 15] */
}

.mega-col a:hover {
  color: var(--brand-red);           /*[cite: 15] */
  transform: translateX(3px);        /*[cite: 15] */
}

/* Regular Dropdown */
.sub-menu {
  position: absolute;                /*[cite: 15] */
  top: 100%;                         /*[cite: 15] */
  left: 0;                           /*[cite: 15] */
  min-width: 230px;
  background: var(--white);           /*[cite: 15] */
  border-radius: var(--radius-sm);   /*[cite: 15] */
  box-shadow: var(--shadow-lg);       /*[cite: 15] */
  border: 1px solid var(--border-line); /*[cite: 15] */
  padding: 8px 0;                    /*[cite: 15] */
  opacity: 0;                        /*[cite: 15] */
  visibility: hidden;                /*[cite: 15] */
  transform: translateY(10px);        /*[cite: 15] */
  transition: var(--transition);      /*[cite: 15] */
  z-index: 100;                       /*[cite: 15] */
}

.nav-item:hover .sub-menu {
  opacity: 1;                         /*[cite: 15] */
  visibility: visible;                /*[cite: 15] */
  transform: translateY(0);           /*[cite: 15] */
}

.sub-menu a {
  display: block;                    /*[cite: 15] */
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;                  /*[cite: 15] */
  color: var(--dark-muted);          /*[cite: 15] */
}

.sub-menu a:hover {
  background-color: var(--brand-red-light); /*[cite: 15] */
  color: var(--brand-red);           /*[cite: 15] */
  padding-left: 22px;
}

/* Dual-State CTA Button */
.header-dual-cta {
  display: inline-flex;              /*[cite: 15] */
  align-items: center;               /*[cite: 15] */
  background-color: var(--brand-red);/*[cite: 15] */
  color: #fff;                       /*[cite: 15] */
  padding: 9px 18px;
  border-radius: var(--radius-full); /*[cite: 15] */
  font-family: var(--font-head);     /*[cite: 15] */
  font-weight: 700;                  /*[cite: 15] */
  font-size: 0.78rem;                /*[cite: 15] */
  gap: 6px;                          /*[cite: 15] */
  box-shadow: 0 2px 8px rgba(222, 43, 36, 0.25); /*[cite: 15] */
  white-space: nowrap;               /*[cite: 15] */
  flex-shrink: 0;                    /*[cite: 15] */
}

.header-dual-cta:hover {
  background-color: var(--brand-red-deep); /*[cite: 15] */
  transform: translateY(-1px);             /*[cite: 15] */
}

/* Mobile Navigation Button (Image 1) - ONLY show on mobile */
.mobile-menu-trigger,
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  border: 1px solid var(--border-line);
  color: var(--dark-ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.mobile-menu-trigger:hover,
.mobile-menu-toggle:hover {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  border-color: var(--brand-red);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active,
.mobile-drawer-overlay.is-open {
  display: block;
  opacity: 1;
}

/* Mobile Drawer Aside */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active,
.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-line);
}

.mobile-drawer-header img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.mobile-nav-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark-ink);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--border-line);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--brand-red);
}

.mobile-sub-menu {
  display: none;
  padding-left: 12px;
  padding-top: 6px;
  padding-bottom: 10px;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-light);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  margin-bottom: 8px;
}

.mobile-sub-menu.open {
  display: flex;
}

.mobile-sub-menu a {
  font-size: 0.82rem;
  color: var(--dark-muted);
  font-weight: 600;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.mobile-sub-menu a:hover {
  color: var(--brand-red);
}

/* Responsive Breakpoints for Navigation */
@media (max-width: 991px) {
  .top-utility-bar {
    display: none;
  }

  .main-nav-links {
    display: none !important;
  }

  .mobile-menu-trigger,
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

@media (min-width: 992px) {
  .mobile-menu-trigger,
  .mobile-menu-toggle,
  #mobileMenuOpenBtn,
  #mobile-menu-slot,
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }
}

/* Global Announcement / Citizen Advisory Banner */
.global-alert-banner {
  background: #991b1b;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.global-alert-banner a:hover {
  text-decoration: underline !important;
}

/* Header Right Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Instant Search Trigger (Icon Button) */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-full);
  color: var(--brand-red);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
}

.header-search-btn:hover,
.header-search-btn:focus-visible {
  background: #fee2e2;
  border-color: var(--brand-red);
  color: var(--brand-red-deep);
  transform: translateY(-1px);
  outline: none;
}

.header-search-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-red);
}

.header-search-btn svg,
.header-search-btn i {
  width: 18px;
  height: 18px;
  color: var(--brand-red);
  stroke: var(--brand-red);
  stroke-width: 2.2px;
  flex-shrink: 0;
  display: block;
}

/* Global Site-Wide Search Overlay & Modal */
.global-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: 40px 16px;
  overflow-y: auto;
}

@keyframes modalSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal-container {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border-line);
  animation: modalSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-item:focus {
  background: #f8fafc;
  outline: 2px solid var(--brand-red);
}