@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;600&display=swap');

:root{
  --pack-blue:#0033A0;
  --pack-gold:#FDB827;
  --ink:#eaf1ff;
  --muted:#a9b7d9;
  --bg-grad:
    radial-gradient(900px 360px at 10% -10%, rgba(7,58,158,.55), transparent),
    radial-gradient(700px 280px at 90% 0%, rgba(0,51,160,.40), transparent),
    linear-gradient(135deg,#02173f,#001b57 45%,#022b8a 85%);
}

/* Base */
*,
*::before,
*::after { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg-grad);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
}

/* Make layout feel less “squished” */
main.container,
header.hero main.container { max-width:1200px; }

/* Keep media from causing sideways scroll */
img, svg, iframe, video { max-width:100%; height:auto; }

/* Skip link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem;
  top:1rem;
  width:auto;
  height:auto;
  background:#fff;
  color:#111;
  padding:.5rem .75rem;
  border-radius:.5rem;
  z-index:99999;
}

/* Announcement bar */
.announce{
  background:rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.12);
  font-size:.9rem;
}

/* ===========================
   NAV (non-sticky) + dropdowns
   =========================== */
nav.container-fluid{
  position:relative; /* stacking context for dropdown overlay */
  z-index:3000;

  width:100%;
  max-width:100%;
  overflow:visible;

  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(0,15,40,.75);
  border-bottom:1px solid rgba(255,255,255,.12);

  /* Keep padding reasonable so it doesn't feel cramped */
  padding-left:1rem;
  padding-right:1rem;
}

/* Nav links */
nav a{
  font-family:Poppins,Inter,sans-serif;
  font-weight:600;
  color:#f3f6ff;
  text-decoration:none;
}
nav a:hover{ color:#fff; }
nav a.active{ border-bottom:2px solid var(--pack-gold); }

/* Ensure nav lists can wrap */
nav.container-fluid ul{
  flex-wrap:wrap;
  max-width:100%;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-weight:700;
  color:#fff;
}
.brand-img{
  height:86px;
  width:auto;
  display:block;

  padding:6px 10px;
  border-radius:18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg,#012767,#0033A0);

  border:2px solid rgba(253,184,39,.9);
  box-shadow:
    0 8px 20px rgba(0,0,0,.55),
    0 0 18px rgba(253,184,39,.28);

  transition:transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.brand:hover .brand-img,
.brand:focus-within .brand-img{
  transform:translateY(-1px) scale(1.03);
  border-color:#FFE08A;
  box-shadow:
    0 10px 26px rgba(0,0,0,.6),
    0 0 22px rgba(253,184,39,.4);
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.05;
  margin-left:.25rem;
}
.brand-text strong{
  font-family:Poppins,Inter,sans-serif;
  font-weight:900;
  font-size:1.55rem;
  letter-spacing:.6px;
  color:#fff;
  text-shadow:
    -1px -1px 0 #0033A0,
     1px -1px 0 #0033A0,
    -1px  1px 0 #0033A0,
     1px  1px 0 #0033A0;
}
.brand-text small{
  margin-top:.1rem;
  font-size:.72rem;
  color:var(--muted);
  letter-spacing:.5px;
  text-transform:uppercase;
}

/* Dropdown base */
details.nav-dd{ position:relative; }

/* Remove duplicated summary marker/arrow */
details.nav-dd > summary::-webkit-details-marker{ display:none !important; }
details.nav-dd > summary::marker{ content:"" !important; }
details.nav-dd > summary::after{ content:none !important; }

/* Dropdown menu overlay */
details.nav-dd > ul{
  display:none;
  position:absolute;
  top:calc(100% + .5rem);
  left:0;
  z-index:9999;

  min-width:220px;
  background:rgba(0,15,40,.98);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  box-shadow:0 18px 44px rgba(0,0,0,.55);
  padding:.4rem;
}
details.nav-dd[open] > ul{ display:block; }
details.nav-dd > ul li{ margin:0; }
details.nav-dd > ul a{
  display:block;
  padding:.55rem .65rem;
  border-radius:10px;
  color:#f3f6ff;
}
details.nav-dd > ul a:hover{ background:rgba(255,255,255,.08); }

/* HARD FIX: match Actions/Info height to other nav links */
nav.container-fluid > ul:last-child > li{
  display:flex !important;
  align-items:center !important;
  padding:0 !important;
  margin:0 !important;
}

nav.container-fluid > ul:last-child > li > a,
nav.container-fluid > ul:last-child > li > details.nav-dd{
  display:inline-flex !important;
  align-items:center !important;
  height:42px !important;
  margin:0 !important;
  padding:0 !important;
}

nav.container-fluid > ul:last-child > li > details.nav-dd > summary{
  display:inline-flex !important;
  align-items:center !important;
  height:42px !important;
  line-height:42px !important;
  padding:0 .6rem !important;
  margin:0 !important;

  color:#f3f6ff !important;
  font-family:Poppins,Inter,sans-serif !important;
  font-weight:600 !important;
  cursor:pointer;
}

nav.container-fluid > ul:last-child > li > a{
  height:42px !important;
  line-height:42px !important;
  padding:0 .6rem !important;
  margin:0 !important;
}

/* Subtle hover parity */
nav.container-fluid > ul:last-child > li > a:hover,
nav.container-fluid > ul:last-child > li > details.nav-dd > summary:hover{
  background:rgba(255,255,255,.06);
  border-radius:10px;
}

/* Ensure hero can't cover dropdown */
header.hero{ position:relative; z-index:1; }
header.hero::before,
header.hero .spark{ z-index:0 !important; }

/* ===========================
   HERO
   =========================== */
header.hero{
  position:relative;
  color:#fff;
  padding:6.5rem 0 0;
  overflow:hidden;
}
header.hero::before{
  content:"";
  position:absolute;
  inset:-20vh -10vw -10vh -10vw;
  background:var(--bg-grad);
}
header.hero .spark{
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,255,255,.14) 1px,transparent 1px);
  background-size:18px 18px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.65), transparent 70%);
  animation:drift 18s linear infinite;
  pointer-events:none;
}
header.hero .content{ position:relative; z-index:1; }
@keyframes drift{ from{ transform:translateY(0);} to{ transform:translateY(-18px);} }

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2rem;
  align-items:center;
}
.hero-title{
  font-family:Poppins,Inter,sans-serif;
  font-weight:800;
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.05;
  margin:.25rem 0 .5rem;
}
.highlight{
  background:linear-gradient(90deg,#fff 0%,#eaf1ff 40%,#ffeaa7 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 2px 18px rgba(0,0,0,.25);
}
.eyebrow{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.8rem;
  opacity:.9;
}
.hero-sub{ font-size:1.125rem; margin:.25rem 0 1rem; opacity:.95; }
.hero-points{ margin:0 0 1.25rem 1rem; }
.hero-points li{ margin:.25rem 0; }
.hero-wave{ display:block; width:100%; height:86px; }

/* ===========================
   SECTIONS / CARDS
   =========================== */
main.container section{
  position:relative;
  padding-top:.25rem;
  margin-bottom:2.5rem;
}
main.container section h1,
main.container section h2,
main.container section h3,
main.container section header{
  color:#fff;
  margin-bottom:.75rem;
  line-height:1.2;
}
.muted{ color:var(--muted); }

.card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:1.25rem;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1rem;
}

.text-link{
  font-size:.9rem;
  color:var(--pack-gold);
  text-decoration:none;
}
.text-link:hover{ text-decoration:underline; }

/* ===========================
   DENS
   =========================== */
.den-list{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.den .more{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease,opacity .35s ease,padding-top .25s;
  opacity:0;
  padding-top:0;
}
.den[open] .more{
  max-height:900px;
  opacity:1;
  padding-top:.5rem;
}
details.den summary{ list-style:none; cursor:pointer; }
details.den summary::-webkit-details-marker{ display:none; }
.den strong{ font-size:1.12rem; color:#fff; }
.den-mark{
  width:42px;
  height:42px;
  object-fit:contain;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.45));
}

/* ===========================
   PHOTOS + LIGHTBOX
   =========================== */
.grid-photos{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1rem;
}
.grid-photos img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.35);
  cursor:zoom-in;
}
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:2000;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:92vw;
  max-height:88vh;
  border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox button{
  position:absolute;
  top:1rem;
  right:1rem;
}

/* Footer + back to top */
footer{
  background:#0b1224;
  color:#c9d4f5;
  padding:2rem 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.floating-top{
  position:fixed;
  right:1rem;
  bottom:1rem;
  display:none;
}

/* Mobile */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:1.25rem; }
  .container{ padding-inline:1rem; }

  .brand-img{ height:52px; padding:4px 7px; border-radius:14px; }
  .brand-text strong{ font-size:1.2rem; letter-spacing:.4px; }
  .brand-text small{ display:none; }

  nav.container-fluid{ padding-left:1rem; padding-right:1rem; }
  nav.container-fluid ul:last-child{ justify-content:center; }
  details.nav-dd > ul{ min-width:200px; }

  .card{ padding:1.1rem; }
  .card-grid{ grid-template-columns:minmax(0,1fr); }
  .grid-photos img{ height:200px; }

  .hero-title{ font-size:clamp(1.9rem,6vw,2.6rem); }
  .hero-sub{ font-size:1rem; }
}

@media (prefers-reduced-motion:reduce){
  header.hero .spark{ animation:none; }
}

/* Scroll offset for anchored sections */
[id]{ scroll-margin-top:16px; }

/* ===========================
   LAYOUT: UN-SQUISH
   =========================== */

/* Override Pico container width so pages feel roomy again */
.container {
  max-width: 1280px !important;   /* try 1400px if you want even wider */
}

/* If you previously capped these, force them to match */
main.container,
header.hero main.container {
  max-width: 1280px !important;
}

/* ===========================
   NAV DROPDOWNS: KEEP ON SCREEN
   =========================== */

/* Give dropdowns a viewport-aware max width */
details.nav-dd > ul {
  max-width: min(92vw, 260px) !important;
}

/* If a dropdown is near the right edge, open it "inward" */
nav.container-fluid > ul:last-child > li:nth-last-child(1) details.nav-dd > ul,
nav.container-fluid > ul:last-child > li:nth-last-child(2) details.nav-dd > ul {
  left: auto !important;
  right: 0 !important;
}

/* ===========================
   LEADERS: Cubmaster feature
   =========================== */

.cubmaster-feature {
  max-width: 100%;
  margin-top: 1.5rem;

  /* visually stronger, uses horizontal space */
  padding: 1.75rem 2rem;
}

/* Make the content breathe more on large screens */
@media (min-width: 900px) {

/* ===========================
   Leaders: remove hero dead space + widen Cubmaster card
   =========================== */

/* On Leaders page, don't reserve a second hero column */
.page-leaders .hero-grid{
  grid-template-columns: 1fr !important;
}

/* Make the copy area span the full grid */
.page-leaders .hero-copy{
  max-width: none !important;
  width: 100% !important;
}

/* Make Cubmaster feature actually use the width */
.page-leaders .cubmaster-feature{
  width: 100% !important;
  max-width: 100% !important;
}

/* Optional: keep it from getting TOO wide on huge monitors */
@media (min-width: 1200px){
  .page-leaders .cubmaster-feature{
    max-width: 980px !important; /* increase this to 1100px if you want even wider */
  }
}

}

