/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --color-purple:       #582c83;
  --color-purple-dark:  #4b2470;
  --color-gold:         #eaaa00;
  --color-gold-dark:    #d89b00;
  --color-navy:         #202a44;
  --color-cream:        #fdf9f3;

  /* Text Colors */
  --color-text:         #111827;
  --color-text-muted:   #1f2937;
  --color-text-subtle:  #333333;
  --color-white:        #ffffff;

  /* UI Colors */
  --color-surface:      #ffffff;
  --color-bg-subtle:    #f3f4f6;
  --color-footer-text:  #c7d2e8;

  /* Shadows — 3-level system */
  --shadow-sm:   0 2px 8px rgba(15, 23, 42, 0.12);
  --shadow-md:   0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg:   0 16px 36px rgba(15, 23, 42, 0.14);
  --shadow-gold: 0 10px 18px rgba(234, 170, 0, 0.25);
  --shadow-nav:  0 8px 18px rgba(15, 23, 42, 0.2);

  /* Containers */
  --container-max:  1100px;
  --container-wide: 1200px;

  /* Section heading scale */
  --heading-section: clamp(2rem, 3.4vw, 2.9rem);
}

html {
  scroll-behavior: smooth;
}

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--color-surface);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  overflow-x: hidden;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > .page-content {
  flex: 1;
}

/* Container for centered page content */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HEADER / NAV ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* Full-width navbar wrapper */
.nav-bar {
  padding: 1.25rem 2.5rem; /* controls how close to the screen edge */
}

/* Non-home pages start with a solid header */
body:not(.home-page) .site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

/* When scrolled on ANY page, header becomes solid and slightly shorter */
.site-header.scrolled {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

/* On scroll, reduce vertical padding but KEEP left/right padding */
.site-header.scrolled .nav-bar {
  padding: 0.75rem 2.5rem;
}

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

/* Logo block: SHPE | PVAMU */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.logo-swap {
  display: grid;
  align-items: center;
}

.logo-swap .logo-mark {
  grid-area: 1 / 1;
}

.logo-default {
  opacity: 1;
}

.logo-scrolled {
  opacity: 0;
}

.site-header.scrolled .logo-default {
  opacity: 0;
}

.site-header.scrolled .logo-scrolled {
  opacity: 1;
}

.logo-mark {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem; /* same distance between each link */
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem; /* bigger links */
  color: var(--color-text);
}

.nav-links a:hover {
  opacity: 0.85;
}

/* White nav text ONLY on homepage BEFORE scroll */
.home-page .site-header:not(.scrolled) .nav-links a {
  color: var(--color-white);
}

/* If you ever add text near the logo, this keeps it white on homepage too */
.home-page .site-header:not(.scrolled) .logo a {
  color: var(--color-white);
}

/* ===== MOBILE NAV TOGGLE ===== */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  z-index: 1002;
  color: var(--color-text);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Home page, transparent header: hamburger bars are white */
.home-page .site-header:not(.scrolled) .nav-toggle {
  color: var(--color-white);
}

/* When nav is open, always show X in dark (legible over the white overlay) */
.nav-toggle[aria-expanded="true"] {
  color: var(--color-text);
}

/* X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION (HOME) ===== */

.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.4)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  padding-top: 6rem; /* space under fixed header */
}

.hero-text {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2.4rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== HERO CAROUSEL ===== */

/* Carousel fills the hero section */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each slide: full size, hidden until active */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Push text content above the overlay */
.hero-content {
  z-index: 2;
}

/* Arrow controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--color-white);
  outline: none;
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
  flex-shrink: 0;
}

.hero-arrow-prev { left: clamp(12px, 2.5vw, 32px); }
.hero-arrow-next { right: clamp(12px, 2.5vw, 32px); }

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-dot.is-active {
  background: var(--color-white);
  border-color: var(--color-white);
  transform: scale(1.25);
}

@media (max-width: 640px) {
  .hero-arrow {
    width: 38px;
    height: 38px;
  }

  .hero-arrow svg {
    width: 20px;
    height: 20px;
  }

  .hero-dots {
    bottom: 1.25rem;
  }
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero-specific buttons — two distinct CTAs */
.btn-hero-primary {
  background: var(--color-gold);
  color: var(--color-purple);
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-hero-primary:hover {
  background: var(--color-gold-dark);
}

.btn-hero-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--color-white);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-gold {
  padding: 0.85rem 1.9rem;
  border-radius: 14px;
  background: var(--color-gold);
  color: var(--color-purple);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: var(--color-gold-dark);
}

/* Main content area under hero */
.page-content {
  padding-top: 110px; /* space for fixed header when there is no hero */
  padding-bottom: 3rem;
}

.page-content--with-hero {
  padding-top: 3rem;
}

.home-page .page-content {
  padding-bottom: 0;
}

/* About and SponsorSHPE pages: last section sits flush with footer */
.about-page-wrap .page-content {
  padding-bottom: 0;
}

/* ===== EVENT CALENDAR ===== */

.events-intro {
  padding: 4rem 0 2.5rem;
}

.events-intro-content {
  text-align: center;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  max-width: 70ch;
  margin: 0 auto;
}

/* ===== SECTION LABEL UTILITY ===== */

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Contextual spacing overrides */
.events-intro-content .section-label { margin-bottom: 0.25rem; }
.connect-left .section-label         { margin-bottom: 0.75rem; }
.about-history-text .section-label   { margin-bottom: 0.6rem; }

.events-title {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-purple);
  margin: 0;
}

.events-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.events-desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 auto;
  font-size: 1.05rem;
}

.calendar-embed {
  margin: 2rem auto 3rem;
  max-width: 1900px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 700px;
}


/* ===== CONNECT SECTION ===== */

#connect.connect-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-cream);
  padding: 100px 0;
}

.connect-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  gap: 3.5rem;
  align-items: center;
}

.connect-heading {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-purple);
  margin-bottom: 2rem;
}

.connect-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.65rem 0 0;
}

.connect-list {
  display: grid;
  gap: 1.6rem;
}

.connect-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.connect-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(88, 44, 131, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.connect-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-purple);
}

.connect-text {
  display: grid;
  gap: 0.35rem;
}

.connect-title {
  font-weight: 700;
  color: var(--color-text);
}

.connect-value {
  color: var(--color-text-subtle);
  font-size: 0.98rem;
  text-decoration: none;
}

.connect-value:hover {
  color: var(--color-purple);
}

.connect-map-card {
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.connect-map-frame {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

/* ===== ABOUT HERO ===== */

.about-page .about-hero {
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -110px;
  padding: calc(110px + 4rem) 1.5rem 5rem;
  background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 60%, #6b35a0 100%);
  position: relative;
  overflow: hidden;
}

.about-page .about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(234, 170, 0, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.about-page .about-hero-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.about-page .about-hero-kicker {
  color: var(--color-gold);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.about-page .about-hero-title {
  color: var(--color-white);
  font-weight: 900;
  font-size: clamp(3.6rem, 6.2vw, 4.75rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.about-page .about-hero-title span {
  display: block;
}

.about-page .about-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.about-page .about-hero-divider {
  height: 2px;
  width: 100%;
  background: var(--color-gold);
}

.about-page .about-history {
  padding: 70px 0 110px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.about-page .about-history-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.75rem;
  align-items: center;
  max-width: 1400px; /* intentionally wider for gallery layout */
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.about-page .about-history-title {
  color: var(--color-purple);
  font-size: clamp(2.6rem, 3.8vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.4rem;
}

.about-page .about-history-body {
  display: grid;
  gap: 1.35rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.about-page .about-history-gallery {
  display: flex;
  justify-content: flex-end;
}

.history-gallery-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  width: 100%;
}

.history-gallery-track {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--color-bg-subtle);
}

.history-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.history-gallery-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.history-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ede8f5;
  border-radius: 16px;
}

.history-gallery-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-purple);
  opacity: 0.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  box-shadow: var(--shadow-nav);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.history-gallery-nav svg {
  width: 20px;
  height: 20px;
  fill: var(--color-purple);
}

.history-gallery-prev {
  left: 12px;
}

.history-gallery-next {
  right: 12px;
}

/* ===== SCROLL ANIMATIONS ===== */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT: MISSION & VISION ===== */

.about-mission {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-navy);
  padding: 90px 0;
}

.about-mission-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}

.about-mission-block {
  padding: 0 3.5rem;
}

.about-mission-block:first-child {
  padding-left: 0;
}

.about-mission-block:last-child {
  padding-right: 0;
}

/* The gold vertical divider */
.about-mission-sep {
  background: var(--color-gold);
  opacity: 0.35;
  align-self: stretch;
  min-height: 1px;
}

/* Override section-label color on dark background */
.about-mission .section-label {
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.about-mission-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-mission-text {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Decorative accent mark under each mission heading */
.about-mission-heading::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 0.75rem;
}

/* ===== ABOUT: OUR VALUES ===== */

.about-values {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-cream);
  padding: 90px 0;
}

.about-values-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.about-values-header {
  text-align: center;
  margin-bottom: 3rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.about-values-heading {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-purple);
  margin: 0;
}

.about-values-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-value-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-gold);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.about-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.about-value-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(88, 44, 131, 0.08);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.about-value-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-purple);
}

.about-value-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-purple);
  margin-bottom: 0.6rem;
}

.about-value-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */

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

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Show hamburger, activate mobile nav overlay */
  .nav-toggle {
    display: flex;
  }

  /* Full-screen nav overlay */
  #site-nav {
    position: fixed;
    inset: 0;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1001;
  }

  #site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  /* Force dark text in overlay regardless of page type */
  .nav-links a {
    font-size: 1.5rem;
    color: var(--color-text) !important;
  }

  .events-intro {
    padding: 2.25rem 0 2rem;
  }

  .events-intro-content {
    gap: 0.6rem;
  }

  .nav-bar {
    padding: 1rem 1.25rem;
  }

  .site-header.scrolled .nav-bar {
    padding: 0.75rem 1.25rem;
  }

  .logo-mark {
    height: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .about-page .about-hero {
    padding: calc(110px + 2.5rem) 1.5rem 3.5rem;
  }

  .about-page .about-hero-kicker {
    font-size: 0.85rem;
  }

  .about-page .about-hero-title {
    font-size: clamp(2.6rem, 9vw, 3.4rem);
    line-height: 1.1;
  }

  .about-page .about-hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 48px;
  }

  .about-page .about-history-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  #connect.connect-section {
    padding: 90px 0;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .connect-map-frame {
    height: 340px;
  }

  .about-page .about-history {
    padding: 60px 0 80px;
  }

  .about-page .about-history-inner {
    grid-template-columns: 1fr;
  }

  .about-page .about-history-gallery {
    justify-content: flex-start;
  }

  .history-gallery-card {
    max-width: 100%;
  }

  /* Mission/Vision stacks vertically on tablet */
  .about-mission-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-mission-sep {
    width: 64px;
    height: 2px;
    min-height: unset;
    align-self: auto;
    margin: 0 auto;
  }

  .about-mission-block {
    padding: 0;
  }
}

@media (max-width: 640px) {
  /* Values cards have more text — stack to 1 column */
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */

.footer,
.footer * {
  box-sizing: border-box;
}

.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 64px 0 24px;
  width: 100%;
  overflow-x: hidden;
}

.footer-inner {
  max-width: var(--container-wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  width: 100%;
}

.footer-brand {
  display: grid;
  gap: 1.25rem;
}

.footer-logo {
  max-width: 260px;
  height: auto;
  display: block;
}

.footer-description {
  color: var(--color-footer-text);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-divider {
  margin: 2.5rem 0 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  color: var(--color-footer-text);
  font-size: 0.9rem;
}

/* ===== SPONSORSHPE: THANK YOU ===== */

.sp-thanks {
  padding: 80px 0 90px;
  text-align: center;
  background: var(--color-surface);
}

.sp-thanks-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sp-thanks-heading {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-purple);
  margin-bottom: 1.5rem;
}

.sp-thanks-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.sp-thanks-body {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

/* ── Footer mobile responsive ── */
@media (max-width: 768px) {
  .footer {
    padding: 48px 0 24px;
    width: 100%;
    max-width: 100%;
  }

  .footer-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
  }

  .footer-grid {
    width: 100%;
    max-width: 100%;
  }

  .footer-col {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-links {
    justify-items: center;
  }
}

@media (max-width: 375px) {
  .footer-inner {
    padding: 0 1rem;
  }

  .footer-description {
    font-size: 0.9rem;
  }

  .footer-heading {
    font-size: 0.85rem;
  }

  .footer-links {
    font-size: 0.88rem;
  }
}

/* ===== GET INVOLVED PAGE ===== */

/* Remove default bottom padding so colored closing CTA sits flush with footer */
.get-involved-page .page-content {
  padding-bottom: 0;
}

/* ── Shared section utilities ── */

.gi-section-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.gi-section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.gi-section-heading {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-purple);
  margin: 0;
}

.gi-section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* Light variant — headings on dark backgrounds */
.gi-heading-light {
  color: var(--color-white);
}

.gi-heading-light::after {
  background: var(--color-gold);
}

.gi-section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 65ch;
  margin: 0 auto;
}

.gi-sub-light {
  color: rgba(255, 255, 255, 0.78);
}

/* In-page link style */
.gi-link {
  color: var(--color-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gi-link:hover {
  color: var(--color-purple-dark);
}

/* ── Hero Banner ── */

.gi-hero {
  /* Pull up into the page-content padding so purple starts right at the header */
  margin-top: -110px;
  padding-top: calc(110px + 4.5rem);
  padding-bottom: 5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, var(--color-purple) 0%, #3d1f5e 100%);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* Subtle radial gold accent for depth */
.gi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(234, 170, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.gi-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.gi-hero-label {
  color: var(--color-gold);
}

.gi-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.gi-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
  margin: 0;
}

.gi-hero-btn {
  margin-top: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

/* ── Benefits / Why Join ── */

.gi-benefits {
  background: var(--color-cream);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 90px 0;
}

.gi-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gi-benefit-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-gold);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gi-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gi-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(88, 44, 131, 0.08);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.gi-benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--color-purple);
}

.gi-benefit-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.gi-benefit-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Membership Steps ── */

.temporary-hide {
  display: none !important;
}

.gi-steps {
  background: var(--color-navy);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 90px 0;
}

.gi-steps .gi-step-number {
  background: var(--color-gold);
  color: var(--color-navy);
}

.gi-steps-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.gi-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid rgba(88, 44, 131, 0.1);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}

.gi-step:hover {
  box-shadow: var(--shadow-lg);
}

.gi-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-purple);
  color: var(--color-white);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

.gi-step-content {
  display: grid;
  gap: 0.5rem;
}

.gi-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.gi-step-desc {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.97rem;
}

.gi-step-btn {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.gi-step-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Member Points Teaser ── */

.gi-points {
  background: var(--color-navy);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 90px 0;
}

.gi-points-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.gi-points-item {
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.gi-points-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(234, 170, 0, 0.12);
  display: grid;
  place-items: center;
}

.gi-points-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-gold);
}

.gi-points-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* Convention spotlight callout */
.gi-points-spotlight {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 170, 0, 0.3);
  border-left: 4px solid var(--color-gold);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.gi-points-spotlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(234, 170, 0, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gi-points-spotlight-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-gold);
}

.gi-points-spotlight-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.gi-points-spotlight-desc {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin: 0;
  font-size: 0.97rem;
}

.gi-points-coming-soon {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* ── FAQ Accordion ── */

.gi-faq {
  background: var(--color-surface);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 90px 0;
}

.gi-faq-list {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(88, 44, 131, 0.12);
}

details.gi-faq-item {
  border-bottom: 1px solid rgba(88, 44, 131, 0.12);
}

details.gi-faq-item summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
}

/* Remove default triangle in WebKit */
details.gi-faq-item summary::-webkit-details-marker {
  display: none;
}

/* + indicator */
details.gi-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-purple);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* Rotate + to × when open */
details.gi-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.gi-faq-answer {
  padding-bottom: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.gi-faq-answer p {
  margin: 0;
}

/* ── Closing CTA Banner ── */

.gi-closing-cta {
  background: linear-gradient(135deg, var(--color-purple) 0%, #3d1f5e 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 80px 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.gi-closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(234, 170, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.gi-closing-cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.gi-closing-cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin: 0;
}

.gi-closing-cta-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0;
}

/* ── Get Involved Responsive ── */

@media (max-width: 1024px) {
  .gi-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gi-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gi-hero {
    padding-top: calc(80px + 3rem);
    padding-bottom: 4rem;
  }

  .gi-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gi-step {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .gi-step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .gi-points-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gi-points-spotlight {
    flex-direction: column;
    gap: 1rem;
  }

}

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

  .gi-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gi-hero-title {
    font-size: 2.1rem;
  }
}


/* ===== SPONSORSHPE PAGE ===== */

/* -- Page layout -- */
.sponsorshpe-page .page-content {
  padding-bottom: 0;
}

/* -- Shared section utilities -- */
.sp-section-inner {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sp-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sp-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-purple);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.sp-label-light {
  color: var(--color-gold);
}

.sp-section-heading {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.sp-section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.65rem auto 0;
}

.sp-heading-light {
  color: var(--color-white);
}

.sp-section-sub {
  font-size: 1.05rem;
  color: var(--color-text-subtle);
  max-width: 580px;
  margin: 0.75rem auto 0;
}

.sp-sub-light {
  color: rgba(255, 255, 255, 0.75);
}

/* -- Global utility: outline-purple button -- */
.btn-outline-purple {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
  padding: 0.7rem 1.6rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-purple:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* ── 1. HERO ──────────────────────────────────────────── */
.sp-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 60%, #7b3fa8 100%);
  padding: calc(110px + 5rem) 1.5rem 5.5rem;
  margin-top: -110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(234, 170, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.sp-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.sp-hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sp-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.sp-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* ── 2. STATS ─────────────────────────────────────────── */
.sp-stats {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-bg-subtle);
  padding: 4.5rem 1.5rem;
}

.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.sp-stat-card {
  background: var(--color-white);
  border-top: 4px solid var(--color-gold);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sp-stat-number {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--color-purple);
  line-height: 1;
}

.sp-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── 3. WHY SPONSOR ──────────────────────────────────── */
.sp-why {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-cream);
  padding: 5rem 1.5rem;
}

.sp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.sp-why-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s;
}

.sp-why-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sp-why-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sp-why-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.sp-why-title-card {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.45rem;
}

.sp-why-body {
  font-size: 0.93rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
}


/* ── 5. FUNDS ────────────────────────────────────────── */
.sp-funds {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-surface);
  padding: 5rem 1.5rem;
}

.sp-funds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.sp-fund-card {
  background: var(--color-bg-subtle);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.sp-fund-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-fund-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-white);
}

.sp-fund-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.sp-fund-body {
  font-size: 0.92rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
}

/* ── 6. CONTACT ──────────────────────────────────────── */
.sp-contact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-navy);
  padding: 5rem 1.5rem 6rem;
}

.sp-contact .sp-contact-body {
  color: rgba(255, 255, 255, 0.75);
}

.sp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.sp-contact-heading::after {
  margin: 0.65rem 0 0; /* left-aligned */
}

.sp-contact-body {
  font-size: 1.05rem;
  color: var(--color-text-subtle);
  line-height: 1.7;
  margin: 1rem 0 1.75rem;
}

.sp-contact-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--color-purple);
}

.sp-contact-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.sp-contact-card-body {
  font-size: 0.95rem;
  color: var(--color-text-subtle);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.sp-contact-packet-btn {
  width: 100%;
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-contact-packet-btn:disabled {
  pointer-events: none;
}

.sp-contact-packet-note {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

/* ── SPONSORSHPE RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .sp-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-hero {
    padding: calc(110px + 3rem) 1.5rem 3.5rem;
  }

  .sp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-funds-grid {
    grid-template-columns: 1fr;
  }

  .sp-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sp-contact-heading::after {
    margin: 0.65rem auto 0; /* center on mobile */
  }

  .sp-contact-text {
    text-align: center;
  }
}

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

@media (max-width: 480px) {
  .sp-hero-title {
    font-size: 2rem;
  }
}

/* ===== OFFICERS PAGE ===== */

/* Flush last section to footer */
.officers-page .page-content {
  padding-bottom: 0;
}

/* ── Hero ── */

.of-page .of-hero {
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -110px;
  padding: calc(110px + 4rem) 1.5rem 5rem;
  background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 60%, #6b35a0 100%);
  position: relative;
  overflow: hidden;
}

.of-page .of-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(234, 170, 0, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.of-page .of-hero-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.of-page .of-hero-kicker {
  color: var(--color-gold);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}

.of-page .of-hero-title {
  color: var(--color-white);
  font-weight: 900;
  font-size: clamp(3.6rem, 6.2vw, 4.75rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.of-page .of-hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  line-height: 1.6;
  margin: 0 auto 2.5rem;
}

.of-page .of-hero-divider {
  height: 2px;
  width: 100%;
  max-width: var(--container-wide);
  background: var(--color-gold);
}

/* ── Past Executive Boards ── */

.of-past {
  background: var(--color-surface);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 90px 0;
}

.of-past-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.of-past-header {
  text-align: center;
  margin-bottom: 3rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.of-past-heading {
  font-size: var(--heading-section);
  font-weight: 800;
  color: var(--color-purple);
  margin: 0;
}

.of-past-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.of-past-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

.of-past-list {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(88, 44, 131, 0.12);
}

/* ── Officers Hero Responsive ── */

@media (max-width: 768px) {
  .of-page .of-hero {
    padding: calc(110px + 3rem) 1.5rem 3.5rem;
  }
}

@media (max-width: 480px) {
  .of-page .of-hero-title {
    font-size: 2.6rem;
  }
}

/* ===== OFFICERS BOARD SHOWCASE (Roster + Spotlight) ===== */

.ofb-board {
  background: var(--color-navy);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 80px 0 100px;
}

.ofb-board-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Roster sidebar ── */

.ofb-roster {
  position: sticky;
  top: 100px;
}

.ofb-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ofb-roster-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.ofb-roster-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.ofb-roster-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ofb-roster-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr 18px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.ofb-roster-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(234, 170, 0, 0.45);
}

.ofb-roster-btn.is-active {
  background: rgba(88, 44, 131, 0.4);
  border-color: rgba(88, 44, 131, 0.35);
  border-left-color: var(--color-gold);
}

.ofb-roster-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.ofb-roster-btn.is-active .ofb-roster-num,
.ofb-roster-btn:hover .ofb-roster-num {
  color: var(--color-gold);
}

.ofb-roster-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  overflow: hidden;
  min-width: 0;
}

.ofb-roster-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.ofb-roster-btn.is-active .ofb-roster-name,
.ofb-roster-btn:hover .ofb-roster-name {
  color: var(--color-white);
}

.ofb-roster-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.ofb-roster-btn.is-active .ofb-roster-role {
  color: rgba(234, 170, 0, 0.75);
}

.ofb-roster-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.18);
  overflow: visible;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.ofb-roster-btn.is-active .ofb-roster-chevron {
  color: var(--color-gold);
}

.ofb-roster-btn:hover .ofb-roster-chevron {
  color: rgba(255, 255, 255, 0.45);
  transform: translateX(3px);
}

/* ── Spotlight area ── */

.ofb-spotlight {
  min-height: 480px;
}

.ofb-panel {
  display: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ofb-panel.is-active {
  display: grid;
  grid-template-columns: 300px 1fr;
  animation: ofb-reveal 0.35s ease both;
}

@keyframes ofb-reveal {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Panel: photo column ── */

.ofb-panel-photo {
  position: relative;
  min-height: 460px;
  background: linear-gradient(
    160deg,
    var(--color-purple-dark) 0%,
    var(--color-purple) 48%,
    #3d1a64 100%
  );
  overflow: hidden;
}

.ofb-panel-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ofb-panel-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.13);
  letter-spacing: 0.04em;
  user-select: none;
}

/* right-edge fade so info panel blends cleanly */
.ofb-panel-photo-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 65%, var(--color-surface) 100%);
  pointer-events: none;
}

/* ── Panel: info column ── */

.ofb-panel-info {
  padding: 2.5rem 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.ofb-panel-ident {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ofb-panel-name {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.1;
  margin: 0;
}

.ofb-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  background: var(--color-gold);
  color: var(--color-purple);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  width: fit-content;
}

.ofb-panel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ofb-panel-meta-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ofb-panel-meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: rgba(88, 44, 131, 0.5);
}

.ofb-panel-meta-text {
  font-size: 0.86rem;
  color: var(--color-text-subtle);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

a.ofb-panel-meta-text:hover {
  color: var(--color-purple);
  text-decoration: underline;
}

.ofb-panel-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-gold) 0%,
    rgba(234, 170, 0, 0.15) 60%,
    transparent 100%
  );
  margin: 0;
}

.ofb-panel-bio-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ofb-panel-bio-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.ofb-panel-bio {
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .ofb-board-inner {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .ofb-panel.is-active {
    grid-template-columns: 240px 1fr;
  }

  .ofb-panel-photo {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .ofb-board {
    padding: 60px 0 80px;
  }

  .ofb-board-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ofb-roster {
    position: static;
  }

  .ofb-panel.is-active {
    grid-template-columns: 1fr;
    animation: ofb-reveal-mobile 0.3s ease both;
  }

  @keyframes ofb-reveal-mobile {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .ofb-panel-photo {
    min-height: 300px;
  }

  .ofb-panel-photo-edge {
    display: none;
  }

  .ofb-panel-info {
    padding: 1.75rem 1.5rem;
    gap: 1.1rem;
  }
}

@media (max-width: 480px) {
  .ofb-panel-photo {
    min-height: 240px;
  }

  .ofb-panel-name {
    font-size: 1.55rem;
  }

  .ofb-panel-info {
    padding: 1.5rem 1.25rem;
  }
}

/* =============================================================
   GALLERY PAGE — masonry photo dump
   ============================================================= */

/* ── Page title ── */
.gl-page-header {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gl-page-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.gl-page-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Reduce the default page-content top padding and kill the
   container max-width so the grid goes edge-to-edge */
.gallery-page .page-content {
  padding-top: 72px;
  padding-bottom: 0;
}

.gallery-page .page-content > .container {
  max-width: none;
  padding: 0;
}

/* Full-bleed masonry column layout */
.gl-masonry-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  columns: 4;
  column-gap: 6px;
  padding: 6px;
}

/* Each figure: prevent column breaks inside, gap below */
.gl-item {
  margin: 0 0 6px;
  break-inside: avoid;
  overflow: hidden;
}

/* Placeholder block — solid neutral, sized by inline aspect-ratio */
.gl-placeholder {
  display: block;
  width: 100%;
  background: #d3d1cf;
}

/* Real image (swap in when ready — replaces the placeholder div) */
.gl-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Subtle hover brightening */
.gl-item:hover .gl-placeholder,
.gl-item:hover img {
  filter: brightness(1.06);
  transition: filter 0.2s ease;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .gl-masonry-wrap {
    columns: 3;
  }
}

@media (max-width: 640px) {
  .gl-masonry-wrap {
    columns: 2;
  }
}

/* =============================================================
   HOME PAGE — sponsor strip
   ============================================================= */

.home-sponsors {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-surface);
  padding: 1rem 0 2rem;
}

.home-sponsors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-sponsors-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.home-sponsors-cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-purple);
  text-decoration: none;
  padding: 0.28rem 0.75rem;
  background: var(--color-gold);
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}

.home-sponsors-cta:hover {
  background: var(--color-gold-dark);
}

.home-sponsors-rule {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  margin: 0.75rem 0 0;
}

.home-sponsors-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem 0;
}

.home-sponsors-logo {
  max-height: 225px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .home-sponsors-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =============================================================
   SPONSORSHPE PAGE — current sponsors section
   ============================================================= */

.sp-current-sponsors {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--color-surface);
  padding: 5rem 1.5rem;
}

.sp-sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 0;
}

.sp-sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.5rem;
  background: var(--color-cream);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  min-width: 220px;
  max-width: 280px;
}

.sp-sponsor-logo {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
}

.sp-sponsor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

.sp-sponsor-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: var(--color-gold);
  color: var(--color-navy);
  border-radius: 20px;
}

