/* =====================================================
   HEADER 2 — FULL REWRITE (Desktop + Mobile)
   ===================================================== */

/* --------------------------
   GLOBAL HEADER WRAPPER
--------------------------- */
header.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 2000;
}

/* --------------------------
   LOGO
--------------------------- */
.site-logo {
  height: 36px;
  width: auto;
  margin-left: 40px;
}

@media (max-width: 991.98px) {
  .site-logo { margin-left: 20px; }
}

/* --------------------------
   NAVBAR CORE
--------------------------- */
.navbar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #0267B1;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-item.open > .nav-link,
.nav-link.active {
  color: #fff;
  background: #0267B1;
}

/* --------------------------
   SEARCH ICON (Desktop)
--------------------------- */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  margin-left: 24px;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.icon-btn:hover img {
  transform: scale(1.1);
}

/* --------------------------
   MOBILE STRIP
--------------------------- */

.mobile-strip {
  background: #0267B1;
  color: #fff;
  text-align: center;
  padding: 8px 0;
}

.mobile-strip h6 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* =====================================================
   DESKTOP — MEGA MENU
   ===================================================== */
.mega-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
}

.nav-item.open > .mega-wrap,
.nav-item.dropdown:hover > .mega-wrap,
.mega-wrap:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel {
  display: grid;
  background: #0267B1;
  border-radius: 0 0 8px 8px;
  padding: 40px 80px;
  gap: 40px;
  width: max-content;
  max-width: 1200px;
  justify-content: start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Left white column */
.mega-left {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 340px;
}

.ml-page-title {
  font-family: 'Domine', serif;
  font-weight: 700;
  font-size: 32px;
  color: #121212;
  margin-bottom: 20px;
  text-align: left;
}

.btn-yellow {
  background: #ffcc29 !important;
  color: #121212 !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  border-radius: 8px;
  padding: 10px 24px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-yellow:hover {
  outline: 2px solid #121212;
}

/* Blue columns (right side) */
.mega-right {
  display: flex;
  gap: 40px;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 230px;
}

.mega-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.mega-item:hover {
  transform: translateX(6px);
}

.mi-arrow {
  width: 24px;
  height: auto;
  margin-left: 12px;
}

/* =====================================================
   MOBILE — OVERLAY MENU
   ===================================================== */
#mobileMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0267B1;
  color: #fff;
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#mobileMenuOverlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* inner layout */
.overlay-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* top search bar */
.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.overlay-search {
  flex: 1;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 6px;
  border: none;
}

.overlay-close {
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  margin-left: 20px;
}

/* menu items */
.overlay-links {
  flex: 1;
  overflow-y: auto;
}

.overlay-item {
  margin-bottom: 20px;
}

.overlay-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.overlay-title a {
  color: #fff;
  text-decoration: none;
}

.overlay-title a.active {
  color: #ffcc29;
}

.overlay-title a:hover {
  color: #ffcc29;
}

.overlay-sub {
  display: none;
  flex-direction: column;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(255,255,255,0.2);
}

.overlay-sub.show {
  display: flex;
}

.overlay-sub a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin: 4px 0;
}

.overlay-sub a:hover {
  color: #ffcc29;
}

/* footer part */
.overlay-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-info p {
  margin: 4px 0;
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
  .navbar-nav { display: none !important; }
  .icon-btn { display: none !important; }
  #menuToggle { display: block !important; border: none; background: none; }
  .mega-wrap { display: none !important; }
}

/* --- Fixes --- */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* =====================================================
   FINAL NAV FIXES — with smooth transitions
   ===================================================== */

header.site-header .navbar-nav .nav-link,
header.site-header .navbar-nav .nav-item > .nav-link {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  color: #0267B1;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
  will-change: background-color, color;
}

/* Hover state — smooth fade to white text on blue */
header.site-header .navbar-nav .nav-link:hover,
header.site-header .navbar-nav .nav-item:hover > .nav-link {
  color: #fff !important;
  background-color: #0267B1 !important;
}

/* Active state — same color as hover but persistent */
header.site-header .navbar-nav .nav-link.active,
header.site-header .navbar-nav .nav-item.active > .nav-link {
  color: #fff !important;
  background-color: #0267B1 !important;
  font-weight: 700 !important;
}
/* --- Prevent hover gap flicker between nav and mega menu --- */
.nav-item {
  position: relative;
}

/* Invisible padding below nav item to keep hover "alive" */
.nav-item::after {
  content: "";
  position: absolute;
  bottom: -15px; /* extends 15px below the item */
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
/* -------------------------
   FIX: horizontal hover gap
   ------------------------- */

/* tune this value: roughly half of your horizontal gap + a few px */
header.site-header .navbar-nav { --nav-hover-pad: 46px; }

/* ensure relative positioning for pseudo hitboxes */
header.site-header .navbar-nav .nav-item {
  position: relative;
  z-index: 1; /* keep it above page background */
}

/* invisible horizontal extensions to keep :hover alive across gaps */
header.site-header .navbar-nav .nav-item::before,
header.site-header .navbar-nav .nav-item::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--nav-hover-pad);
  background: transparent;
  pointer-events: auto; /* important: this makes the pseudo-element part of the hover area */
}

/* extend to the right and left respectively */
header.site-header .navbar-nav .nav-item::after { right: calc(-1 * var(--nav-hover-pad)); }
header.site-header .navbar-nav .nav-item::before { left: calc(-1 * var(--nav-hover-pad)); }

/* optional safety: ensure mega-wrap remains visible while hovering it */
header.site-header .mega-wrap,
header.site-header .mega-wrap:hover {
  pointer-events: auto;
}
/* tuck panel up by a few px so it visually touches the navbar */
header.site-header .mega-wrap {
  top: calc(100% - 6px); /* adjust -6px to taste */
}

.fab {
  color: #fff;
}
/* --- Fix: Mega menu item hover color --- */
.mega-item {
  color: #fff !important;
  transition: transform 0.25s ease, color 0.25s ease;
}

.mega-item:hover {
  color: #fff !important;
  transform: translateX(6px);
}
/* --- Global Breadcrumb Styling --- */
.breadcrumb {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #999; /* light gray text */
  margin: 20px 0;
  margin-left: 80px; /* left padding per request */
}

.breadcrumb a {
  color: #999; /* links also light gray */
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #555; /* slightly darker gray on hover */
  text-decoration: underline;
}
@media (max-width: 991.98px) {
  header.site-header .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  header.site-header .site-logo {
    margin-left: 0 !important;
  }

  header.site-header #menuToggle {
    margin-right: 0 !important;
  }
}
/* Disable hover dropdown for specific items */
.nav-item.no-hover-menu:hover > .mega-wrap {
  display: none !important;
}

/* Ensure they still show active state */
.nav-item.no-hover-menu > .nav-link.active {
  color: #fff !important;
  background-color: #0267B1 !important;
}

.suggestion-item:hover {
    background: #f3f3f3;
}
/* =====================================================
   CUSTOM BREAKPOINT — SWITCH TO HAMBURGER @ 1542px
   ===================================================== */
@media (max-width: 1542px) {

  /* Hide desktop nav */
  .navbar-nav {
    display: none !important;
  }

  /* Hide desktop search */
  .icon-btn {
    display: none !important;
  }

  /* Kill mega menu completely */
  .mega-wrap {
    display: none !important;
  }

  /* Show hamburger */
  #menuToggle {
    display: block !important;
    border: none;
    background: none;
  }

  /* Tighten navbar spacing */
  .navbar {
    padding: 0 20px;
  }

  .site-logo {
    margin-left: 0;
  }
}
