/* ==========================================================================
   FUTURE GENERATION HOPE SCHOOL — CLASSIC PRESTIGE THEME
   Timeless collegiate aesthetic: ivory grounds, ink navy, antique gold,
   and editorial typography inspired by the finest independent schools.
   ========================================================================== */

:root {
  /* Page surfaces — warm ivory & parchment */
  --bg-main: #f8f5ef;
  --surface: #ffffff;
  --surface-alt: #f0ebe2;
  --border-subtle: rgba(26, 35, 58, 0.1);
  --border-hover: rgba(26, 35, 58, 0.22);

  /* Antique gold */
  --gold-primary: #c9a227;
  --gold-light: #e8c96a;
  --gold-dark: #9a7b1a;
  --gold-text: #7a6114;
  --gold-gradient: linear-gradient(135deg, #e8c96a 0%, #c9a227 50%, #9a7b1a 100%);
  --gold-glow: 0 12px 32px -10px rgba(201, 162, 39, 0.45);

  /* Ink navy */
  --text-main: #1a233a;
  --text-muted: #5a6478;
  --navy: #1a233a;
  --navy-soft: #2a3654;
  --navy-deep: #0f1524;

  /* Sage accent */
  --leaf: #3d6b4a;
  --leaf-dark: #2d5038;
  --leaf-light: #e6f0e8;

  /* Typography */
  --text-main-alt: #1a233a;
  --font-serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-prestige: 0 20px 50px -20px rgba(15, 21, 36, 0.35);
  --shadow-soft: 0 8px 24px -12px rgba(15, 21, 36, 0.18);
  --transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: rgba(31, 42, 68, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-text);
  text-decoration-color: var(--gold-primary);
}

.container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Accessibility floor: focus states & reduced motion
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(201, 162, 39, 0.03) 2px,
    rgba(201, 162, 39, 0.03) 4px
  );
  pointer-events: none;
}

.site-header.scrolled {
  border-bottom-color: var(--gold-primary);
  box-shadow: 0 10px 28px rgba(20, 28, 48, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.25rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  order: 1;
}

.logo-link:hover {
  color: #ffffff;
}

.logo-link img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  padding: 2px;
}

.logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.nav-toggle {
  display: none;
  order: 2;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.1rem;
}

.main-nav {
  order: 3;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a.active {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--gold-primary);
}

.main-nav .has-dropdown > a::after {
  content: " ▾";
  font-size: 0.7rem;
  color: var(--gold-light);
  margin-left: 0.25rem;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-prestige);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links sit on a white card, not the navy bar — override the
   light-on-navy nav-link color with higher specificity so text stays
   legible instead of inheriting white-on-white from .main-nav a. */
.main-nav .dropdown a {
  color: var(--text-muted);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}

.main-nav .dropdown a:hover {
  background: var(--surface-alt);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Mobile Navigation
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open {
    max-height: 640px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    width: 100%;
  }

  .main-nav a {
    padding: 0.85rem 0.5rem;
    border-radius: 0;
  }

  .main-nav a.active {
    box-shadow: none;
    color: var(--gold-light);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0 0 0.35rem;
    padding: 0;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .main-nav .dropdown a {
    color: rgba(255, 255, 255, 0.78);
    padding: 0.7rem 1rem;
  }

  .main-nav .dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   Hero Section & Continuous 2-Slide Track
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5.5rem 0 8rem;
  background: var(--navy-deep);
  color: #ffffff;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-slider-bg .slider-track,
.slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  animation: slideAnimation2 14s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  will-change: transform;
}

.hero-slider-bg .slide,
.slide {
  width: 50%;
  flex: 0 0 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider-bg .slide img,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1%, -1%); }
}

@keyframes slideAnimation2 {
  0%, 45% { transform: translate3d(0, 0, 0); }
  50%, 95% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Gentle navy scrim so headline text stays legible over any photo */
.hero-slider-bg::after,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.55) 0%, rgba(20, 28, 48, 0.3) 45%, rgba(20, 28, 48, 0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Warm horizon curve — the page's one signature flourish: a soft
   sunrise-glow arc where the hero settles into the page below. */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  width: 140%;
  height: 130px;
  background: radial-gradient(ellipse at 50% 0%, rgba(243, 197, 103, 0.45) 0%, var(--bg-main) 62%);
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
}

.slide-caption-badge {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  background: rgba(20, 28, 48, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 164, 58, 0.4);
  color: #f7e9c8;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero p {
  font-size: 1.1rem;
  color: #f2f0ea;
  margin-bottom: 2.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-logo {
  justify-self: center;
  width: min(320px, 100%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-deep);
  border: none;
  font-weight: 700;
  box-shadow: var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px -8px rgba(220, 164, 58, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Secondary button used on light (non-hero) backgrounds */
.page-hero .btn-secondary,
.section .btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-hover);
}

.page-hero .btn-secondary:hover,
.section .btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Sections & Cards
   -------------------------------------------------------------------------- */
section {
  padding: 5.5rem 0;
}

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

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-inline: auto;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  overflow: hidden;
}

/* Folder-tab motif: every card reads a little like a labelled school
   folder. Default tab is gold; homepage cards use the accent modifiers
   below to color-code Academics / Campus / Student Life. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  width: 42px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 0 0 5px 5px;
}

.card.accent-navy::before { background: var(--navy); }
.card.accent-gold::before { background: var(--gold-primary); }
.card.accent-leaf::before { background: var(--leaf); }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-prestige);
}

.card h3 {
  font-family: var(--font-serif);
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.card-link:hover {
  color: var(--gold-text);
}

/* --------------------------------------------------------------------------
   Prestige Section Elements
   -------------------------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.prestige-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 2.5rem;
  max-width: 280px;
}

.prestige-divider::before,
.prestige-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.prestige-divider span {
  color: var(--gold-primary);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

.hero-est-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.stat-item {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-item span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* Homepage feature cards — editorial two-up layout */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: #ffffff;
  box-shadow: var(--shadow-prestige);
  transition: var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 21, 36, 0.15) 0%,
    rgba(15, 21, 36, 0.55) 45%,
    rgba(15, 21, 36, 0.92) 100%
  );
  z-index: 1;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 0.88;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -18px rgba(15, 21, 36, 0.5);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-card-body {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
}

.feature-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-primary);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.feature-card p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.25rem;
  max-width: 42ch;
  line-height: 1.65;
}

.feature-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap 0.3s ease;
}

.feature-card:hover .feature-card-cta {
  gap: 0.85rem;
}

.welcome-section {
  position: relative;
  background: var(--bg-main);
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* --------------------------------------------------------------------------
   Page Hero — Photo Variant
   -------------------------------------------------------------------------- */
.page-hero-photo {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 3.5rem;
  overflow: hidden;
  background: var(--navy-deep);
}

.page-hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
}

.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 21, 36, 0.4) 0%, rgba(15, 21, 36, 0.85) 100%);
  z-index: 1;
}

.page-hero-photo .container {
  position: relative;
  z-index: 2;
}

.page-hero-photo h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.page-hero-photo p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  max-width: 55ch;
}

.page-hero-photo .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.page-hero-photo .breadcrumb a {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Clubs Showcase
   -------------------------------------------------------------------------- */
.clubs-intro {
  max-width: 68ch;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.clubs-intro p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.club-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-prestige);
  border-color: var(--border-hover);
}

.club-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.club-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.club-card:hover .club-card-image img {
  transform: scale(1.08);
}

.club-card-icon {
  position: absolute;
  bottom: -18px;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--gold-glow);
  z-index: 2;
}

.club-card-body {
  padding: 2rem 1.5rem 1.75rem;
}

.club-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.club-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.clubs-cta-banner {
  margin-top: 4rem;
  padding: 3.5rem;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clubs-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
}

.clubs-cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  position: relative;
}

.clubs-cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
  position: relative;
}

/* --------------------------------------------------------------------------
   Gallery — Immersive Layout
   -------------------------------------------------------------------------- */
.gallery-showcase {
  position: relative;
  height: clamp(380px, 52vh, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-prestige);
}

.gallery-showcase .slider-track {
  display: flex;
  width: 600%;
  height: 100%;
  animation: gallerySlide6 42s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.gallery-showcase .slide {
  width: calc(100% / 6);
  flex: 0 0 calc(100% / 6);
  height: 100%;
  position: relative;
}

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

.gallery-showcase .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 21, 36, 0.75) 100%);
}

.gallery-showcase .slide-caption-badge {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 2;
}

@keyframes gallerySlide6 {
  0%, 14% { transform: translateX(0); }
  16.66%, 30% { transform: translateX(-16.666%); }
  33.33%, 47% { transform: translateX(-33.333%); }
  50%, 64% { transform: translateX(-50%); }
  66.66%, 80% { transform: translateX(-66.666%); }
  83.33%, 97% { transform: translateX(-83.333%); }
  100% { transform: translateX(0); }
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.gallery-filter-btn {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.gallery-masonry {
  columns: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-prestige);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 21, 36, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay h3 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.gallery-item-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin: 0;
}

.gallery-item.tall img { aspect-ratio: 3/4; object-fit: cover; }
.gallery-item.wide img { aspect-ratio: 16/10; object-fit: cover; }
.gallery-item.square img { aspect-ratio: 1; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 21, 36, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Content Blocks, Info Boxes & Events
   -------------------------------------------------------------------------- */
.content-block {
  max-width: 72ch;
}

.content-block h2 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  letter-spacing: 0.01em;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  color: var(--text-muted);
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.content-block ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.content-block li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.content-block li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--gold-dark);
  font-size: 0.85rem;
}

.content-block li strong {
  color: var(--text-main);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: start;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.info-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-prestige);
}

.info-box h3 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.info-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--text-main);
}

.event-list li {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.event-list li:hover {
  transform: translateX(6px);
  border-color: var(--border-hover);
}

.event-list .date {
  font-weight: 700;
  color: var(--leaf-dark);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.event-list h3 {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Social Media Grid
   -------------------------------------------------------------------------- */
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.social-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.social-link i {
  font-size: 1.85rem;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--surface-alt);
}

.social-link:hover i {
  transform: scale(1.12);
}

.social-link.youtube i { color: #ff0000; }
.social-link.youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.12);
}

.social-link.tiktok i { color: #1f2a44; }
.social-link.tiktok:hover {
  border-color: rgba(31, 42, 68, 0.4);
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.12);
}

.social-link.telegram i { color: #24a1de; }
.social-link.telegram:hover {
  border-color: rgba(36, 161, 222, 0.4);
  box-shadow: 0 8px 20px rgba(36, 161, 222, 0.12);
}

.social-link.facebook i { color: #1877f2; }
.social-link.facebook:hover {
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.12);
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-prestige);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-main);
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(220, 164, 58, 0.2);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer h3 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.site-footer li {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.9rem;
  line-height: 1.4;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.site-footer a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer-logo {
  width: 56px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Inner Page & Layout Overrides
   -------------------------------------------------------------------------- */
.page-hero {
  background: radial-gradient(circle at 50% 0%, rgba(220, 164, 58, 0.14) 0%, transparent 70%),
              linear-gradient(180deg, var(--surface-alt) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0 3.5rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
  line-height: 1.6;
}

.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold-text);
}

/* --------------------------------------------------------------------------
   Animations & Utilities
   -------------------------------------------------------------------------- */
.reveal-prepare {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.tab-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Dynamic Announcement Section
   -------------------------------------------------------------------------- */
.announcement-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.announcement-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-prestige);
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.announcement-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notice-badge,
.announcement-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold-primary);
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-sm);
}

.announcement-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.announcement-title {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.announcement-body {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-size: 1.025rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Overrides
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .two-col,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 360px;
  }

  .club-showcase-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    columns: 2;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    columns: 1;
  }
}
