/* ═══════════════════════════════════════════════════
   TOKEN SYSTEM
═══════════════════════════════════════════════════ */
:root {
  --navy:      #01236a;
  --navy-deep: #010f2e;
  --navy-mid:  #0d3885;
  --cobalt:    #1A5EB8;
  --cobalt-lt: #3575d4;
  --gold:      #C9922A;
  --gold-lt:   #E8B84B;
  --gold-pale: #FBF4E8;
  --amber:     #f5a623;
  --cream:     #FAF8F4;
  --white:     #FFFFFF;
  --ink:       #0D0E1A;
  --ink-mid:   #3B3C50;
  --ink-soft:  #6B6C80;
  --rule:      rgba(201,146,42,0.18);
  --rule-hard: #E2DDD5;

  --ff-display: 'DM Sans', system-ui, sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(1,35,106,.06);
  --shadow-md:  0 6px 24px rgba(1,35,106,.10);
  --shadow-lg:  0 16px 48px rgba(1,35,106,.14);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

/* [Navbar CSS moved to navbar.css] */
.hero-banner{
  width:100%;
  overflow:hidden;
}
.hero-banner img{
  width:100%;
  height:auto;
  display:block;
}

/* Header Masthead */
.page-masthead{
  background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, var(--cobalt) 100%);
  padding:50px 24px;
  color:#fff;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.page-masthead::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:radial-gradient(ellipse at center, rgba(201,146,42,.15) 0%, transparent 70%);
  pointer-events:none;
}
.page-masthead-inner{
  max-width:1000px;
  margin:0 auto;
  position:relative;
  z-index:2;
}
.page-tagline{
  font-family:var(--ff-mono);
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-lt);
  display:inline-block;
  margin-bottom:12px;
  padding:5px 16px;
  border:1px solid rgba(201,146,42,.35);
  border-radius:30px;
  background:rgba(201,146,42,.1);
}
.page-masthead h1{
  font-family:var(--ff-body);
  font-size:clamp(38px, 5vw, 56px);
  font-weight:700;
  line-height:1.1;
  color:#fff;
  margin-bottom:14px;
}
.page-masthead p{
  font-size:17px;
  color:rgba(255,255,255,.8);
  max-width:760px;
  margin:0 auto;
}

/* Quick Filter Bar */
.filter-bar{
  background:#fff;
  border-bottom:1px solid var(--rule-hard);
  position:sticky;
  top:76px;
  z-index:900;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  padding:12px 20px;
}
.filter-container{
  /*max-width:1300px;*/
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
}
.filter-container::-webkit-scrollbar{ display:none; }
.filter-chip{
  padding:8px 18px;
  font-size:13px;
  font-weight:600;
  border-radius:30px;
  border:1px solid #ddd;
  background:#f9f9f9;
  color:#444;
  text-decoration:none;
  cursor:pointer;
  transition:.25s;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.filter-chip:hover,
.filter-chip.active{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
}

/* Content Container Shell */
.shell{
  max-width:1240px;
  margin:40px auto;
  padding:0 24px 80px;
}

/* Section Dividers */
.section-head{
  display:flex;
  align-items:center;
  margin:60px 0 35px;
}
.section-head-line{
  flex:1;
  height:2px;
  background:var(--rule-hard);
}
.section-head-label{
  padding:8px 24px;
  font-family:var(--ff-body);
  font-size:22px;
  font-weight:700;
  color:var(--navy);
  text-transform:uppercase;
  letter-spacing:.08em;
  background:var(--cream);
  border:2px solid var(--gold);
  border-radius:40px;
  margin:0 18px;
  box-shadow:var(--shadow-sm);
  text-align:center;
}

/* Project Cards */
.project-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 30px rgba(1,35,106,.07);
  border:1px solid rgba(1,35,106,.08);
  margin-bottom:50px;
  overflow:hidden;
  transition:box-shadow .3s, transform .2s;
}
.project-card:hover{
  box-shadow:0 14px 40px rgba(1,35,106,.12);
}

/* Card Header */
.card-top{
  background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding:26px 36px;
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:16px;
}
.card-club-meta{
  flex:1;
}
.badge-category{
  display:inline-block;
  background:var(--gold);
  color:var(--navy-deep);
  font-family:var(--ff-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:5px 14px;
  border-radius:20px;
  margin-bottom:10px;
}
.badge-category.alt{
  background:var(--cobalt-lt);
  color:#fff;
}
.card-club-name{
  font-family:var(--ff-body);
  font-size:28px;
  font-weight:700;
  color:#fff;
  line-height:1.2;
  margin-bottom:6px;
}
.card-project-title{
  font-size:19px;
  color:var(--gold-lt);
  font-weight:600;
}

/* Card Body */
.card-body{
  padding:36px;
}
.card-lead{
  font-size:16.5px;
  line-height:1.85;
  color:#333;
  margin-bottom:20px;
  text-align:justify;
}

/* Blockquote */
.quote-highlight{
  border-left:4px solid var(--gold);
  background:var(--gold-pale);
  padding:18px 24px;
  border-radius:0 12px 12px 0;
  margin:25px 0;
  font-family:var(--ff-body);
  font-size:19px;
  font-style:italic;
  color:var(--navy-deep);
  line-height:1.6;
}

/* Highlight Grid */
.highlights-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:16px;
  margin:28px 0;
}
.highlight-item{
  background:#f8f9fc;
  border:1px solid #e7ecf5;
  border-left:4px solid var(--cobalt);
  padding:16px 20px;
  border-radius:8px;
}
.highlight-item h5{
  font-size:14px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:8px;
}
.highlight-item p{
  font-size:13.5px;
  color:#555;
  line-height:1.6;
}

/* Stat Bar */
.stat-strip{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  background:#f4f7fc;
  border:1px solid #dde5f5;
  border-radius:12px;
  padding:18px 24px;
  margin:25px 0;
}
.stat-box{
  flex:1;
  min-width:180px;
  text-align:center;
  border-right:1px solid #dce4f2;
}
.stat-box:last-child{ border-right:none; }
.stat-num{
  font-family:var(--ff-body);
  font-size:32px;
  font-weight:700;
  color:var(--navy-mid);
  line-height:1;
  margin-bottom:4px;
}
.stat-lbl{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#666;
  font-weight:600;
}

/* Acknowledgements Pill Box */
.ack-box{
  background:linear-gradient(135deg, #faf6ee 0%, #f4ede0 100%);
  border:1px solid #e2d3bb;
  border-radius:12px;
  padding:22px 28px;
  margin:25px 0;
}
.ack-box h5{
  font-family:var(--ff-body);
  font-size:18px;
  font-weight:700;
  color:var(--gold);
  margin-bottom:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.ack-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ack-pill{
  background:#fff;
  border:1px solid #d4c2a5;
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  color:#443b2e;
  font-weight:500;
}

/* Video Frame Container */
.video-frame-container{
  position:relative;
  width:100%;
  max-width:920px;
  margin:28px 0 32px;
  background:#fff;
  border-radius:16px;
  padding:18px;
  border:1px solid rgba(201,146,42,.35);
  box-shadow:0 10px 30px rgba(1,35,106,.08);
}
.video-frame-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid #f0ece3;
  flex-wrap:wrap;
}
.video-frame-title{
  font-family:var(--ff-body);
  font-size:19px;
  font-weight:700;
  color:var(--navy);
  display:flex;
  align-items:center;
  gap:10px;
}
.video-frame-title svg{ flex-shrink:0; }
.video-frame-link{
  font-family:var(--ff-mono);
  font-size:12px;
  letter-spacing:.05em;
  font-weight:700;
  color:#c4302b;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 12px;
  border-radius:20px;
  background:rgba(196,48,43,.08);
  transition:all .2s ease;
}
.video-frame-link:hover{
  background:#c4302b;
  color:#fff;
}
.youtube-video-wrapper{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border-radius:12px;
  background:#000;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}
.youtube-video-wrapper iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}


/* Photo Gallery Grid */
.photo-gallery{
  margin-top:35px;
  border-top:1px solid #f0ede8;
  padding-top:25px;
}
.photo-gallery h4{
  font-family:var(--ff-body);
  font-size:22px;
  color:var(--navy);
  margin-bottom:18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.photo-gallery h4::after{
  content:"";
  height:2px;
  background:var(--gold);
  flex:1;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}
.gallery-item{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#111;
  display:block;
  aspect-ratio:4/3;
  box-shadow:0 6px 16px rgba(0,0,0,.09);
  transition:transform .25s, box-shadow .25s;
}
.gallery-item.tall{ aspect-ratio:3/4; }
.gallery-item.newspaper{ aspect-ratio:3/4; background:#f5f5f5; }
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
  transition:transform .35s;
}
.gallery-item:hover img{
  transform:scale(1.04);
}
.gallery-item::after{
  content:'🔍 Zoom';
  position:absolute;
  bottom:10px;
  right:10px;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:3px 8px;
  border-radius:4px;
  opacity:0;
  transition:opacity .2s;
  pointer-events:none;
}
.gallery-item:hover::after{ opacity:1; }

/* Portrait Row */
.portrait-row{
  display:flex;
  gap:24px;
  margin:20px 0;
  flex-wrap:wrap;
}
.portrait-card{
  flex:1;
  min-width:240px;
  max-width:340px;
  background:#fdfcf9;
  border:1px solid #eae5db;
  border-radius:14px;
  overflow:hidden;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.portrait-card img{
  width:100%;
  height:280px;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.portrait-card h5{
  font-family:var(--ff-body);
  font-size:18px;
  color:var(--navy);
  padding:12px 14px 4px;
}
.portrait-card span{
  display:block;
  font-size:12px;
  color:var(--gold);
  font-weight:600;
  padding-bottom:14px;
}

/* Lightbox Modal */
#lightbox{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.88);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  cursor:zoom-out;
  padding:20px;
}
#lightbox img{
  max-width:92%;
  max-height:92vh;
  border-radius:8px;
  box-shadow:0 0 35px rgba(0,0,0,.7);
  object-fit:contain;
  border:3px solid #fff;
}
#lightbox.active{ display:flex; }

/* Footer */
.footer{
  background:linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  text-align:center;
  padding:40px 20px;
  font-size:13.5px;
  color:#fff;
  letter-spacing:.02em;
  margin-top:80px;
  border-top:3px solid var(--gold);
}
.footer strong{ color:var(--gold-lt); }

/* Responsive tweaks */
@media (max-width:768px){
  .card-top{ padding:20px; }
  .card-body{ padding:20px; }
  .card-club-name{ font-size:24px; }
  .stat-strip{ flex-direction:column; gap:12px; }
  .stat-box{ border-right:none; border-bottom:1px solid #dde5f5; padding-bottom:10px; }
  .stat-box:last-child{ border-bottom:none; }
  .gallery-grid{ grid-template-columns:1fr; }
  .shell{ padding:0 14px 60px; }
}