/* ============================================================
   Advik Learning Centre — Design System
   Vintage / scholarly aesthetic: parchment, sepia ink, gold.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (from the logo) */
  --parchment:      #f3e8d2;
  --parchment-deep: #ead9bb;
  --paper:          #fbf4e4;
  --ink:            #3a2414;   /* espresso text */
  --sepia:          #5a3a22;   /* primary brown  */
  --coffee:         #7b4a2e;   /* heading brown  */
  --gold:           #b8860b;   /* burnt gold CTA */
  --gold-deep:      #9a6f0a;
  --kesari:         #e2711d;   /* saffron headings */
  --muted:          #6b513a;
  --line:           #c9b489;   /* hairline borders */
  --cream-card:     #fcf7ea;

  /* Type */
  --font-display: "Cinzel", Georgia, serif;
  --font-head:    "Cormorant Garamond", Georgia, serif;
  --font-body:    "Lora", Georgia, serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(58, 36, 20, 0.12);
  --shadow-sm: 0 4px 14px rgba(58, 36, 20, 0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  background-color: var(--parchment);
  /* layered: fibrous paper noise + faint dot grain + warm vignette */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(rgba(123, 74, 46, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(123, 74, 46, 0.022) 1px, transparent 1px);
  background-size: 140px 140px, 14px 14px, 22px 22px;
  background-position: 0 0, 0 0, 7px 11px;
  background-attachment: fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}
/* subtle edge vignette for an aged-paper feel */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 180px rgba(58, 36, 20, 0.13);
}
.site-header, main, section, footer { position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
a { color: var(--coffee); text-decoration: none; }
a:hover { color: var(--gold-deep); }
ul { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--sepia); line-height: 1.18; font-weight: 700; }
h2 { color: var(--kesari); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); text-align: center; }
.section-kicker {
  display: block; text-align: center; font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem;
  color: var(--gold-deep); margin-bottom: 0.6rem; font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section--tint { background: rgba(234, 217, 187, 0.45); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }

/* Ornamental divider — diamond flourish flanked by tapering rules */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  color: var(--gold); margin: 0.9rem auto 2.5rem; max-width: 340px;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold) 60%, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), var(--gold) 40%, transparent); }
.ornament span {
  font-size: 0.7rem; position: relative; width: 34px; height: 34px;
  display: grid; place-items: center; color: var(--gold);
}
/* diamond outline behind the glyph */
.ornament span::before {
  content: ""; position: absolute; inset: 4px; transform: rotate(45deg);
  border: 1px solid var(--gold); opacity: 0.7;
}

/* Vision statement — large pull-quote with a saffron opening mark */
.vision-quote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.55;
  color: var(--sepia); text-align: center; max-width: 800px;
  margin: 0 auto; padding: 0 1rem; position: relative;
}
.vision-quote::before {
  content: "\201C"; display: block; font-family: var(--font-display);
  font-size: 4rem; line-height: 0.6; color: var(--kesari); margin-bottom: 0.4rem;
}

/* Mission list — saffron-marked points */
.mission-list { max-width: 780px; margin: 0 auto; display: grid; gap: 1rem; }
.mission-list li { position: relative; padding-left: 2rem; line-height: 1.7; color: var(--ink); }
.mission-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0.15em; color: var(--kesari); font-size: 0.95rem;
}
.mission-list strong { color: var(--sepia); }

/* Founder — photo + bio */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem;
  align-items: start; max-width: 1000px; margin: 0 auto;
}
.founder-photo { text-align: center; position: sticky; top: 96px; }
.founder-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--cream-card);
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.founder-name { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 2px; }
.founder-name strong { font-family: var(--font-display); color: var(--sepia); font-size: 1.15rem; }
.founder-name span { color: var(--gold-deep); font-size: 0.85rem; letter-spacing: 0.03em; }
.founder-bio p { color: var(--ink); text-align: justify; }
/* at-a-glance credential chips */
.founder-creds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.founder-creds li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--cream-card); border: 1px solid var(--line); border-radius: 50px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--sepia); box-shadow: var(--shadow-sm);
}
.founder-creds li::before { content: "✦"; color: var(--kesari); font-size: 0.72rem; }
/* decorative drop-cap on the opening paragraph */
.founder-bio p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700; color: var(--kesari);
  font-size: 3.4rem; line-height: 0.8; padding: 0.1rem 0.6rem 0 0;
}
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; gap: 1.5rem; }
  .founder-photo { position: static; }
  .founder-photo img { max-width: 280px; margin: 0 auto; }
}

/* Message from Guru Maa */
.guru-card {
  display: block; width: 100%; max-width: 440px; margin: 0 auto;
  aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Core values — grid of cards */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 980px; margin: 0 auto;
}
.value-item {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 600; color: var(--sepia); line-height: 1.3;
}
.value-icon { width: 26px; height: 26px; color: #2e7d32; flex-shrink: 0; }

/* R&D — stacked research cards */
.rnd-list { max-width: 880px; margin: 0 auto; display: grid; gap: 1.25rem; }
.rnd-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.rnd-card .rnd-info h3 { margin-bottom: 0.4rem; }
.rnd-card .rnd-info p { color: var(--muted); margin: 0; }
.rnd-card .btn { flex-shrink: 0; }
@media (max-width: 620px) {
  .rnd-card { flex-direction: column; align-items: flex-start; }
  .rnd-card .btn { width: 100%; justify-content: center; }
}

/* Coming soon */
.coming-soon { text-align: center; padding: 3rem 0 1rem; }
.coming-soon .cs-badge {
  display: inline-block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.78rem; font-weight: 600; color: var(--gold-deep); background: var(--cream-card);
  border: 1px solid var(--line); border-radius: 50px; padding: 0.5rem 1.2rem; margin-bottom: 1.5rem;
}

/* A.D.V.I.K. acronym row */
.advik-acronym { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2rem; margin: 0 auto; }
.advik-item { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 110px; }
.advik-letter {
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1;
  background: linear-gradient(100deg, #2e7d32 42%, #8fd99a 50%, #2e7d32 58%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }
.advik-word { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--sepia); }
@media (max-width: 560px) {
  .advik-acronym { flex-direction: column; align-items: flex-start; gap: 0.9rem; max-width: 260px; }
  .advik-item { flex-direction: row; align-items: center; gap: 0.9rem; min-width: 0; }
  .advik-letter { font-size: 2.6rem; width: 1.3em; text-align: center; }
}
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.6rem; border-radius: 50px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.2s ease; text-align: center;
}
.btn { position: relative; overflow: hidden; }
/* shine sweep on hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::after { left: 140%; }
.btn--primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #fff;
  box-shadow: 0 6px 18px rgba(184,134,11,0.35);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,134,11,0.45); }
.btn--ghost { background: transparent; color: var(--sepia); border-color: var(--sepia); }
.btn--ghost:hover { background: var(--sepia); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--sepia); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--green { background: linear-gradient(180deg, #3a9b41, #2e7d32); color: #fff; box-shadow: 0 6px 18px rgba(46,125,50,0.32); }
.btn--green:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(46,125,50,0.42); }

/* ============================================================
   Header / Navbar
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 232, 210, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 52px; width: 52px; border-radius: 50%; border: 2px solid var(--sepia); padding: 3px; background: var(--paper); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--sepia); letter-spacing: 0.04em; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; color: var(--sepia); font-size: 0.98rem; position: relative; }
.nav-links a:not(.nav-cta).active::after,
.nav-links a:not(.nav-cta):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
}
.nav-links a.nav-cta {
  margin-left: 0.5rem; color: #fff;
  background: linear-gradient(180deg, #3a9b41, #2e7d32);
  box-shadow: 0 6px 18px rgba(46,125,50,0.32);
}
.nav-links a.nav-cta:hover { box-shadow: 0 10px 26px rgba(46,125,50,0.42); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; color: var(--sepia);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 5rem 0 4.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 130, 30, 0.16), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--parchment));
  border-bottom: 1px solid var(--line);
}
/* faint rotating sunburst rays behind the hero content */
.hero::before {
  content: ""; position: absolute; top: -260px; left: 50%; width: 760px; height: 760px;
  transform: translateX(-50%); pointer-events: none; opacity: 0.7;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(245,130,30,0.22) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  mask-image: radial-gradient(circle, #000 30%, transparent 68%);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.hero .container { position: relative; z-index: 1; }

.hero-logo {
  width: 184px; height: 184px; margin: 0 auto 1.4rem; border-radius: 50%;
  padding: 10px; background: var(--paper);
  border: 8px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(251,244,228,0.6), 0 0 52px rgba(184,134,11,0.42), var(--shadow);
  object-fit: cover; animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--coffee), var(--sepia) 55%, var(--ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sanskrit { font-family: var(--font-head); font-style: italic; font-size: 1.7rem; color: #2e7d32; margin-top: 0.5rem; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); margin-top: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: center; margin-top: 1.4rem; color: var(--sepia); font-weight: 600; }
.hero .hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Highlights bar */
.highlights {
  background:
    radial-gradient(circle at 15% 0%, rgba(184,134,11,0.18), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(184,134,11,0.14), transparent 45%),
    linear-gradient(180deg, #5a3a22, #4a2e1a);
  color: var(--paper); border-top: 1px solid rgba(184,134,11,0.3); border-bottom: 1px solid rgba(184,134,11,0.3);
}
.highlights .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.highlight { text-align: center; position: relative; }
.highlight + .highlight::before {
  content: ""; position: absolute; left: -0.75rem; top: 50%; transform: translateY(-50%);
  height: 38px; width: 1px; background: linear-gradient(180deg, transparent, rgba(184,134,11,0.5), transparent);
}
.highlight strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #fff; letter-spacing: 0.04em; }
.highlight small { color: rgba(251, 244, 228, 0.72); font-size: 0.82rem; }

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fffaf0, var(--cream-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* gold accent bar that slides in along the top edge on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(184,134,11,0.22), rgba(184,134,11,0.10));
  color: #2e7d32; margin-bottom: 1rem; transition: transform 0.25s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-3deg); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

/* Course card */
.course-card { display: flex; flex-direction: column; }
.course-card .tag {
  align-self: flex-start; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em;
  background: rgba(90, 58, 34, 0.1); color: #2e7d32; padding: 0.3rem 0.7rem; border-radius: 50px; margin-bottom: 0.9rem; font-weight: 700;
}
.course-card ul { margin: 1rem 0 1.3rem; }
.course-card li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; color: var(--muted); }
.course-card li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.course-card .meta { display: flex; gap: 1.2rem; font-size: 0.85rem; color: var(--sepia); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; }
.course-card .meta b { display: block; font-family: var(--font-display); }

/* Facilities gallery */
/* 9:16 feature + two equal squares beside it + remaining cards filling the rest */
.gallery {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: 1fr 1fr;
  gap: 1.1rem; height: clamp(400px, 46vw, 540px);
}
.gallery-feature { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 9 / 16; height: 100%; width: auto; }
.gallery-square { aspect-ratio: 1 / 1; height: 100%; width: auto; }
.gallery-rest {
  grid-column: 3; grid-row: 1 / 3;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.1rem;
}
.gallery-item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gallery-item img, .gallery-ph {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s ease;
}
.gallery-item:hover img, .gallery-item:hover .gallery-ph { transform: scale(1.08); }
/* placeholder fill — replace the .gallery-ph div with an <img> to use a real photo */
.gallery-ph {
  display: grid; place-items: center; color: rgba(255,255,255,0.85);
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(0,0,0,0.05) 0deg 4deg, transparent 4deg 12deg),
    linear-gradient(150deg, var(--coffee), var(--sepia) 60%, var(--ink));
}
.gallery-ph svg { width: 46px; height: 46px; opacity: 0.85; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.1rem 0.9rem;
  color: #fff; font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.03em;
  background: linear-gradient(0deg, rgba(58,36,20,0.9), rgba(58,36,20,0.35) 60%, transparent);
}
/* Science lab equipment gallery */
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.lab-grid .gallery-item { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .lab-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .lab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  /* single column — every card stacked one below another */
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery-feature,
  .gallery-square { grid-column: auto; grid-row: auto; width: 100%; max-width: 340px; margin: 0 auto; height: auto; }
  .gallery-feature { aspect-ratio: 9 / 16; }
  .gallery-square { aspect-ratio: 1 / 1; }
  .gallery-rest {
    grid-column: auto; grid-row: auto;
    grid-template-columns: 1fr; grid-template-rows: none; gap: 1.1rem;
    width: 100%; max-width: 340px; margin: 0 auto;
  }
  .gallery-rest .gallery-item { aspect-ratio: 1 / 1; }
}

/* Faculty cards */
.faculty-card { text-align: center; }
.faculty-avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: 2.1rem; color: #fff; letter-spacing: 0.03em;
  background: linear-gradient(150deg, var(--coffee), var(--sepia) 60%, var(--ink));
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(58,36,20,0.22);
}
.faculty-avatar img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.faculty-role {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 700; color: var(--gold-deep); background: rgba(184,134,11,0.12);
  padding: 0.28rem 0.7rem; border-radius: 50px; margin-bottom: 0.8rem;
}
.faculty-qual { font-weight: 600; color: var(--sepia); margin-bottom: 0.2rem; }
.faculty-exp { color: var(--muted); font-size: 0.9rem; }
.faculty-qual + .faculty-exp { margin-top: 0.1rem; }

/* Feature list with check */
.feature { display: flex; gap: 1rem; }
.feature .tick { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(184,134,11,0.14); color: var(--gold-deep); display: grid; place-items: center; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.feature p { color: var(--muted); margin: 0; }

/* ============================================================
   Stats / counters
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat {
  padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fffaf0, var(--cream-card)); box-shadow: var(--shadow-sm);
  position: relative;
}
.stat::before {
  content: "✦"; position: absolute; top: 10px; right: 12px; color: var(--line); font-size: 0.8rem;
}
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-deep); font-weight: 700; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.quote {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 4rem; color: var(--line);
  position: absolute; top: -0.5rem; left: 1rem; line-height: 1;
}
.quote p { font-family: var(--font-head); font-size: 1.18rem; font-style: italic; color: var(--ink); position: relative; }
.quote .author { margin-top: 1rem; font-family: var(--font-display); font-size: 0.95rem; color: var(--sepia); }
.quote .author small { display: block; font-family: var(--font-body); color: var(--muted); font-style: normal; }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 0.6rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(184,134,11,0.18), transparent 50%),
    var(--sepia);
  color: var(--paper); text-align: center; border-radius: var(--radius);
  padding: 3rem 1.5rem; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-band p { color: rgba(251,244,228,0.85); max-width: 540px; margin: 0.8rem auto 1.8rem; }

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
  text-align: center; padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--paper), var(--parchment));
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-header p { color: var(--muted); margin-top: 0.5rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; letter-spacing: 0.05em; }

/* ============================================================
   Contact / Form
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--sepia); margin-bottom: 0.35rem; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hidden { position: absolute; left: -5000px; }
.form-section-title {
  font-size: 1.1rem; color: var(--kesari); margin: 2rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }
.form-check { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.form-check input { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.info-block { margin-bottom: 1.6rem; display: flex; gap: 1rem; }
.info-block .info-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(184,134,11,0.12); color: var(--gold-deep); display: grid; place-items: center; }
.info-block h4 { font-family: var(--font-display); font-size: 1rem; color: var(--sepia); margin-bottom: 0.15rem; }
.info-block p, .info-block a { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(251,244,228,0.8); padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.05em; }
.site-footer a { color: rgba(251,244,228,0.8); }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 1rem; line-height: 1.1; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.2rem; letter-spacing: 0.05em; }
.footer-brand small { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(251,244,228,0.7); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(251,244,228,0.15); margin-top: 2.5rem; padding-top: 1.3rem; text-align: center; font-size: 0.85rem; color: rgba(251,244,228,0.55); }

/* ============================================================
   Instagram reels — centered on desktop, swipe slider on mobile
   ============================================================ */
.ig-reels {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem;
}
.ig-reels > .instagram-media { max-width: 326px !important; min-width: 300px !important; }
/* force all rendered embeds to one height (iframe clips the overflow) */
.ig-reels .instagram-media,
.ig-reels iframe.instagram-media-rendered {
  height: 700px !important; min-height: 560px !important;
  border-radius: 3px; overflow: hidden;
}
@media (max-width: 720px) {
  .ig-reels {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: 1rem; margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem;
    scrollbar-width: none;
  }
  .ig-reels::-webkit-scrollbar { display: none; }
  .ig-reels > .instagram-media { flex: 0 0 auto; scroll-snap-align: center; }
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* ============================================================
   Parent portal (login / dashboard / admin)
   ============================================================ */
.portal { max-width: 960px; margin: 0 auto; }
.portal-narrow { max-width: 460px; margin: 0 auto; }
.portal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.6rem;
}
.portal-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.portal-head .muted { color: var(--muted); }

.alert { padding: 0.85rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.95rem; }
.alert--error { background: #f6e0d6; color: #7a2e12; border: 1px solid #e0b09c; }
.alert--ok { background: #e3efd9; color: #3c5a25; border: 1px solid #bcd6a3; }
.alert--info { background: rgba(184,134,11,0.12); color: var(--gold-deep); border: 1px solid var(--line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; background: var(--cream-card); min-width: 480px; }
.table th, .table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  background: rgba(90,58,34,0.08); font-family: var(--font-display); color: var(--sepia);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(184,134,11,0.06); }
.score { font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
/* click-to-expand truncated cells (test name, remarks) */
.table td.truncate {
  max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.table td.truncate.is-open { white-space: normal; overflow: visible; word-break: break-word; }
/* parent remarks: show more / show less */
.rmk-cell { max-width: 340px; }
.rmk-toggle {
  display: inline; margin-left: 0.35rem; padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); cursor: pointer;
  white-space: nowrap;
}
.rmk-toggle:hover { text-decoration: underline; }
.tbl-edit, .tbl-del {
  display: inline-grid; place-items: center; vertical-align: middle;
  width: 32px; height: 32px; padding: 0;
  border-radius: 6px; cursor: pointer; background: none; transition: all 0.15s ease;
}
.tbl-edit svg, .tbl-del svg { width: 16px; height: 16px; }
.tbl-edit { border: 1px solid var(--line); color: var(--coffee); }
.tbl-edit:hover { background: rgba(184,134,11,0.12); border-color: var(--gold); color: var(--gold-deep); }
.tbl-del { border: 1px solid #e0b09c; color: #9a2a12; margin-left: 0.4rem; }
.tbl-del:hover { background: #9a2a12; color: #fff; border-color: #9a2a12; }
.table td.cell-action { text-align: right; white-space: nowrap; }

/* Clickable name in a list row */
.row-link {
  background: none; border: none; padding: 0; font: inherit; color: var(--coffee);
  cursor: pointer; text-align: left; font-weight: 600;
}
.row-link:hover { color: var(--gold-deep); text-decoration: underline; }

/* Detail (view) list */
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 0.5rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-list dd { margin: 0; color: var(--ink); font-weight: 600; }
.btn--danger { background: #fff; color: #9a2a12; border: 1.5px solid #d99; }
.btn--danger:hover { background: #9a2a12; color: #fff; border-color: #9a2a12; }

/* Searchable student picker (combobox) */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; padding: 0.3rem; margin: 0;
}
.combo-list li { padding: 0.55rem 0.7rem; border-radius: 6px; cursor: pointer; list-style: none; }
.combo-list li:hover { background: rgba(184,134,11,0.12); }
.combo-list li small { color: var(--muted); }
.combo-empty { padding: 0.6rem 0.7rem; color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.admin-card .table th, .admin-card .table td { padding: 0.7rem 0.65rem; white-space: nowrap; }
.hidden { display: none !important; }
.spinner { text-align: center; color: var(--muted); padding: 2rem 0; }
@media (max-width: 760px) { .admin-grid { grid-template-columns: 1fr; } }

/* Admin two-column main: marks form (left) + recent marks (right) */
.admin-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.admin-main { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .admin-main { grid-template-columns: 1fr; } }

/* Modal / popup */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 1rem 2rem; overflow-y: auto;
  background: rgba(58, 36, 20, 0.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }
.modal {
  width: 100%; max-width: 460px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem; transform: translateY(-14px); transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.modal-head h3 { font-size: 1.3rem; }
.modal-head p { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }
.modal-close {
  flex: none; background: none; border: none; cursor: pointer; color: var(--muted);
  width: 34px; height: 34px; border-radius: 8px; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.modal-close:hover { background: rgba(58,36,20,0.08); color: var(--ink); }

/* ============================================================
   Scrolling offerings ribbon (marquee)
   ============================================================ */
.marquee-link { display: block; cursor: pointer; }
.marquee {
  background: linear-gradient(180deg, var(--paper), var(--parchment));
  border-bottom: 1px solid var(--line); overflow: hidden; padding: 0.85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); color: var(--coffee); letter-spacing: 0.1em;
  font-size: 1rem; display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Page header flourish
   ============================================================ */
.page-header { position: relative; overflow: hidden; }
.page-header::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; pointer-events: none; opacity: 0.4;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(184,134,11,0.06) 0deg 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 65%);
  mask-image: radial-gradient(circle, #000 25%, transparent 65%);
}
.page-header > .container { position: relative; z-index: 1; }

/* ============================================================
   Scroll reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-logo, .hero::before, .page-header::before, .advik-letter { animation: none !important; }
  .advik-letter { background-position: 50% center; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats, .highlights .container { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--parchment); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }
  .nav-cta { margin: 0.75rem 0 0; justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
