:root {
  --forest-950: #032b25;
  --forest-900: #063c2f;
  --forest-800: #07533d;
  --emerald-600: #078848;
  --emerald-500: #0c9b53;
  --leaf-500: #45cf24;
  --gold-300: #ebce70;
  --gold-200: #f4e3a3;
  --paper: #f7f9f5;
  --white: #ffffff;
  --ink: #13241f;
  --muted: #63736d;
  --line: #dce5df;
  --danger: #c74452;
  --shadow: 0 24px 70px rgba(4, 48, 38, .14);
  --radius-lg: 32px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", "Segoe UI", sans-serif; font-size: clamp(.94rem, .12vw + .91rem, 1rem); line-height: 1.65; }
html[lang="ta"] body { font-family: "Noto Sans Tamil", "Manrope", sans-serif; }
body.is-loading, body.nav-open, body.portal-open, body.mobile-more-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Newsreader", Georgia, serif; letter-spacing: -.04em; line-height: .98; }
html[lang="ta"] h1, html[lang="ta"] h2 { font-family: "Noto Sans Tamil", sans-serif; line-height: 1.2; letter-spacing: -.02em; }
h2 { margin-bottom: 24px; font-size: clamp(2.25rem, 3.6vw, 4.25rem); }
html[lang="ta"] h2 { font-size: clamp(2.1rem, 3.1vw, 3.65rem); letter-spacing: 0; }
h3 { line-height: 1.25; }
section[id] { scroll-margin-top: 105px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 500; top: 12px; left: 12px; padding: 10px 14px; color: white; background: var(--forest-950); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }

.site-loader { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; color: white; background: radial-gradient(circle at 50% 43%, rgba(11,112,74,.72), transparent 36%), linear-gradient(145deg, #032b25 0%, #064c39 54%, #032b25 100%); overflow: hidden; transition: opacity .42s ease, visibility .42s ease; }
.site-loader::before, .site-loader::after { content: ""; position: absolute; width: min(72vw, 680px); aspect-ratio: 1; border: 1px solid rgba(235,206,112,.14); border-radius: 50%; }
.site-loader::after { width: min(54vw, 510px); border-color: rgba(255,255,255,.09); }
.site-loader.loader-exit { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { position: relative; z-index: 2; display: flex; width: min(78vw, 310px); flex-direction: column; align-items: center; text-align: center; }
.loader-content img { width: clamp(150px, 22vw, 205px); filter: drop-shadow(0 16px 28px rgba(0,0,0,.2)); animation: loader-mark-in .58s cubic-bezier(.2,.8,.2,1) both; }
.loader-content p { margin: 20px 0 15px; color: rgba(255,255,255,.78); font-size: clamp(.58rem, 1.5vw, .68rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; animation: loader-copy-in .48s .16s ease both; }
.loader-content p span { color: var(--gold-300); }
.loader-track { width: 100%; height: 2px; background: rgba(255,255,255,.13); overflow: hidden; }
.loader-track span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-300), transparent); transform: translateX(-100%); animation: loader-progress .9s .12s ease-in-out both; }
.loader-orbit { position: absolute; width: min(44vw, 390px); aspect-ratio: 1; border-top: 1px solid rgba(235,206,112,.62); border-right: 1px solid transparent; border-radius: 50%; animation: loader-orbit 3s linear infinite; }
@keyframes loader-mark-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes loader-copy-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes loader-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes loader-orbit { to { transform: rotate(360deg); } }

.site-header { position: fixed; z-index: 50; top: 18px; right: 4.5vw; left: 4.5vw; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; max-width: 1580px; margin: auto; padding: 10px 12px 10px 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 16px 55px rgba(2,31,26,.16); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.brand img { width: 55px; height: 55px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--forest-900); font-size: 1rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2vw, 34px); }
.site-nav a { position: relative; padding: 17px 0; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 10px; left: 0; height: 2px; background: var(--emerald-600); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.language-toggle { min-width: 60px; padding: 10px 12px; color: var(--forest-900); border: 1px solid var(--line); background: white; border-radius: 11px; font-size: .7rem; font-weight: 800; }
.mobile-language, .site-nav .mobile-login, .nav-drawer-head, .nav-close, .menu-toggle, .nav-scrim { display: none; }
.menu-toggle { width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--forest-900); border-radius: 3px; }
.mobile-tabbar { display: none; }
.mobile-tab-icon { width: 21px; height: 21px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--mobile-icon) center / contain no-repeat; mask: var(--mobile-icon) center / contain no-repeat; }
.icon-home { --mobile-icon: url('assets/icons/home.svg'); }
.icon-classes { --mobile-icon: url('assets/icons/classes.svg'); }
.icon-admissions { --mobile-icon: url('assets/icons/admissions.svg'); }
.icon-portal { --mobile-icon: url('assets/icons/portal.svg'); }
.icon-more { --mobile-icon: url('assets/icons/more.svg'); }

.button { display: inline-flex; min-height: 46px; padding: 12px 21px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; font-size: .78rem; font-weight: 800; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--emerald-600); box-shadow: 0 12px 30px rgba(7,136,72,.21); }
.button-primary:hover { background: #056f3b; }
.button-ghost { color: white; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.button-soft { color: var(--forest-900); border-color: var(--line); background: #eef4f0; }
.button-gold { color: var(--forest-950); background: var(--gold-300); box-shadow: 0 12px 35px rgba(235,206,112,.18); }
.button.full { width: 100%; }

.eyebrow { margin-bottom: 18px; color: var(--gold-300); font-size: .67rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow.dark { color: var(--emerald-600); }
.eyebrow.light { color: var(--gold-300); }
.section { padding: clamp(82px, 8vw, 112px) max(5vw, 24px); }
.section-heading { max-width: 880px; }
.section-heading > p:not(.eyebrow), .section-copy > p:not(.eyebrow) { max-width: 700px; color: var(--muted); }

.hero { position: relative; display: grid; min-height: clamp(720px, 86svh, 820px); padding: 150px 6vw 145px; align-items: center; color: white; background: url('assets/smart-ied-campus-hero.png') center/cover no-repeat; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,39,31,.97) 0%, rgba(3,54,43,.84) 45%, rgba(3,54,43,.2) 76%), linear-gradient(0deg, rgba(2,37,30,.86), transparent 42%); }
.hero::before { content: ""; position: absolute; z-index: 1; top: 120px; right: -120px; width: 520px; height: 520px; border: 1px solid rgba(235,206,112,.22); border-radius: 50%; box-shadow: 0 0 0 95px rgba(235,206,112,.04), 0 0 0 190px rgba(235,206,112,.025); }
.hero-content { position: relative; z-index: 2; max-width: 1000px; }
.hero h1 { max-width: 1000px; margin-bottom: 24px; font-size: clamp(4rem, 5vw, 5.75rem); line-height: .94; }
html[lang="ta"] .hero h1 { max-width: 880px; font-size: clamp(3.4rem, 4.2vw, 4.5rem); line-height: 1.22; letter-spacing: 0; }
.hero h1 em { color: var(--gold-300); font-weight: 500; }
.hero-summary { max-width: 640px; margin-bottom: 30px; color: rgba(255,255,255,.82); font-size: clamp(.96rem, .3vw + .91rem, 1.05rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { position: absolute; z-index: 2; right: 5vw; bottom: 86px; display: flex; color: white; background: rgba(3,43,37,.76); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; backdrop-filter: blur(15px); overflow: hidden; }
.hero-proof article { display: flex; min-width: 130px; padding: 22px; flex-direction: column; border-right: 1px solid rgba(255,255,255,.14); }
.hero-proof article:last-child { border-right: 0; }
.hero-proof strong { color: var(--gold-300); font-family: "Newsreader", serif; font-size: 2rem; line-height: 1; }
.hero-proof span { margin-top: 5px; color: rgba(255,255,255,.6); font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; }
.growth-ribbon { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; padding: 20px 6vw; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 58px); color: rgba(255,255,255,.72); background: rgba(2,29,24,.86); font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.growth-ribbon i { width: 7px; height: 7px; background: var(--leaf-500); border-radius: 50%; box-shadow: 0 0 0 6px rgba(69,207,36,.12); }

.trust-strip { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1260px; margin: -35px auto 0; background: white; border-radius: 18px; box-shadow: var(--shadow); }
.trust-strip article { display: flex; gap: 20px; padding: 30px; align-items: center; border-right: 1px solid var(--line); }
.trust-strip article:last-child { border-right: 0; }
.trust-strip > article > span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: var(--forest-900); background: var(--gold-200); border-radius: 50%; font-family: "Newsreader", serif; font-size: 1.1rem; }
.trust-strip div { display: flex; flex-direction: column; }
.trust-strip strong { font-size: .9rem; }
.trust-strip small { margin-top: 3px; color: var(--muted); font-size: .68rem; }

.about-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); max-width: 1500px; margin: auto; align-items: center; gap: clamp(50px, 8vw, 120px); }
.about-visual { position: relative; min-height: 580px; }
.about-visual img { width: 100%; height: 580px; object-fit: cover; border-radius: 8px 85px 8px 85px; box-shadow: var(--shadow); }
.about-year { position: absolute; right: -28px; bottom: 38px; display: flex; width: 165px; height: 165px; flex-direction: column; align-items: center; justify-content: center; color: white; background: var(--forest-900); border: 8px solid var(--paper); border-radius: 50%; }
.about-year span { color: var(--gold-300); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.about-year strong { font-family: "Newsreader", serif; font-size: 2.2rem; }
.principles { margin-top: 38px; border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 125px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles strong { color: var(--forest-900); }
.principles span { color: var(--muted); }

.classes-section { color: white; background: var(--forest-950); }
.classes-section .section-heading > p:not(.eyebrow) { color: rgba(255,255,255,.64); }
.grade-browser { max-width: 1350px; margin: 55px auto 0; }
.grade-tabs { display: flex; gap: 8px; padding-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.grade-tab { min-width: 78px; padding: 12px 15px; color: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); border-radius: 12px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.grade-tab.active { color: var(--forest-950); border-color: var(--gold-300); background: var(--gold-300); }
.grade-panel { display: grid; grid-template-columns: .55fr 1.45fr; gap: 50px; min-height: 350px; padding: clamp(28px, 5vw, 60px); background: #0b473c; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; }
.grade-panel-heading small { color: var(--gold-300); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.grade-panel-heading h3 { margin: 12px 0 10px; font-family: "Newsreader", serif; font-size: clamp(2.8rem, 4.5vw, 4.5rem); line-height: .94; }
.grade-panel-heading p { color: rgba(255,255,255,.64); }
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: center; }
.subject-card { display: flex; min-height: 72px; padding: 18px; align-items: center; gap: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.subject-card span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: var(--forest-950); background: var(--leaf-500); border-radius: 9px; font-weight: 900; }
.subject-card strong { font-size: .83rem; }

.approach-section { max-width: 1500px; margin: auto; }
.approach-intro { display: grid; grid-template-columns: .55fr 1fr; column-gap: 60px; align-items: start; }
.approach-intro .eyebrow { grid-column: 1; }
.approach-intro h2 { grid-column: 1; max-width: 600px; }
.approach-intro > p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; max-width: 640px; margin-top: 45px; color: var(--muted); font-size: 1.05rem; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.approach-grid article { min-height: 310px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach-grid article > span { color: var(--emerald-600); font-family: "Newsreader", serif; font-size: 2.6rem; }
.approach-grid h3 { margin: 70px 0 14px; font-size: 1.15rem; }
.approach-grid p { color: var(--muted); font-size: .82rem; }

.teachers-section { color: white; background: linear-gradient(135deg, #086249, var(--forest-950) 75%); }
.teachers-heading { max-width: 820px; }
.teachers-heading > p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1400px; margin: 50px auto 0; }
.teacher-card { min-width: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; }
.teacher-card img, .teacher-photo-placeholder { width: 100%; height: 300px; object-fit: cover; }
.teacher-photo-placeholder { display: grid; place-items: center; color: var(--forest-950); background: var(--gold-300); font-family: "Newsreader", serif; font-size: 4rem; }
.teacher-card-content { padding: 22px; }
.teacher-card h3 { margin-bottom: 4px; }
.teacher-card .teacher-subject { color: var(--gold-300); font-size: .72rem; font-weight: 800; }
.teacher-card p { margin: 14px 0 0; color: rgba(255,255,255,.64); font-size: .76rem; }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.teacher-meta span { padding: 5px 8px; background: rgba(255,255,255,.08); border-radius: 100px; font-size: .62rem; }
.content-empty { grid-column: 1 / -1; display: grid; min-height: 260px; padding: 35px; place-items: center; align-content: center; text-align: center; border: 1px dashed rgba(255,255,255,.28); border-radius: 22px; }
.content-empty span { display: grid; width: 58px; height: 58px; margin-bottom: 14px; place-items: center; color: var(--forest-950); background: var(--gold-300); border-radius: 50%; font-size: 1.5rem; }
.content-empty h3 { margin-bottom: 8px; }
.content-empty p { max-width: 500px; margin: 0; color: rgba(255,255,255,.55); }

.reasons-section { max-width: 1500px; margin: auto; }
.reasons-list { margin-top: 50px; border-top: 1px solid var(--line); }
.reasons-list article { display: grid; grid-template-columns: 180px 1fr; gap: 45px; padding: 30px 0; align-items: center; border-bottom: 1px solid var(--line); }
.reasons-list article > strong { color: var(--emerald-600); font-family: "Newsreader", serif; font-size: 3.5rem; line-height: 1; }
.reasons-list h3 { margin: 0 0 5px; font-size: 1.08rem; }
.reasons-list p { margin: 0; color: var(--muted); }

.environment-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; color: white; background: var(--forest-950); }
.environment-copy > p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.environment-points { display: grid; gap: 10px; margin-top: 30px; }
.environment-points span { padding: 13px 16px; background: rgba(255,255,255,.06); border-left: 3px solid var(--leaf-500); border-radius: 0 10px 10px 0; font-size: .8rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: center; }
.gallery-card { position: relative; min-height: 245px; border-radius: 16px; overflow: hidden; }
.gallery-card:first-child:nth-last-child(1), .gallery-card:first-child:nth-last-child(2) { grid-column: span 2; }
.gallery-card img { width: 100%; height: 100%; min-height: 245px; object-fit: cover; }
.gallery-card div { position: absolute; right: 0; bottom: 0; left: 0; padding: 38px 18px 16px; background: linear-gradient(transparent, rgba(2,30,25,.88)); }
.gallery-card strong { display: block; }
.gallery-card small { color: rgba(255,255,255,.62); }
.gallery-empty { grid-column: 1 / -1; display: grid; min-height: 380px; place-items: center; align-content: center; text-align: center; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px dashed rgba(255,255,255,.24); border-radius: 22px; }
.gallery-empty span { font-size: 2.4rem; }
.gallery-empty p { max-width: 430px; color: rgba(255,255,255,.55); }

.testimonials-section { max-width: 1500px; margin: auto; }
.testimonials-heading { max-width: 800px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.testimonial-card { display: flex; min-height: 300px; padding: 30px; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 15px 45px rgba(6,45,39,.06); }
.testimonial-card::before { content: "“"; color: var(--gold-300); font-family: "Newsreader", serif; font-size: 5rem; line-height: .7; }
.testimonial-card blockquote { margin: 30px 0; color: var(--ink); font-family: "Newsreader", serif; font-size: 1.25rem; line-height: 1.45; }
.testimonial-card footer { margin-top: auto; color: var(--muted); font-size: .72rem; }
.testimonial-card footer strong { display: block; color: var(--forest-900); }
.light-empty { grid-column: 1 / -1; display: grid; min-height: 240px; padding: 35px; place-items: center; align-content: center; text-align: center; background: #eef3ef; border: 1px dashed #b9c9bf; border-radius: 20px; }
.light-empty span { font-size: 2rem; }
.light-empty h3 { margin: 8px 0 4px; }
.light-empty p { max-width: 500px; margin: 0; color: var(--muted); }

.admissions-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; color: white; background: linear-gradient(140deg, #08704d, var(--forest-950)); }
.admissions-copy > p:not(.eyebrow) { color: rgba(255,255,255,.65); }
.admission-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 34px 0; }
.admission-facts article { display: flex; min-height: 100px; padding: 15px; flex-direction: column; justify-content: flex-end; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.admission-facts small { color: rgba(255,255,255,.54); font-size: .62rem; }
.admission-facts strong { font-size: .88rem; }
.admission-form { padding: clamp(24px, 4vw, 42px); color: var(--ink); background: white; border-radius: 24px; box-shadow: var(--shadow); }
.form-heading { display: flex; margin-bottom: 28px; flex-direction: column; }
.form-heading span { color: var(--forest-900); font-family: "Newsreader", serif; font-size: 2rem; font-weight: 700; }
.form-heading small { color: var(--muted); }
.admission-form label, .content-form label { display: grid; gap: 7px; margin-bottom: 16px; font-size: .76rem; font-weight: 800; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #cdd9d2; background: white; border-radius: 9px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--emerald-600); box-shadow: 0 0 0 4px rgba(7,136,72,.1); }
.field-help { color: var(--muted); font-size: .62rem; font-weight: 500; }
.subject-field { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.subject-field legend { margin-bottom: 7px; padding: 0; font-size: .76rem; font-weight: 800; }
.subject-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 9px; padding: 11px; background: #f6faf7; border: 1px solid #cdd9d2; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.subject-choice { display: flex !important; min-height: 46px; margin: 0 !important; padding: 10px 11px; grid-template-columns: none !important; align-items: center; gap: 9px !important; color: var(--forest-900); background: white; border: 1px solid #dbe5df; border-radius: 9px; cursor: pointer; font-size: .76rem !important; font-weight: 700 !important; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.subject-choice:hover { border-color: #9fb9aa; transform: translateY(-1px); }
.subject-choice:has(input:checked) { color: var(--forest-950); background: #e8f5ec; border-color: var(--emerald-600); }
.subject-choice:focus-within { outline: 3px solid rgba(235,206,112,.72); outline-offset: 2px; }
.subject-choice input { width: 19px; height: 19px; flex: 0 0 auto; margin: 0; padding: 0; accent-color: var(--emerald-600); box-shadow: none; }
.subject-choice span { line-height: 1.25; }
.subject-field .field-help, .subject-error { display: block; margin-top: 7px; }
.subject-error[hidden] { display: none; }
.subject-error { color: var(--danger); font-size: .65rem; font-weight: 700; }
.subject-field.invalid .subject-check-grid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(199,68,82,.1); }
.consent-check { grid-template-columns: auto 1fr !important; align-items: start; }
.consent-check input { width: 18px; height: 18px; margin-top: 3px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .65rem; text-align: center; }

.faq-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8vw; max-width: 1500px; margin: auto; }
.faq-heading p:not(.eyebrow) { color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 22px 0; align-items: center; gap: 20px; color: var(--ink); border: 0; background: transparent; text-align: left; font-weight: 800; }
.faq-question span { display: grid; width: 31px; height: 31px; place-items: center; color: var(--forest-900); background: #e5efe8; border-radius: 50%; font-size: 1.1rem; transition: transform .2s ease; }
.faq-item.open .faq-question span { transform: rotate(45deg); }
.faq-answer { display: none; max-width: 720px; padding: 0 50px 22px 0; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; max-width: 1500px; margin: auto; }
.contact-details { display: grid; gap: 12px; margin-top: 34px; }
.contact-details article { display: grid; grid-template-columns: 45px 1fr; gap: 14px; padding: 15px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; }
.contact-details article > span { display: grid; width: 40px; height: 40px; place-items: center; color: white; background: var(--emerald-600); border-radius: 10px; }
.contact-details div { display: flex; flex-direction: column; }
.contact-details small { color: var(--muted); font-size: .62rem; }
.contact-details strong, .contact-details a { color: var(--forest-900); font-size: .85rem; font-weight: 800; }
.contact-details em { color: var(--danger); font-size: .68rem; font-style: normal; }
.map-card { position: relative; min-height: 590px; border-radius: 25px; box-shadow: var(--shadow); overflow: hidden; }
.map-card iframe { width: 100%; height: 590px; border: 0; }
.map-link { position: absolute; right: 18px; bottom: 18px; padding: 13px 17px; color: white; background: var(--forest-950); border-radius: 10px; font-size: .75rem; font-weight: 800; box-shadow: var(--shadow); }

.portal-cta { display: grid; grid-template-columns: 1fr auto; padding: 75px max(6vw,24px); align-items: center; gap: 50px; color: white; background: var(--emerald-600); }
.portal-cta-copy { max-width: 900px; }
.portal-cta h2 { margin-bottom: 14px; }
.portal-cta-copy > p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.7); }

.site-footer { color: white; background: #021e1a; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; padding: 65px 6vw; }
.footer-brand { display: flex; align-items: flex-start; gap: 15px; }
.footer-brand img { width: 75px; height: 75px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-size: 1.1rem; }
.footer-brand small { color: var(--gold-300); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-brand p { margin-top: 14px; color: rgba(255,255,255,.45); font-size: .68rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links > strong { margin-bottom: 8px; color: var(--gold-300); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a, .footer-links span { color: rgba(255,255,255,.62); font-size: .74rem; }
.footer-links a:hover { color: white; }
.social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.social-links a { display: grid; min-width: 38px; height: 38px; padding: 0 8px; place-items: center; color: white; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; font-size: .62rem; }
.social-empty { color: rgba(255,255,255,.42); font-size: .68rem; }
.text-button { padding: 0; color: var(--emerald-600); border: 0; background: transparent; font-size: .75rem; font-weight: 800; }
.light-link { margin-top: 15px; color: var(--gold-300); text-align: left; }
.footer-bottom { display: flex; padding: 20px 6vw; justify-content: space-between; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; }
.footer-bottom button { color: var(--gold-300); border: 0; background: transparent; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(2,24,20,.74); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 4; top: 13px; right: 14px; display: grid; width: 37px; height: 37px; place-items: center; color: var(--ink); border: 0; background: rgba(255,255,255,.9); border-radius: 50%; font-size: 1.4rem; }
.login-dialog { width: min(490px, calc(100% - 28px)); border-radius: 26px; box-shadow: 0 30px 100px rgba(0,0,0,.4); overflow: visible; }
.login-dialog[open] { display: block; }
.login-panel { padding: 42px 42px 36px; }
.login-single { text-align: center; }
.login-logo { width: 105px; height: 105px; margin: 0 auto 12px; object-fit: contain; }
.login-single h2 { margin-bottom: 8px; font-size: 2.8rem; }
.login-intro { max-width: 390px; margin: 0 auto 26px; color: var(--muted); font-size: .82rem; }
.login-single form { text-align: left; }
.login-panel label { display: grid; gap: 7px; margin-bottom: 16px; font-size: .76rem; font-weight: 800; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; top: 50%; right: 10px; padding: 5px; transform: translateY(-50%); color: var(--emerald-600); border: 0; background: white; font-size: .7rem; font-weight: 800; }
.forgot-password { display: block; margin: 13px auto 0; color: var(--forest-900); border: 0; background: transparent; font-size: .72rem; font-weight: 800; }
.login-note { margin: 13px 0 0; color: var(--muted); font-size: .63rem; text-align: center; }
.install-dialog { width: min(460px, calc(100% - 28px)); padding: 40px; border-radius: 22px; text-align: center; }
.install-dialog img { width: 95px; margin: 0 auto 18px; }
.install-dialog h2 { font-size: 2.2rem; }
.install-dialog p { color: var(--muted); font-size: .86rem; }

.portal-app { position: fixed; z-index: 100; inset: 0; grid-template-columns: 265px 1fr; color: var(--ink); background: #edf2ef; }
.portal-app:not([hidden]) { display: grid; }
.portal-sidebar { display: flex; min-height: 0; padding: 24px 16px; flex-direction: column; color: white; background: var(--forest-950); overflow-y: auto; }
.portal-brand { display: flex; padding: 0 8px 24px; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.portal-brand img { width: 50px; height: 50px; object-fit: contain; }
.portal-brand span { display: flex; flex-direction: column; }
.portal-brand small { color: rgba(255,255,255,.55); }
#portal-nav { display: grid; gap: 6px; margin-top: 22px; }
#portal-nav button { display: flex; gap: 11px; padding: 11px 13px; align-items: center; color: rgba(255,255,255,.68); border: 0; background: transparent; border-radius: 9px; font-size: .78rem; font-weight: 700; text-align: left; }
#portal-nav button.active, #portal-nav button:hover { color: white; background: var(--emerald-600); }
.sidebar-exit { margin-top: auto; padding: 12px; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.16); background: transparent; border-radius: 9px; font-size: .74rem; font-weight: 700; }
.portal-main { min-width: 0; overflow-y: auto; }
.portal-header { display: grid; grid-template-columns: 1fr auto; padding: 20px 30px; align-items: center; gap: 20px; background: white; border-bottom: 1px solid var(--line); }
.portal-header h1 { margin: 2px 0 0; font-size: 2rem; }
.portal-kicker { margin: 0; color: var(--emerald-600); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-user { display: flex; align-items: center; gap: 10px; }
.portal-user div { display: flex; flex-direction: column; }
.portal-user small { color: var(--muted); }
.user-avatar { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--forest-900); border-radius: 50%; font-weight: 800; }
.portal-menu { display: none; }
.demo-banner { margin: 18px 30px 0; padding: 11px 15px; color: #704f05; background: #fff7d8; border: 1px solid #eedf9a; border-radius: 9px; font-size: .7rem; font-weight: 700; }
.dashboard-content { padding: 22px 30px 50px; }
.dashboard-welcome { display: flex; margin-bottom: 20px; justify-content: space-between; gap: 20px; align-items: end; }
.dashboard-welcome h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.45rem; letter-spacing: -.03em; }
.dashboard-welcome p { margin: 4px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.dash-card { grid-column: span 4; padding: 21px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 30px rgba(6,45,39,.05); }
.dash-card.wide { grid-column: span 8; }
.dash-card.full { grid-column: 1 / -1; }
.dash-card h3 { margin-bottom: 13px; font-family: "Manrope", sans-serif; font-size: .9rem; }
.dash-stat { display: block; color: var(--forest-900); font-family: "Newsreader", serif; font-size: 2.5rem; }
.dash-card p, .dash-card small { color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.quick-actions button { min-height: 84px; padding: 13px; color: var(--forest-900); border: 1px solid var(--line); background: #f7faf8; border-radius: 11px; font-weight: 800; }
.dash-list { margin: 0; padding: 0; list-style: none; }
.dash-list li { display: flex; padding: 11px 0; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); font-size: .78rem; }
.dash-list span { color: var(--muted); }
.attendance-demo { border-left: 4px solid var(--danger); }
.alert-actions { display: flex; gap: 8px; }

.content-manager-head { display: flex; margin-bottom: 18px; justify-content: space-between; align-items: end; gap: 20px; }
.content-manager-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.45rem; }
.content-manager-head p { margin: 4px 0 0; color: var(--muted); }
.manager-tabs { display: flex; gap: 7px; margin-bottom: 16px; overflow-x: auto; }
.manager-tab { flex: 0 0 auto; padding: 10px 14px; color: var(--muted); border: 1px solid var(--line); background: white; border-radius: 9px; font-size: .73rem; font-weight: 800; }
.manager-tab.active { color: white; border-color: var(--forest-900); background: var(--forest-900); }
.manager-layout { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(0,1.28fr); gap: 16px; }
.content-form, .manager-list-panel { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 30px rgba(6,45,39,.04); }
.content-form h3, .manager-list-panel h3 { margin: 0 0 18px; font-size: .92rem; }
.content-form .button { margin-top: 5px; }
.manager-list { display: grid; gap: 9px; }
.manager-empty { padding: 30px 16px; color: var(--muted); background: #f5f8f6; border: 1px dashed #c4d1c9; border-radius: 10px; text-align: center; font-size: .75rem; }
.manager-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; padding: 11px; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.manager-item img, .manager-thumb { width: 50px; height: 50px; object-fit: cover; background: #e7efe9; border-radius: 8px; }
.manager-thumb { display: grid; place-items: center; color: var(--forest-900); font-weight: 900; }
.manager-item div { min-width: 0; }
.manager-item strong, .manager-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manager-item small { color: var(--muted); }
.delete-item { width: 35px; height: 35px; color: var(--danger); border: 1px solid #f0cbd0; background: #fff4f5; border-radius: 8px; }
.storage-note { margin-top: 14px; padding: 11px; color: #704f05; background: #fff7d8; border-radius: 8px; font-size: .67rem; }
.manager-actions { display: flex; gap: 8px; }
.manager-actions .button { min-height: 38px; padding: 8px 12px; }

.toast { position: fixed; z-index: 300; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 17px; color: white; background: var(--forest-950); border-radius: 11px; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.mobile-more-sheet { color: var(--ink); background: white; border: 0; box-shadow: 0 30px 90px rgba(2,31,26,.3); }
.mobile-more-sheet::backdrop { background: rgba(2,30,25,.62); backdrop-filter: blur(3px); }
.more-sheet-handle { width: 48px; height: 5px; margin: 2px auto 14px; background: #cad6cf; border-radius: 99px; }
.more-sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.more-sheet-header p { margin: 0 0 3px; color: var(--emerald-600); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.more-sheet-header h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.03em; }
html[lang="ta"] .more-sheet-header h2 { font-family: "Noto Sans Tamil", sans-serif; font-size: 1.25rem; line-height: 1.4; letter-spacing: 0; }
.more-sheet-close { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--forest-900); background: #eef4f0; border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem; }
.more-sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.more-sheet-links a { display: flex; min-height: 48px; padding: 11px 13px; align-items: center; justify-content: space-between; gap: 8px; color: var(--forest-900); background: #f6faf7; border: 1px solid var(--line); border-radius: 11px; font-size: .78rem; font-weight: 800; }
.more-sheet-links strong { font-size: 1.25rem; font-weight: 500; line-height: 1; }
.more-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.more-sheet-actions a, .more-sheet-actions button { display: flex; min-width: 0; min-height: 58px; padding: 10px 12px; flex-direction: column; align-items: flex-start; justify-content: center; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 11px; text-align: left; }
.more-sheet-actions strong { font-size: .72rem; }
.more-sheet-actions span { margin-top: 2px; color: var(--muted); font-size: .61rem; line-height: 1.3; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; backdrop-filter: none; }
  .site-nav { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; left: auto; display: flex; width: min(360px,88vw); padding: 22px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; color: var(--ink); background: white; border-radius: 24px 0 0 24px; box-shadow: -24px 0 70px rgba(3,31,27,.28); transform: translateX(110%); transition: transform .3s ease; overflow-y: auto; }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .site-nav a::after { display: none; }
  .site-nav a.active { color: var(--emerald-600); }
  .nav-drawer-head { display: flex; margin-bottom: 14px; padding: 4px 0 17px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav-drawer-head span { display: flex; flex-direction: column; line-height: 1.2; }
  .nav-drawer-head small { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
  .nav-close { display: grid; width: 39px; height: 39px; place-items: center; color: var(--forest-900); border: 1px solid var(--line); background: #f4f7f5; border-radius: 50%; font-size: 1.4rem; }
  .site-nav .mobile-login, .mobile-language { display: inline-flex; width: 100%; margin-top: 12px; }
  .site-nav .mobile-login { margin-top: auto; }
  .nav-scrim { position: fixed; z-index: 40; inset: 0; display: block; padding: 0; border: 0; background: rgba(2,30,25,.62); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .menu-toggle { display: block; justify-self: end; }
  .header-actions { display: none; }
  .teacher-grid { grid-template-columns: repeat(3,1fr); }
  .approach-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1.5fr repeat(2,1fr); }
  .footer-main > :last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body.portal-open { padding-bottom: 0; }
  .site-nav, .nav-scrim, .menu-toggle { display: none; }
  .header-actions { display: flex; }
  .header-actions .header-login { display: none; }
  .header-actions .language-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-tabbar { position: fixed; z-index: 45; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 66px; padding: 5px; color: #557068; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.82); border-radius: 25px; box-shadow: 0 16px 45px rgba(2,31,26,.24); backdrop-filter: blur(18px); transition: opacity .2s ease, transform .25s ease; }
  .mobile-tab { display: flex; min-width: 0; min-height: 54px; padding: 5px 2px 4px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: inherit; background: transparent; border: 0; border-radius: 19px; font-size: .57rem; font-weight: 700; line-height: 1; white-space: nowrap; transition: color .2s ease, background .2s ease, transform .2s ease; }
  .mobile-tab.active { color: white; background: var(--forest-900); box-shadow: 0 8px 20px rgba(3,43,37,.24); transform: translateY(-2px); }
  .mobile-tab[data-mobile-tab="admissions"]:not(.active) { color: #80610b; }
  .mobile-tab:focus-visible { outline-offset: -2px; }
  html[lang="ta"] .mobile-tab { font-size: .54rem; }
  body.portal-open .mobile-tabbar, body.mobile-keyboard .mobile-tabbar { opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; }
  .mobile-more-sheet { position: fixed; inset: auto 12px calc(86px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 440px; max-height: min(70dvh, 620px); margin: 0 auto; padding: 10px 16px 18px; border-radius: 24px; overflow-y: auto; }
  .section { padding: 86px 22px; }
  .hero { min-height: 720px; padding: 132px 24px 180px; background-position: 64% center; }
  .hero h1 { max-width: 720px; font-size: clamp(3.15rem, 10.5vw, 4.75rem); line-height: .97; }
  html[lang="ta"] .hero h1 { max-width: 680px; font-size: clamp(2.65rem, 7vw, 3.4rem); line-height: 1.24; }
  .hero-overlay { background: linear-gradient(90deg, rgba(2,39,31,.96), rgba(3,54,43,.63)), linear-gradient(0deg, rgba(2,37,30,.85), transparent 55%); }
  .hero-proof { right: 20px; bottom: 80px; left: 20px; }
  .hero-proof article { flex: 1; min-width: 0; padding: 15px; }
  .hero-proof strong { font-size: 1.45rem; }
  .growth-ribbon { gap: 12px; padding: 17px 14px; font-size: .5rem; letter-spacing: .08em; }
  .trust-strip { grid-template-columns: 1fr; margin: 18px 20px 0; }
  .trust-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip article:last-child { border-bottom: 0; }
  .about-section, .environment-section, .admissions-section, .faq-section, .contact-section { grid-template-columns: 1fr; }
  .about-visual, .about-visual img { min-height: 420px; height: 420px; }
  .about-year { right: 12px; bottom: -24px; width: 140px; height: 140px; }
  .grade-panel { grid-template-columns: 1fr; gap: 25px; }
  .approach-intro { display: block; }
  .approach-intro > p:not(.eyebrow) { margin-top: 0; }
  .teacher-grid { grid-template-columns: repeat(2,1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .portal-cta { grid-template-columns: 1fr; }
  .portal-cta .button { justify-self: start; }
  .map-card, .map-card iframe { min-height: 450px; height: 450px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > :last-child { grid-column: auto; }
  .manager-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h2 { font-size: clamp(2.15rem, 10vw, 2.65rem); line-height: 1.02; }
  html[lang="ta"] h2 { font-size: clamp(1.9rem, 8.4vw, 2.25rem); line-height: 1.28; }
  .site-header { top: 8px; right: 8px; left: 8px; max-height: 68px; padding: 7px 8px; border-radius: 16px; }
  .brand { min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .85rem; }
  .hero { min-height: 710px; padding: 118px 24px 174px; }
  .hero h1 { margin-bottom: 20px; font-size: clamp(2.75rem, 11.8vw, 3.35rem); line-height: 1; }
  html[lang="ta"] .hero h1 { font-size: clamp(2.2rem, 9.3vw, 2.5rem); line-height: 1.27; }
  .hero-summary { margin-bottom: 24px; font-size: .95rem; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof span { font-size: .5rem; }
  .principles article { grid-template-columns: 1fr; gap: 6px; }
  .subject-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid article { min-height: 240px; }
  .approach-grid h3 { margin-top: 40px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .teacher-card img, .teacher-photo-placeholder { height: 340px; }
  .reasons-list article { grid-template-columns: 95px 1fr; gap: 20px; }
  .reasons-list article > strong { font-size: 2.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card:first-child:nth-last-child(1), .gallery-card:first-child:nth-last-child(2) { grid-column: 1; }
  .admission-facts { grid-template-columns: 1fr; }
  .admission-facts article { min-height: 78px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .login-panel { padding: 34px 22px 28px; }
  .portal-app:not([hidden]) { display: block; }
  .portal-sidebar { position: fixed; z-index: 3; top: 0; bottom: 0; left: 0; width: 265px; transform: translateX(-105%); transition: transform .25s ease; }
  .portal-sidebar.open { transform: none; }
  .portal-header { grid-template-columns: auto 1fr; padding: 17px; }
  .portal-user { display: none; }
  .portal-menu { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); background: white; border-radius: 9px; }
  .demo-banner { margin: 13px 15px 0; }
  .dashboard-content { padding: 17px 15px 40px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-card, .dash-card.wide, .dash-card.full { grid-column: 1; }
  .quick-actions { grid-template-columns: 1fr; }
  .content-manager-head { align-items: flex-start; flex-direction: column; }
  .manager-actions { width: 100%; }
  .manager-actions .button { flex: 1; }
  .toast { right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
