/* =====================================================
   Long Beach Rocketry — styles.css
   ===================================================== */

/* === Design Tokens === */
:root {
  --bg:           #ffffff;
  --bg-card:      #f8f8f8;
  --bg-dark:      #1a1a1a;
  --text:         #1a1a1a;
  --text-sec:     #555555;
  --border:       #e5e5e5;
  --gold:         #FDCC45;
  --gold-dark:    #B8922A;
  --radius:       10px;
  --card-pad:     24px;
  --section-pad:  80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f0f0f;
    --bg-card:  #1c1c1c;
    --text:     #e8e8e8;
    --text-sec: #999999;
    --border:   #2a2a2a;
    --gold-dark: #FDCC45;
  }
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  padding: 10px 18px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  z-index: 999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p               { margin-bottom: 1rem; }
p:last-child    { margin-bottom: 0; }

/* === Section Label === */
.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

/* on always-dark surfaces, override */
.page-hero .section-label,
.dark-section .section-label,
.cta-banner .section-label {
  color: var(--gold);
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }

/* === Navigation === */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a1a;
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  color: #FDCC45;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: #cccccc;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #FDCC45;
  color: #1a1a1a;
  border-bottom-color: transparent;
}

.nav-links a.active {
  color: #FDCC45;
  border-bottom-color: #FDCC45;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #cccccc;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 20px;
    border-top: 1px solid #2a2a2a;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.nav-open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 0;
    border-bottom: none !important;
    font-size: 0.9375rem;
    min-height: 48px;
  }

  .nav-links a.active {
    background: rgba(253, 204, 69, 0.08);
    color: #FDCC45;
  }

  .nav-links a:hover {
    background: #FDCC45;
    color: #1a1a1a;
  }
}

/* === Footer === */
#site-footer {
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  display: block;
  color: #e8e8e8;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-tagline {
  display: block;
  color: #888888;
  font-size: 0.875rem;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #888888;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #FDCC45; }

.footer-divider {
  height: 1px;
  background: #2a2a2a;
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  color: #888888;
  font-size: 0.8125rem;
}

.footer-social { display: flex; gap: 20px; }

.footer-social-link {
  color: #888888;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}

.footer-social-link:hover { color: #FDCC45; }

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-brand-logo {
    width: 48px;
    height: 48px;
  }
  .footer-nav ul { gap: 16px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  border: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  background: #FDCC45;
  color: #1a1a1a;
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #FDCC45;
  border: 1px solid #FDCC45;
}
.btn-outline:hover {
  background: rgba(253, 204, 69, 0.12);
  opacity: 1;
  transform: translateY(-2px);
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* === Status Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-active      { background: #FDCC45;  color: #1a1a1a; }
.badge-development { background: #e8f4fd;  color: #1565c0; }
.badge-completed   { background: #e8f8e8;  color: #2e7d32; }
.badge-launch      { background: #fff3e0;  color: #c84b00; }
.badge-competition { background: #f3e5f5;  color: #6a1b9a; }
.badge-workshop    { background: #e8f4fd;  color: #1565c0; }

/* === Placeholder Images === */
.placeholder-img {
  background-color: #d4d4d4;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #888;
  font-size: 0.8125rem;
  font-family: system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 16px;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .placeholder-img {
    background-color: #222222;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    color: #555;
  }
}

/* === Always-Dark Sections === */
.dark-section {
  background: #1a1a1a;
  color: #e8e8e8;
}
.dark-section h1,
.dark-section h2,
.dark-section h3 { color: #ffffff; }
.dark-section p   { color: #aaaaaa; }

/* === Page Hero (inner pages) === */
.page-hero {
  background: #1a1a1a;
  padding: 48px 0;
}
.page-hero h1      { color: #ffffff; margin-top: 8px; font-weight: 500; }
.page-hero p       { color: #aaaaaa; margin-top: 14px; font-size: 1.0625rem; max-width: 560px; }

/* First content section immediately after the page hero */
.page-hero + section { padding-top: 48px; }

/* === Section Header === */
.section-header { margin-bottom: 40px; }
.section-header h2 { margin-top: 8px; font-weight: 500; }

/* =====================================================
   HOME — Hero (cinematic full-bleed)
   To swap in a real photo, replace the background-image below with:
     background-image: url('images/hero.jpg');
     background-size: cover;
     background-position: center;
   and remove the placeholder gradient lines.
   ===================================================== */
.hero {
  position: relative;
  background-color: #111111;
  background-image: url('../images/img_4144.jpg');
  background-size: cover;
  background-position: 68% 42%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

/* Directional overlay — left side dark for text, right lets image breathe */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.88) 28%,
    rgba(0, 0, 0, 0.66) 58%,
    rgba(0, 0, 0, 0.24) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  /* Break out of centered-container defaults — anchor to left edge of viewport */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(24px, 8vw);
  padding-right: max(24px, 8vw);
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  animation: heroFadeUp 0.6s ease-out 0.1s both;
}

.hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  animation: heroFadeUp 0.6s ease-out 0.3s both;
}

.hero-subtitle {
  color: #aaaaaa;
  font-size: 1.0625rem;
  margin-bottom: 32px;
  line-height: 1.75;
  animation: heroFadeUp 0.6s ease-out 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.6s ease-out 0.7s both;
}

/* Scroll-down chevron */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: opacity 0.4s ease;
  animation: heroFadeIn 0.6s ease-out 1s both;
}

.hero-scroll-indicator svg {
  display: block;
  animation: scrollBounce 1.5s ease-in-out 1.6s infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 80px;
  }
  .hero::after {
    background: rgba(0, 0, 0, 0.72);
  }
  .hero .container {
    padding-left: 24px;
    padding-right: 24px;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* =====================================================
   HOME — Stats Bar
   ===================================================== */
.stats-bar {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.stat-card:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-sec);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  .stat-card:last-child { border-bottom: none; }
}

/* =====================================================
   HOME — Latest News
   ===================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.news-card { display: flex; flex-direction: column; overflow: hidden; }

.news-card-img {
  width: calc(100% + 48px);
  height: 180px;
  object-fit: cover;
  display: block;
  margin: -24px -24px 20px;
  border-radius: 9px 9px 0 0;
  flex-shrink: 0;
}

.news-card h3 {
  margin: 12px 0 6px;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.news-card-meta {
  color: var(--text-sec);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-meta .sep { opacity: 0.5; }

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   HOME — CTA Banner
   ===================================================== */
.cta-banner {
  background: #1a1a1a;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   ABOUT — Mission
   ===================================================== */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-text p {
  color: var(--text-sec);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.mission-text p:last-child { margin-bottom: 0; }

.mission-image { height: 380px; }

img.mission-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-image { height: 240px; }
  img.mission-image {
    height: 240px;
    object-position: 50% 12%;
  }
}

/* =====================================================
   ABOUT — What We Do (Icon Cards)
   ===================================================== */
.icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.icon-card { padding: 32px; }

.icon-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--gold-dark);
}

.icon-card h3 { margin-bottom: 10px; font-size: 1.125rem; }

.icon-card p {
  color: var(--text-sec);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .icon-cards-grid { grid-template-columns: 1fr; }
  .icon-card { padding: 24px; }
}

/* =====================================================
   ABOUT — Leadership
   ===================================================== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.team-group + .team-group {
  margin-top: 56px;
}

.team-group-title {
  margin: 10px 0 10px;
}

.team-group-copy {
  color: var(--text-sec);
  max-width: 700px;
  margin-bottom: 0;
}

.leadership-grid-exec {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.leader-card {
  text-align: center;
  padding: 28px 22px;
}

.leader-avatar {
  width: 172px;
  height: 212px;
  border-radius: 28px;
  margin: 0 auto 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(253, 204, 69, 0.16), rgba(253, 204, 69, 0.04));
  border: 1px solid var(--border);
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.leader-avatar .placeholder-img {
  height: 100%;
  font-size: 0.6875rem;
  line-height: 1.15;
  padding: 8px;
}

.leader-role {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--gold-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.leader-name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .leader-card { padding: 24px; }
  .leader-avatar {
    width: 156px;
    height: 192px;
  }
}

/* =====================================================
   ROCKETS — Projects
   ===================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
}

.project-image { height: 140px; flex-shrink: 0; }

img.project-image {
  width: calc(100% + 24px);
  height: calc(100% + 48px);
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  align-self: stretch;
  margin: -24px 0 -24px -24px;
  border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-stat {
  font-size: 0.8125rem;
  color: var(--text-sec);
}

.project-body h3 { margin-bottom: 10px; }

.project-body p {
  color: var(--text-sec);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  color: var(--text-sec);
  font-size: 0.8125rem;
  gap: 0;
}

.project-tags span + span::before {
  content: " · ";
  white-space: pre;
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-image { height: 200px; }
}

/* =====================================================
   EVENTS — Timeline
   ===================================================== */
.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 32px;
  padding-bottom: 44px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FDCC45;
  flex-shrink: 0;
  margin-top: 3px;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px #FDCC45;
  position: relative;
  z-index: 1;
}

.timeline-dot.tentative {
  background: #888888;
  box-shadow: 0 0 0 2px #888888;
}

.timeline-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.timeline-content h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.timeline-content p {
  color: var(--text-sec);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* =====================================================
   EVENTS — Meetings
   ===================================================== */
.meetings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.meetings-info-block { margin-bottom: 20px; }
.meetings-info-block:last-child { margin-bottom: 0; }

.meetings-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}

.meetings-value {
  font-size: 1.0625rem;
  color: var(--text);
  font-weight: 500;
}

.map-placeholder { height: 240px; }

@media (max-width: 768px) {
  .meetings-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================
   EVENTS — Past Events
   ===================================================== */
.past-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.past-event-date {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  font-weight: 500;
}

.past-event-card h4 { margin-bottom: 6px; font-size: 1rem; }

.past-event-card p {
  color: var(--text-sec);
  font-size: 0.875rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .past-events-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   GALLERY — Photo Grid
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.gallery-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-photo video {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-photo:nth-child(4n) img,
.gallery-photo:nth-child(4n) video {
  height: 360px;
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold);
  font-size: 12px;
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-photo:hover .gallery-label {
  opacity: 1;
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* =====================================================
   GALLERY — Video Section
   ===================================================== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  background: #000;
}

.video-thumb-img,
.video-player { height: 240px; }

.video-player { object-fit: cover; }

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.video-thumb:hover .video-play-btn {
  background: rgba(253, 204, 69, 0.92);
}
.video-thumb:hover .video-play-btn svg path {
  fill: #1a1a1a;
}

.video-label {
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.video-sublabel {
  font-size: 0.8125rem;
  color: var(--text-sec);
  margin-top: 2px;
}

.video-note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-sec);
  text-align: center;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   JOIN — Why Join
   ===================================================== */
.why-join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.why-card p  { color: var(--text-sec); font-size: 0.9375rem; margin-bottom: 0; }

@media (max-width: 768px) { .why-join-grid { grid-template-columns: 1fr; } }

/* =====================================================
   JOIN — Steps
   ===================================================== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  max-width: 680px;
}

.step-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FDCC45;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4  { margin-bottom: 6px; font-size: 1.0625rem; }
.step-content p   { color: var(--text-sec); font-size: 0.9375rem; margin-bottom: 0; }

/* =====================================================
   JOIN — Contact
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.contact-left h2     { margin-bottom: 14px; }
.contact-left p      { color: var(--text-sec); font-size: 1.0625rem; margin-bottom: 28px; }

.contact-info-cards  { display: flex; flex-direction: column; gap: 12px; }

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
}

.info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 2px;
}

.info-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-dark);
  margin-bottom: 4px;
  font-weight: 500;
}

.info-value { font-size: 0.9375rem; color: var(--text); }

.info-link {
  font-size: 0.9375rem;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-social { display: flex; gap: 12px; margin-top: 4px; }

.info-social-link {
  font-size: 0.9375rem;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =====================================================
   SPONSORS
   ===================================================== */
.gold-sponsors-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px);
  gap: 24px;
  margin-top: 40px;
  justify-content: center;
}

.sponsor-box-gold {
  position: relative;
  min-height: 220px;
  background: #ffffff;
  border: 1px solid rgba(253, 204, 69, 0.75);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 0.875rem;
  gap: 8px;
}

.sponsor-box-gold img {
  width: min(420px, 82%);
  max-height: 130px;
  object-fit: contain;
  transform: translateX(36px);
}

.sponsor-box-gold .sponsor-box-label {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-dark);
  font-weight: 500;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.why-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.partner-box {
  min-height: 124px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sec);
  font-size: 0.8125rem;
  text-align: center;
  padding: 8px;
}

.partner-box img {
  max-width: 88%;
  max-height: 86px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .gold-sponsors-grid { grid-template-columns: 1fr; }
  .partners-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   RESPONSIVE — Catch-all grid collapse
   ===================================================== */
@media (max-width: 768px) {
  .card-grid,
  .stats-row,
  .photo-grid,
  .sponsor-row,
  .why-sponsor-grid,
  .stats-grid,
  .news-grid,
  .icon-cards-grid,
  .leadership-grid,
  .past-events-grid,
  .why-join-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   EVENTS — Atmospheric Banner
   ===================================================== */
.events-atmosphere {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.events-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.events-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* =====================================================
   JOIN — Hero with background image
   ===================================================== */
.page-hero-img {
  position: relative;
  background-color: #111111;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
}

.page-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.page-hero-img .container {
  position: relative;
  z-index: 1;
}

/* =====================================================
   SPONSORS — Atmospheric image
   ===================================================== */
.sponsor-atmosphere {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.sponsor-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sponsor-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  pointer-events: none;
}

/* =====================================================
   RESPONSIVE — Global
   ===================================================== */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  h1    { font-size: 2rem; }
  h2    { font-size: 1.5rem; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
}
