/* =========================================================================
   Kings Indian Chess — global styles
   Palette: deep board green + ivory + warm gold accent
   ========================================================================= */

:root {
  /* Metallic monochrome theme matching the Kings Indian Chess crest:
     black / charcoal / brushed silver. (Variable names kept for stability;
     the "green/gold" names now hold charcoal/silver values.) */
  --green-900: #16181c;  /* near-black charcoal — primary dark surface */
  --green-800: #20242a;
  --green-700: #2c313a;
  --green-600: #3a4049;
  --gold: #f2c200;        /* golden yellow accent (matches current site) */
  --gold-bright: #ffd23b; /* bright gold highlight */
  --gold-deep: #d4a900;   /* gold hover/pressed */
  --ivory: #f4f5f7;       /* light page background */
  --cream: #e9ebee;       /* light silver surface */
  --board-light: #dfe2e6; /* light board square */
  --board-dark: #565b62;  /* dark board square */
  --ink: #1a1c20;
  --muted: #5f656d;
  --line: #dde0e4;
  --white: #ffffff;
  --danger: #b3261e;
  --success: #1f7a4d;
  --steel: #6b7178;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 40, 29, 0.12);
  --shadow-md: 0 10px 30px rgba(20, 40, 29, 0.14);
  --shadow-lg: 0 24px 60px rgba(20, 40, 29, 0.22);
  --max: 1240px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--green-900); font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 0 0 0.4em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; margin: 0 0 0.4em; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.section { padding: 44px 0; }
.section--tight { padding: 28px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--green-900); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #1c1c1c; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-bright); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--dark { background: var(--green-800); color: var(--ivory); }
.btn--dark:hover { background: var(--green-700); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  color: var(--ink);
  box-shadow: 0 2px 14px rgba(20, 25, 30, 0.08);
  border-bottom: 1px solid #d7dbdf;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 104px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }

/* Top utility bar (phone / email / login) */
.topbar { background: #1c1c1c; color: #d7d7d7; font-size: 0.86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #e8e8e8; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact .ic { color: var(--gold); margin-right: 6px; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { font-weight: 700; }
.topbar__links .gold { color: var(--gold); }
@media (max-width: 620px) {
  .topbar__inner { justify-content: center; gap: 10px 18px; }
  .topbar__contact { gap: 14px; font-size: 0.8rem; }
}
.brand__badge {
  flex: 0 0 auto;
  display: grid; place-items: center;
}
.brand__badge img {
  height: 90px; width: auto; display: block;
  mix-blend-mode: multiply;
}
.brand__wordmark {
  display: flex; flex-direction: column;
  font-family: var(--font-head); font-weight: 700; font-size: 1.32rem;
  color: var(--ink); line-height: 1.08; letter-spacing: 0.01em;
}
.brand__wordmark small {
  font-family: var(--font-body); font-weight: 600; font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 5px;
}
.site-footer .brand__logo { height: 50px; width: auto; display: block; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
@media (max-width: 620px) {
  .brand__badge img { height: 62px; }
  .brand__wordmark { font-size: 1.05rem; }
  .brand__wordmark small { display: none; }
}
.brand__mark--fallback {
  font-size: 1.7rem; line-height: 1;
  background: linear-gradient(180deg, #d9dde1, #aeb4bb);
  color: var(--green-900);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px; box-shadow: var(--shadow-sm);
}

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  color: #2c313a;
  text-decoration: none;
  padding: 0.55em 0.9em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover { background: rgba(20,25,30,0.06); color: #16181c; }
.nav__links a.is-active { color: #16181c; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0.9em; right: 0.9em; bottom: 4px;
  height: 3px; background: var(--gold); border-radius: 2px;
}
.nav__links .nav__cta { margin-left: 8px; }
.nav__links .nav__cta::after { display: none; }

/* Dropdown sub-navigation */
.nav__group { position: relative; display: inline-flex; align-items: center; }
.nav__caret { font-size: 0.62em; opacity: 0.6; transition: transform 0.15s; }
.nav__group:hover .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% - 2px); left: 0; min-width: 212px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
}
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap; font-weight: 600; }
.nav__sub a::after { display: none !important; }
.nav__sub a:hover { background: var(--cream); }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: 1.7rem; padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    padding: 10px 16px 18px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7em 0.6em; }
  .nav__links a.is-active::after { left: 0.6em; right: auto; width: 22px; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
  /* On mobile the dropdowns expand inline under their parent */
  .nav__group { display: block; width: 100%; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    margin: 0 0 6px 14px; padding: 2px 0; min-width: 0;
  }
  .nav__sub a { padding: 0.5em 0.6em; font-weight: 500; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(620px 420px at 76% 46%, rgba(242,194,0,0.12), transparent 70%),
    radial-gradient(1200px 520px at 82% -12%, rgba(205,211,217,0.12), transparent 60%),
    linear-gradient(160deg, #121418, #20242c 55%, #15171b);
  color: var(--ivory);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
  padding: 72px 0 96px;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.18rem; color: #e8e3d3; max-width: 34ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero__badge { font-size: 0.86rem; color: #d9d2bf; }
.hero__badge b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-bright); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
}

/* ---------- Decorative board (hero) ---------- */
.mini-board {
  width: min(380px, 82vw);
  margin-left: auto;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 12px solid #1c1f24;
  border-radius: 14px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.mini-board .sq { display: grid; place-items: center; font-size: clamp(1.1rem, 3.6vw, 1.9rem); line-height: 1; }
.mini-board .sq.light { background: var(--board-light); }
.mini-board .sq.dark { background: var(--board-dark); }
.mini-board .wp { color: #fbf7ec; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.mini-board .bp { color: #1a1a1a; text-shadow: 0 1px 1px rgba(255,255,255,0.25); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { font-size: 2rem; margin-bottom: 12px; }

/* Program / pricing cards */
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.is-featured { border-color: var(--gold); box-shadow: var(--shadow-md); }
/* "Most Popular" badge removed — students are placed by skill level. */
.plan__name { font-family: var(--font-head); font-size: 1.4rem; color: var(--green-900); }
.plan__price { font-size: 2rem; font-weight: 800; color: var(--green-700); margin: 4px 0 2px; font-family: var(--font-head); }
.plan__price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan__list { list-style: none; padding: 0; margin: 12px 0 14px; }
.plan__list li { padding: 5px 0 5px 26px; position: relative; border-top: 1px dashed var(--line); }
.plan__list li:first-child { border-top: 0; }
.plan__list li::before { content: "♟"; position: absolute; left: 0; color: var(--green-700); }
.plan .btn { margin-top: auto; }
.vchip{display:inline-block;background:rgba(242,194,0,0.12);border:1px solid rgba(242,194,0,0.45);color:#fff;font-weight:700;font-size:0.82rem;padding:6px 12px;border-radius:999px}
.fee-strip { max-width:1060px; margin:24px auto 0; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sm); padding:12px 8px; color:#43506a; font-size:0.95rem; }
.fee-strip > span { padding:4px 22px; border-right:1px solid var(--line); }
.fee-strip > span:last-child { border-right:0; }
.fee-strip strong { color:var(--green-900); }
@media (max-width:720px){ .fee-strip { flex-direction:column; gap:8px; } .fee-strip > span { border-right:0; } }

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 16px; }
.feature__icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--green-700);
  border-radius: 12px; font-size: 1.5rem;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.stats .stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--gold-bright); }
.stats .stat span { font-size: 0.9rem; color: #cfe0d4; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Instructor ---------- */
.instructor { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.instructor__photo {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  display: grid; place-items: center;
  font-size: 5rem; color: var(--gold-bright);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
@media (max-width: 620px) { .instructor { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--green-900); }
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf5;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(47,125,82,0.16);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); background: #fdf3f2; }
.field__error { color: var(--danger); font-size: 0.82rem; min-height: 1em; }

.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.check label { font-weight: 500; font-size: 0.92rem; color: var(--ink); }

.form-aside { background: var(--green-900); color: var(--cream); border-radius: var(--radius); padding: 28px; }
.form-aside h3 { color: var(--white); }
.form-aside ul { padding-left: 1.1em; margin: 0; }
.form-aside li { margin-bottom: 0.5em; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.alert--error { background: #fdecea; color: var(--danger); border: 1px solid #f3c2bd; }
.alert--success { background: #e9f6ef; color: var(--success); border: 1px solid #b9e3cd; }
.alert--hidden { display: none; }

/* Success panel after submit */
.success-panel { text-align: center; padding: 24px 8px; }
.success-panel .check-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 18px;
}
.confirmation-id {
  display: inline-block; font-family: monospace; font-size: 1.1rem;
  background: var(--cream); border: 1px dashed var(--gold);
  padding: 6px 14px; border-radius: 8px; margin: 6px 0 18px;
}

/* ---------- Contact info list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list .ic { font-size: 1.3rem; }
.contact-list a { color: var(--green-700); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfd9cf; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.site-footer a { color: #cfd9cf; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; color: #9fb0a3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Page header banner ---------- */
.page-banner {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--ivory);
  padding: 42px 0 34px;
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.2em; }
.page-banner p { color: #d9d2bf; max-width: 56ch; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--gold-bright); margin-bottom: 14px; letter-spacing: 0.05em; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.lead { font-size: 1.12rem; }
.pill { display: inline-block; background: var(--cream); color: var(--green-800); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; }

/* =========================================================================
   Design polish — metallic accents, subtle board texture, chrome type
   ========================================================================= */

/* Faint chessboard-grid texture over dark hero/banner */
.hero { position: relative; }
.hero::after,
.page-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 72% 26%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 72% 26%, #000, transparent 72%);
}
.page-banner::after { -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%); }
.hero__inner, .page-banner .container { position: relative; z-index: 1; }

/* Eyebrow gets a small leading rule */
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--gold-bright); vertical-align: middle; margin-right: 10px; margin-bottom: 3px;
}
.center .eyebrow::before, .center .eyebrow::after {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--gold); vertical-align: middle; margin: 0 10px 3px;
}

/* Cards: metallic top accent on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--steel), #eef1f3, var(--steel));
  transform: translateY(-3px); transition: transform .22s ease;
}
.card:hover::before { transform: translateY(0); }

/* Dark sections get a soft metallic light source */
.section--dark {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255,255,255,0.06), transparent 60%),
    var(--green-900);
}

/* Chrome stat numbers */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stats .stat b {
    background: linear-gradient(180deg, #ffffff 0%, #aeb4bb 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* Pricing cards lift + steel border */
.plan { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--steel); }

/* Brand mark fallback already styled; ensure logo never overflows nav */
.brand__logo { object-fit: contain; }

/* Buttons: a touch more lift */
.btn--primary:hover, .btn--dark:hover { transform: translateY(-1px); }

/* ---------- Photo carousel / slideshow ---------- */
.carousel { position: relative; max-width: 1140px; margin: 30px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.carousel__track { display: flex; transition: transform 0.5s ease; }
.carousel__slide { min-width: 100%; position: relative; overflow: hidden; background: #0d0f12; }
.carousel__slide img { width: 100%; height: 560px; object-fit: contain; display: block; position: relative; z-index: 1; }
.carousel__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(24px) brightness(0.5); transform: scale(1.15); }
.carousel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 24px 16px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,0.65)); }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.45); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.15s; }
.carousel__btn:hover { background: rgba(0,0,0,0.72); }
.carousel__btn.prev { left: 14px; }
.carousel__btn.next { right: 14px; }
.carousel__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel__dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: background 0.15s; }
.carousel__dots button.on { background: var(--gold); }
@media (max-width: 620px) {
  .carousel__slide img { height: 280px; }
  .carousel__btn { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* ---------- Hero enhancements ---------- */
.hero .container { max-width: 1240px; }

/* Oversized faint chess pieces filling the dark space */
.hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero__decor span { position: absolute; line-height: 1; font-size: 9rem; color: rgba(255,255,255,0.05); }
.hero__decor .p1 { top: 9%; left: 47%; font-size: 7rem; color: rgba(242,194,0,0.07); }
.hero__decor .p2 { bottom: 17%; left: 31%; font-size: 6rem; }
.hero__decor .p3 { top: 13%; right: 5%; font-size: 11rem; color: rgba(242,194,0,0.06); }
.hero__decor .p4 { bottom: 11%; right: 16%; font-size: 8rem; }
.hero__decor .p5 { top: 50%; left: 5%; font-size: 9rem; }
@media (max-width: 860px) { .hero__decor .p1, .hero__decor .p2, .hero__decor .p5 { display: none; } }

/* Trust chips */
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 4px; }
.hero__chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #e8e3d3; padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.hero__chip .ic { color: var(--gold); font-size: 1rem; }

/* Board + gold spotlight */
.hero__visual { position: relative; display: flex; justify-content: flex-end; align-items: center; }
.hero__glow { position: absolute; inset: -14% -8%; z-index: 0; background: radial-gradient(circle at 55% 50%, rgba(242,194,0,0.22), rgba(242,194,0,0.05) 42%, transparent 68%); }
.hero__visual .mini-board { position: relative; z-index: 1; margin: 0; }
@media (max-width: 860px) { .hero__visual { justify-content: center; } .hero__visual .mini-board { margin: 0 auto; } }

/* Smooth wave transition into the next section */
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; display: block; z-index: 0; }
.hero__wave path { fill: var(--ivory); }
@media (max-width: 860px) { .hero__wave { height: 36px; } }

/* Instructor headshot inside the round photo frame */
.instructor__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Hero banner photo slideshow (falls back to the board if no photos) */
.hero-photos { position: relative; z-index: 1; width: 100%; max-width: 660px; margin-left: auto; }
.hero-photos .carousel { box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,0.10); background: #0d0f12; }
.hero-photos .carousel__slide img { height: 560px; }
@media (max-width: 860px) {
  .hero-photos { margin: 0 auto; }
  .hero-photos .carousel__slide img { height: 300px; }
}


/* ===== Brand redesign refresh (Fraunces/Inter, lift cards, gold CTA, masonry) ===== */
.card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:30px; box-shadow:0 22px 60px -30px rgba(15,18,24,.32); transition:transform .2s ease, box-shadow .25s ease; }
.card:hover { transform:translateY(-5px); box-shadow:0 32px 70px -28px rgba(15,18,24,.42); }
.card__icon { width:56px; height:56px; border-radius:15px; display:grid; place-items:center; font-size:1.65rem; background:linear-gradient(180deg,#fff7e6,#fbeccb); border:1px solid #f1dca7; margin-bottom:16px; }
.cta-gold { background:linear-gradient(120deg, var(--gold-deep), var(--gold)); text-align:center; }
.cta-gold h2 { color:#241b08; }
.cta-gold p { color:#3c2e11; }
.cta-gold .eyebrow { color:#5a4413; }
.gal { display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:168px; gap:14px; margin-top:30px; }
.gal__item { overflow:hidden; border-radius:16px; position:relative; box-shadow:0 18px 44px -26px rgba(15,18,24,.4); display:block; width:100%; padding:0; border:0; background:none; cursor:pointer; font:inherit; }
.gal__item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s ease; }
.gal__item:hover img { transform:scale(1.07); }
.gal__item--big { grid-column:span 2; grid-row:span 2; }
@media (max-width:760px){ .gal { grid-template-columns:repeat(2,1fr); grid-auto-rows:150px; } .gal__item--big{ grid-column:span 2; grid-row:span 2; } }
.footer-areas { margin-top:14px; font-size:0.84rem; color:#8a909b; line-height:1.6; }
.footer-areas b { color:var(--gold-bright); font-weight:700; }

.gal__more { position:absolute; inset:0; background:rgba(14,16,20,.55); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.05rem; }
.lb { position:fixed; inset:0; z-index:200; background:rgba(8,10,14,.93); display:flex; align-items:center; justify-content:center; padding:40px; }
.lb[hidden] { display:none; }
.lb__fig { margin:0; display:flex; flex-direction:column; align-items:center; gap:12px; }
.lb__img { max-width:92vw; max-height:80vh; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.6); object-fit:contain; background:#0d0f12; }
.lb__cap { color:#e7e1d4; font-size:0.92rem; text-align:center; max-width:80ch; }
.lb__count { position:absolute; top:18px; left:50%; transform:translateX(-50%); color:#cdd2db; font-size:0.85rem; letter-spacing:0.05em; }
.lb__x { position:absolute; top:14px; right:18px; }
.lb__x, .lb__nav { width:50px; height:50px; border:0; border-radius:50%; background:rgba(255,255,255,.13); color:#fff; font-size:1.9rem; line-height:1; cursor:pointer; transition:background .15s, color .15s; }
.lb__nav { position:absolute; top:50%; transform:translateY(-50%); }
.lb__prev { left:18px; } .lb__next { right:18px; }
.lb__x:hover, .lb__nav:hover { background:var(--gold); color:#241b08; }
@media (max-width:560px){ .lb { padding:14px; } .lb__nav { width:42px; height:42px; font-size:1.5rem; } }

.gal-pager { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:22px; flex-wrap:wrap; }
.gal-pager span { color:var(--muted); font-size:0.9rem; font-weight:600; }
.gal-pg { background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:9px 18px; font-weight:700; cursor:pointer; color:var(--green-900); font:inherit; transition:border-color .15s, background .15s; }
.gal-pg:hover:not(:disabled){ border-color:var(--gold-deep); background:#fff9ec; }
.gal-pg:disabled{ opacity:.4; cursor:default; }


.site-footer .brand { align-items: center; gap: 13px; color: #fff; }
.site-footer .brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.34rem; color: #fff; line-height: 1.08; display: flex; flex-direction: column; }
.site-footer .brand__est { font-family: var(--font-body); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-top: 4px; }

.support-tile { display:flex; align-items:center; gap:18px; background:linear-gradient(160deg,#1b1f27,#12151b); border:1px solid #2a2f3a; border-radius:16px; padding:22px 26px; text-decoration:none; transition:transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.support-tile:hover { transform:translateY(-4px); box-shadow:0 24px 54px -26px rgba(0,0,0,.6); border-color:#3a4150; }
.support-tile__ic { color:var(--gold-bright); flex:0 0 auto; display:grid; place-items:center; }
.support-tile__ic svg { width:42px; height:42px; }
.support-tile__txt strong { display:block; color:var(--gold-bright); font-family:var(--font-head); font-size:1.4rem; line-height:1.1; }
.support-tile__txt small { color:#aab0bd; font-size:0.94rem; }
@media (max-width:620px){ .support-tile { padding:18px 20px; } .support-tile__ic svg { width:36px; height:36px; } }

/* Volunteer team + giving */
.team-grid .tm { display:flex; flex-direction:column; align-items:center; }
.tm__av { width:74px; height:74px; border-radius:50%; display:grid; place-items:center; font-family:var(--font-head); font-weight:800; font-size:1.5rem; color:#3a2e00; background:linear-gradient(150deg,#ffd964,#f2c200); box-shadow:0 8px 20px -8px rgba(242,194,0,.6); margin-bottom:14px; }
.tm__name { margin:0 0 3px; font-size:1.14rem; }
.tm__role { margin:0 0 10px; font-size:0.74rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--gold-deep,#8a6d00); }
.tm__bio { font-size:0.9rem; margin:0 0 14px; }
.tm__li { display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:0.86rem; color:#0a66c2; text-decoration:none; margin-top:auto; }
.tm__li svg { width:18px; height:18px; }
.tm__li:hover { text-decoration:underline; }
.giving-list { list-style:none; padding:0; margin:8px 0 0; }
.giving-list li { padding:8px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:0.96rem; }
.giving-card { text-align:center; background:linear-gradient(160deg,#fff,var(--cream,#fbf7ec)); border:1px solid var(--line); }

/* Featured lead volunteer */
.tm-lead { display:flex; align-items:center; gap:30px; max-width:880px; margin:30px auto 6px; padding:28px 34px; border-radius:20px; background:linear-gradient(135deg,#fffdf5,#fff5d6); border:1px solid #f0dca0; box-shadow:0 18px 46px -22px rgba(242,194,0,.55); }
.tm-lead__av { width:110px; height:110px; flex:0 0 auto; border-radius:50%; display:grid; place-items:center; font-family:var(--font-head); font-weight:800; font-size:2.4rem; color:#3a2e00; background:linear-gradient(150deg,#ffd964,#f2c200); box-shadow:0 10px 28px -8px rgba(242,194,0,.7); }
.tm-lead__role { margin:0 0 4px; font-size:0.74rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-deep,#8a6d00); }
.tm-lead__name { margin:0 0 10px; font-size:1.7rem; }
.tm-lead .muted { margin:0 0 14px; }
@media (max-width:640px){ .tm-lead { flex-direction:column; text-align:center; padding:24px; gap:18px; } .tm-lead__av { width:92px; height:92px; font-size:2rem; } }

/* Giving: tax note + vision/mission/goal */
.giving-tax { background:rgba(242,194,0,.12); border:1px solid #f0dca0; border-radius:12px; padding:12px 15px; font-size:0.86rem; line-height:1.55; margin:14px 0 16px; text-align:left; }
.giving-tax span { color:var(--muted); }
.vmg__k { font-family:var(--font-head); font-weight:800; font-size:1.1rem; color:var(--green-800,#1f513b); margin:0 0 8px; }
.vmg .card { border-top:3px solid var(--gold,#f2c200); }

/* Pragathi USA highlighted logo badge */
.pragathi-badge { max-width:540px; margin:4px auto 34px; text-align:center; padding:30px 36px 26px; border-radius:26px; background:radial-gradient(125% 125% at 50% 0%, #fffef7, #fff4d2 72%); border:2px solid #eccf66; box-shadow:0 0 0 6px rgba(242,194,0,.12), 0 26px 60px -24px rgba(242,194,0,.7); animation:pragGlow 3.2s ease-in-out infinite; }
.pragathi-badge__logo { display:flex; justify-content:center; }
.pragathi-badge__logo svg { width:100%; max-width:380px; height:auto; filter:drop-shadow(0 6px 14px rgba(0,0,0,.12)); }
.pragathi-badge__cap { margin:16px 0 0; font-size:0.96rem; color:var(--ink); }
@keyframes pragGlow { 0%,100%{ box-shadow:0 0 0 6px rgba(242,194,0,.12), 0 24px 54px -26px rgba(242,194,0,.55);} 50%{ box-shadow:0 0 0 11px rgba(242,194,0,.20), 0 32px 72px -22px rgba(242,194,0,.9);} }
@media (prefers-reduced-motion: reduce){ .pragathi-badge { animation:none; } }

/* placeholder volunteer card + real Pragathi logo in badge */
.tm--ph { border-style:dashed; background:rgba(0,0,0,.012); }
.tm__av--ph { background:linear-gradient(150deg,#e8eaef,#d7dbe2); color:#7a818c; }
.tm__li--go { color:var(--green-700,#1f7a52); }
.pragathi-badge__logo img { width:100%; max-width:240px; height:auto; filter:drop-shadow(0 6px 14px rgba(0,0,0,.12)); }

/* KIC + Pragathi logos side by side */
.dual-logos { display:flex; align-items:center; justify-content:center; gap:24px; flex-wrap:wrap; }
.dual-logos img { width:auto; }
.dual-logos__kic { height:84px; }
.dual-logos__prag { height:62px; }
.dual-logos__x { font-size:0.72rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--gold-deep,#8a6d00); white-space:nowrap; padding:0 2px; }
@media (max-width:520px){ .dual-logos__kic{height:68px;} .dual-logos__prag{height:50px;} .dual-logos{gap:16px;} }

/* Banner: run-by Pragathi badge (dark banner) */
.banner-runby { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-top:20px; }
.banner-runby__lbl { font-weight:700; color:#e9ce6a; font-size:0.96rem; letter-spacing:.02em; }
.banner-runby__chip { display:inline-flex; background:#fff; border-radius:12px; padding:7px 13px; box-shadow:0 10px 26px rgba(0,0,0,.32); transition:transform .15s ease; }
.banner-runby__chip:hover { transform:translateY(-2px); }
.banner-runby__chip img { height:36px; width:auto; display:block; }
.banner-runby__note { font-size:0.74rem; color:#aeb6c2; text-transform:uppercase; letter-spacing:.07em; font-weight:800; }

/* Black 'run by' band with logos on white cards */
.runby-band { max-width:700px; margin:4px auto 34px; text-align:center; padding:36px 30px; border-radius:22px; background:linear-gradient(160deg,#0f1115,#1c2128); border:1px solid #2a2f37; box-shadow:0 28px 64px -28px rgba(0,0,0,.75); }
.runby-band__logos { display:flex; align-items:center; justify-content:center; gap:24px; flex-wrap:wrap; }
.runby-card { display:inline-flex; align-items:center; justify-content:center; background:#fff; border-radius:14px; padding:14px 20px; box-shadow:0 12px 30px rgba(0,0,0,.45); }
.runby-card img { display:block; width:auto; height:80px; }
.runby-card--prag img { height:62px; }
.runby-x { font-size:0.72rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:#e9ce6a; }
.runby-band__cap { margin:20px 0 0; color:#cfd4dc; font-size:0.99rem; }
.runby-band__cap strong { color:#fff; }
@media (max-width:520px){ .runby-card img{height:58px;} .runby-card--prag img{height:46px;} .runby-band__logos{gap:16px;} }

/* 'run by Pragathi' statement line */
.runby-line { max-width:760px; margin:0 auto 30px; text-align:center; font-size:1.05rem; line-height:1.5; color:var(--ink); padding:14px 24px; background:rgba(242,194,0,.10); border:1px solid #f0dca0; border-radius:14px; }
.runby-line a { color:inherit; text-decoration:none; }
.runby-line a:hover { text-decoration:underline; }

/* run-by line in dark About banner */
.banner-runby-line { margin-top:16px; font-size:0.96rem; font-weight:600; color:#c9cfd9; }
.banner-runby-line a { color:#e9ce6a; font-weight:800; text-decoration:none; }
.banner-runby-line a:hover { text-decoration:underline; }

/* dark-section cards keep white bg -> headings must stay dark (was invisible white-on-white) */
.section--dark .card h3, .section--dark .card h4 { color: var(--green-900); }

/* Donate / Swag icons in topbar */
.topbar__links .topbar__ic { line-height:0; display:inline-flex; align-items:center; }
.topbar__links .topbar__ic svg { width:15px; height:15px; }
.topbar__links .topbar__ic:hover { color: var(--gold,#f2c200); }

/* center the icon tile inside centered cards (was left-aligned, leaving a gap) */
.card.center .card__icon { margin-left: auto; margin-right: auto; }

/* compact About stat cards (2x2, reduced height) */
.about-stats .card { padding: 15px 14px; }
.about-stats .card__icon { width: 42px; height: 42px; font-size: 1.25rem; border-radius: 12px; margin-bottom: 8px; }
.about-stats .card h3 { margin: 0; font-size: 1.15rem; }
.about-stats .card p { font-size: 0.84rem; margin: 2px 0 0; }

/* payment options box (registration success) */
.pay-box { text-align:left; background:var(--cream); border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin:18px auto 0; max-width:520px; }
.pay-box h3 { margin:0 0 6px; }
.pay-list { list-style:none; padding:0; margin:12px 0 0; display:grid; gap:11px; }
.pay-list li { display:flex; gap:12px; align-items:flex-start; }
.pay-ic { font-size:1.4rem; line-height:1.2; flex:0 0 auto; }
.pay-list a { color:var(--green-700); font-weight:600; word-break:break-all; }

/* Homepage next-online-tournament strip */
.next-online { background:linear-gradient(135deg,#16181c,#20242a); color:#fff; }
.next-online__in { display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; padding:12px 16px; }
.next-online__tag { color:#e9ce6a; font-weight:800; text-transform:uppercase; letter-spacing:.04em; font-size:.78rem; }
.next-online__when { color:#cfd4dc; font-size:0.92rem; }

/* Ad layout: narrow vertical right-rail (very wide screens only) + short horizontal */
.ad-rail { display:none; }
@media (min-width:1500px){ .ad-rail { display:block; position:fixed; top:110px; right:8px; width:120px; z-index:4; } }
