/* =========================================================
   SPED Foundation — Royal Emerald & Gold theme
   ========================================================= */
:root {
  --em-900: #04231a;
  --em-800: #073326;
  --em-700: #0b4433;
  --em-600: #115a43;
  --em-500: #17775a;
  --gold-1: #f7dc8b;
  --gold-2: #e2b54a;
  --gold-3: #c4932a;
  --gold-4: #9c7019;
  --cream: #fdf7e9;
  --cream-2: #f8efd9;
  --text: #22302b;
  --muted: #5f6d67;
  --grad-gold: linear-gradient(135deg, #f7dc8b 0%, #e2b54a 40%, #c4932a 75%, #f0cf74 100%);
  --grad-em: linear-gradient(135deg, #04231a 0%, #0b4433 55%, #115a43 100%);
  --shadow: 0 18px 45px -18px rgba(4, 35, 26, .35);
  --shadow-lg: 0 30px 70px -25px rgba(4, 35, 26, .5);
  --radius: 22px;
  --kolam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e2b54a' stroke-width='1'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24 Z'/%3E%3Ccircle cx='24' cy='24' r='3'/%3E%3C/g%3E%3Cg fill='%23e2b54a'%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='48' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='48' r='1.6'/%3E%3Ccircle cx='48' cy='48' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: "Poppins", "Noto Sans Tamil", system-ui, sans-serif;
  font-weight: 400; color: var(--text); line-height: 1.8; background: #fff; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.lang-ta { font-family: "Noto Sans Tamil", "Poppins", system-ui, sans-serif; }
body.lang-ta p, body.lang-ta li { font-size: .96rem; line-height: 1.95; }

body:not(.lang-ta) .ta { display: none !important; }
body.lang-ta .en { display: none !important; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--em-800); line-height: 1.25; }
body.lang-ta h1, body.lang-ta h2, body.lang-ta h3, body.lang-ta h4, body.lang-ta h5, body.lang-ta h6 { line-height: 1.5; }
a { color: var(--em-600); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-3); }
::selection { background: var(--gold-2); color: var(--em-900); }

.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { background: linear-gradient(135deg, #d4a43a 0%, #b5851f 50%, #8f6514 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-cream { background: var(--cream); }
.bg-emerald { background: var(--grad-em); color: rgba(255,255,255,.8); position: relative; }
.bg-emerald h1, .bg-emerald h2, .bg-emerald h3, .bg-emerald h4, .bg-emerald h5, .bg-emerald h6 { color: #fff; }
.pattern { position: relative; isolation: isolate; }
.pattern::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .07; z-index: -1; pointer-events: none; }

.section { padding: 6.5rem 0; position: relative; }

/* ---------- Section heading ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-3); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--grad-gold); transform: rotate(45deg); border-radius: 2px; }
.bg-emerald .kicker { color: var(--gold-1); }
body.lang-ta .kicker { letter-spacing: .04em; font-size: .86rem; }
.title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
body.lang-ta .title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: 0; }
.subtitle { color: var(--muted); font-size: 1.05rem; max-width: 700px; }
.bg-emerald .subtitle { color: rgba(255,255,255,.72); }
.text-center .subtitle { margin-inline: auto; }
.ornament { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.text-center .ornament { justify-content: center; }
.ornament span { height: 3px; width: 56px; border-radius: 3px; background: var(--grad-gold); }
.ornament i { width: 12px; height: 12px; background: var(--grad-gold); transform: rotate(45deg); border-radius: 2px; }
.ornament span:last-child { width: 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--em-900); color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 500; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold-1); }
.topbar i { color: var(--gold-2); }

/* ---------- Navbar ---------- */
.navbar-rich {
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px); padding: .85rem 0;
  box-shadow: 0 4px 24px rgba(4,35,26,.06); transition: padding .35s, box-shadow .35s;
}
.navbar-rich::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-gold); }
.navbar-rich.scrolled { padding: .45rem 0; box-shadow: 0 10px 30px rgba(4,35,26,.12); }
.navbar-rich .navbar-brand img { height: 60px; transition: height .35s; }
.navbar-rich.scrolled .navbar-brand img { height: 48px; }
.navbar-rich .nav-link { font-weight: 600; font-size: .92rem; color: var(--em-800); padding: .55rem .9rem !important; border-radius: 50px; transition: all .3s; }
.navbar-rich .nav-link:hover { color: var(--gold-3); }
.navbar-rich .nav-link.active { background: var(--em-800); color: var(--gold-1); }
body.lang-ta .navbar-rich .nav-link { font-size: .85rem; padding: .5rem .65rem !important; }

.lang-switch { display: inline-flex; padding: 4px; border-radius: 50px; background: var(--cream); border: 1px solid rgba(196,147,42,.35); }
.lang-switch button { border: 0; background: none; padding: .35rem .95rem; border-radius: 50px; font-size: .82rem; font-weight: 700; color: var(--em-700); transition: all .3s; }
.lang-switch button.active { background: var(--grad-em); color: var(--gold-1); box-shadow: 0 6px 14px rgba(4,35,26,.3); }

/* ---------- Buttons ---------- */
.btn-rich {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 700; font-size: .95rem;
  padding: .95rem 2rem; border-radius: 50px; border: 0; transition: all .35s; position: relative; overflow: hidden;
}
.btn-gold { background: var(--grad-gold); background-size: 200% 200%; color: var(--em-900); box-shadow: 0 12px 28px -8px rgba(196,147,42,.6); }
.btn-gold:hover { background-position: 100% 0; color: var(--em-900); transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(196,147,42,.75); }
.btn-emerald { background: var(--grad-em); color: var(--gold-1); box-shadow: 0 12px 28px -8px rgba(4,35,26,.55); }
.btn-emerald:hover { color: #fff; transform: translateY(-3px); }
.btn-outline-gold { background: transparent; color: #fff; border: 2px solid var(--gold-2); }
.btn-outline-gold:hover { background: var(--gold-2); color: var(--em-900); transform: translateY(-3px); }
.btn-sm-rich { padding: .6rem 1.3rem; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-em); color: rgba(255,255,255,.8); padding: 6.5rem 0 10rem; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 85% 25%, rgba(226,181,74,.28), transparent 38%), radial-gradient(circle at 5% 95%, rgba(23,119,90,.6), transparent 45%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1.1rem .5rem .5rem; border-radius: 50px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(247,220,139,.35); font-size: .85rem; font-weight: 600; color: var(--gold-1);
}
.hero-badge b { background: var(--grad-gold); color: var(--em-900); border-radius: 50px; padding: .15rem .7rem; font-weight: 800; font-size: .78rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 1.6rem 0 1.2rem; }
body.lang-ta .hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: 0; line-height: 1.35; }
.hero .alt-tagline { font-weight: 600; color: var(--gold-1); font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero .alt-tagline.en-tag { font-size: .88rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,220,139,.85); }
.hero p.lead { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 580px; }

.emblem-wrap { position: relative; display: flex; justify-content: center; padding: 1rem; }
.emblem-ring {
  position: absolute; width: 112%; aspect-ratio: 1; max-width: 520px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border: 1px dashed rgba(247,220,139,.35); animation: spin 60s linear infinite;
}
.emblem-ring::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--grad-gold); transform: rotate(45deg); border-radius: 3px; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.emblem {
  position: relative; width: min(400px, 82vw); aspect-ratio: 1; border-radius: 50%; padding: 10px; background: var(--grad-gold);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 14px rgba(247,220,139,.08);
}
.emblem-inner { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 19%; }
.emblem-inner img { width: 100%; height: auto; }
.seal {
  position: absolute; bottom: -2%; right: -4%; width: 118px; height: 118px; border-radius: 50%; background: var(--grad-em);
  border: 3px solid var(--gold-2); display: grid; place-items: center; text-align: center; color: var(--gold-1); box-shadow: var(--shadow-lg);
}
.seal strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.seal small { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; display: block; }

/* Stats */
.stats { margin-top: -6.5rem; position: relative; z-index: 5; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-lg); height: 100%;
  display: flex; align-items: center; gap: 1.1rem; position: relative; overflow: hidden; transition: transform .35s;
}
.stat-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-gold); }
.stat-card:hover { transform: translateY(-6px); }
.stat-card .ic { width: 60px; height: 60px; flex-shrink: 0; border-radius: 16px; background: var(--grad-em); color: var(--gold-1); display: grid; place-items: center; font-size: 1.6rem; }
.stat-card .num { font-size: 2.3rem; font-weight: 800; color: var(--em-800); line-height: 1; }
.stat-card .lbl { font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: .3rem; }

/* ---------- About ---------- */
.about-visual { position: relative; padding: 0 2rem 2rem 0; }
.about-panel { background: var(--grad-em); border-radius: 28px; padding: 3rem 2.5rem; color: rgba(255,255,255,.85); position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.about-panel::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.about-panel .big { font-size: 7rem; font-weight: 800; line-height: .9; }
.about-panel h4 { color: #fff; font-weight: 700; margin: .8rem 0; }
.about-panel ul { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.about-panel li { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.12); font-weight: 500; font-size: .93rem; }
.about-panel li b { color: var(--gold-1); min-width: 3.2rem; font-weight: 800; }
.about-float {
  position: absolute; right: 0; bottom: 0; background: #fff; border-radius: 18px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .9rem; border: 1px solid rgba(196,147,42,.3);
}
.about-float .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; color: var(--em-900); font-size: 1.4rem; }
.about-float strong { display: block; font-weight: 700; color: var(--em-800); font-size: .95rem; }
.about-float small { color: var(--muted); font-weight: 500; }
.lead-strong { font-size: 1.12rem; font-weight: 500; color: var(--em-800); }

/* ---------- SPED pillars ---------- */
.pillar {
  background: #fff; border-radius: var(--radius); padding: 2.4rem 2rem; height: 100%; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: all .4s; border: 1px solid rgba(196,147,42,.15);
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-gold); }
.pillar:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.pillar .letter {
  width: 82px; height: 82px; border-radius: 22px; background: var(--grad-em); display: grid; place-items: center;
  font-size: 2.6rem; font-weight: 800; margin-bottom: 1.4rem; box-shadow: 0 14px 28px -10px rgba(4,35,26,.6);
}
.pillar .letter span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: .2rem; }
.pillar .ta-word { color: var(--gold-3); font-weight: 600; font-size: .92rem; font-family: "Noto Sans Tamil", sans-serif; }
.pillar p { color: var(--muted); font-size: .93rem; margin: 1rem 0 0; }
.pillar .ghost { position: absolute; right: -6px; bottom: -36px; font-size: 9rem; font-weight: 800; color: var(--em-800); opacity: .04; line-height: 1; }

/* ---------- Vision & mission ---------- */
.vision-card {
  border-radius: 28px; padding: 3rem 2.6rem; position: sticky; top: 110px; background: var(--grad-em); color: rgba(255,255,255,.88);
  position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg);
}
.vision-card::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.vision-card::after { content: "\201C"; position: absolute; right: 24px; top: -10px; font-size: 12rem; font-weight: 800; line-height: 1; color: var(--gold-2); opacity: .18; }
.vision-card h3 { color: #fff; font-weight: 800; }
.vision-card .quote { font-size: 1.22rem; font-weight: 500; line-height: 1.7; color: #fff; }
body.lang-ta .vision-card .quote { font-size: 1.05rem; line-height: 1.95; }
.icon-box { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--grad-gold); color: var(--em-900); margin-bottom: 1.4rem; box-shadow: 0 12px 26px -10px rgba(196,147,42,.7); }
.icon-box.em { background: var(--grad-em); color: var(--gold-1); box-shadow: 0 12px 26px -10px rgba(4,35,26,.6); }

.mission-card { background: #fff; border-radius: 28px; padding: 3rem 2.6rem; height: 100%; box-shadow: var(--shadow); border: 1px solid rgba(196,147,42,.18); }
.mission-card h3 { font-weight: 800; }
.mission-list { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.mission-list li { display: flex; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed rgba(196,147,42,.35); font-size: .95rem; font-weight: 500; }
.mission-list li:last-child { border-bottom: 0; }
.mission-list li::before {
  counter-increment: m; content: counter(m, decimal-leading-zero); flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: var(--cream-2); color: var(--gold-4); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}

/* Aspirations */
.asp-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(247,220,139,.22); border-radius: var(--radius); padding: 2rem;
  height: 100%; transition: all .35s; backdrop-filter: blur(4px);
}
.asp-card:hover { background: rgba(255,255,255,.1); border-color: var(--gold-2); transform: translateY(-6px); }
.asp-card .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--em-900); font-size: 1.4rem; margin-bottom: 1.2rem; }
.asp-card p { color: rgba(255,255,255,.85); margin: 0; font-weight: 500; font-size: .96rem; }

/* ---------- Values ---------- */
.value {
  display: flex; align-items: center; gap: .9rem; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; height: 100%;
  box-shadow: 0 10px 26px -14px rgba(4,35,26,.3); border: 1px solid rgba(196,147,42,.2); font-weight: 600; font-size: .93rem; color: var(--em-800);
  transition: all .3s;
}
.value:hover { transform: translateY(-4px); border-color: var(--gold-2); }
.value .ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-em); color: var(--gold-1); font-size: 1.2rem; }

/* ---------- Focus areas ---------- */
.focus-card {
  background: #fff; border-radius: var(--radius); padding: 2.2rem 1.9rem; height: 100%; position: relative; overflow: hidden;
  border: 1px solid rgba(196,147,42,.18); box-shadow: 0 12px 30px -18px rgba(4,35,26,.35); transition: all .45s; isolation: isolate;
}
.focus-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-em); opacity: 0; transition: opacity .45s; z-index: -1; }
.focus-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.focus-card:hover::before { opacity: 1; }
.focus-card .ic {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.3rem;
  background: var(--cream-2); color: var(--em-700); box-shadow: 0 0 0 6px rgba(226,181,74,.18); transition: all .45s;
}
.focus-card:hover .ic { background: var(--grad-gold); color: var(--em-900); box-shadow: 0 0 0 6px rgba(247,220,139,.2); }
.focus-card .no { position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2.2rem; font-weight: 800; color: rgba(4,35,26,.07); transition: color .45s; }
.focus-card:hover .no { color: rgba(247,220,139,.25); }
.focus-card h5 { font-weight: 700; font-size: 1.1rem; transition: color .45s; }
.focus-card p { color: var(--muted); font-size: .9rem; margin: 0; transition: color .45s; }
.focus-card:hover h5 { color: var(--gold-1); }
.focus-card:hover p { color: rgba(255,255,255,.82); }

/* ---------- Programmes ---------- */
.prog-card {
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(247,220,139,.25);
  border-radius: var(--radius); padding: 2rem 1.7rem; height: 100%; position: relative; transition: all .35s;
}
.prog-card:hover { transform: translateY(-8px); border-color: var(--gold-2); box-shadow: 0 25px 50px -20px rgba(0,0,0,.6); }
.prog-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.prog-card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-gold); color: var(--em-900); display: grid; place-items: center; font-size: 1.45rem; }
.prog-card .no { font-weight: 800; font-size: 1.6rem; color: rgba(247,220,139,.3); }
.prog-card h5 { font-weight: 700; color: #fff; font-size: 1.1rem; }
.prog-card p { color: rgba(255,255,255,.72); font-size: .9rem; margin: 0; }

/* ---------- Experience ---------- */
.exp-chip {
  display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid rgba(196,147,42,.3); border-radius: 50px;
  padding: .6rem 1.15rem; margin: .3rem; font-weight: 600; font-size: .88rem; color: var(--em-800); box-shadow: 0 8px 20px -14px rgba(4,35,26,.4);
  transition: all .3s;
}
.exp-chip i { color: var(--gold-3); }
.exp-chip:hover { background: var(--em-800); color: var(--gold-1); border-color: var(--em-800); }
.exp-chip:hover i { color: var(--gold-1); }
.flood-box { background: var(--grad-em); border-radius: var(--radius); padding: 2rem; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate; }
.flood-box::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.flood-box h5 { color: var(--gold-1); font-weight: 700; }
.flood-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.2rem; }
.flood-years span { background: rgba(255,255,255,.08); border: 1px solid rgba(247,220,139,.35); border-radius: 14px; text-align: center; padding: .8rem .3rem; font-weight: 800; font-size: 1.15rem; color: #fff; }

/* ---------- Process ---------- */
.process { position: relative; }
@media (min-width: 992px) {
  .process::before { content: ""; position: absolute; top: 46px; left: 10%; right: 10%; height: 3px; background: var(--grad-gold); border-radius: 3px; opacity: .6; }
}
.step { text-align: center; position: relative; z-index: 1; }
.step .circle {
  width: 92px; height: 92px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--grad-em); color: var(--gold-1); display: grid; place-items: center;
  font-size: 2rem; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold-2), var(--shadow); position: relative; transition: transform .35s;
}
.step:hover .circle { transform: scale(1.08); }
.step .circle b { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-gold); color: var(--em-900); font-size: .82rem; font-weight: 800; display: grid; place-items: center; }
.step h6 { font-weight: 700; font-size: .98rem; color: var(--em-800); }

/* ---------- Governance ---------- */
.acc-card { display: flex; gap: 1rem; background: #fff; border-radius: 18px; padding: 1.4rem; height: 100%; box-shadow: 0 12px 30px -18px rgba(4,35,26,.35); border: 1px solid rgba(196,147,42,.18); }
.acc-card .ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--cream-2); color: var(--gold-4); display: grid; place-items: center; font-size: 1.35rem; }
.acc-card h6 { font-weight: 700; margin-bottom: .25rem; color: var(--em-800); }
.acc-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.legal-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid rgba(196,147,42,.25); }
.legal-card .head { background: var(--grad-em); padding: 1.8rem 2rem; position: relative; isolation: isolate; overflow: hidden; }
.legal-card .head::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .1; z-index: -1; }
.legal-card .head h5 { color: #fff; font-weight: 800; margin: 0; }
.legal-card .head small { color: var(--gold-1); font-weight: 600; }
.legal-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; border-bottom: 1px dashed rgba(196,147,42,.3); }
.legal-row:last-child { border-bottom: 0; }
.legal-row span:first-child { color: var(--muted); font-weight: 500; font-size: .88rem; }
.legal-row span:last-child { color: var(--em-800); font-weight: 700; text-align: right; font-size: .92rem; word-break: break-word; }

/* ---------- Leadership ---------- */
.leader { background: #fff; border-radius: 26px; overflow: hidden; text-align: center; box-shadow: var(--shadow); height: 100%; transition: all .4s; border: 1px solid rgba(196,147,42,.18); }
.leader:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.leader .band { height: 110px; background: var(--grad-em); position: relative; isolation: isolate; overflow: hidden; }
.leader .band::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .12; z-index: -1; }
.leader .mono {
  width: 112px; height: 112px; margin: -56px auto 1rem; border-radius: 50%; padding: 5px; background: var(--grad-gold); position: relative; z-index: 2;
  box-shadow: 0 16px 30px -12px rgba(4,35,26,.6);
}
.leader .mono span { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: var(--em-800); }
.leader .body { padding: 0 1.4rem 2rem; }
.leader h5 { font-weight: 700; font-size: 1.08rem; margin-bottom: .5rem; }
.leader .role { display: inline-block; background: var(--cream-2); color: var(--gold-4); font-weight: 700; font-size: .78rem; padding: .35rem .95rem; border-radius: 50px; letter-spacing: .04em; }

/* ---------- Commitment ---------- */
.commit {
  border-radius: 34px; padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-em); color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); border: 2px solid rgba(226,181,74,.5);
}
.commit::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.commit::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(247,220,139,.25); border-radius: 24px; pointer-events: none; }
.commit h2 { color: #fff; font-weight: 800; }
.commit p.body { max-width: 880px; margin: 0 auto; font-size: 1.06rem; font-weight: 500; }
.motto { display: inline-block; margin-top: 2rem; padding: 1rem 2rem; border-radius: 50px; background: var(--grad-gold); color: var(--em-900); font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.2rem); font-family: "Noto Sans Tamil", sans-serif; box-shadow: 0 14px 30px -12px rgba(196,147,42,.7); }
.motto-en { color: var(--gold-1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-top: 1rem; }

/* ---------- Partner ---------- */
.partner { background: var(--grad-gold); border-radius: 34px; padding: 3.5rem 3rem; position: relative; overflow: hidden; color: var(--em-900); box-shadow: 0 30px 60px -25px rgba(196,147,42,.7); }
.partner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 45px solid rgba(255,255,255,.18); }
.partner h2 { color: var(--em-900); font-weight: 800; }
.partner p { color: rgba(4,35,26,.82); font-weight: 500; }
.partner .kicker { color: var(--em-700); }
.partner .kicker::before { background: var(--em-800); }
.p-tags > span { display: inline-block; background: rgba(4,35,26,.1); border: 1px solid rgba(4,35,26,.18); padding: .35rem .9rem; border-radius: 50px; font-size: .82rem; font-weight: 600; margin: .2rem; }
.btn-dark-outline { background: transparent; color: var(--em-900); border: 2px solid var(--em-900); }
.btn-dark-outline:hover { background: var(--em-900); color: var(--gold-1); transform: translateY(-3px); }

/* ---------- Contact ---------- */
.contact-card { background: var(--grad-em); border-radius: 28px; padding: 2.8rem 2.4rem; height: 100%; color: #fff; position: relative; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.contact-card::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .08; z-index: -1; }
.contact-card h4 { color: #fff; font-weight: 800; }
.ci { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ci:last-child { border-bottom: 0; }
.ci .ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; background: var(--grad-gold); color: var(--em-900); display: grid; place-items: center; font-size: 1.25rem; }
.ci small { display: block; color: var(--gold-1); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
body.lang-ta .ci small { text-transform: none; letter-spacing: 0; }
.ci a, .ci span { color: #fff; font-weight: 500; }
.ci a:hover { color: var(--gold-1); }

.form-card { background: #fff; border-radius: 28px; padding: 2.8rem 2.4rem; height: 100%; box-shadow: var(--shadow); border: 1px solid rgba(196,147,42,.2); }
.form-card h4 { font-weight: 800; }
.form-card label { font-weight: 600; font-size: .88rem; color: var(--em-800); margin-bottom: .35rem; }
.form-card .form-control, .form-card .form-select { border-radius: 14px; padding: .85rem 1.1rem; border: 1.5px solid #e7e1d1; background: #fffdf8; font-size: .94rem; font-weight: 500; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--gold-2); box-shadow: 0 0 0 .22rem rgba(226,181,74,.2); background: #fff; }
.map-wrap { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; outline: 1px solid rgba(196,147,42,.35); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--em-900); color: rgba(255,255,255,.7); padding-top: 5rem; position: relative; isolation: isolate; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background-image: var(--kolam); opacity: .05; z-index: -1; }
.footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-gold); }
.footer h6 { color: var(--gold-1); font-weight: 700; font-size: 1rem; margin-bottom: 1.3rem; }
.footer a { color: rgba(255,255,255,.75); font-weight: 500; }
.footer a:hover { color: var(--gold-1); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .7rem; display: flex; gap: .6rem; }
.footer ul li i { color: var(--gold-2); }
.footer-logo { background: #fff; border-radius: 18px; padding: .8rem 1.1rem; display: inline-block; border: 3px solid var(--gold-2); }
.footer-logo img { height: 62px; }
.reg-pill { display: inline-block; background: rgba(247,220,139,.08); border: 1px solid rgba(247,220,139,.25); color: var(--gold-1); padding: .35rem .75rem; border-radius: 10px; font-size: .76rem; font-weight: 600; margin: .25rem .25rem 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 4rem; padding: 1.4rem 0; font-size: .85rem; font-weight: 500; }

/* Back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--grad-gold);
  color: var(--em-900); font-size: 1.3rem; font-weight: 800; box-shadow: 0 12px 26px -8px rgba(196,147,42,.7);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s; z-index: 1050;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .emblem-ring { animation: none; } }

@media (max-width: 991.98px) {
  .section { padding: 5rem 0; }
  .hero { padding: 4.5rem 0 9rem; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .emblem-wrap { margin-top: 3rem; }
  .navbar-collapse { padding: 1rem 0; }
  .navbar-rich .nav-link { margin: .15rem 0; }
}
@media (max-width: 575.98px) {
  .seal { width: 92px; height: 92px; } .seal strong { font-size: 1.5rem; }
  .about-visual { padding: 0; } .about-float { position: static; margin-top: 1rem; }
  .commit, .partner { padding: 2.6rem 1.4rem; border-radius: 24px; }
  .legal-row { flex-direction: column; gap: .1rem; padding: .9rem 1.4rem; } .legal-row span:last-child { text-align: left; }
  .flood-years { grid-template-columns: repeat(2, 1fr); }
}
