:root {
  --primary: #7a1e35;
  --primary-rgb: 122, 30, 53;
  --secondary: #c9a44c;
  --secondary-rgb: 201, 164, 76;
  --accent: #0f5c5c;
  --accent-rgb: 15, 92, 92;
  --background: #faf7f2;
  --background-rgb: 250, 247, 242;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #f7efe6;
  --surface-card: #ffffff;
  --surface-high: #efe3d4;
  --primary-soft: #8f2c45;
  --primary-pale: #f6dbe3;
  --gold: #c9a44c;
  --gold-soft: #ead8a2;
  --teal: #0f5c5c;
  --text: #1e1e1e;
  --muted: #6e6e6e;
  --line: #e8e0d5;
  --shadow: 0 26px 70px rgba(var(--primary-rgb), 0.12);
  --soft-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.08);
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

body[data-palette="heritage-premium"] {
  --primary: #7a1e35;
  --primary-rgb: 122, 30, 53;
  --secondary: #c9a44c;
  --secondary-rgb: 201, 164, 76;
  --accent: #0f5c5c;
  --accent-rgb: 15, 92, 92;
  --background: #faf7f2;
  --background-rgb: 250, 247, 242;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #f7efe6;
  --surface-card: #ffffff;
  --surface-high: #efe3d4;
  --primary-soft: #8f2c45;
  --primary-pale: #f6dbe3;
  --gold: #c9a44c;
  --gold-soft: #ead8a2;
  --teal: #0f5c5c;
  --text: #1e1e1e;
  --muted: #6e6e6e;
  --line: #e8e0d5;
  --shadow: 0 26px 70px rgba(var(--primary-rgb), 0.12);
  --soft-shadow: 0 18px 48px rgba(var(--primary-rgb), 0.08);
}

body[data-palette="modern-uk"] {
  --primary: #8b1538;
  --primary-rgb: 139, 21, 56;
  --secondary: #f2b134;
  --secondary-rgb: 242, 177, 52;
  --accent: #006d77;
  --accent-rgb: 0, 109, 119;
  --background: #f8fafc;
  --background-rgb: 248, 250, 252;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #eef4f8;
  --surface-card: #ffffff;
  --surface-high: #e2e8f0;
  --primary-soft: #a01f47;
  --primary-pale: #f7d9e3;
  --gold: #f2b134;
  --gold-soft: #ffe0a0;
  --teal: #006d77;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 26px 70px rgba(17, 24, 39, 0.11);
  --soft-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

body[data-palette="luxury-cultural"] {
  --primary: #5c1d2f;
  --primary-rgb: 92, 29, 47;
  --secondary: #d4af37;
  --secondary-rgb: 212, 175, 55;
  --accent: #8c6239;
  --accent-rgb: 140, 98, 57;
  --background: #fcfaf6;
  --background-rgb: 252, 250, 246;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #f5efe5;
  --surface-card: #ffffff;
  --surface-high: #eee5d8;
  --primary-soft: #7b2a43;
  --primary-pale: #f0d8df;
  --gold: #d4af37;
  --gold-soft: #f0dfa2;
  --teal: #8c6239;
  --text: #222222;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 26px 70px rgba(92, 29, 47, 0.12);
  --soft-shadow: 0 18px 48px rgba(92, 29, 47, 0.08);
}

body[data-palette="community-warmth"] {
  --primary: #a6192e;
  --primary-rgb: 166, 25, 46;
  --secondary: #e9b949;
  --secondary-rgb: 233, 185, 73;
  --accent: #2a6f97;
  --accent-rgb: 42, 111, 151;
  --background: #fffdf9;
  --background-rgb: 255, 253, 249;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #fff4e6;
  --surface-card: #ffffff;
  --surface-high: #f3eadb;
  --primary-soft: #bd243b;
  --primary-pale: #f8d7dd;
  --gold: #e9b949;
  --gold-soft: #f6dda2;
  --teal: #2a6f97;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eadfce;
  --shadow: 0 26px 70px rgba(166, 25, 46, 0.12);
  --soft-shadow: 0 18px 48px rgba(166, 25, 46, 0.08);
}

body[data-palette="royal-blue"] {
  --primary: #123c69;
  --primary-rgb: 18, 60, 105;
  --secondary: #f4b942;
  --secondary-rgb: 244, 185, 66;
  --accent: #2a9d8f;
  --accent-rgb: 42, 157, 143;
  --background: #f6f9fc;
  --background-rgb: 246, 249, 252;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #eaf1f7;
  --surface-card: #ffffff;
  --surface-high: #dce8f2;
  --primary-soft: #1f5b97;
  --primary-pale: #d9e8f6;
  --gold: #f4b942;
  --gold-soft: #ffe2a1;
  --teal: #2a9d8f;
  --text: #122033;
  --muted: #64748b;
  --line: #d8e2ec;
  --shadow: 0 26px 70px rgba(18, 60, 105, 0.13);
  --soft-shadow: 0 18px 48px rgba(18, 60, 105, 0.08);
}

body[data-palette="peacock-teal"] {
  --primary: #005f73;
  --primary-rgb: 0, 95, 115;
  --secondary: #ee9b00;
  --secondary-rgb: 238, 155, 0;
  --accent: #7b2cbf;
  --accent-rgb: 123, 44, 191;
  --background: #f4fbfa;
  --background-rgb: 244, 251, 250;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #e2f3f1;
  --surface-card: #ffffff;
  --surface-high: #cce7e5;
  --primary-soft: #0a7b8e;
  --primary-pale: #d8f1ef;
  --gold: #ee9b00;
  --gold-soft: #ffd88a;
  --teal: #005f73;
  --text: #102a2f;
  --muted: #5f7478;
  --line: #cfe4e2;
  --shadow: 0 26px 70px rgba(0, 95, 115, 0.13);
  --soft-shadow: 0 18px 48px rgba(0, 95, 115, 0.08);
}

body[data-palette="emerald-gold"] {
  --primary: #146c43;
  --primary-rgb: 20, 108, 67;
  --secondary: #d6a931;
  --secondary-rgb: 214, 169, 49;
  --accent: #0b3d91;
  --accent-rgb: 11, 61, 145;
  --background: #f7fbf6;
  --background-rgb: 247, 251, 246;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #eaf5e8;
  --surface-card: #ffffff;
  --surface-high: #d9ead6;
  --primary-soft: #21885a;
  --primary-pale: #d9f0e4;
  --gold: #d6a931;
  --gold-soft: #efd88f;
  --teal: #146c43;
  --text: #17251d;
  --muted: #617064;
  --line: #d8e8d4;
  --shadow: 0 26px 70px rgba(20, 108, 67, 0.13);
  --soft-shadow: 0 18px 48px rgba(20, 108, 67, 0.08);
}

body[data-palette="indigo-lotus"] {
  --primary: #3730a3;
  --primary-rgb: 55, 48, 163;
  --secondary: #f59e0b;
  --secondary-rgb: 245, 158, 11;
  --accent: #db2777;
  --accent-rgb: 219, 39, 119;
  --background: #f8f7ff;
  --background-rgb: 248, 247, 255;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-low: #eeedff;
  --surface-card: #ffffff;
  --surface-high: #dfdcff;
  --primary-soft: #4f46e5;
  --primary-pale: #e0e7ff;
  --gold: #f59e0b;
  --gold-soft: #fed7aa;
  --teal: #db2777;
  --text: #1e1b4b;
  --muted: #6b7280;
  --line: #ddd6fe;
  --shadow: 0 26px 70px rgba(55, 48, 163, 0.13);
  --soft-shadow: 0 18px 48px rgba(55, 48, 163, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  animation: page-in 420ms ease both;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px var(--gutter);
  background: rgba(var(--surface-rgb), 0.8);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(var(--surface-rgb), 0.9);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: "Noto Sans Tamil", Inter, sans-serif;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-button)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  border-radius: 99px;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-button,
.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.2);
}

.nav-button[aria-current="page"] {
  color: white;
}

.nav-login {
  color: var(--primary);
  font-weight: 700;
}

.palette-picker {
  position: relative;
}

.palette-trigger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(var(--surface-rgb), 0.72);
  color: var(--text);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.palette-trigger-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.palette-trigger-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.palette-trigger-copy strong {
  color: var(--primary);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.palette-trigger-swatches,
.palette-option-swatches {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.palette-trigger-swatches span,
.palette-option-swatches span {
  width: 16px;
  height: 16px;
  background: var(--swatch);
}

.palette-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  width: min(360px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.palette-menu[hidden] {
  display: none;
}

.palette-menu-head {
  margin: 0 0 12px;
}

.palette-menu-head span {
  display: block;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.palette-menu-head strong {
  display: block;
  margin-top: 3px;
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
}

.palette-options {
  display: grid;
  gap: 10px;
}

.palette-option {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.palette-option:hover,
.palette-option:focus-visible,
.palette-option[aria-pressed="true"] {
  border-color: var(--secondary);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.palette-option-swatches span {
  width: 22px;
  height: 30px;
}

.palette-option-copy {
  display: grid;
  gap: 3px;
}

.palette-option-copy strong {
  color: var(--primary);
  font-size: 14px;
}

.palette-option-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.button.gold {
  background: var(--gold);
  color: #261900;
}

.button.ghost {
  background: rgba(var(--surface-rgb), 0.12);
  border-color: rgba(var(--surface-rgb), 0.38);
  color: white;
  backdrop-filter: blur(12px);
}

.button.outline {
  background: transparent;
  border-color: rgba(var(--surface-rgb), 0.55);
  color: white;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--primary);
  font-weight: 800;
}

.button:hover,
.button:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--primary);
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(700px, 92vh, 880px);
  display: flex;
  align-items: center;
  padding: 110px var(--gutter) 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  position: relative;
  min-height: clamp(500px, 68vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 110px 0 74px;
}

.page-hero.compact {
  min-height: clamp(440px, 58vh, 620px);
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.page-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--background-rgb), 0.96), rgba(var(--background-rgb), 0.82) 48%, rgba(var(--background-rgb), 0.38)),
    linear-gradient(0deg, var(--surface), rgba(var(--background-rgb), 0) 46%);
  content: "";
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.page-hero h1,
.contact-copy h1 {
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
}

.page-hero p:not(.eyebrow),
.contact-copy > p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.94), rgba(var(--primary-rgb), 0.66) 48%, rgba(var(--primary-rgb), 0.1)),
    linear-gradient(0deg, rgba(35, 25, 25, 0.18), transparent 40%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: white;
}

.hero h2 {
  max-width: 760px;
  margin-top: 18px;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 820px;
  font-family: "Noto Sans Tamil", "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 700;
}

h2 {
  color: var(--primary);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
}

h3 {
  color: var(--primary);
  font-size: 23px;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 36px;
  color: rgba(var(--surface-rgb), 0.9);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section-inner.narrow {
  width: min(880px, calc(100% - 40px));
}

.quote-band {
  position: relative;
  padding: 70px 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(252, 202, 102, 0.2), transparent 28%),
    var(--surface-low);
  text-align: center;
}

.quote-band::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--secondary-rgb), 0.16) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  content: "";
  opacity: 0.55;
}

.quote-band .section-inner {
  position: relative;
}

.quote-block h3 {
  margin-bottom: 18px;
  color: var(--secondary);
  font-family: "Noto Sans Tamil", Inter, sans-serif;
  font-size: 18px;
}

.quote-block > .section-inner > p:last-child {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.quote-mark {
  margin: 0;
  color: var(--secondary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 70px;
  line-height: 0.7;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: "Noto Sans Tamil", "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.35;
}

blockquote cite {
  color: var(--muted);
  font-size: 18px;
}

.split-section,
.events-section,
.classes-section,
.youth-section,
.contact-section,
.cards-preview,
.bento-section,
.timeline-section,
.mission-section,
.values-section,
.support-options,
.gallery-section,
.testimonials-section {
  padding: 96px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(40px, 6vw, 86px);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
}

.section-copy p:not(.eyebrow),
.section-heading p,
.contact-copy p,
.support-panel p {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.feature-list article {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-list h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.feature-list p {
  margin: 0;
  font-size: 15px;
}

.icon {
  color: var(--secondary);
  font-size: 24px;
  line-height: 1;
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: start;
}

.image-mosaic img,
.feature-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.mosaic-large {
  height: 520px;
}

.mosaic-small {
  height: 410px;
  margin-top: 76px;
}

.stats-band {
  padding: 68px 0;
  background: var(--primary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(var(--surface-rgb), 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.event-grid,
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.68);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.82);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.event-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 360ms ease;
}

.event-card:hover img {
  transform: scale(1.04);
}

.event-body {
  padding: 26px;
}

.pill {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pill.teal {
  background: var(--teal);
}

.gold-pill {
  background: var(--gold);
  color: #261900;
}

.date {
  margin: 0 0 6px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-body h3,
.class-card h3 {
  margin-bottom: 10px;
}

.event-body p:not(.date),
.class-card p {
  margin: 0;
  color: var(--muted);
}

.classes-section {
  background: var(--surface-low);
}

.class-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border: 1px solid rgba(var(--secondary-rgb), 0.12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.92), rgba(255, 240, 240, 0.78)),
    radial-gradient(circle at 20% 12%, rgba(252, 202, 102, 0.26), transparent 30%);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.class-card::before {
  position: absolute;
  top: -34px;
  right: 20px;
  color: rgba(var(--primary-rgb), 0.06);
  content: "தமிழ்";
  font-family: "Noto Sans Tamil", serif;
  font-size: 92px;
  font-weight: 700;
}

.class-card span {
  position: relative;
  width: fit-content;
  margin-bottom: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.class-card a {
  width: fit-content;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 800;
}

.feature-photo img {
  height: 560px;
}

.glass-panel {
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-stat {
  min-height: 300px;
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.story-stat strong {
  color: var(--secondary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1;
}

.story-stat span {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-weight: 700;
}

.bento-section,
.mission-section,
.cards-preview,
.support-options {
  background: var(--surface-low);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.bento-card.large {
  grid-row: span 2;
}

.bento-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  color: white;
  background: linear-gradient(0deg, rgba(var(--primary-rgb), 0.88), transparent);
}

.image-card h3,
.image-card p {
  color: white;
}

.bento-card.solid {
  display: grid;
  align-content: end;
  padding: 32px;
  background: var(--primary);
  color: var(--primary-pale);
}

.bento-card.solid h3 {
  color: white;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline article,
.value-list article,
.donation-card,
.youth-panel {
  padding: 30px;
  border: 1px solid rgba(var(--primary-rgb), 0.68);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.timeline span,
.mission-grid span {
  color: var(--secondary);
  font-weight: 800;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mission-grid article {
  min-height: 320px;
  padding: 30px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.mission-grid h2 {
  margin: 42px 0 14px;
  font-size: clamp(28px, 3vw, 40px);
}

.value-list {
  display: grid;
  gap: 18px;
}

.event-filter {
  position: sticky;
  top: 78px;
  z-index: 20;
  padding: 18px 0;
  background: rgba(var(--background-rgb), 0.92);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.5);
  backdrop-filter: blur(14px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.filters button:first-child {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.event-body .button {
  width: 100%;
  margin-top: 22px;
}

.event-body h3 a {
  color: inherit;
}

.youth-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.donation-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.donation-card.featured {
  border-color: rgba(var(--secondary-rgb), 0.28);
  background: linear-gradient(145deg, #ffffff, #f7efe6);
}

.donation-card span {
  color: var(--secondary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  line-height: 1;
}

.donation-card .button {
  margin-top: 10px;
}

.quote-card {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(var(--secondary-rgb), 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 18%, rgba(var(--secondary-rgb), 0.24), transparent 28%),
    linear-gradient(145deg, #ffffff, #f7efe6);
  box-shadow: var(--shadow);
}

.quote-card .tamil {
  margin: 0;
  color: var(--primary);
  font-family: "Noto Sans Tamil", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.45;
}

.quote-card span {
  color: var(--muted);
  font-size: 18px;
}

.quote-card small {
  color: var(--secondary);
  font-weight: 700;
}

.quote-inline {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 22px;
  border-left: 4px solid var(--secondary);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.quote-inline strong {
  color: var(--primary);
  font-family: "Noto Sans Tamil", Inter, sans-serif;
  font-size: 22px;
}

.gallery-section {
  background: var(--surface-low);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.gallery-grid img:nth-child(2) {
  margin-top: 42px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-grid blockquote {
  display: grid;
  gap: 18px;
  min-height: 230px;
  align-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.testimonial-grid blockquote p {
  color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
}

.testimonial-grid cite {
  color: var(--secondary);
  font-style: normal;
  font-weight: 700;
}

.who-we-are,
.classes-section {
  position: relative;
  overflow: hidden;
}

.who-we-are::before,
.classes-section::before {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(var(--secondary-rgb), 0.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.who-we-are::before {
  left: -90px;
  top: 70px;
}

.classes-section::before {
  right: -90px;
  bottom: 80px;
}

.program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.program-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-weight: 700;
}

.support-section {
  padding: 92px 0;
  background: var(--primary);
}

.support-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  color: white;
}

.support-panel h2,
.support-panel .eyebrow {
  color: white;
}

.support-panel .eyebrow {
  color: var(--gold);
}

.support-panel p {
  max-width: 760px;
  color: rgba(var(--surface-rgb), 0.78);
}

.support-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.support-actions .primary {
  background: white;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-details p {
  margin: 0;
}

.contact-details strong {
  display: block;
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(137, 113, 114, 0.38);
  border-radius: 16px;
  background: var(--surface-card);
  color: var(--text);
  padding: 15px 16px;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.contact-form .button {
  width: 100%;
  min-height: 56px;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.portal-hero {
  padding: 96px 0 52px;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb), 0.9), rgba(var(--accent-rgb), 0.82)),
    radial-gradient(circle at 15% 20%, rgba(var(--secondary-rgb), 0.35), transparent 32%);
  color: white;
}

.portal-hero .section-inner {
  max-width: 920px;
}

.portal-hero .eyebrow,
.portal-hero h1,
.portal-hero p {
  color: white;
}

.portal-section {
  padding: 72px 0 96px;
}

.portal-card {
  display: block;
  max-width: 980px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portal-note {
  display: grid;
  gap: 16px;
}

.portal-card .novadot-form-section {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--background);
}

.portal-card .novadot-form-section h2 {
  margin-top: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.portal-card .novadot-form-grid-two,
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-card label {
  color: var(--text);
  font-weight: 700;
}

.portal-card input,
.portal-card select,
.portal-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.portal-card button[type="submit"],
.portal-card .button-primary,
.portal-card .button {
  min-height: 52px;
  border: 0;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0 28px;
}

.portal-card .novadot-onboarding-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.portal-card .novadot-onboarding-trust-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.portal-card .novadot-onboarding-trust-item strong,
.portal-card .novadot-onboarding-trust-item span {
  display: block;
}

.event-detail-section {
  background: var(--background);
}

.event-sidebar,
.event-detail-card {
  display: grid;
  gap: 18px;
}

.event-detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.event-detail-card-dark {
  background: var(--primary);
  color: white;
}

.event-detail-card-dark .eyebrow,
.event-detail-card-dark h3,
.event-detail-card-dark p {
  color: white;
}

.event-detail-row {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.event-detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.event-detail-row strong {
  color: var(--text);
}

.wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(var(--secondary-rgb), 0.2), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(var(--primary-rgb), 0.48), transparent 30%),
    linear-gradient(135deg, #120b0d 0%, #241416 48%, #0d090a 100%);
  color: rgba(var(--surface-rgb), 0.76);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--surface-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--surface-rgb), 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

.site-footer::after {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--secondary-rgb), 0.85), transparent);
  content: "";
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) minmax(250px, 0.85fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.075), rgba(var(--surface-rgb), 0.025)),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-about {
  max-width: 460px;
}

.footer-brand {
  align-items: center;
  color: white;
  font-size: clamp(25px, 2.2vw, 34px);
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--primary), #b83b59);
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.34);
}

.site-footer p {
  margin: 20px 0 0;
  color: rgba(var(--surface-rgb), 0.72);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 26px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--secondary);
  color: #241300;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(var(--secondary-rgb), 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(var(--secondary-rgb), 0.24);
}

.footer-column h2 {
  margin: 0 0 18px;
  color: rgba(var(--surface-rgb), 0.96);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: rgba(var(--surface-rgb), 0.7);
  font-size: 15px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  transform: translateX(3px);
  color: white;
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.footer-contact span {
  color: rgba(var(--secondary-rgb), 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact a {
  color: rgba(var(--surface-rgb), 0.82);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: white;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(var(--surface-rgb), 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(var(--surface-rgb), 0.58);
  font-size: 14px;
  font-weight: 600;
}

.footer-bottom a {
  color: rgba(var(--surface-rgb), 0.84);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(var(--secondary-rgb), 0.65);
  text-underline-offset: 4px;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: white;
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 2px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(var(--surface-rgb), 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .palette-picker {
    padding: 8px 0;
  }

  .palette-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .palette-menu {
    position: static;
    width: 100%;
    max-height: 360px;
    margin-top: 10px;
    box-shadow: var(--soft-shadow);
  }

  .nav-button {
    margin-top: 8px;
  }

  .split-grid,
  .split-grid.reverse,
  .contact-grid,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .class-grid,
  .timeline,
  .mission-grid,
  .bento-grid,
  .portal-card .novadot-onboarding-trust,
  .portal-card .novadot-form-grid-two,
  .event-info-grid,
  .gallery-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-photo img {
    height: 420px;
  }

  .support-actions {
    justify-content: flex-start;
  }

  .bento-card.large {
    grid-row: auto;
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(2) {
    height: 340px;
    margin-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    max-width: 245px;
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .palette-option {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .palette-option-swatches span {
    width: 19px;
  }

  .hero {
    min-height: 720px;
    padding-top: 92px;
  }

  .page-hero {
    min-height: 560px;
    padding-top: 92px;
  }

  .hero-media::after {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.95), rgba(var(--primary-rgb), 0.7));
  }

  .hero-actions .button {
    width: 100%;
  }

  .image-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-large,
  .mosaic-small,
  .feature-photo img {
    height: 360px;
    margin-top: 0;
  }

  .stats-grid {
    gap: 34px 16px;
  }

  .contact-form,
  .timeline article,
  .value-list article,
  .donation-card,
  .youth-panel {
    padding: 22px;
  }

  .site-footer {
    padding-top: 58px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-bottom {
    display: grid;
    margin-top: 34px;
    text-align: left;
  }
}
