/* ===========================================================
   CDCA — Royal Chess Theme v3
   Dark navy hero · Gold accents · Light content sections
   Inspired by classic district association elegance
   =========================================================== */

:root {
  /* Surfaces */
  --ivory:        #faf6ee;
  --cream:        #f4eedf;
  --paper:        #ffffff;
  --warm-50:      #fbf8f2;
  --warm-100:     #f3ede0;
  --warm-200:     #e8dec7;

  /* Brand */
  --navy:         #0b1b3a;        /* deep royal navy */
  --navy-2:       #0f2549;
  --navy-3:       #163063;
  --navy-soft:    #1e3a6f;
  --gold:         #c9a047;
  --gold-bright:  #e8b647;
  --gold-pale:    #f0d278;
  --gold-deep:    #a17e2c;
  --burgundy:     #7a1f2b;

  /* Text */
  --ink:          #111827;
  --slate:        #475569;
  --slate-soft:   #6b7589;
  --muted:        #94a0b3;
  --on-dark:      #ffffff;
  --on-dark-soft: rgba(255,255,255,0.78);
  --on-dark-mute: rgba(255,255,255,0.55);

  /* Borders */
  --border:       #e6dfd0;
  --border-2:     #d4c8ad;
  --border-dark:  rgba(255,255,255,0.10);
  --border-dark-2:rgba(255,255,255,0.18);

  /* Shadows */
  --shadow-sm:    0 2px 6px rgba(11,27,58,0.06);
  --shadow:       0 10px 28px rgba(11,27,58,0.10);
  --shadow-lg:    0 24px 60px rgba(11,27,58,0.16);
  --shadow-gold:  0 12px 28px rgba(201,160,71,0.30);
  --shadow-glow:  0 0 40px rgba(232,182,71,0.30);

  /* Radii */
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    26px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(232,182,71,0.40); color: var(--navy); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--navy));
  border-radius: 999px;
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px)  { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

.section { position: relative; padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-dark { background: var(--navy); color: var(--on-dark); }
.section-light { background: var(--ivory); }
.section-paper { background: var(--paper); }
.section-warm { background: var(--warm-50); }

.site-main { position: relative; min-height: 60vh; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Playfair Display', 'Cormorant Garamond', serif; }
.font-serif { font-family: 'Cormorant Garamond', 'Playfair Display', serif; }

.heading {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
}
.heading-xl {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
.heading-xl .gold {
  color: var(--gold-bright);
  display: block;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  letter-spacing: 0.005em;
  margin-top: 4px;
}

.italic-serif {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--burgundy);
}

/* Eyebrow with horizontal gold lines (matches reference) */
.eyebrow-lines {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.30em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 600;
}
.eyebrow-lines::after {
  content: ""; display: inline-block;
  width: 80px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
  background: rgba(201,160,71,0.10);
  border: 1px solid rgba(201,160,71,0.30);
  border-radius: 999px;
  padding: 6px 14px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,160,71,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(201,160,71,0); }
}

.gold-text, .neon-text {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright) 50%, var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead { color: var(--slate); font-size: clamp(1rem, 1.1vw, 1.05rem); line-height: 1.7; max-width: 640px; }
.lead-light { color: var(--on-dark-soft); font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.7; max-width: 480px; }

/* Chess piece divider */
.piece-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
}
.piece-divider::before, .piece-divider::after {
  content: ""; flex: 1; max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.piece-divider::after { background: linear-gradient(to right, var(--gold), transparent); }
.piece-divider::before { background: linear-gradient(to left, var(--gold), transparent); }
.piece-divider .piece { color: var(--gold); font-size: 18px; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .2s, border-color .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
}
.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(201,160,71,0.45); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.40);
  color: var(--on-dark);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.06); border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11,27,58,0.22); }
.btn-ghost {
  background: var(--paper);
  border-color: var(--border-2);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--warm-50); border-color: var(--gold); color: var(--navy); }
.btn-danger {
  background: rgba(225,29,72,0.08);
  border-color: rgba(225,29,72,0.35);
  color: #e11d48;
}

/* ---------- Surfaces ---------- */
.glass, .surface {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.glass-strong {
  background: var(--paper);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

/* ===========================================================
   NAVBAR — dark navy with gold accents
   =========================================================== */
.site-nav {
  position: absolute; inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: position .35s, background .35s, padding .35s, box-shadow .35s;
}
.site-nav.is-fixed { position: fixed; }
.site-nav.is-scrolled {
  position: fixed;
  background: rgba(11,27,58,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.20);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Brand / crest */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-crest {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  flex: none;
}
/* Circular medallion frame — white fill + gold ring + soft glow.
   A white-background logo blends into the white fill, reading as a
   clean emblem on the dark navy navbar. */
.brand-logo-img {
  width: 56px; height: 56px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #ffffff;
  padding: 3px;
  border: 2px solid var(--gold);
  box-shadow:
    0 2px 10px rgba(0,0,0,0.25),
    0 0 16px rgba(232,182,71,0.30);
}
.site-footer .brand-logo-img {
  width: 48px; height: 48px;
}

/* Admin/login compact brand mark (constrains the logo so it can't blow up) */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  background: #fff;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 18px;
  color: var(--navy);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.admin-shell .brand-mark img,
.login-card .brand-mark img,
.site-nav.is-scrolled .brand-logo-img { /* keep crisp on scrolled nav */ }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--on-dark);
}
.brand-sub {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  margin-top: 4px;
}

.nav-links { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  padding: 12px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color .2s;
}
.nav-link:hover { color: var(--gold-bright); }
.nav-link.is-active { color: var(--gold-bright); }
.nav-link.is-active::after {
  content: ""; position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 4px; width: 22px; height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
}

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-cta-icon {
  width: 14px; height: 14px; display: inline-block;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-dark-2);
  border-radius: 10px;
  color: var(--on-dark);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--on-dark); border-radius: 2px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  margin: 12px 24px 0;
  padding: 12px;
  background: var(--navy-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link { padding: 14px 16px; border-radius: 10px; }
.nav-mobile .nav-link.is-active { background: rgba(255,255,255,0.05); }
.nav-mobile .nav-link.is-active::after { display: none; }
.nav-link-admin { color: var(--gold-bright); font-weight: 700; }

/* ===========================================================
   HERO — dark navy with map (single-viewport)
   =========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 90% at 100% 50%, rgba(22,48,99,0.65), transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(232,182,71,0.10), transparent 60%),
    linear-gradient(135deg, #07142b 0%, #0b1b3a 50%, #0e2347 100%);
  color: var(--on-dark);
  padding: 100px 0 30px;
  overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding: 90px 0 30px; }
}

/* Texture: stars + faint ocean waves at the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(232,182,71,0.4), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1.2px 1.2px at 40% 80%, rgba(232,182,71,0.3), transparent 50%),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,0.25), transparent 50%);
  opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  left: 50%; top: 50%; right: -10%;
  height: 80%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(232,182,71,0.18), transparent 60%);
  filter: blur(30px);
  z-index: 1;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  gap: 28px; align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(420px, 1fr) minmax(0, 1.55fr);
    gap: 24px;
  }
}
@media (min-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(440px, 1fr) minmax(0, 1.8fr);
    gap: 32px;
  }
}

.hero-text { max-width: 560px; position: relative; z-index: 3; }

.hero h1 { margin: 14px 0 0; color: var(--on-dark); }

.eyebrow-lines { font-size: 11px; letter-spacing: 0.30em; }
.eyebrow-lines::after { width: 64px; }

.piece-divider { margin: 14px 0; }
.piece-divider::before, .piece-divider::after { max-width: 60px; }

.hero-tagline {
  margin-top: 12px;
  color: var(--on-dark-soft);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  max-width: 460px;
}

.hero-cta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-cta .btn { padding: 12px 22px; font-size: 11px; }

/* Stats row (compact, no border between on mobile) */
.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  max-width: 560px;
}
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.stat-inline {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-right: 1px solid var(--border-dark);
}
.stat-inline:first-child { padding-left: 0; }
.stat-inline:last-child { border-right: 0; padding-right: 0; }
.stat-inline .ico {
  flex: none;
  width: 22px; height: 22px;
  color: var(--gold-bright);
}
.stat-inline .v {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--on-dark);
  line-height: 1;
}
.stat-inline .k {
  margin-top: 3px;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--on-dark-mute);
  font-weight: 500;
  white-space: nowrap;
}

/* ----- Hero map: bigger + bleeds to right viewport edge ----- */
.hero-map {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex; align-items: center;
}
/* On desktop, let the map extend OUT of the container to the right
   edge of the viewport (negative right margin = remaining space) */
@media (min-width: 1024px) {
  .hero-map {
    width: calc(100% + ((100vw - 1280px) / 2) + 64px);
    max-width: none;
    margin-right: calc(0px - ((100vw - 1280px) / 2) - 64px);
  }
}
@media (min-width: 1320px) {
  .hero-map {
    width: calc(100% + ((100vw - 1280px) / 2) + 64px + 60px);
    margin-right: calc(0px - ((100vw - 1280px) / 2) - 64px - 60px);
  }
}

/* Golden halo behind the map */
.hero-map::before {
  content: ""; position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(circle at 55% 50%, rgba(232,182,71,0.22), rgba(232,182,71,0.05) 50%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: pulse-halo 8s ease-in-out infinite;
}
/* Soft ocean glow blending into the navy hero */
.hero-map::after {
  content: ""; position: absolute;
  inset: 10% 0 -8% -8%;
  background:
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(34,90,160,0.45), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}
@keyframes pulse-halo {
  0%,100% { opacity: 0.85; transform: scale(1); }
  50%     { opacity: 1;    transform: scale(1.04); }
}

/* The map image / video — gentle left-edge fade only, so the video's
   navy background melts seamlessly into the hero. No aggressive crop
   now that the video has a proper navy background (no checker). */
.hero-map img,
.hero-map-video {
  width: 100%; height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 4%, #000 10%, #000 100%);
          mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 4%, #000 10%, #000 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
  animation: float-soft 9s ease-in-out infinite;
}
.hero-map-video {
  object-fit: cover;
  background: #0b1b3a;
}

/* ---- Animated water layer (right-side ocean) ---- */
.water-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at center, #000 45%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,0.35) 85%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 90% at center, #000 45%, rgba(0,0,0,0.85) 65%, rgba(0,0,0,0.35) 85%, transparent 100%);
}
.water-waves {
  position: absolute;
  right: 0; bottom: 0; top: 0;
  width: 60%;
  opacity: 0.55;
}
.water-waves .wave {
  fill: none;
  stroke: rgba(255,255,255,0.45);
  stroke-width: 0.6;
}
.water-waves .wave-1 { animation: wave-slide 9s linear infinite; }
.water-waves .wave-2 { animation: wave-slide 6s linear infinite reverse; stroke: rgba(232,182,71,0.35); }
.water-waves .wave-3 { animation: wave-slide 12s linear infinite; stroke: rgba(180,210,255,0.35); }
@keyframes wave-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50px); }
}

/* Sparkles on the water */
.water-sparkles {
  position: absolute;
  right: 0; top: 35%; bottom: 5%; width: 55%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 28% 60%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.2px 1.2px at 50% 20%, rgba(232,182,71,0.7), transparent 50%),
    radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 92% 70%, rgba(232,182,71,0.5), transparent 50%);
  background-size: 100% 100%;
  animation: sparkle 4.5s ease-in-out infinite;
}
@keyframes sparkle {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 1; }
}

.hero-map .compass {
  position: absolute;
  right: 2%; bottom: 2%;
  width: clamp(56px, 7vw, 88px); height: clamp(56px, 7vw, 88px);
  opacity: 0.85;
  z-index: 3;
}
.hero-map.fallback {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 30% 40%, #7c3aed 0 8%, transparent 9%),
    radial-gradient(circle at 70% 30%, var(--gold) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 65%, #ea580c 0 8%, transparent 9%),
    radial-gradient(circle at 25% 75%, #ec4899 0 8%, transparent 9%),
    radial-gradient(circle at 80% 75%, #16a34a 0 8%, transparent 9%),
    linear-gradient(135deg, var(--navy), #051227);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark);
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-lg);
}
@keyframes float-soft {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* ===========================================================
   FEATURE CARDS (5-up section under hero)
   =========================================================== */
/* Features-strip sits BELOW the hero fold. Only the gold top border
   peeks at the bottom of the first viewport as a visual hint to scroll.
   The white card content stays out of view until the user scrolls. */
.features-strip {
  position: relative;
  margin-top: -4px;
  z-index: 5;
  padding-bottom: 40px;
}
@media (max-width: 1023px) {
  .features-strip { margin-top: 24px; }
}
.features-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  box-shadow: 0 24px 60px rgba(11,27,58,0.16);
  border-top: 4px solid var(--gold-bright);
}
.features-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-item {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px;
  position: relative;
  transition: transform .25s;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-item + .feature-item::before {
  content: "";
  display: none;
}
@media (min-width: 1024px) {
  .feature-item + .feature-item::before {
    display: block;
    position: absolute; left: 0; top: 30%;
    width: 1px; height: 40%;
    background: var(--border);
  }
}
.feature-ico {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm-50), var(--cream));
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  transition: background .25s, color .25s, border-color .25s;
}
.feature-item:hover .feature-ico {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  border-color: var(--gold);
}
.feature-ico svg { width: 28px; height: 28px; }
.feature-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  margin: 4px 0 8px;
}
.feature-text {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative; overflow: hidden;
  padding: 150px 0 64px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(22,48,99,0.6), transparent 60%),
    linear-gradient(135deg, #07142b 0%, #0b1b3a 100%);
  color: var(--on-dark);
}
@media (min-width: 768px) { .page-header { padding: 190px 0 88px; } }
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(232,182,71,0.4), transparent 50%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0.4;
}
.page-header > .container { position: relative; }
.page-header h1 { color: var(--on-dark); }
.page-header .lead { color: var(--on-dark-soft); }
.page-header .eyebrow {
  color: var(--gold-bright);
  background: rgba(232,182,71,0.10);
  border-color: rgba(232,182,71,0.30);
}

/* ---------- Section header ---------- */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; align-items: center; }
.section-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- News cards ---------- */
.news-card {
  position: relative; overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.news-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  opacity: 0; transition: opacity .3s;
}
.news-card:hover::before { opacity: 1; }
.news-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--warm-50);
  color: var(--gold-deep);
  padding: 4px 12px;
}
.news-meta { display: flex; justify-content: space-between; align-items: center; }
.news-date { font-size: 12px; color: var(--slate-soft); font-weight: 500; }
.news-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; margin: 14px 0 8px; line-height: 1.3; color: var(--navy); }
.news-summary { font-size: 14px; color: var(--slate); margin: 0; line-height: 1.6; }
.news-more { margin-top: auto; padding-top: 22px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

/* ---------- Tournament cards ---------- */
.tour-card {
  position: relative; overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.tour-head { display: flex; align-items: flex-start; gap: 16px; }
.tour-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 68px; height: 68px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, var(--warm-50), #fff);
  color: var(--navy);
  flex: none;
  box-shadow: var(--shadow-sm);
}
.tour-date .d { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 22px; line-height: 1; }
.tour-date .m { font-size: 10px; letter-spacing: .2em; margin-top: 4px; color: var(--gold-deep); font-weight: 700; }
.tour-status { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.tour-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; margin: 4px 0 0; line-height: 1.3; color: var(--navy); }
.tour-desc { color: var(--slate); font-size: 14px; margin: 18px 0 0; line-height: 1.6; }
.tour-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--slate-soft); }

/* ---------- Player cards ---------- */
.player-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.avatar {
  flex: none; width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, var(--warm-50), #fff);
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.player-body { min-width: 0; flex: 1; }
.player-top  { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.player-name {
  font-weight: 600; color: var(--navy);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rating-pill {
  flex: none; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
}
.player-meta { margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate-soft); flex-wrap: wrap; min-width: 0; }
.player-meta .mono { overflow: hidden; text-overflow: ellipsis; }
.dot { width: 4px; height: 4px; border-radius: 999px; background: var(--border-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--slate-soft); }

/* ---------- Pillar / value cards ---------- */
.pillar {
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.pillar-ico {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm-50), var(--cream));
  color: var(--navy);
  font-size: 26px;
  border: 1px solid var(--border);
}
.pillar h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; margin: 16px 0 6px; color: var(--navy); }
.pillar p { color: var(--slate); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- Taluk strip ---------- */
.taluk-strip {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .taluk-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .taluk-strip { grid-template-columns: repeat(5, 1fr); } }
.taluk-chip {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.taluk-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.taluk-chip .piece { display: block; font-size: 28px; margin-bottom: 6px; line-height: 1; color: var(--gold-deep); }

/* ---------- Sponsors / partners ---------- */
.sponsor-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .sponsor-grid { grid-template-columns: repeat(3, 1fr); } }
.sponsor-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--navy);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sponsor-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.sponsor-mark {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--warm-50), var(--cream));
  border: 1px solid var(--border);
  color: var(--gold-deep);
  font-size: 18px;
}

/* ---------- Our Affiliation card ---------- */
.affiliation-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.affiliation-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy), var(--gold));
}
.affiliation-emblem {
  font-size: 56px; line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(201,160,71,0.35));
  margin-bottom: 16px;
}
.affiliation-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}
.affiliation-text strong { color: var(--gold-deep); font-weight: 700; }

/* ---------- Footer credit ---------- */
.footer-credit {
  text-align: center;
  padding: 14px 24px 24px;
  font-size: 12px;
  color: var(--on-dark-mute);
}
.footer-credit strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- Floating chess pieces animation ---------- */
.chess-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.chess-anim .piece {
  position: absolute;
  font-size: 40px;
  color: rgba(232,182,71,0.10);
  animation: chess-float linear infinite;
  user-select: none;
}
.chess-anim .piece.big { font-size: 76px; color: rgba(232,182,71,0.08); }
@keyframes chess-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(-108vh) rotate(18deg); opacity: 0; }
}
@media (max-width: 768px) { .chess-anim .piece { font-size: 28px; } .chess-anim .piece.big { font-size: 48px; } }

/* ---------- About preview (chess board mini) ---------- */
.about-preview {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--cream), var(--paper));
  padding: 36px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow);
}
.about-preview .pseudo-board {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
}
.about-preview .pseudo-board > div { border: 1px solid rgba(11,27,58,0.04); }
.about-preview .pseudo-board > div.dark  { background: rgba(11,27,58,0.06); }
.about-preview .pseudo-board > div.light { background: rgba(255,255,255,0.5); }
.about-preview .big-piece {
  font-size: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(201,160,71,0.4));
  line-height: 1;
}
.about-preview h4 { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 1.6vw, 1.5rem); margin: 14px 0 6px; color: var(--navy); }
.about-preview p  { color: var(--slate); margin: 0; max-width: 32ch; line-height: 1.6; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .cta-banner { padding: 64px; } }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(232,182,71,0.30), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(122,31,43,0.25), transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner .eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--gold-bright);
}
.cta-banner .row {
  display: flex; flex-direction: column; gap: 28px;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 768px) { .cta-banner .row { flex-direction: row; align-items: center; } }
.cta-banner .heading { color: var(--on-dark); }
.cta-banner .lead { color: rgba(255,255,255,0.78); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; margin-top: 48px; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-deep), transparent);
  border-radius: 2px;
}
.t-item { position: relative; margin-bottom: 22px; }
.t-item::before {
  content: ""; position: absolute; left: -32px; top: 16px;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--gold);
}
.t-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.t-year { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 14px; letter-spacing: .2em; color: var(--gold-deep); }
.t-text { margin: 6px 0 0; color: var(--slate); }

/* ---------- Forms ---------- */
.input, .select, .textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border-2);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,160,71,0.15);
}
.label {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-soft); font-weight: 600;
}
.search-wrap { position: relative; }
.search-wrap .input { padding-left: 44px; border-radius: 999px; background: var(--paper); }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--slate-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--paper);
  color: var(--slate);
  cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--navy); border-color: var(--gold); }
.chip.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.empty {
  padding: 48px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-2);
  background: var(--warm-50);
  color: var(--slate-soft);
}

/* Office bearer cards */
.bearer-card {
  position: relative; overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.bearer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.bearer-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  opacity: 0; transition: opacity .3s;
}
.bearer-card:hover::before { opacity: 1; }
.bearer-head { position: relative; display: flex; align-items: center; gap: 18px; }
.bearer-head .avatar { width: 68px; height: 68px; font-size: 20px; }
.bearer-role { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.bearer-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; margin: 6px 0 0; line-height: 1.25; color: var(--navy); }
.bearer-bio  { position: relative; margin: 20px 0 0; color: var(--slate); font-size: 14px; line-height: 1.6; }

/* ===========================================================
   PREMIUM OFFICE BEARERS SECTION
   =========================================================== */
.ob-header { position: relative; overflow: hidden; }
.ob-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ob-bg-piece {
  position: absolute;
  font-size: 200px;
  line-height: 1;
  color: rgba(232,182,71,0.05);
  filter: drop-shadow(0 0 20px rgba(232,182,71,0.05));
}
.ob-bg-piece.p1 { left: -2%;  top: 8%;  transform: rotate(-12deg); }
.ob-bg-piece.p2 { right: 4%;  top: 18%; font-size: 240px; }
.ob-bg-piece.p3 { right: 30%; bottom: -20%; font-size: 160px; transform: rotate(8deg); }
.ob-header > .container { position: relative; z-index: 1; }

.ob-section { position: relative; background: var(--ivory); overflow: hidden; }
/* faint chessboard backdrop */
.ob-board-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(45deg, rgba(11,27,58,0.03) 25%, transparent 25%, transparent 75%, rgba(11,27,58,0.03) 75%),
    linear-gradient(45deg, rgba(11,27,58,0.03) 25%, transparent 25%, transparent 75%, rgba(11,27,58,0.03) 75%);
  background-size: 90px 90px;
  background-position: 0 0, 45px 45px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
}
.ob-section > .container { position: relative; z-index: 1; }

/* Grids per tier */
.ob-tier-president { display: flex; justify-content: center; }
.ob-grid { display: grid; gap: 28px; }
.ob-grid-2 { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.ob-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .ob-grid-2 { grid-template-columns: repeat(2, 1fr); } .ob-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ob-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Tier label (gold rule with centred caption) */
.ob-tier-label {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin: 56px 0 28px;
}
.ob-tier-label::before, .ob-tier-label::after {
  content: ""; height: 1px; flex: 1; max-width: 200px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.ob-tier-label span {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--navy); letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Card */
.ob-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 24px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(250,246,238,0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.ob-card::before { /* top gold rule */
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold-deep), var(--gold-bright), transparent);
}
.ob-card::after { /* corner glow on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(232,182,71,0);
  transition: box-shadow .35s; pointer-events: none;
}
.ob-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 36px rgba(232,182,71,0.25);
  border-color: var(--gold);
}
.ob-card:hover::after { box-shadow: inset 0 0 0 1px rgba(232,182,71,0.6); }

/* Gold accent under the name (replaces the chess-piece divider) */
.ob-accent {
  display: block; width: 34px; height: 3px; margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: width .35s;
}
.ob-card:hover .ob-accent { width: 60px; }

/* Photo with spinning gold ring */
.ob-photo { position: relative; width: 130px; height: 130px; margin-bottom: 18px; }
.ob-photo .ob-ring {
  position: absolute; inset: 0; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--gold-bright), rgba(232,182,71,0.15) 90deg, var(--gold-deep) 180deg, rgba(232,182,71,0.15) 270deg, var(--gold-bright));
  animation: ob-spin 7s linear infinite;
}
.ob-photo .ob-inner {
  position: absolute; inset: 5px; border-radius: 999px;
  overflow: hidden; z-index: 1;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px var(--paper);
}
.ob-photo .ob-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ob-photo .ob-initials {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 38px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-card:hover .ob-photo .ob-inner { box-shadow: inset 0 0 0 3px var(--gold-pale); }
@keyframes ob-spin { to { transform: rotate(360deg); } }

.ob-role {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}
.ob-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 19px; line-height: 1.25; color: var(--navy);
  margin: 6px 0 0;
}
.ob-divider {
  margin-top: 14px; font-size: 16px; color: rgba(201,160,71,0.45);
}

/* Featured (President) */
.ob-card.ob-featured {
  max-width: 380px;
  padding: 44px 32px 34px;
  background: linear-gradient(180deg, var(--navy) 0%, #0e2347 100%);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(232,182,71,0.25);
}
.ob-card.ob-featured::before { height: 5px; }
.ob-card.ob-featured .ob-photo { width: 168px; height: 168px; }
.ob-card.ob-featured .ob-role { color: var(--gold-bright); }
.ob-card.ob-featured .ob-name { color: #fff; font-size: 24px; }
.ob-card.ob-featured .ob-rank { color: rgba(232,182,71,0.4); font-size: 38px; }
.ob-card.ob-featured .ob-inner { box-shadow: inset 0 0 0 3px var(--navy-2); }
.ob-card.ob-featured .ob-divider { color: rgba(232,182,71,0.6); }

/* Prime (top tier — President / Secretary / Treasurer) */
.ob-card.ob-prime { border-color: var(--border-2); }
.ob-card.ob-prime .ob-photo { width: 150px; height: 150px; }

/* Crown (President) — navy emphasis card, same size, in the same row */
.ob-card.ob-crown {
  background: linear-gradient(180deg, var(--navy) 0%, #0e2347 100%);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(232,182,71,0.22);
}
.ob-card.ob-crown::before { height: 5px; }
.ob-card.ob-crown .ob-role { color: var(--gold-bright); }
.ob-card.ob-crown .ob-name { color: #fff; }
.ob-card.ob-crown .ob-rank { color: rgba(232,182,71,0.4); }
.ob-card.ob-crown .ob-inner { box-shadow: inset 0 0 0 3px var(--navy-2); }
.ob-card.ob-crown .ob-divider { color: rgba(232,182,71,0.6); }
/* keep top tier cards equal height; President pops via colour */
.ob-top .ob-card { align-self: stretch; }

/* ===========================================================
   HOME — Cardless medallion roster (WOW, no boxes)
   =========================================================== */
.obh-section { position: relative; overflow: hidden; background: var(--ivory); }
.obh-bg-piece {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-size: 460px; line-height: 1; color: rgba(11,27,58,0.035);
  pointer-events: none; z-index: 0;
}
.obh-section > .container { position: relative; z-index: 1; }

.obh-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: flex-start;
  gap: 32px 48px;
}
.obh-row-lead { align-items: center; gap: 32px 64px; }

.obh-person {
  width: 160px; text-align: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.obh-person:hover { transform: translateY(-6px); }

.obh-photo {
  position: relative; width: 132px; height: 132px; margin: 0 auto 16px;
  border-radius: 999px;
}
.obh-ring {
  position: absolute; inset: -5px; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--gold-bright), rgba(232,182,71,0.12) 90deg, var(--gold-deep) 180deg, rgba(232,182,71,0.12) 270deg, var(--gold-bright));
  animation: ob-spin 9s linear infinite;
  transition: filter .35s;
}
.obh-person:hover .obh-ring { filter: drop-shadow(0 0 14px rgba(232,182,71,0.55)); }
.obh-inner {
  position: absolute; inset: 0; border-radius: 999px; overflow: hidden;
  background: var(--navy); z-index: 1;
  box-shadow: inset 0 0 0 4px var(--ivory), var(--shadow);
}
.obh-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.obh-initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 40px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Diagonal light "shine" sweep across the photo on hover */
.obh-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.obh-person:hover .obh-shine { transition: transform .8s ease; transform: translateX(120%); }

.obh-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 16px; color: var(--navy); line-height: 1.25;
}
/* Gold accent rule under the name */
.obh-accent {
  display: block; width: 28px; height: 3px; margin: 8px auto 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: width .35s;
}
.obh-person:hover .obh-accent { width: 52px; }
.obh-role {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 700;
}

/* Reveal — content is visible by default. Only when JS successfully
   enables the animation system (adds .reveal-ready to <body>) does it
   start hidden and animate in. This guarantees content NEVER stays
   invisible if JS is disabled or errors out. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal-ready .reveal.is-in { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  margin-top: 40px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  padding: 64px 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { max-width: 420px; color: var(--on-dark-soft); font-size: 14px; line-height: 1.6; }
.footer-grid h4 { font-family: 'Playfair Display', serif; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 16px; color: var(--gold-bright); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 10px 0; font-size: 14px; color: var(--on-dark-soft); }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 24px; font-size: 12px; color: var(--on-dark-mute);
  border-top: 1px solid var(--border-dark);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand .brand-name { color: var(--on-dark); }
.footer-brand .brand-sub { color: var(--gold-bright); }
.footer-brand p.tagline-light {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright);
}

/* Admin */
.admin-shell { padding: 130px 0 64px; min-height: 100vh; position: relative; background: var(--ivory); }
.admin-shell .bg-layer { display: none; }
.admin-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
}
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a {
  padding: 9px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--slate);
}
.admin-nav a:hover, .admin-nav a.is-active {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--warm-50);
}
.admin-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.admin-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .admin-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .admin-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.admin-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-soft); font-weight: 700; padding: 8px 8px 12px; }
.admin-table td { padding: 8px 8px; border-top: 1px solid var(--border); }
.scroll-x { overflow-x: auto; }

/* Admin player tabs */
.pl-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-tab {
  padding: 9px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--border);
  background: var(--warm-50); color: var(--slate);
}
.pl-tab:hover { border-color: var(--gold); color: var(--navy); }
.pl-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--paper);
}
.flash.success { border-color: #16a34a; background: rgba(22,163,74,0.08); color: #166534; }
.flash.error   { border-color: #e11d48; background: rgba(225,29,72,0.08); color: #9f1239; }
.flash.info    { background: var(--warm-50); color: var(--navy); }

.login-wrap {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,182,71,0.10), transparent 60%),
    linear-gradient(135deg, #07142b 0%, #0b1b3a 100%);
  color: var(--on-dark);
}
.login-card {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: #e11d48;
}
.icon-btn:hover { border-color: #e11d48; }

hr.div { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  transition: transform .25s, box-shadow .25s;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37,211,102,0.6); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}

/* Back-to-top button */
.to-top {
  position: fixed;
  right: 20px; bottom: 86px;
  z-index: 60;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-2); }
@media (max-width: 600px) {
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .to-top { right: 16px; bottom: 76px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.small { font-size: 12px; color: var(--slate-soft); }
.muted { color: var(--slate-soft); }

/* Suppress old-theme leftover classes */
.cursor-glow, .hero-scene, .hero-scene-fallback, .scanline, .aurora, .bg-grid, .bg-stars, .spotlight, .bg-paper, .bg-board, .fade-top, .fade-bottom, .bg-layer {
  display: none !important;
}

/* ===========================================================
   MOBILE — app-like experience (≤768px)
   =========================================================== */
@media (max-width: 768px) {
  .section { padding: 50px 0; }

  /* Brand smaller so it never crowds the navbar */
  .brand-crest { width: 44px; height: 44px; }
  .brand-logo-img { width: 44px; height: 44px; }
  .brand-name { font-size: 12px; letter-spacing: 0.12em; }
  .brand-sub  { font-size: 8px; letter-spacing: 0.22em; margin-top: 4px; }

  /* HERO — natural height, centred. On mobile the MAP comes first
     (top), then the name/buttons, with the stats lower (scroll). */
  .hero { min-height: auto; padding: 92px 0 36px; display: block; }
  .hero::after { display: none; }
  .hero-grid { gap: 20px; text-align: center; }
  .hero-map { order: -1; }
  .hero-text { max-width: 100%; order: 2; }
  .eyebrow-lines { justify-content: center; font-size: 10px; letter-spacing: 0.2em; }
  .eyebrow-lines::after { width: 36px; }
  .hero h1 { margin-top: 12px; }
  .heading-xl { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.06; }
  .heading-xl .gold { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .piece-divider { margin: 12px auto; }
  .hero-tagline { margin: 12px auto 0; font-size: 0.92rem; max-width: 340px; }
  .hero-cta { justify-content: center; margin-top: 20px; gap: 10px; }

  /* Stats as 2x2 app tiles */
  .hero-stats {
    margin: 26px auto 0; max-width: 360px;
    grid-template-columns: repeat(2, 1fr); gap: 12px;
  }
  .stat-inline {
    border-right: 0; padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    justify-content: center;
  }

  /* Map — full width card, no mask/compass on phones */
  .hero-map { width: 100%; max-width: 440px; margin: 4px auto 0; }
  .hero-map img, .hero-map-video {
    -webkit-mask-image: none; mask-image: none;
    border-radius: 16px;
  }
  .hero-map .left-shield, .hero-map .compass { display: none; }
  .hero-map::before, .hero-map::after { display: none; }

  /* Feature tiles — compact 2x2 grid */
  .features-strip { margin-top: 0; padding-bottom: 0; }
  .features-card { padding: 20px 14px; border-radius: 18px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-item { padding: 16px 10px; border-radius: 14px; background: var(--warm-50); border: 1px solid var(--border); }
  .feature-item + .feature-item::before { display: none; }
  .feature-ico { width: 46px; height: 46px; margin-bottom: 10px; }
  .feature-ico svg { width: 20px; height: 20px; }
  .feature-title { font-size: 13.5px; margin: 2px 0 6px; }
  .feature-text { font-size: 11.5px; line-height: 1.45; }

  /* Section headings tighter */
  .heading { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .section-row { gap: 16px; }

  /* Cards full width, comfy spacing */
  .card-grid { gap: 16px; }

  /* Office bearers — exactly 3 photos per line (never 2) */
  .obh-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .obh-person { width: auto; }
  .obh-photo { width: 84px; height: 84px; margin-bottom: 10px; }
  .obh-name { font-size: 12px; line-height: 1.2; }
  .obh-role { font-size: 8.5px; letter-spacing: 0.12em; }
  .obh-accent { width: 22px; margin: 6px auto 4px; }
  .ob-tier-label { margin: 30px 0 16px; gap: 10px; }
  .ob-tier-label span { font-size: 1rem; }
  .ob-tier-label::before, .ob-tier-label::after { max-width: 60px; }
  .ob-grid { gap: 16px; }
  .ob-photo { width: 120px !important; height: 120px !important; }

  /* Taluk chips */
  .taluk-chip { padding: 14px 8px; font-size: 12px; }
  .taluk-chip .piece { font-size: 22px; }

  /* Affiliation + CTA */
  .affiliation-card { padding: 30px 20px; }
  .cta-banner { padding: 30px 20px; }
  .cta-banner .heading { font-size: 1.4rem !important; }

  /* Inner page headers */
  .page-header { padding: 120px 0 48px; }

  /* Footer stacks neatly */
  .footer-grid { gap: 26px; padding: 44px 0; }

  /* Floating buttons a touch smaller */
  .wa-float { width: 52px; height: 52px; }
}

/* Very small phones */
@media (max-width: 430px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { max-width: 320px; }
  .heading-xl { font-size: clamp(1.7rem, 9vw, 2.2rem); }
}

/* ===========================================================
   GALLERY — premium grid + lightbox
   =========================================================== */
.gallery-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  padding: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(11,27,58,0.92) 10%, rgba(11,27,58,0) 100%);
  color: #fff; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(7,14,35,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figure {
  max-width: min(95vw, 1200px); max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0;
}
.lightbox-img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  border: 2px solid var(--gold);
  background: #fff;
}
.lightbox-caption {
  color: #fff; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff; font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.20); border-color: var(--gold); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { border-radius: 12px; }
  .gallery-caption { opacity: 1; transform: none; font-size: 10px; padding: 18px 10px 8px; }
}
