/* =========================================================
   Gyan Ganga Adarsh Vidyalaya — website design system
   Palette: dark brown + cream (school preference) with gold accent
   ========================================================= */
:root {
  --brown-950: #1f130b;
  --brown-900: #2b1a10;
  --brown-800: #3a2416;
  --brown-700: #4e3020;
  --brown-600: #6b4429;
  --brown-500: #8a5a36;
  --brown-300: #c9a98a;
  --cream-50: #fffcf6;
  --cream-100: #fbf5ea;
  --cream-200: #f4eada;
  --cream-300: #eadbc0;
  --gold-300: #f1cf82;
  --gold-400: #e8b84f;
  --gold-500: #d9a441;
  --gold-600: #b9862a;
  --red-600: #b8321f;
  --ink: #2b1a10;
  --text: #4a3a2e;
  --muted: #7a6656;
  --line: #eadfcd;
  --white: #fff;

  --t-brown: #6b4429;  --t-brown-bg: #f3e7d8;
  --t-green: #2f6b3f;  --t-green-bg: #e3f0e4;
  --t-saffron: #c7641d; --t-saffron-bg: #fbe9da;
  --t-plum: #6b3f7a;   --t-plum-bg: #efe4f3;
  --t-blue: #285b8c;   --t-blue-bg: #e2edf7;
  --t-red: #b8321f;    --t-red-bg: #f9e3df;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hindi: "Tiro Devanagari Hindi", "Noto Sans Devanagari", var(--f-body);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(43, 26, 16, .06), 0 2px 8px rgba(43, 26, 16, .05);
  --shadow: 0 10px 30px -12px rgba(43, 26, 16, .22), 0 2px 6px rgba(43, 26, 16, .05);
  --shadow-lg: 0 30px 60px -24px rgba(43, 26, 16, .35);
  --container: 1220px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--cream-50); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-300); color: var(--brown-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }
.hindi { font-family: var(--f-hindi); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--brown-800); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section--cream { background: var(--cream-100); }
.section--tight { padding: clamp(44px, 5vw, 64px) 0; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 560px; margin: 10px 0 0; color: var(--muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.text-gold { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brown-800); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px;
  border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 700; font-size: .95rem; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(43, 26, 16, .55); }
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic--move { transform: translateX(4px); }
.btn--gold { --bg: var(--gold-500); --fg: var(--brown-900); }
.btn--gold:hover { --bg: var(--gold-400); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--brown-900); }
.btn--outline { --bg: transparent; --fg: var(--brown-800); border-color: var(--brown-300); }
.btn--outline:hover { --bg: var(--brown-800); --fg: #fff; border-color: var(--brown-800); }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brown-700); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brown-900); color: #e9dcc8; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #e9dcc8; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold-300); }
.topbar .ic { width: 15px; height: 15px; color: var(--gold-400); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { width: 28px; height: 28px; border-radius: 50%; justify-content: center; background: rgba(255, 255, 255, .06); }
.topbar__social a:hover { background: var(--gold-500); }
.topbar__social a:hover .ic { color: var(--brown-900); }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__pill { background: rgba(217, 164, 65, .16); color: var(--gold-300) !important; padding: 3px 12px; border-radius: 999px; font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 252, 246, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(43, 26, 16, .4); border-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: 1380px; }
.topbar .container, .ticker .container { max-width: 1380px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 62px; height: 62px; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; line-height: 1.08; color: var(--brown-800); letter-spacing: -.01em; }
.brand__name span { display: block; }
.brand__tag { display: block; font-family: var(--f-body); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; font-size: .9rem; font-weight: 600; color: var(--brown-800); white-space: nowrap;
  border-radius: 10px; position: relative; background: none; border: 0; cursor: pointer;
}
.nav__link .ic { width: 15px; height: 15px; transition: transform .25s; }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--brown-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brown-900); }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 240px; background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.nav__drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover > .nav__link .ic { transform: rotate(180deg); }
.nav__drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--brown-800); font-size: .9rem; font-weight: 600; }
.nav__drop a .ic { width: 18px; height: 18px; color: var(--gold-600); }
.nav__drop a:hover { background: var(--cream-100); color: var(--brown-900); }
.header__cta { flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--brown-800); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(31, 19, 11, .55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--cream-50); padding: 20px 20px 32px;
  transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer__head img { width: 50px; height: 50px; }
.drawer__close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--brown-800); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--brown-800); font-weight: 600; }
.drawer nav a.is-active { color: var(--gold-600); }
.drawer nav .sub a { padding-left: 18px; font-weight: 500; font-size: .93rem; }
.drawer__foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.drawer__foot .btn { width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- Announcement ticker ---------- */
.ticker { background: var(--gold-500); color: var(--brown-900); font-size: .88rem; font-weight: 600; overflow: hidden; }
.ticker .container { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--brown-900); color: var(--gold-300); padding: 4px 12px; border-radius: 999px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.ticker__label .ic { width: 14px; height: 14px; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: inline-flex; gap: 60px; white-space: nowrap; animation: ticker 30s linear infinite; padding-left: 100%; }
.ticker__move a { color: var(--brown-900); }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(520px, 82vh, 740px); overflow: hidden; background: var(--brown-900); isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 19, 11, .92) 0%, rgba(43, 26, 16, .78) 34%, rgba(43, 26, 16, .25) 64%, rgba(43, 26, 16, .05) 100%),
    linear-gradient(0deg, rgba(31, 19, 11, .55), transparent 40%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero__inner { max-width: 720px; color: #fff; padding-bottom: 40px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; margin-bottom: 22px; color: #f6ead6; }
.hero__badge b { background: var(--gold-500); color: var(--brown-900); border-radius: 999px; padding: 2px 10px; font-size: .74rem; }
.hero h1, .hero h2.hero__title { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.08; margin-bottom: 18px; font-weight: 600; }
.hero__title em { font-style: normal; color: var(--gold-400); display: block; }
.hero__hindi { font-family: var(--f-hindi); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.65; color: #f3e6d2; margin-bottom: 32px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__slide .hero__inner > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__inner > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__inner > :nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__inner > :nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__inner > :nth-child(4) { transition-delay: .36s; }
.hero__controls { position: absolute; z-index: 5; right: 0; left: 0; bottom: 96px; }
.hero__controls .container { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); border: 0; cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.hero__dot span { position: absolute; inset: 0; background: var(--gold-400); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { animation: dotfill var(--hero-delay, 6s) linear forwards; }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.hero__arrow:hover { background: var(--gold-500); color: var(--brown-900); border-color: var(--gold-500); }
.hero__arrow .ic { width: 20px; height: 20px; }

/* ---------- Highlights strip ---------- */
.highlights { position: relative; z-index: 6; margin-top: -64px; }
.highlights__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); overflow: hidden; }
.hl { display: flex; gap: 16px; align-items: center; padding: 28px 26px; position: relative; transition: background .3s; }
.hl + .hl::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.hl:hover { background: var(--cream-50); }
.hl__icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--c, var(--t-brown)); box-shadow: 0 10px 20px -10px var(--c, var(--t-brown)); transition: transform .35s var(--ease); }
.hl:hover .hl__icon { transform: translateY(-4px) rotate(-6deg); }
.hl__icon .ic { width: 28px; height: 28px; }
.hl h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin: 0 0 3px; color: var(--brown-800); letter-spacing: 0; }
.hl p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.c-brown { --c: var(--t-brown); --cb: var(--t-brown-bg); }
.c-green { --c: var(--t-green); --cb: var(--t-green-bg); }
.c-saffron { --c: var(--t-saffron); --cb: var(--t-saffron-bg); }
.c-plum { --c: var(--t-plum); --cb: var(--t-plum-bg); }
.c-blue { --c: var(--t-blue); --cb: var(--t-blue-bg); }
.c-red { --c: var(--t-red); --cb: var(--t-red-bg); }
.c-gold { --c: var(--gold-600); --cb: #fbf0d6; }

/* ---------- About (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr 0.9fr; gap: 48px; align-items: center; }
.about-media { position: relative; }
.about-media__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.3; }
.about-media__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-media:hover .about-media__frame img { transform: scale(1.05); }
.about-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold-500); border-radius: var(--radius-lg); z-index: -1; }
.est-badge {
  position: absolute; left: -22px; bottom: 28px; background: var(--brown-800); color: #fff; border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; border: 3px solid var(--cream-50);
}
.est-badge strong { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--gold-400); }
.est-badge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; line-height: 1.35; color: #eadbc0; font-weight: 600; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); }
.motto { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--cream-100); border-radius: 12px; border-left: 3px solid var(--gold-500); margin: 6px 0 24px; }
.motto .hindi { font-size: 1.15rem; color: var(--brown-700); }
.motto small { color: var(--muted); font-size: .78rem; }
.quick { border-left: 1px solid var(--line); padding-left: 40px; }
.quick h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; color: var(--brown-800); }
.quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qcard { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 16px; background: var(--cb); border: 1px solid transparent; color: var(--c); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 25%, transparent); color: var(--c); }
.qcard__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.qcard__icon .ic { width: 22px; height: 22px; }
.qcard strong { font-size: .95rem; color: var(--brown-900); line-height: 1.25; }
.qcard small { font-size: .78rem; color: var(--muted); margin-top: -6px; }

/* ---------- Academics + Principal ---------- */
.acad-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.subjects { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 8px; }
.subject { text-align: center; }
.subject__icon {
  width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: #fff;
  box-shadow: 0 0 0 6px var(--cb), var(--shadow); transition: transform .35s var(--ease), background .3s, color .3s;
}
.subject:hover .subject__icon { transform: translateY(-6px); background: var(--c); color: #fff; }
.subject__icon .ic { width: 34px; height: 34px; }
.subject strong { display: block; font-size: .92rem; color: var(--brown-800); }
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.program { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; transition: box-shadow .3s, transform .3s var(--ease); }
.program:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.program__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brown-800); color: var(--gold-400); display: grid; place-items: center; flex: none; }
.program__icon .ic { width: 20px; height: 20px; }
.program strong { display: block; color: var(--brown-900); font-size: .96rem; line-height: 1.3; }
.program small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: 2px; }

.principal { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 150px 1fr; gap: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.principal::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--cream-200), transparent 70%); }
.principal__photo { width: 150px; height: 180px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.avatar-ph { display: grid; place-items: center; background: linear-gradient(145deg, var(--brown-700), var(--brown-900)); color: var(--gold-300); }
.avatar-ph .ic { width: 42%; height: 42%; }
.principal h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; color: var(--brown-800); margin-bottom: 10px; }
.principal blockquote { margin: 0 0 12px; font-family: var(--f-display); font-style: italic; font-size: 1.08rem; line-height: 1.5; color: var(--brown-700); position: relative; z-index: 1; }
.principal p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; position: relative; z-index: 1; }
.principal cite { font-style: normal; font-weight: 700; color: var(--brown-800); font-size: .9rem; display: block; margin-bottom: 12px; }

/* ---------- Stats band ---------- */
.stats { background: var(--brown-800); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px;
}
.stats::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, .28), transparent 65%); }
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 18px; padding: 34px 24px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(217, 164, 65, .14); color: var(--gold-400); flex: none; }
.stat__icon .ic { width: 28px; height: 28px; }
.stat strong { display: block; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; color: #fff; font-weight: 600; }
.stat span { font-size: .84rem; color: #e2d2bb; }

/* ---------- News / Gallery / Testimonials (home) ---------- */
.trio { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.panel__head h3 { margin: 0; font-size: 1.35rem; }
.news-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: center; color: inherit; }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { color: inherit; }
.datebox { width: 56px; flex: none; border-radius: 12px; background: var(--brown-800); color: #fff; text-align: center; padding: 7px 0 6px; line-height: 1.1; box-shadow: 0 8px 16px -10px var(--brown-800); }
.datebox b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.datebox small { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); font-weight: 700; }
.news-item__body { flex: 1; min-width: 0; }
.news-item__body strong { display: block; font-size: .93rem; color: var(--brown-900); line-height: 1.35; transition: color .2s; }
.news-item:hover strong { color: var(--gold-600); }
.news-item__body small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: 3px; }
.news-item > .ic { width: 18px; height: 18px; color: var(--brown-300); transition: transform .25s, color .25s; }
.news-item:hover > .ic { transform: translateX(3px); color: var(--gold-600); }
.tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; }
.tag--notice { background: var(--t-red-bg); color: var(--t-red); }
.tag--event { background: var(--t-green-bg); color: var(--t-green); }
.tag--news { background: var(--t-blue-bg); color: var(--t-blue); }
.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; flex: 1; min-height: 280px; }
.mini-gallery a { position: relative; border-radius: 14px; overflow: hidden; display: block; min-height: 130px; }
.mini-gallery img { position: absolute; inset: 0; }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mini-gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 19, 11, .55), transparent 55%); opacity: 0; transition: opacity .3s; }
.mini-gallery a:hover img { transform: scale(1.08); }
.mini-gallery a:hover::after { opacity: 1; }
.tst { position: relative; flex: 1; display: flex; flex-direction: column; }
.tst__track { position: relative; flex: 1; min-height: 210px; }
.tst__item { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translateX(16px); transition: all .5s var(--ease); background: var(--cream-100); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.tst__item.is-active { opacity: 1; visibility: visible; transform: none; }
.tst__item .ic--quote { width: 30px; height: 30px; color: var(--gold-500); margin-bottom: 10px; }
.tst__item p { font-size: .92rem; color: var(--brown-700); line-height: 1.65; font-style: italic; flex: 1; }
.tst__who { display: flex; align-items: center; gap: 12px; }
.tst__who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.tst__who .av.avatar-ph { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; }
.tst__who strong { display: block; color: var(--brown-900); font-size: .9rem; line-height: 1.2; }
.tst__who small { color: var(--muted); font-size: .78rem; }
.tst__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.tst__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--cream-300); cursor: pointer; padding: 0; transition: all .3s; }
.tst__dots button.is-active { width: 24px; background: var(--brown-700); }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(36px, 5vw, 60px); background: linear-gradient(120deg, var(--brown-900), var(--brown-700) 60%, var(--brown-600)); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; }
.cta::before { content: ""; position: absolute; right: -60px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(217, 164, 65, .14); }
.cta::after { content: ""; position: absolute; left: 40%; top: -80px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, .25), transparent 70%); }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #e9dcc8; margin: 0; max-width: 580px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--brown-900); color: #d9c8b1; margin-top: 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600)); }
.footer a { color: #d9c8b1; }
.footer a:hover { color: var(--gold-300); }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 44px; padding: 72px 0 52px; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__brand img { width: 70px; height: 70px; background: rgba(255, 255, 255, .95); border-radius: 50%; padding: 4px; }
.footer__brand strong { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.12; color: #fff; font-weight: 600; }
.footer__brand small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-top: 5px; }
.footer p { font-size: .9rem; line-height: 1.75; }
.footer h4 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; font-weight: 700; }
.footer__motto { color: var(--gold-300); font-size: 1.1rem; margin: 0; }
.footer__hours { margin-top: 16px; font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.footer__hours .ic { color: var(--gold-400); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; }
.footer__links .ic { width: 14px; height: 14px; color: var(--gold-500); }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; font-size: .9rem; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer__contact .ic { width: 18px; height: 18px; color: var(--gold-400); margin-top: 2px; }
.footer__contact small { display: block; color: #a8927a; font-size: .74rem; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: all .25s; }
.socials a:hover { background: var(--gold-500); color: var(--brown-900); transform: translateY(-3px); }
.socials .ic { width: 18px; height: 18px; }
.footer__map { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); aspect-ratio: 16/10; background: var(--brown-800); margin-bottom: 14px; }
.footer__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .82rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 18px; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), opacity .3s; }
.fab .ic { width: 26px; height: 26px; }
.fab--wa { bottom: 22px; background: #25d366; color: #fff; }
.fab--wa:hover { color: #fff; transform: scale(1.08); }
.fab--wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab--top { bottom: 88px; background: var(--brown-800); color: var(--gold-300); border: 0; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); width: 46px; height: 46px; right: 24px; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab--top .ic { width: 20px; height: 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(70px, 10vw, 120px) 0 clamp(56px, 7vw, 88px); color: #fff; overflow: hidden; background: var(--brown-900); isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(31, 19, 11, .95) 0%, rgba(43, 26, 16, .82) 45%, rgba(58, 36, 22, .55) 100%); }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(217, 164, 65, .1); z-index: -1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; max-width: 820px; }
.page-hero p { color: #eadbc0; font-size: 1.1rem; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; margin-bottom: 18px; color: #d7c2a5; list-style: none; padding: 0; }
.crumbs a { color: var(--gold-300); }
.crumbs a:hover { color: #fff; }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }

/* ---------- Prose (CMS content) ---------- */
.prose { color: var(--text); font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; color: var(--brown-800); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--brown-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-400); }
.prose ul li::marker { color: var(--gold-600); }
.prose ol { counter-reset: none; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--cream-100); border-left: 4px solid var(--gold-500); border-radius: 0 14px 14px 0; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--brown-700); }
.prose img { border-radius: 14px; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--cream-100); color: var(--brown-800); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.vm:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vm__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brown-800); color: var(--gold-400); margin-bottom: 20px; }
.vm__icon .ic { width: 30px; height: 30px; }
.vm::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: var(--cream-100); z-index: 0; }
.vm > * { position: relative; z-index: 1; }
.vm p { color: var(--muted); margin: 0; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-500), var(--cream-300)); }
.tl { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.tl::before { content: ""; position: absolute; left: -32px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 5px var(--cream-50), 0 0 0 7px var(--gold-300); }
.tl h3 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; color: var(--brown-800); margin: 0 0 6px; }
.tl p { margin: 0; color: var(--muted); font-size: .96rem; }
.pullquote { text-align: center; max-width: 880px; margin: 0 auto; font-family: var(--f-display); font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.4; color: var(--brown-800); font-style: italic; }
.pullquote .ic { width: 44px; height: 44px; color: var(--gold-500); margin: 0 auto 16px; display: block; }
.principal-full { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.principal-full__photo { position: sticky; top: calc(var(--header-h) + 24px); }
.principal-full__photo img, .principal-full__photo .avatar-ph { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-lg); }
.principal-full__photo figcaption { text-align: center; margin-top: 16px; }
.principal-full__photo figcaption strong { display: block; color: var(--brown-900); font-size: 1.05rem; }
.principal-full__photo figcaption span { color: var(--muted); font-size: .88rem; }
.signature { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--brown-700); }

/* ---------- Cards grid (facilities, programs) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.fcard { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.fcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.fcard__media { position: relative; aspect-ratio: 16/10.5; overflow: hidden; background: var(--cream-200); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fcard:hover .fcard__media img { transform: scale(1.07); }
.fcard__icon { position: absolute; left: 20px; bottom: -24px; width: 52px; height: 52px; border-radius: 14px; background: var(--brown-800); color: var(--gold-400); display: grid; place-items: center; box-shadow: var(--shadow); border: 3px solid #fff; z-index: 2; }
.fcard__icon .ic { width: 24px; height: 24px; }
.fcard__body { padding: 36px 24px 26px; flex: 1; }
.fcard__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fcard__body p { margin: 0; color: var(--muted); font-size: .94rem; }
.pcard { background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pcard:hover::before { transform: scaleX(1); }
.pcard__icon { width: 60px; height: 60px; border-radius: 18px; background: var(--cream-100); color: var(--brown-700); display: grid; place-items: center; margin-bottom: 18px; }
.pcard__icon .ic { width: 28px; height: 28px; }
.pcard h3 { margin-bottom: 6px; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--cream-100); color: var(--brown-700); }
.chip .ic { width: 14px; height: 14px; }
.chip--gold { background: #fbf0d6; color: var(--gold-600); }
.pcard p { color: var(--muted); margin: 0; font-size: .95rem; }
.subject-card { background: #fff; border-radius: 20px; padding: 26px 22px; border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
.subject-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.subject-card .subject__icon { width: 72px; height: 72px; }
.subject-card h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 700; color: var(--brown-800); margin-bottom: 6px; }
.subject-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ic { width: 22px; height: 22px; color: var(--t-green); flex: none; margin-top: 2px; }

/* ---------- Admissions ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; position: relative; counter-increment: step; }
.step::before { content: "0" counter(step); font-family: var(--f-display); font-size: 2.6rem; font-weight: 600; color: var(--cream-300); line-height: 1; position: absolute; right: 18px; top: 16px; }
.step__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brown-800); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 16px; }
.step__icon .ic { width: 24px; height: 24px; }
.step h3 { font-family: var(--f-body); font-size: 1.02rem; font-weight: 700; color: var(--brown-800); margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--brown-800); font-size: .94rem; }
.doc-list .ic { width: 20px; height: 20px; color: var(--gold-600); }
.info-card { background: var(--brown-800); color: #eadbc0; border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.info-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(217, 164, 65, .12); }
.info-card h3 { color: #fff; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.info-card li { display: flex; gap: 12px; }
.info-card .ic { width: 20px; height: 20px; color: var(--gold-400); flex: none; margin-top: 3px; }
.info-card a { color: #fff; font-weight: 700; }
.info-card small { display: block; color: #bda88f; font-size: .78rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--brown-800); margin-bottom: 7px; }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream-50); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: .96rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(217, 164, 65, .18); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: .94rem; font-weight: 500; }
.alert .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert--success { background: var(--t-green-bg); color: var(--t-green); border: 1px solid #c6e0c9; }
.alert--error { background: var(--t-red-bg); color: var(--t-red); border: 1px solid #f0c4bb; }
.alert--info { background: #fbf0d6; color: var(--gold-600); border: 1px solid #f1dca8; }

/* ---------- Gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.album { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.2; display: block; box-shadow: var(--shadow); background: var(--brown-800); }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 19, 11, .92) 0%, rgba(31, 19, 11, .35) 45%, transparent 70%); }
.album:hover img { transform: scale(1.08); }
.album__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 2; color: #fff; }
.album__info h3 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; }
.album__meta { display: flex; gap: 14px; font-size: .8rem; color: #eadbc0; }
.album__meta span { display: inline-flex; align-items: center; gap: 6px; }
.album__meta .ic { width: 14px; height: 14px; color: var(--gold-400); }
.album__count { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--brown-800); font-weight: 700; font-size: .78rem; padding: 5px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.album__count .ic { width: 14px; height: 14px; }
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry a { display: block; margin-bottom: 18px; border-radius: 16px; overflow: hidden; break-inside: avoid; position: relative; background: var(--cream-200); box-shadow: var(--shadow-sm); }
.masonry img { width: 100%; transition: transform .8s var(--ease); }
.masonry a::after { content: ""; position: absolute; inset: 0; background: rgba(31, 19, 11, .35); opacity: 0; transition: opacity .3s; }
.masonry a .zoom { position: absolute; z-index: 2; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--brown-800); display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: all .35s var(--ease); }
.masonry a:hover::after { opacity: 1; }
.masonry a:hover .zoom { transform: scale(1); opacity: 1; }
.masonry a:hover img { transform: scale(1.05); }
.masonry .zoom .ic { width: 22px; height: 22px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tabs a { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--brown-700); font-weight: 700; font-size: .88rem; }
.filter-tabs a:hover { border-color: var(--brown-300); color: var(--brown-900); }
.filter-tabs a.is-active { background: var(--brown-800); border-color: var(--brown-800); color: #fff; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 500; background: rgba(20, 12, 7, .96); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.lb__img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); user-select: none; transition: opacity .2s; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: var(--gold-500); color: var(--brown-900); }
.lb__btn .ic { width: 22px; height: 22px; }
.lb__prev { left: 20px; top: 50%; margin-top: -26px; }
.lb__next { right: 20px; top: 50%; margin-top: -26px; }
.lb__close { right: 20px; top: 20px; }
.lb__bar { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #e6d6bf; font-size: .9rem; padding: 0 80px; }
.lb__bar b { color: var(--gold-400); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; color: inherit; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.ncard__media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--brown-700), var(--brown-900)); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.06); }
.ncard__media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-400); }
.ncard__media .ph .ic { width: 56px; height: 56px; opacity: .7; }
.ncard__media .datebox { position: absolute; left: 16px; top: 16px; }
.ncard__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.ncard__body h3 { font-size: 1.2rem; margin-bottom: 8px; transition: color .2s; }
.ncard:hover h3 { color: var(--brown-600); }
.ncard__body p { color: var(--muted); font-size: .92rem; flex: 1; }
.article { max-width: 820px; margin: 0 auto; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; color: #eadbc0; font-size: .9rem; }
.article__meta span { display: inline-flex; gap: 6px; align-items: center; }
.article__meta .ic { width: 16px; height: 16px; color: var(--gold-400); }
.share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share strong { color: var(--brown-800); font-size: .9rem; margin-right: 6px; }
.share a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-100); color: var(--brown-700); }
.share a:hover { background: var(--brown-800); color: #fff; }
.share .ic { width: 18px; height: 18px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--brown-700); }
.pagination .is-active { background: var(--brown-800); color: #fff; border-color: var(--brown-800); }

/* ---------- Calendar ---------- */
.cal-month { margin-bottom: 36px; }
.cal-month h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.cal-month h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cal-list { display: grid; gap: 12px; }
.cal-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.cal-item strong { color: var(--brown-900); display: block; }
.cal-item small { color: var(--muted); }
.cal-type { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: var(--cb); color: var(--c); }
.is-past { opacity: .55; }

/* ---------- Downloads ---------- */
.dl { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: box-shadow .3s, transform .3s var(--ease); }
.dl:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.dl__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--t-red-bg); color: var(--t-red); display: grid; place-items: center; flex: none; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.dl__body { flex: 1; min-width: 0; }
.dl__body strong { display: block; color: var(--brown-900); }
.dl__body small { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -70px; position: relative; z-index: 3; }
.ccard { background: #fff; border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.ccard__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--brown-800); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 14px; }
.ccard__icon .ic { width: 22px; height: 22px; }
.ccard h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; color: var(--brown-800); margin-bottom: 8px; }
.ccard p, .ccard a { font-size: .9rem; margin: 0; line-height: 1.6; color: var(--text); word-break: break-word; }
.ccard a:hover { color: var(--gold-600); }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.phone-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.phone-list small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.phone-list a { font-weight: 700; color: var(--brown-800); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/7; background: var(--cream-200); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Empty + 404 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--cream-300); border-radius: var(--radius-lg); }
.empty .ic { width: 48px; height: 48px; color: var(--brown-300); margin: 0 auto 14px; display: block; }
.nf { text-align: center; padding: 100px 0; }
.nf__code { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--cream-300); font-weight: 700; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }
.js [data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav__link { padding: 10px 8px; font-size: .86rem; }
  .header .container { gap: 16px; }
}
@media (max-width: 1180px) {
  .brand__name { font-size: 1.15rem; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .quick { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .highlights__card { grid-template-columns: 1fr 1fr; }
  .hl:nth-child(3)::before { display: none; }
  .hl:nth-child(n+3) { border-top: 1px solid var(--line); }
  .acad-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > :first-child { grid-column: 1 / -1; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .grid-4, .steps, .contact-cards { grid-template-columns: 1fr 1fr; }
  .grid-3, .album-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .principal-full { grid-template-columns: 1fr; }
  .principal-full__photo { position: static; max-width: 320px; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { padding: 0 18px; }
  .topbar__left .hide-sm, .topbar__right .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__social { display: none; }
  .brand img { width: 50px; height: 50px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .1em; }
  .hero { height: auto; min-height: 600px; }
  .hero__slide { display: flex; }
  .hero__slide::after { background: linear-gradient(0deg, rgba(31, 19, 11, .95) 0%, rgba(43, 26, 16, .75) 55%, rgba(43, 26, 16, .35) 100%); }
  .hero__content { align-items: flex-end; padding-bottom: 130px; }
  .hero__controls { bottom: 84px; }
  .hero__controls .container { justify-content: flex-start; }
  .hero__arrow { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .highlights { margin-top: -54px; }
  .highlights__card { grid-template-columns: 1fr; }
  .hl::before { display: none; }
  .hl + .hl { border-top: 1px solid var(--line); }
  .hl { padding: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media::before { inset: 12px -10px -12px 12px; }
  .est-badge { left: 12px; bottom: -22px; }
  .quick__grid { grid-template-columns: 1fr 1fr; }
  .subjects { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .programs { grid-template-columns: 1fr; }
  .principal { grid-template-columns: 1fr; }
  .principal__photo { width: 120px; height: 140px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .trio { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .footer__bottom .container { flex-direction: column; text-align: center; align-items: center; }
  .grid-2, .grid-3, .grid-4, .split, .vm-grid, .steps, .album-grid, .news-grid, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .contact-cards { margin-top: -50px; }
  .cal-item { grid-template-columns: auto 1fr; }
  .cal-item .cal-type { grid-column: 2; justify-self: start; }
  .lb__prev, .lb__next { top: auto; bottom: 60px; margin: 0; }
  .lb__bar { padding: 0 90px; bottom: 74px; font-size: .8rem; }
  .map-embed { aspect-ratio: 4/3.4; }
  .section-head { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__move { animation: none; padding-left: 0; white-space: normal; }
}
@media print {
  .topbar, .header, .footer, .fab, .ticker, .hero__controls { display: none !important; }
  body { background: #fff; }
}
.mt-lg { margin-top: 2em; }
.nf__actions { justify-content: center; }

.footer__bottom .footer__credit { display: block; text-align: center; font-size: .78rem; color: #a8927a; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 14px; padding-top: 14px; }
.footer__credit strong { color: var(--gold-300); font-weight: 600; }
