/* ══════════════════════════════════════════
   nav.css  —  Shared header / mega-dropdown
   Loaded by all pages that don't include index.css
══════════════════════════════════════════ */

/* ── Top Nav ── */
.top-nav { position: absolute; top: 0; width: 100%; padding: 22px 0; z-index: 998; }
.top-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; }
.top-nav .brand img { height: 60px; }
.brand span { font-weight: 600; font-size: 18px; }
.main-menu { display: flex; gap: 24px; list-style: none; }
.main-menu a { color: #fff; text-decoration: none; font-weight: 500; padding: 6px 0; font-size: 15px; position: relative; }
.main-menu li:not(.has-mega-dropdown) > a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: linear-gradient(135deg,#e1306c,#833ab4); transition: .35s ease; }
.main-menu li:not(.has-mega-dropdown):hover > a::after { width: 100%; }
.has-mega-dropdown > a { cursor: pointer; transition: color .3s; }
.has-mega-dropdown:hover > a, .has-mega-dropdown.active > a { color: #e1306c; }
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; z-index: 1001; position: relative; }
.btn-gradient { background: linear-gradient(135deg,#833ab4,#e1306c); color: #fff; border: none; padding: 10px 22px; border-radius: 30px; cursor: pointer; display: inline-block; text-decoration: none; transition: .3s ease; font-weight: 600; font-size: 14px; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(225,48,108,0.45); }
.menu-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: .3s ease; padding: 0; }
.menu-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .3s ease; }
.mobile-cta { display: none; }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: .3s ease; z-index: 997; }
body.nav-open .menu-overlay { opacity: 1; visibility: visible; }

/* ── Scroll Nav ── */
.scroll-nav { position: fixed; top: -120px; width: 100%; z-index: 998; transition: .5s ease; }
.scroll-nav.active { top: 20px; }
.scroll-nav .nav-inner { max-width: 1200px; width: calc(100% - 24px); margin: 0 auto; background: rgba(4,2,10,0.93); backdrop-filter: blur(16px); border-radius: 60px; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); border: 1px solid rgba(225,48,108,0.15); }
.scroll-nav .brand img { height: 36px; }

/* ── Mega Dropdown ── */
.mega-dropdown { position: fixed; top: 92px; left: 0; right: 0; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.3); display: none; z-index: 1000; max-height: calc(100vh - 100px); overflow: visible; }
.mega-dropdown.open { display: block !important; }
.mega-wrapper { display: flex; width: 100%; min-height: 400px; max-height: calc(100vh - 100px); overflow: hidden; }
.mega-sidebar { width: 270px; min-width: 270px; background: linear-gradient(160deg,#833ab4,#e1306c); padding: 8px 0; overflow-y: auto; max-height: calc(100vh - 100px); }
.mega-sidebar ul { list-style: none; }
.mega-sidebar ul li a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .18s, color .18s, border-left-color .18s; border-left: 4px solid transparent; cursor: pointer; }
.mega-sidebar ul li.sidebar-active a, .mega-sidebar ul li a:hover { background: rgba(255,255,255,.15); border-left-color: #fff; color: #fff; }
.sidebar-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); border-radius: 8px; flex-shrink: 0; }
.sidebar-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-label-group { display: flex; flex-direction: column; flex: 1; }
.sidebar-label { font-size: 14px; font-weight: 600; color: #fff; }
.sidebar-sub { font-size: 11.5px; color: rgba(255,255,255,.65); margin-top: 2px; font-weight: 400; }
.sidebar-arrow { margin-left: auto; opacity: 0; transition: opacity .15s; }
.mega-sidebar ul li.sidebar-active a .sidebar-arrow, .mega-sidebar ul li a:hover .sidebar-arrow { opacity: 1; }
.mega-body { flex: 1; display: flex; min-width: 0; overflow-y: auto; max-height: calc(100vh - 100px); }
.page-content { display: none; flex: 1; flex-direction: row; }
.page-content.active { display: flex; }
.mega-content { flex: 1; padding: 28px 32px; display: flex; gap: 28px; }
.mega-col { flex: 1; }
.col-heading { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #1565c0; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid #e8edf5; margin-bottom: 6px; }
.mega-col ul { list-style: none; }
.mega-col ul li a { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 14px; color: #333; text-decoration: none; font-weight: 500; border-bottom: 1px solid #f0f0f0; transition: color .18s, padding-left .18s; }
.mega-col ul li:last-child a { border-bottom: none; }
.mega-col ul li a:hover { color: #1565c0; padding-left: 5px; }
.mega-col ul li a .link-dot { width: 6px; height: 6px; background: #E1306C; border-radius: 50%; flex-shrink: 0; opacity: 0; transition: opacity .18s; }
.mega-col ul li a:hover .link-dot { opacity: 1; }
.more-link { display: inline-flex !important; align-items: center; gap: 6px; color: #E1306C !important; font-weight: 700 !important; margin-top: 8px; border-bottom: none !important; font-size: 13px !important; padding-left: 0 !important; }
.more-link svg { width: 14px; height: 14px; transition: transform .2s; }
.more-link:hover svg { transform: translateX(4px); }
/* Mobile-only header bar inside mega dropdown */
.mega-mobile-header { display: none; align-items: center; justify-content: space-between; padding: 14px 20px; background: linear-gradient(135deg,#833ab4,#e1306c); color: #fff; font-weight: 600; font-size: 16px; }
.mega-close-btn { background: none; border: none; cursor: pointer; color: #fff; display: flex; align-items: center; padding: 4px; }

/* Mobile accordion sub-panel (hidden by default, shown via JS maxHeight) */
.mobile-sub-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.25s ease; background: rgba(0,0,0,.12); padding: 0 16px; }
.mobile-sub-panel .mob-col-head { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 10px 0 4px; }
.mobile-sub-panel a { display: block; color: rgba(255,255,255,.85); text-decoration: none; font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-sub-panel a:last-child { border-bottom: none; }
.mobile-sub-panel a:hover { color: #fff; }
.mobile-sub-panel .mob-more-link { color: #f9a8d4 !important; font-weight: 600; padding-top: 10px; }
/* Desktop: hide mobile sub-panels, show .mega-body */
@media (min-width: 981px) {
  .mobile-sub-panel { display: none !important; }
  .mega-body { display: flex !important; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .main-menu { position: fixed; top: 0; right: -100%; width: 76vw; max-width: 340px; height: 100vh; flex-direction: column; align-items: flex-start; padding: 110px 26px 40px; background: rgba(4,2,10,.98); backdrop-filter: blur(12px); gap: 18px; transition: .35s ease; z-index: 950; overflow-y: auto; }
  .top-nav.open .main-menu, .scroll-nav.open .main-menu { right: 0; }
  .menu-toggle { display: flex; }
  .nav-actions .btn-gradient { display: none; }
  .mobile-cta { display: block; }
  .main-menu li { width: 100%; }
  .main-menu a { display: block; width: 100%; padding: 10px 0; }
  .mega-dropdown:not(.open) { position: static; display: none; box-shadow: none; }
  .mega-wrapper { flex-direction: column; }
  .mega-sidebar { width: 100%; min-width: unset; }
  .mega-mobile-header { display: flex; }
  /* Hide desktop right panel on mobile — accordion handles sub-links */
  .mega-body { display: none !important; }
}
