/* ─────────────────────────────────────────────────────────────────────────────
   BETTROI — SHARED HEADER, MEGA MENU & MOBILE NAV
   Edit this file once; it applies to every page automatically.
───────────────────────────────────────────────────────────────────────────── */

/* ── Header position ── */
.header-area { position: absolute; top: 0; left: 0; right: 0; z-index: 99; background: transparent !important; }
.header-area .header-main { background: transparent !important; border-bottom-color: rgba(255,255,255,0.08); }

/* ── Mega menu trigger ── */
.main-menu ul li.has-megamenu { position: static; }
.main-menu ul li.has-megamenu > a::after {
  content: "\f107"; font-family: "Font Awesome 6 Pro"; font-weight: 300;
  margin-left: 6px; font-size: 11px;
}

/* ════════════════════════════ MEGA MENU PANEL ════════════════════════════ */
.bt-mega {
  /* Full-bleed: the parent .header-area__inner is an inline-flex "pill",
     so we break out to the full viewport width. */
  position: absolute; top: 100%;
  left: 50%; width: 100vw; margin-left: -50vw;
  background: linear-gradient(180deg, #15376e 0%, #0e2853 100%);
  border-top: 2px solid rgba(96,160,255,0.40);
  padding: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 999;
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
}
.main-menu ul li.has-megamenu:hover .bt-mega { opacity: 1; visibility: visible; transform: translateY(0); }

.bt-mega-wrap {
  width: min(1480px, 92vw);
  margin: 0 auto;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr) 300px;
  column-gap: 40px;
  align-items: start;
}
.bt-mega__col { padding-right: 30px; border-right: 1px solid rgba(255,255,255,0.10); min-width: 0; }
.bt-mega__col:nth-child(3) { border-right: none; }
.bt-mega__cat {
  display: block;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: #79b0ff; margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(120,170,255,0.28); font-weight: 700;
  white-space: nowrap; text-decoration: none; transition: color .18s;
}
a.bt-mega__cat:hover { color: #fff; }

/* 4-column variant (Partnerships) — no promo column, all four equal */
.bt-mega--4col .bt-mega-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-mega--4col .bt-mega__col { border-right: 1px solid rgba(255,255,255,0.10); }
.bt-mega--4col .bt-mega__col:last-child { border-right: none; }
.bt-mega ul { list-style: none; padding: 0; margin: 0; }
.bt-mega ul li { display: block; margin: 0; }
.bt-mega ul li a.bt-mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0; text-decoration: none; transition: all .18s;
}
.bt-mega ul li a.bt-mega-item:hover .bt-mega-item__name { color: #fff; }
.bt-mega-item__icon {
  width: 34px; height: 34px; flex-shrink: 0; margin-top: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 13px; transition: all .18s;
}
.bt-mega ul li a.bt-mega-item:hover .bt-mega-item__icon {
  background: rgba(96,160,255,0.20); border-color: rgba(96,160,255,0.45); color: #cfe0ff;
}
.bt-mega-item__body { display: flex; flex-direction: column; min-width: 0; }
.bt-mega-item__name { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.92); line-height: 1.3; white-space: normal; }
.bt-mega-item__desc { font-size: 11px; color: rgba(220,232,255,0.5); line-height: 1.45; margin-top: 2px; }

/* ── Promo cards ── */
.bt-mega__promos {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.bt-mega__promo-card {
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 14px; overflow: hidden; position: relative;
  padding: 20px; text-decoration: none;
  background: linear-gradient(150deg, #0d1e3f 0%, #06101e 100%);
  border: 1px solid rgba(96,160,255,0.22);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  height: 152px; flex-shrink: 0;
}
.bt-mega__promo-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); border-color: rgba(96,160,255,0.5); }
.bt-mega__promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0.62; transition: opacity .3s; }
.bt-mega__promo-card:hover .bt-mega__promo-img { opacity: 0.78; }
.bt-mega__promo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,16,32,0.97) 0%, rgba(7,16,32,0.82) 42%, rgba(7,16,32,0.30) 100%); z-index: 0; pointer-events: none; }
.bt-mega__promo-tag { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #79b0ff; margin-bottom: 7px; position: relative; z-index: 1; display: block; }
.bt-mega__promo-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35; margin: 0 0 10px; position: relative; z-index: 1; display: block; }
.bt-mega__promo-cta { font-size: 11px; font-weight: 600; color: #79b0ff; display: inline-flex; align-items: center; gap: 4px; position: relative; z-index: 1; }

@media (max-width: 1199px) { .bt-mega { display: none; } }

/* ── Header nav CTA link ── */
.header-nav-cta {
  font-size: 14px; font-weight: 500; color: #fff; letter-spacing: 0.05em;
  text-decoration: none; opacity: 0.88; transition: opacity .2s, color .2s;
}
.header-nav-cta:hover { opacity: 1; color: var(--bright-blue, #4080FF); }

/* ════════════════════════════ MOBILE NAV ════════════════════════════
   On <1200px the desktop nav is hidden and the slide-in drawer is used.
   The drawer (.side-info) and burger (.side-toggle) styling come from the
   theme; the menu list below is built by header-loader.js so it works even
   on pages that don't load the theme's meanmenu/main.js.                  */
@media (max-width: 1199px) {
  .header-area .header__nav { display: none !important; }
}

.bt-mobile-nav { list-style: none; margin: 22px 0 0; padding: 0; }
.bt-mobile-nav > li { border-bottom: 1px solid rgba(0,31,84,0.10); }
.bt-mobile-nav > li > a,
.bt-mobile-nav__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 2px; margin: 0; border: none; background: none;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--navy, #001F54); text-decoration: none; text-align: left; cursor: pointer;
}
.bt-mobile-nav > li > a:hover,
.bt-mobile-nav__toggle:hover { color: var(--bright-blue, #4080FF); }
.bt-mobile-nav__toggle i { font-size: 12px; transition: transform .3s ease; }
.bt-mobile-nav__toggle.open i { transform: rotate(180deg); }
.bt-mobile-nav__sub { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.bt-mobile-nav__sub.open { max-height: 1400px; padding-bottom: 10px; }
.bt-mobile-nav__sub-cat {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bright-blue, #4080FF); font-weight: 700; padding: 14px 12px 4px;
}
.bt-mobile-nav__sub li a { display: block; padding: 9px 12px; font-size: 14px; color: var(--slate, #475569); text-decoration: none; }
.bt-mobile-nav__sub li a:hover { color: var(--navy, #001F54); }

/* ════════════════════════════ MOBILE HERO SAFETY ════════════════════════════
   Keeps long hero titles from overflowing on small screens.               */
@media (max-width: 600px) {
  .page-hero__title,
  .wp-hero__title,
  .hero-title {
    font-size: clamp(30px, 8.5vw, 44px) !important;
    overflow-wrap: break-word;
  }
  .page-hero__desc,
  .wp-hero__desc,
  .hero-sub { overflow-wrap: break-word; }
}
