@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

/* --------------------------
   GLOBAL HEADER WRAPPER
--------------------------- */
header.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* --------------------------
   LOGO
--------------------------- */
.site-logo {
  height: 36px;
  width: auto;
  margin-left: 40px;
}

/* --------------------------
   NAVBAR CORE
--------------------------- */
.navbar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.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: background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  will-change: background-color, color;
}

.nav-link:hover,
.nav-item.open > .nav-link,
.nav-link.active {
  color: #fff !important;
  background-color: #0267B1 !important;
}

/* --------------------------
   SEARCH ICON
--------------------------- */
.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;
}

/* =====================================================
   MEGA MENU
   ===================================================== */
.mega-wrap {
  position: absolute;
  top: calc(100% - 6px);
  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);
}

.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;
}

.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;
}

.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 !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.mega-item:hover {
  color: #fff !important;
  transform: translateX(6px);
}

.mi-arrow {
  width: 24px;
  height: auto;
  margin-left: 12px;
}

/* =====================================================
   HOVER GAP FIX
   ===================================================== */
header.site-header .navbar-nav { --nav-hover-pad: 46px; }

header.site-header .navbar-nav .nav-item {
  position: relative;
  z-index: 1;
}

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;
}

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)); }

/* =====================================================
   MOBILE OVERLAY
   ===================================================== */
#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;
  overflow: hidden; /* fix: no horizontal scroll */
}

#mobileMenuOverlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overlay-inner {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

.overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
}

.overlay-top form {
  flex: 1;
  min-width: 0; /* fix: prevents flex child overflow */
  display: flex;
  gap: 6px;
}

.overlay-search {
  flex: 1;
  min-width: 0; /* fix: prevents overflow */
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  box-sizing: border-box;
}

.overlay-search-btn {
  padding: 8px 12px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.overlay-close {
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  flex-shrink: 0; /* fix: never gets squeezed off screen */
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.overlay-links {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.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,
.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;
  word-break: break-word;
}

.overlay-sub a:hover {
  color: #ffcc29;
}

.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;
}

.fab {
  color: #fff;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #999;
  margin: 20px 0 20px 80px;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #555;
  text-decoration: underline;
}

/* =====================================================
   NO HOVER MENU
   ===================================================== */
.nav-item.no-hover-menu:hover > .mega-wrap {
  display: none !important;
}

.nav-item.no-hover-menu > .nav-link.active {
  color: #fff !important;
  background-color: #0267B1 !important;
}

/* =====================================================
   SEARCH SUGGESTIONS
   ===================================================== */
.suggestion-item:hover {
  background: #f3f3f3;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1500px) {
  .navbar-nav { gap: 36px; }
}

@media (max-width: 1450px) {
  .navbar-nav { gap: 28px; }
  .nav-link   { font-size: 18px; padding: 8px 12px; }
  .site-logo  { height: 32px; }
}

@media (max-width: 1200px) {
  .navbar-nav  { display: none !important; }
  .icon-btn    { display: none !important; }
  .mega-wrap   { display: none !important; }

  #menuToggle {
    display: block !important;
    border: none;
    background: none;
  }

  .site-logo   { height: 20px; margin-left: 0; }
  .navbar      { padding: 0 20px; }
}

@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; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}