/* =========================================================
   Balaji Higher Secondary School — Main Stylesheet
   ---------------------------------------------------------
   HOW TO CHANGE THE SCHOOL COLOURS:
   Edit the values in the ":root" block just below.
   Every colour on the website comes from these variables.
   ========================================================= */

:root {
  /* Brand colours */
  --green-900: #0a3d3d;   /* deep teal (top bar, footer, headings) */
  --green-800: #075f5f;
  --green-700: #007373;   /* links, buttons */
  --purple: #008B8B;      /* DarkCyan — main theme colour */
  --green-100: #e6f4f4;   /* light cyan section background */
  --marigold: #d6951b;    /* accent (buttons, highlights, rank badges) */
  --marigold-600: #a86f0a;
  --marigold-100: #f8ecd0;

  /* Neutrals */
  --paper: #f7fbfb;       /* page background */
  --white: #ffffff;
  --ink: #1a2626;         /* body text */
  --muted: #4f6262;       /* secondary text */
  --line: #d3e6e6;        /* borders */
  --error: #a3402d;
  --success: #2f6f4f;

  /* Typography */
  --font-display: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif;
  --font-body: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif;

  /* Shape and depth */
  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 61, 61, 0.08);
  --shadow: 0 1px 2px rgba(10, 61, 61, 0.06), 0 12px 28px -16px rgba(10, 61, 61, 0.35);

  /* Layout */
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--marigold-600); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 4000;
  background: var(--green-900); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Highlight for text that still needs real school information */
.ph {
  background: var(--marigold-100);
  color: #6b4a07;
  padding: 0 0.25em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--marigold); color: var(--green-900); }
.btn--primary:hover { background: #e6a52b; color: var(--green-900); }
.btn--dark { background: var(--purple); color: #fff; }
.btn--dark:hover { background: var(--green-700); color: #fff; }
.btn--outline { border-color: var(--purple); color: var(--green-700); background: transparent; }
.btn--outline:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn--light { border-color: rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--green-900); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* ---------- Top information bar ---------- */
.topbar { background: var(--green-900); color: #dceeee; font-size: 0.92rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--marigold); }
.topbar i { color: var(--marigold); margin-right: 0.35rem; }
.topbar__social { gap: 0.9rem !important; }
.topbar__social i { color: #fff; margin: 0; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(10, 61, 61, 0.35); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--green-900); min-width: 0; }
.brand img { width: 54px; height: 54px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand__place { font-size: 0.88rem; color: var(--muted); }
.brand:hover { color: var(--green-900); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.nav-list > li { position: relative; }
.nav-list > li > a,
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.65rem; border: 0; background: none;
  color: var(--ink); font-weight: 500; font-size: 0.99rem; text-decoration: none;
  border-radius: var(--radius-sm); position: relative; white-space: nowrap;
}
.dropdown-toggle i { font-size: 0.7rem; transition: transform 0.2s var(--ease); }
.nav-list > li > a:hover, .dropdown-toggle:hover { color: var(--green-700); }
/* Active page indicator: marigold bar under the item */
.nav-list > li > a[aria-current="page"]::after,
.nav-list > li.is-active > .dropdown-toggle::after {
  content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.15rem;
  height: 3px; border-radius: 3px; background: var(--marigold);
}
.nav-list > li > a[aria-current="page"], .nav-list > li.is-active > .dropdown-toggle { color: var(--green-900); font-weight: 600; }

.dropdown {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > .dropdown-toggle i, .has-dropdown.is-open > .dropdown-toggle i { transform: rotate(180deg); }
.dropdown a { display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--green-900); }
.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 61, 61,0.25) 0%, rgba(10, 61, 61,0.55) 45%, rgba(6, 42, 42,0.92) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 8rem 0 6rem; }
.hero__place { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--marigold-100); margin-bottom: 1rem; }
.hero__place i { color: var(--marigold); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.04; max-width: 14ch; margin-bottom: 1.2rem; }
.hero__tagline { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 40ch; color: #eef6f6; margin-bottom: 2rem; }
.hero__controls { position: absolute; z-index: 3; right: max(1.25rem, calc((100vw - var(--container)) / 2)); bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.hero__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.6);
  background: rgba(10, 61, 61,0.35); color: #fff; display: grid; place-items: center;
}
.hero__btn:hover { background: var(--marigold); border-color: var(--marigold); color: var(--green-900); }
.hero__dots { display: flex; gap: 0.5rem; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; }
.hero__dot[aria-current="true"] { background: var(--marigold); border-color: var(--marigold); }

/* ---------- Kolam dot motif (the site's signature detail) ---------- */
.kolam-rule {
  display: block; width: 74px; height: 10px; margin: 0 0 1.1rem;
  background-image: radial-gradient(circle, var(--marigold) 2.6px, transparent 3px);
  background-size: 14px 10px; background-repeat: repeat-x;
}
.section-head--center .kolam-rule { margin-inline: auto; }
.kolam-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1.6px, transparent 2px);
  background-size: 22px 22px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background-color: var(--green-900); color: #eaf5f5; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; margin: 0; color: #cfe5e5; }
.breadcrumb { font-size: 0.92rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: var(--marigold-100); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--green-100); }
.section--white { background: #fff; }
.section--dark { background-color: var(--green-900); color: #dceeee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 700px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--dark .section-head p { color: #bfdede; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }

/* Split media + text blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; z-index: 0; }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--framed::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid var(--marigold);
  border-radius: var(--radius-lg); z-index: -1;
}
.split--reverse .split__media { order: 2; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split__text h2 { margin-bottom: 0.5em; }

/* ---------- Quick statistics band ---------- */
.stats-band { background: var(--green-900); color: #fff; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 2.2rem 1.5rem; border-left: 1px solid rgba(255,255,255,0.14); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats__value { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; color: var(--marigold); line-height: 1.1; }
.stats__label { display: block; margin-top: 0.4rem; color: #cfe5e5; }

/* ---------- Feature list (Why choose us) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 2rem 1.8rem 2rem 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marigold-100); color: var(--marigold-600); font-size: 1.25rem; margin-bottom: 1rem;
}
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Principal message ---------- */
.principal { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.principal__photo img { border-radius: var(--radius-lg); aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.principal blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.6; color: var(--green-900); padding-left: 1.6rem; border-left: 3px solid var(--marigold); }
.principal blockquote p { margin: 0 0 0.8em; }
.principal__name { margin: 1.5rem 0 0; font-weight: 600; color: var(--green-900); }
.principal__role { color: var(--muted); margin: 0 0 1.4rem; }

/* ---------- Generic cards ---------- */
.card-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: #c5dcdc; box-shadow: var(--shadow); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--green-100); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card__body h3 { margin-bottom: 0.3rem; }
.card__body p { color: var(--muted); margin-bottom: 0.8rem; }
.card__body .text-link, .card__body .btn { margin-top: auto; align-self: flex-start; }
.card--icon .card__media { overflow: visible; }
.card--icon .card__media img { border-radius: var(--radius) var(--radius) 0 0; }
.card--icon .card__body { padding-top: 2.2rem; }
.card__icon {
  position: absolute; left: 1.2rem; bottom: -22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--marigold); color: var(--green-900); display: grid; place-items: center; font-size: 1.1rem;
  border: 3px solid #fff; z-index: 1;
}
.chip {
  display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 0.15rem 0.65rem; border-radius: 999px;
  background: var(--green-100); color: var(--green-800); align-self: flex-start;
}
.chip--gold { background: var(--marigold-100); color: #6b4a07; }
.meta { font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0 0 0.4rem; padding: 0; list-style: none; }
.meta i { color: var(--marigold-600); margin-right: 0.3rem; }

/* Image tiles (student life / campus preview) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: block; color: #fff; text-decoration: none; background: var(--green-100); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 42, 42,0.85)); }
.tile__label { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: #fff; }

/* ---------- Toppers ---------- */
.topper-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.topper-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.topper-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.topper-card--first { border-color: var(--marigold); box-shadow: 0 0 0 1px var(--marigold) inset; }
.topper-card__photo { position: relative; aspect-ratio: 5 / 6; background: var(--green-100); }
.topper-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.topper-card__year {
  position: absolute; top: 0.9rem; right: 0.9rem; background: rgba(255,255,255,0.94); color: var(--green-900);
  font-weight: 600; font-size: 0.85rem; padding: 0.2rem 0.7rem; border-radius: 999px;
}
/* Rank medallion — marigold disc ringed with kolam dots */
.rank-medal {
  position: absolute; left: 1rem; bottom: -30px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--marigold); color: var(--green-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 6px 16px -6px rgba(0,0,0,0.35);
}
.rank-medal::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px dotted rgba(10, 61, 61, 0.45);
}
.rank-medal__num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.rank-medal__txt { font-size: 0.66rem; font-weight: 600; margin-top: 2px; }
.topper-card__body { padding: 2.4rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.topper-card__rank { font-weight: 600; color: var(--marigold-600); font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; margin: 0; }
.topper-card__name { margin: 0.2rem 0 0.35rem; font-size: 1.3rem; overflow-wrap: anywhere; }
.topper-card__class { color: var(--muted); margin: 0 0 1rem; font-size: 0.97rem; }
.topper-card__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0 1.2rem; padding: 0.9rem 0 0; border-top: 1px dashed var(--line); }
.topper-card__scores dt { font-size: 0.84rem; color: var(--muted); }
.topper-card__scores dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.topper-card__scores .is-pct { font-family: var(--font-display); font-size: 1.2rem; color: var(--green-800); }
.topper-card .btn { margin-top: auto; align-self: stretch; }

.topper-year { margin-bottom: 3.5rem; }
.topper-year:last-child { margin-bottom: 0; }
.topper-year__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1rem; padding-bottom: 0.8rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--green-900); }
.topper-year__head h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.topper-year__head span { color: var(--muted); }
.topper-category { margin-bottom: 2.4rem; }
.topper-category:last-child { margin-bottom: 0; }
.topper-category > h3 { display: flex; align-items: center; gap: 0.6rem; }
.topper-category > h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); flex-shrink: 0; }

.topper-stats { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.topper-stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.topper-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--green-800); line-height: 1.1; }
.topper-stats span { color: var(--muted); }

/* Topper details (inside modal) */
.topper-detail { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.topper-detail__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.topper-detail__year { color: var(--marigold-600); font-weight: 600; margin: 0 0 0.3rem; }
.topper-detail h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.topper-detail h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.4rem; margin: 0; }
.detail-list div { border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.detail-list dt { font-size: 0.85rem; color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.subject-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.subject-table th, .subject-table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); }
.subject-table thead th { background: var(--green-100); color: var(--green-900); font-weight: 600; }
.subject-table td:last-child, .subject-table th:last-child { text-align: right; }
.table-wrap { overflow-x: auto; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-group__label { font-weight: 600; color: var(--green-900); margin-right: 0.3rem; font-size: 0.95rem; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 500; font-size: 0.97rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--green-700); }
.filter-btn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.filter-select { padding: 0.5rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }
.results-count { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.97rem; }

.notice {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 2rem;
  background: var(--marigold-100); border-left: 4px solid var(--marigold); border-radius: var(--radius-sm); color: #57400b;
}
.notice i { margin-top: 0.3rem; }
.notice p { margin: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; }


/* ---------- Gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-100); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform 0.5s var(--ease); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.8rem; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(6, 42, 42,0.85)); opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); pointer-events: none;
}
.gallery-item:hover img, .gallery-item:focus-within img { transform: scale(1.04); }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(4, 26, 26, 0.95);
  display: grid; grid-template-rows: auto 1fr auto; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; color: #cfe5e5; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; padding: 0 3.8rem; }
.lightbox__stage img { max-height: 78vh; max-width: min(100%, 1200px); width: auto; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox__caption { text-align: center; color: #fff; padding: 0.8rem; margin: 0; }
.lightbox__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.08);
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.lightbox__btn:hover { background: var(--marigold); color: var(--green-900); border-color: var(--marigold); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }

/* ---------- Faculty ---------- */
.faculty-card { text-align: center; }
.faculty-card .card__media { aspect-ratio: 5 / 6; }
.faculty-card .card__body { align-items: center; }
.faculty-card h3 { font-size: 1.2rem; margin-bottom: 0.1rem; }
.faculty-card .role { color: var(--marigold-600); font-weight: 600; margin: 0; }
.faculty-card .dept { color: var(--muted); margin: 0; }

/* ---------- Steps (admissions) — a real sequence, so numbered ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-800); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); margin-top: 0.65rem; }

.info-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info-panel h3 { font-size: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.download {
  display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.download:hover { border-color: var(--green-700); color: var(--ink); }
.download i { font-size: 1.8rem; color: var(--error); }
.download strong { display: block; color: var(--green-900); }
.download span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); max-width: 820px; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item h3 { margin: 0; font-size: 1.05rem; }
.accordion__btn {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 0; display: flex; justify-content: space-between;
  gap: 1rem; align-items: center; font-weight: 600; color: var(--green-900); font-size: 1.05rem; font-family: var(--font-body);
}
.accordion__btn i { transition: transform 0.25s var(--ease); color: var(--marigold-600); }
.accordion__btn[aria-expanded="true"] i { transform: rotate(45deg); }
.accordion__panel p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; color: var(--green-900); font-size: 0.97rem; }
.form-field .req { color: var(--error); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid #c4dbdb; border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(0, 115, 115, 0.2); }
.form-field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; min-height: 1.3em; }
.form-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status.is-success { background: #e5f2f2; color: var(--success); }
.form-status.is-error { background: #f8e3de; color: var(--error); }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list i { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--green-900); }
.contact-list div { min-width: 0; overflow-wrap: anywhere; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; background: var(--green-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.social-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-list a, .social-list span {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink);
}
.social-list a:hover { border-color: var(--green-700); }

/* ---------- CTA band ---------- */
.cta-band { background-color: var(--purple); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { margin: 0; color: #cfe5e5; max-width: 52ch; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 26, 26, 0.7); opacity: 0; transition: opacity 0.25s var(--ease); }
.modal__dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg); width: min(960px, 100%);
  max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.4rem, 4vw, 2.5rem);
  opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__dialog:focus { outline: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: sticky; top: 0; float: right; margin: -0.5rem -0.5rem 0 1rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green-900); font-size: 1.1rem;
}
.modal__close:hover { background: var(--green-100); }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--green-900); color: #bfdede; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #eaf5f5; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); text-decoration: underline; }
.footer-brand { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.15rem; line-height: 1.25; }
.footer-contact li { display: flex; gap: 0.7rem; }
.footer-contact i { color: var(--marigold); margin-top: 0.4rem; width: 16px; flex-shrink: 0; }
.footer-contact span, .footer-contact a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.3rem 0; font-size: 0.92rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--marigold); color: var(--green-900); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: #e6a52b; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 6rem 0; }
.not-found__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); color: var(--marigold); line-height: 1; margin: 0; }
.not-found .btn-row { justify-content: center; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Header call-to-action button (needs extra specificity over nav link styles) */
.nav-list > li.nav-cta > a.btn {
  background: var(--marigold); color: var(--green-900); font-weight: 600;
  padding: 0.6rem 1.15rem; border-radius: 999px;
}
.nav-list > li.nav-cta > a.btn:hover { background: #e6a52b; color: var(--green-900); }

/* Brand lockup: keep the school name on two tidy lines beside the logo */
.brand { flex-shrink: 0; }
.brand__name { max-width: 9.6em; }
.brand__place { white-space: nowrap; }

/* ---- Higher secondary streams ---- */
.streams { margin-top: 3.5rem; }
.streams h3 { font-size: 1.5rem; margin-bottom: 1.2rem; text-align: center; }
.streams__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.stream { background: var(--paper, #f7fbfb); border: 1px solid var(--green-100, #e6f4f4); border-top: 4px solid var(--marigold, #d6951b); border-radius: 14px; padding: 1.5rem; }
.stream i { font-size: 1.6rem; color: var(--green-700, #007373); margin-bottom: 0.7rem; display: block; }
.stream h4 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.stream p { margin: 0; color: inherit; }
@media (max-width: 768px) { .streams__grid { grid-template-columns: 1fr; } }

/* ---- Achievement highlight cards ---- */
.highlight-card .card__body { padding-top: 1.1rem; padding-bottom: 1.2rem; }
.highlight-card h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 0.55rem; }
.highlight-card h3 i { color: var(--marigold, #d6951b); }

/* ---- School crest logo ---- */
.brand img, .footer-brand img { object-fit: contain; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 5px; width: 64px; height: 64px; }

/* Crest logo: keep proportions; white badge in the dark footer */
.brand img { object-fit: contain; }
.footer-brand img { object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; width: 64px; height: 64px; }

/* Equal-height card photos */
.card__media img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }

/* =========================================================
   Feedback page
   ========================================================= */
.feedback-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }
.feedback-aside { position: sticky; top: 110px; }
.feedback-aside h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.feedback-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.feedback-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feedback-points i { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold-100, #f8ecd0); color: var(--green-700, #007373); }
.feedback-points strong { display: block; color: var(--green-900, #0a3d3d); }
.feedback-points span { font-size: 0.95rem; opacity: 0.85; }

.fb-step { border: 0; padding: 0 0 1.6rem; margin: 0 0 1.6rem; border-bottom: 1px dashed rgba(0, 115, 115, 0.25); min-width: 0; }
.fb-step legend { font-family: "Literata", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--green-900, #0a3d3d); margin-bottom: 1rem; padding: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fb-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700, #007373); color: #fff; display: inline-grid; place-items: center; font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-size: 0.95rem; }
.fb-optional { font-weight: 400; font-size: 0.9rem; opacity: 0.7; }
.fb-step.has-error .star-rating label, .fb-step.has-error .chip-option span { border-color: #b3261e; }

/* Star rating: DOM order is 5→1, shown left-to-right as 1→5 */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 0.35rem; }
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label { cursor: pointer; font-size: 2.6rem; line-height: 1; color: #d9ddd8; padding: 0.15rem; border-radius: 8px; border: 2px solid transparent; transition: color 0.15s, transform 0.15s; }
.star-rating label:hover, .star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--marigold, #d6951b); }
.star-rating label:hover { transform: scale(1.12); }
.star-rating input:focus-visible + label { outline: 3px solid var(--green-700, #007373); outline-offset: 2px; }
.star-caption { margin: 0.4rem 0 0; font-weight: 600; color: var(--green-700, #007373); }

/* Chip-style radio options */
.chip-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-option span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid rgba(0, 115, 115, 0.3); background: #fff; font-weight: 500; transition: all 0.15s; }
.chip-option span i { color: var(--green-700, #007373); }
.chip-option:hover span { border-color: var(--green-700, #007373); }
.chip-option input:checked + span { background: var(--green-700, #007373); border-color: var(--green-700, #007373); color: #fff; }
.chip-option input:checked + span i { color: var(--marigold-100, #f8ecd0); }
.chip-option input:focus-visible + span { outline: 3px solid var(--marigold, #d6951b); outline-offset: 2px; }

.check-option { display: flex !important; align-items: center; gap: 0.6rem; font-weight: 500; cursor: pointer; }
.check-option input { width: 20px; height: 20px; accent-color: var(--green-700, #007373); }
.char-count { display: block; text-align: right; font-size: 0.85rem; opacity: 0.65; margin-top: 0.25rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-form .form-actions .btn i { margin-right: 0.35rem; }

@media (max-width: 992px) {
  .feedback-layout { grid-template-columns: 1fr; gap: 2rem; }
  .feedback-aside { position: static; }
}
@media (max-width: 400px) {
  .star-rating label { font-size: 1.8rem; }
}
.form-field .check-option input { width: 20px; height: 20px; padding: 0; flex: 0 0 auto; }

/* =========================================================
   School name in FULL UPPERCASE (header, footer, home hero)
   ========================================================= */
.brand__name { text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; line-height: 1.2; max-width: 13.5em; }
.footer-brand strong { text-transform: uppercase; letter-spacing: 0.03em; font-size: 1rem; }
.hero h1 { text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2rem, 5vw, 4rem); max-width: 20ch; }
@media (max-width: 400px) {
  .brand__name { font-size: 0.8rem; letter-spacing: 0.01em; max-width: 12em; }
  .brand__tag { font-size: 0.75rem; }
}
@media (max-width: 340px) {
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 0.45rem; }
}
/* Purple banner: gradient + dot texture layered correctly */
.cta-band, .cta-band.kolam-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.6px, transparent 2px), linear-gradient(120deg, var(--green-700), var(--purple));
  background-size: 22px 22px, 100% 100%;
}

/* =========================================================
   Feedback — voice typing (Tamil / English)
   ========================================================= */
.ta { display: block; font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 500; font-size: 0.92em; color: var(--muted); margin-top: 0.15rem; }
legend .ta { flex-basis: 100%; font-size: 0.85rem; margin-left: 2.35rem; margin-top: -0.2rem; }
label .ta { display: inline; margin-left: 0.35rem; font-size: 0.85rem; }
.ta-inline { font-size: 0.8em; opacity: 0.85; margin-left: 0.2rem; }

.voice-panel { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; margin-bottom: 1.8rem; border-radius: 16px;
  background: linear-gradient(135deg, var(--green-100), #fff); border: 2px solid var(--purple); }
.voice-panel.needs-lang { animation: voice-shake 0.4s; border-color: var(--marigold); box-shadow: 0 0 0 4px var(--marigold-100); }
.voice-panel__icon { flex: 0 0 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--purple); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.voice-panel__emoji { font-size: 1.7rem; }
.voice-panel h2 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.voice-panel p { margin: 0 0 0.9rem; }
.lang-choice { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.lang-option { position: relative; cursor: pointer; }
.lang-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lang-option span { display: flex; flex-direction: column; align-items: center; min-width: 130px; padding: 0.7rem 1.4rem; border-radius: 14px; background: #fff; border: 2px solid rgba(0, 115, 115, 0.3); transition: all 0.15s; }
.lang-option b { font-size: 1.35rem; line-height: 1.2; color: var(--green-900); }
.lang-option small { font-size: 0.85rem; color: var(--muted); }
.lang-option:hover span { border-color: var(--purple); }
.lang-option input:checked + span { background: var(--purple); border-color: var(--purple); box-shadow: 0 6px 16px -8px rgba(0, 115, 115, 0.8); }
.lang-option input:checked + span b, .lang-option input:checked + span small { color: #fff; }
.lang-option input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.voice-status { margin: 0.9rem 0 0 !important; font-weight: 600; min-height: 1.2em; }
.voice-status:empty { display: none; }
.voice-status.is-ok { color: var(--success, #2f6f4f); }
.voice-status.is-warn { color: #9a5b00; }
.voice-status.is-listening { color: var(--green-700); }
.voice-status .ta { color: inherit; opacity: 0.85; }

.voice-field { display: flex; flex-direction: column; gap: 0.5rem; }
.voice-field--inline { flex-direction: row-reverse; align-items: stretch; }
.voice-field--inline input { flex: 1; min-width: 0; }
.voice-field .mic-btn { align-self: flex-start; }
.mic-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--purple); color: #fff; font: 600 1rem var(--font-body); transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.mic-btn:hover { background: var(--green-700); }
.mic-btn:active { transform: scale(0.97); }
.mic-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.mic-btn[disabled] { background: #bbb; cursor: not-allowed; }
.mic-btn.is-listening { background: #c62828; animation: mic-pulse 1.3s infinite; }
.mic-btn__text span { opacity: 0.85; font-weight: 500; }
textarea.is-voice-target, input.is-voice-target { border-color: #c62828 !important; box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18) !important; }

@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55); } 70% { box-shadow: 0 0 0 14px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
@keyframes voice-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.is-listening, .voice-panel.needs-lang { animation: none; } }
@media (max-width: 576px) {
  .voice-panel { flex-direction: column; padding: 1.1rem; }
  .lang-option { flex: 1; }
  .lang-option span { min-width: 0; }
  .voice-field--inline { flex-direction: column; }
  legend .ta { margin-left: 0; }
}
.voice-panel__icon { flex: none; width: 60px; height: 60px; }
@media (max-width: 992px) {
  .feedback-layout .feedback-form { order: 1; }
  .feedback-layout .feedback-aside { order: 2; }
}

/* =========================================================
   Toppers page (Class X / Class XII by year)
   ========================================================= */
.topper-toolbar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.topper-years { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.topper-note { background: var(--marigold-100); border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.95rem; margin: 0 0 1.8rem; }
.topper-note code { background: #fff; padding: 0.1rem 0.4rem; border-radius: 4px; }

.topper-yearblock { margin-bottom: 3.5rem; }
.topper-yearblock:last-child { margin-bottom: 0; }
.topper-yearblock__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.4rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.topper-yearblock__title span { background: var(--purple); color: #fff; padding: 0.2rem 0.9rem; border-radius: 12px; font-size: 0.9em; }

.topper-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.topper-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.topper-panel__head { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; color: #fff;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.6px, transparent 2px), linear-gradient(120deg, var(--green-900), var(--purple));
  background-size: 22px 22px, 100% 100%; }
.topper-panel__icon { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--marigold); color: var(--green-900); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.topper-panel__head h3 { color: #fff; margin: 0; font-size: 1.4rem; }
.topper-panel__head p { margin: 0.15rem 0 0; font-size: 0.9rem; opacity: 0.85; }
.topper-panel__empty { padding: 1.4rem; margin: 0; color: var(--muted); }

.topper-list { list-style: none; margin: 0; padding: 0.4rem 0; }
.topper-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem; padding: 1rem 1.4rem; border-bottom: 1px dashed var(--line); }
.topper-row:last-child { border-bottom: 0; }
.topper-row--r1 { background: linear-gradient(90deg, var(--marigold-100), transparent 70%); }

.topper-row__medal { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 1px;
  font-family: var(--font-display); color: #fff; background: #9e9e9e; box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }
.topper-row__medal b { font-size: 1.15rem; line-height: 1; }
.topper-row__medal small { font-size: 0.6rem; align-self: flex-start; margin-top: 11px; }
.topper-row--r1 .topper-row__medal { background: linear-gradient(135deg, #f2c14e, #c98a0b); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d6951b; }
.topper-row--r2 .topper-row__medal { background: linear-gradient(135deg, #cfd4da, #8d949c); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #a9b0b8; }
.topper-row--r3 .topper-row__medal { background: linear-gradient(135deg, #e0a174, #a0592b); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b8703f; }

.topper-row__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--green-100); display: grid; place-items: center; border: 2px solid var(--purple); }
.topper-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.topper-row__initials { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--green-700); }

.topper-row__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.topper-row__name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--green-900); overflow-wrap: anywhere; }
.topper-row__group { font-size: 0.85rem; color: var(--muted); }
.topper-row__marks { font-size: 0.95rem; color: var(--muted); }
.topper-row__marks strong { color: var(--ink); font-size: 1.05rem; }
.topper-row__bar { display: block; height: 6px; border-radius: 6px; background: var(--green-100); overflow: hidden; margin-top: 0.3rem; max-width: 220px; }
.topper-row__bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--marigold)); }
.topper-row__pct { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--green-700); white-space: nowrap; }
.topper-row__pct small { font-size: 0.7em; margin-left: 1px; }

@media (max-width: 992px) { .topper-panels { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .topper-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.9rem 1rem; gap: 0.7rem; }
  .topper-row__avatar { display: none; }
  .topper-row__pct { font-size: 1.2rem; }
}

/* =========================================================
   Upcoming events (Extra-Curricular Activities page)
   ========================================================= */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.event-card { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-date { flex: none; width: 72px; border-radius: 14px; overflow: hidden; text-align: center; background: #fff; border: 2px solid var(--purple); }
.event-date__day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; padding: 0.5rem 0 0.35rem; color: var(--green-900); }
.event-date__mon { display: block; background: var(--purple); color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0; }
.event-date--tba { border-color: var(--marigold); }
.event-date--tba .event-date__mon { background: var(--marigold); color: var(--green-900); }
.event-card__body { min-width: 0; }
.event-card__type { margin: 0 0 0.2rem; font-size: 0.85rem; font-weight: 600; color: var(--green-700); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.event-when { background: var(--green-100); color: var(--green-700); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.78rem; }
.event-when.is-soon { background: var(--marigold-100); color: #7a4f05; }
.event-when.is-now { background: #c62828; color: #fff; }
.event-card h3 { margin: 0; font-size: 1.2rem; }
.event-card__ta { margin: 0.1rem 0 0; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.event-card__when { margin: 0.45rem 0 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.event-card__note { margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--muted); }
.event-empty { grid-column: 1 / -1; background: #fff; border-radius: 14px; padding: 1.4rem; text-align: center; color: var(--muted); }
@media (max-width: 768px) { .event-list { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .event-date { width: 60px; } .event-date__day { font-size: 1.6rem; } .event-card { gap: 0.8rem; padding: 1rem; } }

/* =========================================================
   WELCOME BANNER (Home page pop-up)
   ========================================================= */
html.wb-lock, html.wb-lock body { overflow: hidden; }
.wb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.wb[hidden] { display: none; }
.wb__backdrop { position: absolute; inset: 0; background: rgba(4, 26, 26, 0.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s; }
.wb.is-open .wb__backdrop { opacity: 1; }

.wb__card { position: relative; width: min(920px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; overflow-x: hidden;
  border-radius: 26px; color: #fff; outline: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 2px) 0 0 / 20px 20px,
    radial-gradient(120% 90% at 100% 0%, rgba(214,149,27,0.28), transparent 55%),
    linear-gradient(145deg, #0a3d3d 0%, #007a7a 55%, #008B8B 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(214,149,27,0.55), inset 0 0 0 9px rgba(10, 61, 61,0.6), inset 0 0 0 10px rgba(214,149,27,0.35);
  transform: translateY(40px) scale(0.94); opacity: 0; transition: transform 0.55s cubic-bezier(.2,.9,.25,1.15), opacity 0.4s; }
.wb.is-open .wb__card { transform: none; opacity: 1; }
.wb.is-closing .wb__card { transform: translateY(20px) scale(0.97); opacity: 0; transition-duration: 0.3s; }

/* Thoranam (mango leaves + marigolds) */
.wb__toran { position: absolute; top: 0; left: 0; width: 100%; height: 58px; pointer-events: none; z-index: 2;
  transform-origin: top center; animation: wb-sway 5s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25)); }
@keyframes wb-sway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(0.35deg) translateY(1px); } }

.wb__close { position: absolute; top: 64px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6);
  background: rgba(10, 61, 61,0.55); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.wb__close:hover { background: #d6951b; color: #0a3d3d; transform: rotate(90deg); }
.wb__close:focus-visible, .wb__skip:focus-visible, .wb__btn:focus-visible { outline: 3px solid #f8ecd0; outline-offset: 3px; }

.wb__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 2rem; padding: 4.6rem 2.4rem 1.2rem; align-items: center; }

/* Temple-arch photo */
.wb__visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.wb__arch { width: 100%; aspect-ratio: 5 / 6; border-radius: 999px 999px 18px 18px; overflow: hidden; position: relative;
  border: 4px solid #d6951b; box-shadow: 0 0 0 6px rgba(214,149,27,0.25), 0 24px 40px -18px rgba(0,0,0,0.6); }
.wb__arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: wb-kenburns 14s ease-in-out infinite alternate; }
.wb__arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 61, 61,0.55)); }
@keyframes wb-kenburns { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1.18) translate(-3%, -2%); } }

.wb__seal { position: relative; width: 150px; height: 150px; margin-top: -78px; z-index: 1; display: grid; place-items: center; }
.wb__seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; background: #0a3d3d; box-shadow: 0 0 0 3px #d6951b, 0 10px 24px -8px rgba(0,0,0,0.6);
  animation: wb-spin 18s linear infinite; }
.wb__seal-ring text { fill: #f8ecd0; font: 700 13.2px "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; letter-spacing: 1.2px; }
@keyframes wb-spin { to { transform: rotate(360deg); } }
.wb__crest { position: relative; width: 88px; height: 88px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; box-shadow: 0 0 0 3px #d6951b; }
.wb__motto { margin: 0.9rem 0 0; display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: #f8ecd0; }
.wb__motto i { font-style: normal; color: #d6951b; }

/* Text side */
.wb__school { margin: 0 0 0.3rem; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 600; color: #f8ecd0; }
.wb__title { margin: 0; line-height: 0.92; color: #fff; font-family: var(--font-display); }
.wb__title-top { display: block; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: 0.02em; text-transform: uppercase; }
.wb__title-big { display: block; font-size: clamp(3.6rem, 9vw, 6.2rem); text-transform: uppercase; letter-spacing: 0.02em;
  background: linear-gradient(100deg, #b7790f 0%, #ffd976 30%, #fff6d6 45%, #ffd976 60%, #b7790f 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wb-shimmer 4s linear infinite; }
@keyframes wb-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.wb__year { margin: 0.6rem 0 0; display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.3rem 0.35rem 0.3rem 1rem; font-size: 0.9rem; }
.wb__year strong { background: #d6951b; color: #0a3d3d; border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 1.05rem; }
.wb__ta { margin: 0.75rem 0 0; font-size: 0.98rem; color: #eaf8f8; font-weight: 500; }
.wb__desc { margin: 1.1rem 0 0.7rem; color: #fff; font-weight: 500; }

/* Class ladder — steps rise from I to XII */
.wb__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; align-items: end; }
.wb__step { background: #fff; color: #0a3d3d; border-radius: 14px 14px 6px 6px; padding: 0.7rem 0.6rem 0.6rem; text-align: center; position: relative;
  box-shadow: 0 10px 18px -12px rgba(0,0,0,0.6); opacity: 0; transform: translateY(18px); }
.wb.is-open .wb__step { animation: wb-rise 0.6s cubic-bezier(.2,.9,.3,1.2) forwards; }
.wb__step--1 { min-height: 92px; } .wb__step--2 { min-height: 110px; animation-delay: 0.12s !important; } .wb__step--3 { min-height: 128px; animation-delay: 0.24s !important; background: #f8ecd0; }
.wb__step b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: #007373; }
.wb__step span { display: block; font-weight: 700; font-size: 0.88rem; }
.wb__step small { display: block; font-size: 0.72rem; color: #4f6262; margin-top: 0.15rem; }
@keyframes wb-rise { to { opacity: 1; transform: none; } }

.wb__features { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.wb__features li { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 0.3rem 0.75rem; }

.wb__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.wb__btn { display: inline-flex; align-items: center; gap: 0.45rem; border-radius: 999px; padding: 0.8rem 1.4rem; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.wb__btn--gold { background: #d6951b; color: #0a3d3d; box-shadow: 0 10px 22px -10px rgba(214,149,27,0.9); }
.wb__btn--gold:hover { transform: translateY(-2px); background: #e6a52b; color: #0a3d3d; }
.wb__btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.wb__btn--ghost:hover { background: #fff; color: #0a3d3d; }
.wb__skip { margin-top: 0.8rem; background: none; border: 0; color: #dcf3f3; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: 500 0.9rem var(--font-body); padding: 0.2rem 0; }
.wb__skip:hover { color: #fff; }

.wb__foot { margin: 0; padding: 0.8rem 2rem 1.2rem; text-align: center; font-size: 0.8rem; color: #dcf3f3; border-top: 1px dashed rgba(255,255,255,0.2); }

@media (max-width: 820px) {
  .wb__grid { grid-template-columns: 1fr; gap: 1.2rem; padding: 4.2rem 1.3rem 1rem; }
  .wb__visual { max-width: 300px; margin: 0 auto; width: 100%; }
  .wb__arch { aspect-ratio: 4 / 3; border-radius: 999px 999px 16px 16px; }
  .wb__seal { width: 118px; height: 118px; margin-top: -60px; }
  .wb__seal-ring text { font-size: 16.5px; letter-spacing: 0.4px; }
  .wb__crest { width: 70px; height: 70px; }
  .wb__content { text-align: center; }
  .wb__year, .wb__actions, .wb__features { justify-content: center; }
  .wb__close { top: 58px; right: 10px; }
}
@media (max-width: 420px) {
  .wb { padding: 0.5rem; }
  .wb__card { max-height: calc(100vh - 1rem); border-radius: 20px; }
  .wb__steps { gap: 0.35rem; }
  .wb__step b { font-size: 1.1rem; } .wb__step span { font-size: 0.78rem; } .wb__step small { display: none; }
  .wb__step--1 { min-height: 70px; } .wb__step--2 { min-height: 82px; } .wb__step--3 { min-height: 94px; }
  .wb__btn { width: 100%; justify-content: center; }
  .wb__foot { font-size: 0.72rem; padding: 0.7rem 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wb__card, .wb__backdrop { transition: none; }
  .wb__toran, .wb__arch img, .wb__seal-ring, .wb__title-big { animation: none; }
  .wb.is-open .wb__step { animation: none; opacity: 1; transform: none; }
}
/* Compact banner for shorter laptop screens (e.g. 1366×768) */
@media (min-width: 821px) and (max-height: 900px) {
  .wb__grid { padding: 3.9rem 2.2rem 0.8rem; gap: 1.8rem; }
  .wb__arch { aspect-ratio: 1 / 1; }
  .wb__seal { width: 128px; height: 128px; margin-top: -66px; }
  .wb__crest { width: 74px; height: 74px; }
  .wb__motto { margin-top: 0.6rem; }
  .wb__title-top { font-size: 2.1rem; }
  .wb__title-big { font-size: 4.3rem; }
  .wb__year { margin-top: 0.4rem; }
  .wb__ta { margin-top: 0.5rem; font-size: 0.92rem; }
  .wb__desc { margin: 0.7rem 0 0.55rem; }
  .wb__step { padding: 0.5rem 0.45rem 0.45rem; }
  .wb__step span { font-size: 0.8rem; }
  .wb__step--1 { min-height: 76px; } .wb__step--2 { min-height: 90px; } .wb__step--3 { min-height: 104px; }
  .wb__step b { font-size: 1.2rem; }
  .wb__features { margin-top: 0.8rem; }
  .wb__features li { padding: 0.22rem 0.65rem; font-size: 0.8rem; }
  .wb__actions { margin-top: 0.9rem; }
  .wb__btn { padding: 0.65rem 1.2rem; }
  .wb__skip { margin-top: 0.5rem; }
  .wb__foot { padding: 0.6rem 2rem 0.9rem; }
}
@media (min-width: 821px) and (max-height: 740px) {
  .wb__desc { display: none; }
  .wb__steps { margin-top: 0.9rem; }
}

/* ---------- Banner slides (English / Tamil) ---------- */
.wb__track { display: grid; }
.wb__slide { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateX(60px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.6s; }
.wb__slide.is-before { transform: translateX(-60px); }
.wb__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wb__slide .wb__grid { flex: 1; }
.wb__slide.is-active .wb__features li { animation: wb-pop 0.45s cubic-bezier(.2,.9,.3,1.3) both; }
.wb__slide.is-active .wb__features li:nth-child(2) { animation-delay: 0.05s; }
.wb__slide.is-active .wb__features li:nth-child(3) { animation-delay: 0.1s; }
.wb__slide.is-active .wb__features li:nth-child(4) { animation-delay: 0.15s; }
.wb__slide.is-active .wb__features li:nth-child(5) { animation-delay: 0.2s; }
.wb__slide.is-active .wb__features li:nth-child(6) { animation-delay: 0.25s; }
@keyframes wb-pop { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }

.wb__tagline { margin: 0.9rem 0 0; font-size: 1.15rem; font-weight: 600; color: #fff; font-family: var(--font-display); font-style: italic; }
.wb__features { margin-top: 1.1rem; }
.wb__features li { font-size: 0.9rem; padding: 0.4rem 0.85rem; }

/* Tamil slide typography */
.wb__slide--ta, .wb__slide--ta .wb__title, .wb__slide--ta .wb__tagline, .wb__slide--ta .wb__motto { font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; }
.wb__slide--ta .wb__school { letter-spacing: 0.04em; font-size: 0.95rem; text-transform: none; }
.wb__slide--ta .wb__title { line-height: 1.15; }
.wb__slide--ta .wb__title-top { font-size: clamp(1.8rem, 3.8vw, 2.6rem); text-transform: none; letter-spacing: 0; font-weight: 700; }
.wb__slide--ta .wb__title-big { font-size: clamp(2.6rem, 6vw, 4rem); text-transform: none; letter-spacing: 0; font-weight: 700; padding-bottom: 0.1em; }
.wb__slide--ta .wb__tagline { font-style: normal; font-size: 1.1rem; line-height: 1.6; }
.wb__slide--ta .wb__motto { letter-spacing: 0.06em; font-size: 0.95rem; text-transform: none; }
.wb__slide--ta .wb__seal-ring text { font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-size: 15px; letter-spacing: 0.5px; }
.wb__slide--ta .wb__btn { font-size: 0.98rem; }

/* Navigation: ‹ English · தமிழ் › */
.wb__nav { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.2rem 1rem 1.1rem; }
.wb__arrow { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.55); background: rgba(255,255,255,0.08); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.wb__arrow span { margin-top: -3px; }
.wb__arrow:hover { background: #d6951b; border-color: #d6951b; color: #0a3d3d; transform: scale(1.08); }
.wb__dots { display: flex; gap: 0.4rem; background: rgba(0,0,0,0.18); padding: 0.3rem; border-radius: 999px; }
.wb__dot { border: 0; border-radius: 999px; padding: 0.4rem 1.1rem; background: transparent; color: #dcf3f3; font: 600 0.9rem var(--font-body); cursor: pointer; transition: background 0.25s, color 0.25s; }
.wb__dot.is-active { background: #d6951b; color: #0a3d3d; }
.wb__dot:not(.is-active):hover { background: rgba(255,255,255,0.12); color: #fff; }
.wb__arrow:focus-visible, .wb__dot:focus-visible { outline: 3px solid #f8ecd0; outline-offset: 2px; }
.wb__foot { border-bottom: 1px dashed rgba(255,255,255,0.2); margin-bottom: 0.9rem; }

@media (max-width: 820px) {
  .wb__tagline { font-size: 1.05rem; }
  .wb__nav { position: sticky; bottom: 0; z-index: 3; padding: 0.7rem 1rem 0.8rem; background: linear-gradient(180deg, rgba(0, 122, 122,0), rgba(0, 122, 122,0.95) 35%); margin-top: -0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wb__slide { transition: none; transform: none !important; }
  .wb__slide.is-active .wb__features li { animation: none; }
}
.wb__slide--ta .wb__seal-ring text { font-size: 13px; letter-spacing: 0.2px; }
@media (min-width: 821px) and (max-height: 740px) {
  .wb__slide .wb__grid { padding-top: 3.6rem; padding-bottom: 0.4rem; }
  .wb__tagline { margin-top: 0.6rem; }
  .wb__features { margin-top: 0.7rem; }
  .wb__features li { padding: 0.28rem 0.7rem; font-size: 0.84rem; }
  .wb__actions { margin-top: 0.8rem; }
  .wb__nav { padding-bottom: 0.8rem; }
  .wb__foot { margin-bottom: 0.6rem; }
}
@media (max-width: 820px) {
  .wb__slide .wb__grid { align-content: start; }
}

/* =========================================================
   ASK BALAJI — AI assistant page
   ========================================================= */
.bot-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bot-eyes { transform-origin: 60px 59px; animation: bot-blink 5s infinite; }
.bot-flower { transform-origin: 60px 9px; animation: bot-bob 2.6s ease-in-out infinite; }
@keyframes bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes bot-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(12deg); } }

.ask-hero { background-color: var(--green-900); color: #fff; padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(4.5rem, 8vw, 6rem); }
.ask-hero__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.ask-hero__bot { flex: none; width: clamp(84px, 12vw, 128px); aspect-ratio: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.35)); animation: bot-float 4s ease-in-out infinite; }
@keyframes bot-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ask-hero h1 { color: #fff; margin: 0.2rem 0 0.4rem; font-size: clamp(2rem, 5vw, 3.2rem); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ask-hero__ai { font-family: var(--font-body); font-size: 0.4em; font-weight: 800; letter-spacing: 0.08em; background: var(--marigold); color: var(--green-900); border-radius: 8px; padding: 0.25em 0.6em; }
.ask-hero p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0; }
.ask-hero .breadcrumb a, .ask-hero .breadcrumb span { color: rgba(255,255,255,0.8); }

.ask-section { padding-top: 0; }
.chat { position: relative; margin-top: clamp(-4rem, -6vw, -3rem); max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(10, 61, 61,0.45); display: flex; flex-direction: column; height: min(78vh, 760px); min-height: 520px; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--green-100), #fff); }
.chat__avatar { width: 46px; height: 46px; flex: none; }
.chat__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat__who strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--green-900); }
.chat__status { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.chat__status i { width: 8px; height: 8px; border-radius: 50%; background: #9e9e9e; display: inline-block; }
.chat__status.is-ai i { background: #22a06b; box-shadow: 0 0 0 3px rgba(34,160,107,0.2); }
.chat__status.is-busy i { background: var(--marigold); animation: dot-pulse 1s infinite; }
.chat__status.is-quick i { background: var(--marigold); }
.chat__tools { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.chat__lang { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.chat__lang-btn { border: 0; background: transparent; border-radius: 999px; padding: 0.3rem 0.7rem; font: 600 0.82rem var(--font-body); color: var(--muted); cursor: pointer; }
.chat__lang-btn[aria-pressed="true"] { background: var(--purple); color: #fff; }
.chat__icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.05rem; color: var(--green-700); }
.chat__icon-btn:hover { background: var(--green-100); }

.chat__log { flex: 1; overflow-y: auto; padding: 1.2rem 1.1rem 0.6rem; display: flex; flex-direction: column; gap: 0.9rem; scroll-behavior: smooth;
  background: radial-gradient(circle, rgba(0, 139, 139,0.06) 1.4px, transparent 1.6px) 0 0 / 22px 22px, var(--paper); }
.msg { display: flex; gap: 0.6rem; align-items: flex-end; max-width: 100%; animation: msg-in 0.3s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg__avatar { width: 34px; height: 34px; flex: none; }
.msg__bubble { padding: 0.75rem 1rem; border-radius: 18px; max-width: min(620px, 85%); line-height: 1.6; font-size: 0.98rem; overflow-wrap: anywhere; position: relative; }
.msg__bubble p { margin: 0 0 0.5rem; } .msg__bubble p:last-child { margin-bottom: 0; }
.msg__bubble ul, .msg__bubble ol { margin: 0.2rem 0 0.5rem; padding-left: 1.3rem; } .msg__bubble li { margin: 0.15rem 0; }
.msg__bubble a { color: var(--green-700); font-weight: 600; }
.msg--bot .msg__bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); box-shadow: 0 4px 12px -8px rgba(10, 61, 61,0.25); }
.msg--user { justify-content: flex-end; }
.msg--user .msg__bubble { background: linear-gradient(135deg, var(--green-700), var(--purple)); color: #fff; border-bottom-right-radius: 6px; }
.msg__tag { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; font-weight: 700; color: #7a4f05; background: var(--marigold-100); border-radius: 999px; padding: 0.1rem 0.55rem; }
.msg[lang="ta"] .msg__bubble { font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; }
.dots { display: inline-flex; gap: 5px; padding: 0.3rem 0.1rem; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); opacity: 0.35; animation: dot-pulse 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.chat__suggest { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.chat__suggest[hidden] { display: none; }
.chip-q { flex: none; border: 1.5px solid rgba(0, 139, 139,0.35); background: var(--green-100); color: var(--green-900); border-radius: 999px; padding: 0.45rem 0.9rem; font: 600 0.88rem var(--font-body); cursor: pointer; white-space: nowrap; }
.chip-q:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.chat__form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); background: #fff; }
.chat__form textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 0.7rem 1rem; font: 400 1rem/1.45 var(--font-body); max-height: 160px; background: var(--paper); color: var(--ink); }
.chat__form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(0, 139, 139,0.18); background: #fff; }
.chat__mic, .chat__send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; transition: transform 0.15s, background 0.2s; }
.chat__mic { background: var(--green-100); font-size: 1.25rem; }
.chat__mic:hover { background: #dceeee; }
.chat__mic.is-listening { background: #c62828; animation: mic-pulse 1.3s infinite; }
.chat__send { background: var(--purple); color: #fff; }
.chat__send svg { width: 22px; height: 22px; }
.chat__send:hover { background: var(--green-700); transform: scale(1.05); }
.chat__send:disabled { opacity: 0.5; cursor: wait; }
.chat__mic:focus-visible, .chat__send:focus-visible, .chip-q:focus-visible, .chat__lang-btn:focus-visible, .chat__icon-btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.chat__note { margin: 0; padding: 0.5rem 1rem 0.8rem; font-size: 0.75rem; color: var(--muted); text-align: center; background: #fff; }

@media (max-width: 600px) {
  .ask-hero__inner { flex-direction: column; align-items: flex-start; }
  .chat { height: calc(100vh - 90px); min-height: 480px; border-radius: 18px; margin-inline: -0.5rem; }
  .chat__head { padding: 0.7rem 0.8rem; gap: 0.55rem; }
  .chat__avatar { width: 38px; height: 38px; }
  .chat__lang-btn { padding: 0.25rem 0.55rem; }
  .msg__bubble { max-width: 88%; font-size: 0.95rem; }
  .msg__avatar { width: 28px; height: 28px; }
}

/* Floating "Ask Balaji" launcher (all pages) */
.ask-fab { position: fixed; left: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--green-900); color: #fff; border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.35rem; box-shadow: 0 12px 26px -10px rgba(10, 61, 61,0.7);
  border: 2px solid var(--marigold); transition: transform 0.2s; }
.ask-fab:hover { transform: translateY(-3px); color: #fff; }
.ask-fab__bot { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 3px; }
.ask-fab__txt { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 0.92rem; }
.ask-fab__txt small { font-weight: 500; font-size: 0.72rem; color: #f8ecd0; }
.ask-fab::after { content: ""; position: absolute; top: 2px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: #22a06b; border: 2px solid #fff; }
@media (max-width: 600px) { .ask-fab { padding: 0.3rem; } .ask-fab__txt { display: none; } .ask-fab::after { left: 36px; } }
@media print { .ask-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .bot-eyes, .bot-flower, .ask-hero__bot, .msg, .dots i { animation: none; } }

/* Home: Ask Balaji promo */
.ask-promo { display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); align-items: center; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 24px;
  background: radial-gradient(circle, rgba(0, 139, 139,0.08) 1.4px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(135deg, #fff, var(--green-100));
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.ask-promo__bot { flex: none; width: clamp(110px, 16vw, 170px); animation: bot-float 4s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(10, 61, 61,0.25)); }
.ask-promo__badge { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--purple); border-radius: 999px; padding: 0.25rem 0.75rem; }
.ask-promo h2 { margin: 0.6rem 0 0.4rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.ask-promo p { margin: 0 0 1rem; max-width: 60ch; }
.ask-promo__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.ask-promo__chips .chip-q { text-decoration: none; }
@media (max-width: 640px) { .ask-promo { flex-direction: column; text-align: center; } .ask-promo__chips { justify-content: center; } }
.topper-toolbar[hidden] { display: none; }

/* =========================================================
   Tamil quotes — பொறுமை · நம்பிக்கை · வெற்றி
   ========================================================= */
.quotes { position: relative; overflow: hidden; color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center;
  background:
    radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 2px) 0 0 / 22px 22px,
    radial-gradient(60% 80% at 15% 10%, rgba(214,149,27,0.30), transparent 60%),
    radial-gradient(60% 80% at 90% 100%, rgba(0, 139, 139,0.55), transparent 60%),
    linear-gradient(140deg, var(--green-900), var(--green-800)); }
.quotes::before, .quotes::after { content: "❝"; position: absolute; font-size: clamp(9rem, 22vw, 18rem); line-height: 1; color: rgba(255,255,255,0.05); font-family: Georgia, serif; pointer-events: none; }
.quotes::before { top: -1rem; left: 2%; } .quotes::after { content: "❞"; bottom: -5rem; right: 2%; }
.quotes__eyebrow { margin: 0 0 0.6rem; color: #f8ecd0; font-weight: 600; letter-spacing: 0.08em; font-size: 0.95rem; }
.quotes__title { margin: 0 0 clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.3em 0.55em;
  font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 700; font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.25; color: #fff; }
.qw { background: linear-gradient(100deg, #b7790f 0%, #ffd976 30%, #fff6d6 45%, #ffd976 60%, #b7790f 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wb-shimmer 5s linear infinite; padding-bottom: 0.1em; }
.qw--2 { animation-delay: -1.6s; } .qw--3 { animation-delay: -3.2s; }
.qop { color: rgba(255,255,255,0.55); font-weight: 400; font-size: 0.75em; }

.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); text-align: left; }
.qcard { position: relative; margin: 0; padding: 2.1rem 1.6rem 1.6rem; border-radius: 22px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(6px);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,0.7); transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s; }
.qcard:hover { transform: translateY(-6px); background: rgba(255,255,255,0.13); border-color: rgba(214,149,27,0.7); }
.qcard::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--marigold), #ffd976); }
.qcard__icon { position: absolute; top: -26px; right: 1.4rem; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
  background: #fff; box-shadow: 0 0 0 4px var(--marigold), 0 12px 20px -8px rgba(0,0,0,0.6); }
.qcard__word { font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 700; font-size: 1.7rem; color: #ffd976; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.qcard__word small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.qcard blockquote { margin: 0.9rem 0 0; }
.qcard blockquote p { margin: 0; font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.7; color: #fff; }
.qcard blockquote p::before { content: "“"; color: var(--marigold); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 0.1em; font-family: Georgia, serif; }
.qcard__en { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px dashed rgba(255,255,255,0.25); font-style: italic; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.quotes__sign { margin: 2rem 0 0; color: #f8ecd0; font-weight: 600; }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; gap: 2.4rem; max-width: 560px; margin-inline: auto; } }

/* Quote of the day ribbon (other pages) */
.quote-ribbon { background:
    radial-gradient(circle, rgba(255,255,255,0.07) 1.4px, transparent 1.8px) 0 0 / 20px 20px,
    linear-gradient(110deg, var(--green-700), var(--purple)); color: #fff; padding: 1.6rem 0; text-align: center; border-top: 4px solid var(--marigold); }
.quote-ribbon__inner { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.quote-ribbon__badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--marigold); color: var(--green-900); border-radius: 999px; padding: 0.2rem 0.9rem;
  font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 700; font-size: 0.95rem; }
.quote-ribbon__ta { margin: 0; font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.55rem); line-height: 1.6; max-width: 46ch; }
.quote-ribbon__en { margin: 0; font-style: italic; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
@media (prefers-reduced-motion: reduce) { .qw { animation: none; } .qcard { transition: none; } }
.qcard::after { right: 5.4rem; }

/* Top bar: பொறுமை ✦ நம்பிக்கை ✦ வெற்றி */
.topbar__motto { flex: 1; margin: 0; display: flex; justify-content: center; align-items: center; gap: 0.7rem;
  font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", "Fraunces", "Hind Madurai", "Noto Sans Tamil", "Latha", Georgia, serif; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em; white-space: nowrap; }
.topbar__motto span { background: linear-gradient(100deg, #e0a52b 0%, #ffd976 35%, #fff6d6 50%, #ffd976 65%, #e0a52b 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: wb-shimmer 6s linear infinite; }
.topbar__motto span:nth-of-type(2) { animation-delay: -2s; } .topbar__motto span:nth-of-type(3) { animation-delay: -4s; }
.topbar__motto b { color: rgba(255,255,255,0.5); font-weight: 400; font-size: 0.75em; }
@media (max-width: 1100px) { .topbar__motto { display: none; } }
@media (prefers-reduced-motion: reduce) { .topbar__motto span { animation: none; color: #ffd976; } }

/* Courier everywhere (superseded below by Cooper Black) */
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* Home hero: 5-star rating badge (top left) */
.hero__rating { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; padding: 0.45rem 1rem 0.45rem 0.8rem;
  border-radius: 999px; background: rgba(10, 61, 61, 0.55); border: 1.5px solid rgba(214,149,27,0.85); backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6); color: #fff; animation: rating-in 0.8s 0.3s cubic-bezier(.2,.9,.3,1.2) both; }
.hero__stars { color: #ffcc4d; font-size: 1.25rem; letter-spacing: 0.08em; text-shadow: 0 0 10px rgba(255,204,77,0.6); font-family: Arial, sans-serif; }
.hero__score { background: var(--marigold); color: var(--green-900); font-weight: 800; border-radius: 8px; padding: 0.05rem 0.45rem; font-size: 1rem; }
.hero__rlabel { font-weight: 700; font-size: 0.9rem; }
.hero__rlabel span { font-weight: 600; color: #f8ecd0; }
@keyframes rating-in { from { opacity: 0; transform: translateY(-10px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .hero__rlabel { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__rating { animation: none; } }
.hero__rating { display: flex; width: fit-content; }

/* Header: 5-star rating in the empty space left of the logo (wide screens) */
.header-rating { display: none; }
@media (min-width: 1500px) {
  .site-header { position: sticky; }
  .header-rating { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; position: absolute; top: 50%; transform: translateY(-50%);
    left: calc((100vw - min(100vw - 2.5rem, var(--container))) / 4 - 58px); width: 116px; margin: 0; padding: 0.4rem 0.5rem;
    border-radius: 14px; background: var(--green-100); border: 1.5px solid var(--marigold); box-shadow: 0 8px 18px -12px rgba(10,61,61,0.6); }
  .header-rating__stars { color: #e0a52b; font-size: 1.05rem; letter-spacing: 0.06em; font-family: Arial, sans-serif; text-shadow: 0 0 6px rgba(255,204,77,0.5); }
  .header-rating__text { font-size: 0.78rem; font-weight: 700; color: var(--green-900); }
  .header-rating__text b { background: var(--marigold); color: var(--green-900); border-radius: 6px; padding: 0 0.35rem; margin-right: 0.2rem; }
}

/* =========================================================
   COOPER BLACK everywhere
   Uses Cooper Black when installed on the visitor's device;
   otherwise "Fraunces" (free Google font) in its soft, heavy
   style, which looks very close. Tamil uses Hind Madurai.
   ========================================================= */
html { font-synthesis: none; }
body, button, input, select, textarea {
  font-family: var(--font-body);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  font-weight: 600;
  letter-spacing: 0.005em;
}
h1, h2, h3, h4, h5, h6, .brand__name, .btn, .wb__title, .qw, .topper-row__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 900; letter-spacing: 0;
}
strong, b { font-weight: 800; }
:lang(ta), [lang="ta"] { font-variation-settings: normal; }

/* Admissions: Google Form */
.docs-only { max-width: 760px; }
.gform-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); max-width: 900px; margin-inline: auto; }
.gform-card__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; color: #fff;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.6px, transparent 2px), linear-gradient(120deg, var(--green-900), var(--purple)); background-size: 22px 22px, 100% 100%; }
.gform-card__head h3 { color: #fff; margin: 0; font-size: 1.25rem; }
.gform-card__head p { margin: 0.15rem 0 0; opacity: 0.85; font-size: 0.92rem; }
.gform-card__head .btn { margin-left: auto; }
.gform-card__icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.gform-frame iframe { display: block; width: 100%; height: 900px; border: 0; background: var(--paper); }
@media (max-width: 600px) { .gform-card__head .btn { margin-left: 0; width: 100%; justify-content: center; } .gform-frame iframe { height: 1100px; } }

/* 5 higher secondary groups */
.streams__grid--5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stream { position: relative; }
.stream__code { position: absolute; top: -12px; right: 14px; background: var(--marigold); color: var(--green-900); font-weight: 800; font-size: 0.85rem; border-radius: 999px; padding: 0.15rem 0.7rem; box-shadow: 0 6px 12px -8px rgba(0,0,0,0.5); }
.stream__emoji { display: block; font-size: 1.8rem; margin-bottom: 0.5rem; }
.stream small { display: block; margin-top: 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--green-700); }

/* Proverb: Hard work never fails */
.proverb__card { position: relative; margin: 0 auto; max-width: 820px; padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.4rem, 4vw, 3rem) 2rem; border-radius: 28px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(6px); box-shadow: 0 30px 50px -30px rgba(0,0,0,0.7); }
.proverb__card::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--marigold), #ffd976); }
.proverb__icon { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: #fff; box-shadow: 0 0 0 4px var(--marigold), 0 12px 20px -8px rgba(0,0,0,0.6); }
.proverb__en { margin: 0.4rem 0 0.4rem; color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; }
.proverb__ta { margin: 0; font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.4rem); color: #fff; line-height: 1.4; }
.proverb__kural { margin: 1.8rem auto 0; max-width: 34rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(0,0,0,0.18); border-left: 4px solid var(--marigold); text-align: left; }
.proverb__kural p { margin: 0; font-family: "Hind Madurai", "Noto Sans Tamil", sans-serif; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; color: #fff; }
.proverb__kural cite { display: block; margin-top: 0.4rem; font-style: normal; color: #ffd976; font-weight: 700; font-size: 0.95rem; }
.proverb__meaning { margin-top: 1rem; font-style: italic; color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* Home: award section */
.award__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.award__photo { position: relative; margin: 0; }
.award__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 35%; border-radius: 26px; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--marigold), 0 30px 50px -30px rgba(0,0,0,0.6); }
.award__badge { position: absolute; bottom: -18px; right: -12px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: var(--marigold); box-shadow: 0 0 0 5px #fff, 0 14px 24px -10px rgba(0,0,0,0.5); }
.award__eyebrow { margin: 0.2rem 0 0.2rem; color: var(--marigold-600, #a86f0a); font-weight: 800; letter-spacing: 0.04em; }
.award__text h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 0.8rem; }
.award__ta { color: var(--muted); }
@media (max-width: 820px) { .award__inner { grid-template-columns: 1fr; } .award__photo { max-width: 420px; margin-inline: auto; } }
.proverb .quotes__title { margin-bottom: 3.4rem; }
.proverb__en { margin-top: 0.6rem; font-family: var(--font-display); font-weight: 900; }
.proverb__kural { text-align: center; border-left: 0; border-top: 3px solid var(--marigold); }

/* Admissions: QR code card */
.qr-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; max-width: 900px; margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-card__code { position: relative; width: clamp(200px, 30vw, 280px); padding: 14px; border-radius: 22px; background: #fff;
  box-shadow: 0 0 0 3px var(--marigold), 0 20px 36px -22px rgba(10,61,61,0.6); }
.qr-card__code img { display: block; width: 100%; height: auto; border-radius: 10px; }
.qr-card__tag { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; background: var(--green-900); color: #fff;
  border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.82rem; font-weight: 700; border: 2px solid var(--marigold); }
.qr-card__text h3 { margin: 0 0 0.8rem; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.qr-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.7rem; counter-reset: qs; }
.qr-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 0.6rem; align-items: start; }
.qr-steps li > span:first-child { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; font-size: 1.1rem; }
.qr-steps .ta { display: block; grid-column: 2; margin: 0; font-size: 0.85rem; }
.qr-card__or { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.92rem; }
.qr-card__dl { display: inline-block; margin-left: 0.8rem; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 680px) { .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: left; } .qr-card__code { margin-bottom: 1rem; } .qr-card__dl { margin: 0.8rem 0 0; display: block; } }
.qr-steps li { display: flex; gap: 0.7rem; align-items: flex-start; }
.qr-steps__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; font-size: 1.1rem; }
.qr-steps__txt { line-height: 1.45; padding-top: 0.35rem; }
.qr-steps__txt .ta { display: block; font-size: 0.85rem; margin-top: 0.15rem; }

/* Floating WhatsApp button (all pages) — sits above the back-to-top arrow */
.wa-fab { position: fixed; right: 1.2rem; bottom: 5rem; z-index: 901; display: flex; align-items: center; gap: 0.45rem; text-decoration: none;
  background: #25D366; color: #fff; border-radius: 999px; padding: 0.7rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45);
  border: 2px solid #fff; transition: transform 0.2s, background 0.2s; font-weight: 700; font-size: 0.92rem; }
.wa-fab:hover, .wa-fab:focus-visible { background: #1ebe5b; transform: translateY(-3px); color: #fff; }
.wa-fab svg { display: block; }
.wa-fab__txt { padding-right: 0.45rem; }
@media (max-width: 600px) { .wa-fab { padding: 0.65rem; bottom: 4.6rem; right: 1rem; } .wa-fab__txt { display: none; } }

/* Home page "No.1 school in rural area" highlight */
.hero__no1 { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; margin-top: 0.7rem !important; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; padding: 0.55rem 1.2rem; border-radius: 999px;
  background: var(--marigold); color: var(--green-900); font-weight: 800; font-size: clamp(1rem, 2.6vw, 1.45rem); letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6); border: 2px solid #fff; }
.hero__no1 small { font-weight: 700; font-size: 0.8em; }

/* Home page promo video */
.promo-video__frame { max-width: 960px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #000;
  border: 4px solid var(--marigold); box-shadow: 0 24px 48px -20px rgba(10, 61, 61, 0.55); }
.promo-video__frame video { display: block; width: 100%; height: auto; aspect-ratio: 1138 / 640; background: #000; }
