/* ===========================================================
   DPS Rewari — Redesign
   Theme: Deep forest green + heritage gold
   =========================================================== */
:root {
  --forest-900: #072118;
  --forest-800: #0e3324;
  --forest-700: #154a34;
  --forest-600: #1f6446;
  --forest-500: #2e8a5f;
  --mint: #eef6f0;
  --mint-200: #dcebdf;
  --gold: #d0ab67;
  --gold-600: #b88f45;
  --gold-100: #f7efe0;
  --cream: #f5f8f2;
  --white: #ffffff;
  --ink: #18261f;
  --muted: #56685d;
  --line: #dde8df;
  --green: #1f7a4d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 33, 24, .08);
  --shadow-lg: 0 24px 60px rgba(7, 33, 24, .18);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--forest-800); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--forest-800); color: #d3e2d8; }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* ---------- Common bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--muted); font-size: 17px; }
.section--dark .section-head p { color: #a9c2b2; }
.gold-text { color: var(--gold); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .3px;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--forest-900); }
.btn--gold:hover { background: var(--white); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(208, 171, 103, .35); }
.btn--outline { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--forest-800); }
.btn--dark { background: var(--forest-800); color: var(--white); }
.btn--dark:hover { background: var(--gold); color: var(--forest-900); transform: translateY(-3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--forest-900); color: #b6cdbe; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar__left, .topbar__right { display: flex; gap: 22px; align-items: center; }
.topbar__right a i { font-size: 14px; }
.topbar__badge { color: var(--gold); font-weight: 500; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: 0 6px 30px rgba(7, 33, 24, .08); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.logo { flex-shrink: 0; }
.logo img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-size: 15px; font-weight: 500; color: var(--forest-800); border-radius: 8px; transition: color .2s; white-space: nowrap;
}
.nav__link i { font-size: 10px; transition: transform .3s; }
.nav__link:hover, .nav__link.active { color: var(--gold-600); }
.nav__link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px;
  border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover .nav__link i { transform: rotate(180deg); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: var(--ink); transition: all .2s; }
.dropdown a:hover { background: var(--gold-100); color: var(--forest-800); padding-left: 20px; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn { padding: 12px 24px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--forest-800); font-size: 20px;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh - 128px); min-height: 600px; max-height: 860px; overflow: hidden; background: var(--forest-900); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease; }
.hero__slide.active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 33, 24, .92) 0%, rgba(7, 33, 24, .7) 45%, rgba(7, 33, 24, .15) 100%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero__text { max-width: 680px; color: var(--white); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 50px;
  background: rgba(208, 171, 103, .15); border: 1px solid rgba(208, 171, 103, .45);
  color: var(--gold); font-size: 13.5px; font-weight: 500; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.hero h1 { color: var(--white); font-size: clamp(38px, 6vw, 72px); font-weight: 700; margin-bottom: 22px; }
.hero h1 em { color: var(--gold); }
.hero p { font-size: 18px; color: #d6e5db; max-width: 560px; margin-bottom: 36px; }
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__dots { position: absolute; z-index: 3; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 50px; border: 0; background: rgba(255, 255, 255, .4); transition: all .4s; padding: 0; }
.hero__dots button.active { width: 38px; background: var(--gold); }
.hero__scroll {
  position: absolute; z-index: 3; right: 40px; bottom: 40px; color: rgba(255, 255, 255, .7);
  font-size: 12px; letter-spacing: 3px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 5; margin-top: -70px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 28px; text-align: center; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat__icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-600); font-size: 22px;
}
.stat__num { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--forest-800); line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Notice ticker ---------- */
.ticker { background: var(--gold); color: var(--forest-900); overflow: hidden; display: flex; align-items: center; }
.ticker__label {
  flex-shrink: 0; background: var(--forest-800); color: var(--gold); padding: 14px 24px;
  font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; z-index: 1;
}
.ticker__track { display: flex; gap: 60px; white-space: nowrap; animation: ticker 30s linear infinite; padding-left: 40px; font-weight: 500; font-size: 15px; }
.ticker__track span::before { content: "✦"; margin-right: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 85%; aspect-ratio: 4/5; object-fit: cover; }
.about__img-sub {
  position: absolute; right: 0; bottom: -40px; width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 8px solid var(--white); box-shadow: var(--shadow-lg);
}
.about__years {
  position: absolute; left: -20px; top: 40px; background: var(--forest-800); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.about__years strong { display: block; font-family: var(--font-head); font-size: 46px; color: var(--gold); line-height: 1; }
.about__years span { font-size: 13px; letter-spacing: 1px; }
.about__text h2 { font-size: clamp(30px, 4vw, 44px); }
.about__text > p { color: var(--muted); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 34px; }
.mv__card { padding: 24px; border-radius: var(--radius-sm); background: var(--cream); border-left: 4px solid var(--gold); }
.mv__card h4 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.mv__card h4 i { color: var(--gold-600); font-size: 18px; }
.mv__card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Awards ---------- */
.awards { overflow: hidden; }
.awards::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(208, 171, 103, .14), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(38, 110, 76, .6), transparent 45%);
}
.awards .container { position: relative; }
.awards__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.awards__head .section-head { margin: 0; }
.slider-nav { display: flex; gap: 12px; }
.slider-nav button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(208, 171, 103, .5);
  background: transparent; color: var(--gold); font-size: 16px; transition: all .3s;
}
.slider-nav button:hover { background: var(--gold); color: var(--forest-900); }
.awards__track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; scrollbar-width: none; }
.awards__track::-webkit-scrollbar { display: none; }
.award {
  flex: 0 0 calc((100% - 78px) / 4); scroll-snap-align: start;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius); overflow: hidden; transition: all .4s var(--ease);
}
.award:hover { transform: translateY(-8px); border-color: rgba(208, 171, 103, .5); background: rgba(255, 255, 255, .07); }
.award__img { aspect-ratio: 4/5; overflow: hidden; background: #0f3a29; }
.award__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.award:hover .award__img img { transform: scale(1.06); }
.award__body { padding: 22px; }
.award__tag { font-size: 11.5px; letter-spacing: 1.5px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.award__body h3 { font-size: 18px; margin: 8px 0 8px; color: var(--white); font-family: var(--font-body); font-weight: 600; line-height: 1.4; }
.award__body p { font-size: 13.5px; color: #9cb8a6; margin: 0; }
.award__year { display: inline-block; margin-top: 14px; font-size: 12px; padding: 4px 12px; border-radius: 50px; background: rgba(208, 171, 103, .15); color: var(--gold); }

/* ---------- Academics ---------- */
.academics__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 36px; }
.approach li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; transition: all .3s;
}
.approach li:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.approach li i { color: var(--gold-600); margin-top: 4px; }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quick-link {
  position: relative; padding: 34px 28px; border-radius: var(--radius); background: var(--forest-800); color: var(--white);
  overflow: hidden; transition: all .4s var(--ease); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between;
}
.quick-link:nth-child(2), .quick-link:nth-child(3) { background: var(--white); color: var(--forest-800); box-shadow: var(--shadow); }
.quick-link__num { font-family: var(--font-head); font-size: 15px; color: var(--gold); }
.quick-link h4 { color: inherit; font-family: var(--font-body); font-size: 19px; font-weight: 600; margin: 0; }
.quick-link i.arrow {
  position: absolute; right: 24px; top: 28px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid currentColor; opacity: .5; transition: all .4s;
}
.quick-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-link:hover i.arrow { opacity: 1; background: var(--gold); border-color: var(--gold); color: var(--forest-900); transform: rotate(-45deg); }

/* ---------- Infrastructure ---------- */
.facilities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.facility {
  background: var(--white); border-radius: var(--radius); padding: 30px 20px; text-align: center;
  border: 1px solid var(--line); transition: all .4s var(--ease);
}
.facility i {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--gold-100); color: var(--gold-600); font-size: 24px; transition: all .4s;
}
.facility h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin: 0; }
.facility:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.facility:hover i { background: var(--forest-800); color: var(--gold); transform: rotateY(180deg); }

/* ---------- Prodigies banner ---------- */
.prodigies {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--forest-800);
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
}
.prodigies__text { padding: 64px; color: #d3e2d8; position: relative; z-index: 1; }
.prodigies__text h2 { color: var(--white); font-size: clamp(30px, 4vw, 44px); }
.prodigies__img { position: relative; min-height: 380px; }
.prodigies__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prodigies__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--forest-800), transparent 50%); }

/* ---------- Alumni ---------- */
.alumni { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.alumni__logo {
  aspect-ratio: 1; background: var(--white); border-radius: var(--radius); display: grid; place-items: center; padding: 18px;
  border: 1px solid var(--line); transition: all .35s; filter: grayscale(.4);
}
.alumni__logo:hover { filter: none; transform: translateY(-5px); box-shadow: var(--shadow); }
.alumni__logo img { max-height: 100%; object-fit: contain; }

/* ---------- Gallery preview (home) ---------- */
.gpreview { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gpreview a { position: relative; border-radius: var(--radius); overflow: hidden; }
.gpreview a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gpreview a:nth-child(4) { grid-column: span 2; }
.gpreview img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gpreview a::after {
  content: attr(data-label); position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; color: var(--white);
  font-weight: 500; font-size: 15px; background: linear-gradient(transparent, rgba(7, 33, 24, .85));
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.gpreview a:hover img { transform: scale(1.08); }
.gpreview a:hover::after { transform: translateY(0); }
.center-cta { text-align: center; margin-top: 46px; }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event {
  display: flex; gap: 22px; padding: 28px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); transition: all .35s var(--ease);
}
.event:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.event__date {
  flex-shrink: 0; width: 76px; height: 86px; border-radius: 14px; background: var(--forest-800); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event__date strong { font-family: var(--font-head); font-size: 32px; line-height: 1; color: var(--gold); }
.event__date span { font-size: 12px; letter-spacing: 2px; margin-top: 4px; }
.event h4 { font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 10px; }
.event__meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.event__meta i { color: var(--gold-600); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact__info { background: var(--forest-800); color: #d3e2d8; padding: 60px; position: relative; overflow: hidden; }
.contact__info::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -120px; border-radius: 50%;
  border: 50px solid rgba(208, 171, 103, .1);
}
.contact__info h2 { color: var(--white); font-size: 38px; }
.contact__list { margin-top: 34px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list i {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: rgba(208, 171, 103, .15); color: var(--gold);
}
.contact__list small { display: block; color: #8aa996; font-size: 12.5px; }
.contact__list a { color: var(--white); font-weight: 500; }
.contact__list a:hover { color: var(--gold); }
.form { background: var(--white); padding: 60px; }
.form h3 { font-size: 28px; }
.form p { color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.form__grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--forest-800); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--cream);
  font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: var(--white); }
.form__msg { margin-top: 14px; color: var(--green); font-weight: 500; display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 130px 0 110px; color: var(--white); text-align: center; overflow: hidden;
  background: var(--forest-900);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 33, 24, .55), rgba(7, 33, 24, .95)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(40px, 6vw, 68px); margin-bottom: 14px; }
.page-hero p { color: #c4d8ca; max-width: 640px; margin: 0 auto 26px; font-size: 18px; }
.crumbs { display: inline-flex; gap: 10px; font-size: 14px; color: #a9c2b2; padding: 8px 20px; border-radius: 50px; background: rgba(255, 255, 255, .08); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ---------- Gallery page ---------- */
.gal-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 2; }
.gal-stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px; display: flex; gap: 18px; align-items: center; }
.gal-stat i { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); font-size: 22px; flex-shrink: 0; }
.gal-stat strong { display: block; font-family: var(--font-head); font-size: 30px; color: var(--forest-800); line-height: 1.1; }
.gal-stat span { font-size: 13.5px; color: var(--muted); }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.filter {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 50px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--forest-800); font-size: 15px; font-weight: 500;
  transition: all .3s var(--ease);
}
.filter i { color: var(--gold-600); transition: color .3s; }
.filter small { font-size: 12px; padding: 1px 9px; border-radius: 20px; background: var(--cream); color: var(--muted); }
.filter:hover { border-color: var(--gold); transform: translateY(-2px); }
.filter.active { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); box-shadow: 0 10px 24px rgba(14, 51, 36, .25); }
.filter.active i { color: var(--gold); }
.filter.active small { background: var(--gold); color: var(--forest-900); }

.masonry { columns: 3; column-gap: 22px; }
.tile {
  position: relative; break-inside: avoid; margin: 0 0 22px; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--cream); box-shadow: var(--shadow);
  animation: tileIn .6s var(--ease) both;
}
.tile.hide { display: none; }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.tile img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.tile--award img { aspect-ratio: 4/5; object-fit: cover; }
.tile__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 33, 24, .92)); color: var(--white);
  opacity: 0; transition: opacity .4s;
}
.tile__cat { align-self: flex-start; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; padding: 4px 12px; border-radius: 50px; background: var(--gold); color: var(--forest-900); margin-bottom: 10px; }
.tile__title { font-weight: 600; font-size: 17px; line-height: 1.35; transform: translateY(10px); transition: transform .4s var(--ease); }
.tile__sub { font-size: 13px; color: #c4d8ca; margin-top: 4px; }
.tile__zoom {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--forest-800); transform: scale(.5); opacity: 0; transition: all .4s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile:hover .tile__overlay { opacity: 1; }
.tile:hover .tile__title { transform: none; }
.tile:hover .tile__zoom { transform: scale(1); opacity: 1; }

/* Achievements highlight */
.achieve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.achieve__card {
  position: relative; padding: 34px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1); transition: all .4s var(--ease); overflow: hidden;
}
.achieve__card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.achieve__card:hover { transform: translateY(-6px); border-color: rgba(208, 171, 103, .45); }
.achieve__card i { font-size: 30px; color: var(--gold); margin-bottom: 18px; display: block; }
.achieve__card h3 { font-size: 24px; margin-bottom: 8px; }
.achieve__card p { font-size: 14.5px; color: #a5bfae; margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(3, 18, 12, .96); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.open .lightbox__figure { transform: scale(1); }
.lightbox__figure img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__cap { color: var(--white); margin-top: 18px; }
.lightbox__cap strong { display: block; font-size: 18px; font-weight: 600; }
.lightbox__cap span { color: #9cb8a6; font-size: 14px; }
.lb-btn {
  position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: var(--white); font-size: 18px; transition: all .3s;
}
.lb-btn:hover { background: var(--gold); color: var(--forest-900); border-color: var(--gold); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 34px; left: 32px; color: #9cb8a6; font-size: 14px; letter-spacing: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-900); color: #9cb8a6; padding: 90px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer__logo { height: 70px; width: auto; margin-bottom: 22px; }
.footer h5 { font-family: var(--font-head); font-size: 20px; color: var(--white); margin: 0 0 22px; }
.footer li { margin-bottom: 12px; }
.footer a { transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--gold); padding-left: 6px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact i { color: var(--gold); margin-top: 6px; }
.footer__contact a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); color: var(--white);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-900); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 24px 0; font-size: 13.5px; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: var(--gold); }

/* Floating buttons */
.float-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--forest-800); color: var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Green theme enhancements
   =========================================================== */
body { background: var(--cream); }
.section--cream {
  background-color: var(--mint);
  background-image: radial-gradient(rgba(31, 100, 70, .09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.section--dark {
  background-color: var(--forest-800);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(208, 171, 103, .16), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(46, 138, 95, .45), transparent 45%),
    radial-gradient(rgba(208, 171, 103, .10) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}
.section-head h2::after {
  content: "✦"; display: block; margin-top: 14px; font-size: 14px; color: var(--gold);
  letter-spacing: 18px; text-shadow: -26px 0 0 rgba(208, 171, 103, .45), 26px 0 0 rgba(208, 171, 103, .45);
}
.section-head:not(.center) h2::after { text-shadow: 26px 0 0 rgba(208, 171, 103, .45), 52px 0 0 rgba(208, 171, 103, .25); }
.awards__head .section-head h2::after { display: none; }

/* Buttons — gold gradient with shine */
.btn--gold { background: linear-gradient(135deg, #e6c88a, var(--gold) 45%, var(--gold-600)); position: relative; overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.btn--dark { background: linear-gradient(135deg, var(--forest-600), var(--forest-800)); }

/* Top bar + header */
.topbar { background: linear-gradient(90deg, var(--forest-900), var(--forest-700)); }
.header { border-bottom: 3px solid var(--gold); }
.nav__link.active { background: var(--mint); }
.nav__link.active::after { display: none; }

/* Hero */
.hero::after {
  background:
    linear-gradient(100deg, rgba(7, 33, 24, .94) 0%, rgba(14, 51, 36, .78) 45%, rgba(14, 51, 36, .35) 100%),
    radial-gradient(rgba(208, 171, 103, .12) 1px, transparent 1px);
  background-size: auto, 24px 24px;
}
.hero__content .container { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: center; }
.hero__card {
  justify-self: end; width: 100%; max-width: 380px; padding: 34px 30px; border-radius: 24px; color: var(--white);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  position: relative; animation: floaty 6s ease-in-out infinite;
}
.hero__card::before {
  content: "2026–27"; position: absolute; top: -16px; right: 24px; padding: 6px 16px; border-radius: 50px;
  background: var(--gold); color: var(--forest-900); font-weight: 600; font-size: 13px;
}
.hero__card h3 { color: var(--white); font-size: 26px; margin-bottom: 6px; }
.hero__card > p { font-size: 14px; color: #c4d8ca; margin-bottom: 20px; }
.hero__card ul { display: grid; gap: 12px; margin-bottom: 26px; }
.hero__card li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.hero__card li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(208, 171, 103, .2); color: var(--gold); font-size: 12px; flex-shrink: 0; }
.hero__card .btn { width: 100%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; pointer-events: none; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__dots { bottom: 110px; }
.hero__scroll { bottom: 110px; }

/* Stats — dark green card with gold numbers */
.stats { margin-top: -40px; }
.stats__grid { background: linear-gradient(135deg, var(--forest-700), var(--forest-900)); border: 1px solid rgba(208, 171, 103, .35); }
.stat { border-color: rgba(255, 255, 255, .1) !important; }
.stat__icon { background: rgba(208, 171, 103, .15); color: var(--gold); }
.stat__num { color: var(--gold); }
.stat__label { color: #c4d8ca; }

/* About */
.about__img-main { border: 6px solid var(--white); outline: 2px dashed rgba(208, 171, 103, .6); outline-offset: 12px; }
.about__years { background: linear-gradient(135deg, var(--forest-600), var(--forest-900)); border: 2px solid var(--gold); }
.mv__card { background: var(--mint); }

/* Awards */
.award { background: rgba(255, 255, 255, .05); backdrop-filter: blur(6px); }
.award:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 0 1px var(--gold); }

/* Facilities on dark green */
.section--dark .facility { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--dark .facility h4 { color: var(--white); }
.section--dark .facility i { background: rgba(208, 171, 103, .15); color: var(--gold); }
.section--dark .facility:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.section--dark .facility:hover i { background: var(--gold); color: var(--forest-900); }

/* Cards on light sections */
.approach li:hover, .event:hover { border-color: var(--forest-500); }
.quick-link { background: linear-gradient(135deg, var(--forest-600), var(--forest-900)); }
.event__date { background: linear-gradient(160deg, var(--forest-600), var(--forest-900)); }
.alumni__logo { border-radius: 50%; }
.prodigies { border: 1px solid rgba(208, 171, 103, .35); }
.prodigies, .contact__info {
  background-image: radial-gradient(rgba(208, 171, 103, .10) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Gallery */
.page-hero { background: var(--forest-900); }
.page-hero::after { background: linear-gradient(180deg, rgba(14, 51, 36, .6), rgba(7, 33, 24, .96)); }
.tile { border: 4px solid var(--white); }
.tile:hover { border-color: var(--gold); }
.filter.active { background: linear-gradient(135deg, var(--forest-600), var(--forest-800)); }

/* Footer */
.footer { border-top: 4px solid var(--gold); background-image: radial-gradient(rgba(208, 171, 103, .07) 1px, transparent 1px); background-size: 24px 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .nav { gap: 0; }
  .nav__link { padding: 10px 10px; font-size: 14.5px; }
  .header__cta .btn--gold { padding: 12px 18px; font-size: 14px; }
  .hero__scroll { right: 12px; }
}
@media (max-width: 1180px) {
  .nav, .header__cta .btn--dark { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
    background: var(--white); padding: 90px 22px 30px; overflow-y: auto; box-shadow: var(--shadow-lg); z-index: 200;
  }
  .nav.open .nav__link { padding: 14px; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav.open .nav__link.active::after { display: none; }
  .nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .nav.open .nav__item.expanded .dropdown { display: block; }
  .nav-close { position: absolute; top: 22px; right: 22px; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
  .alumni { grid-template-columns: repeat(4, 1fr); }
  .award { flex-basis: calc((100% - 52px) / 3); }
}
@media (min-width: 1181px) { .nav-close { display: none; } }
@media (max-width: 960px) {
  .section { padding: 76px 0; }
  .hero__content .container { grid-template-columns: 1fr; }
  .hero__card { display: none; }
  .hero__wave svg { height: 50px; }
  .about__grid, .academics__grid, .contact, .prodigies { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 560px; margin-bottom: 40px; }
  .stats__grid, .gal-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .events, .achieve { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .award { flex-basis: calc((100% - 26px) / 2); }
  .awards__head { flex-direction: column; align-items: flex-start; }
  .prodigies__img { min-height: 300px; order: -1; }
  .prodigies__img::before { background: linear-gradient(0deg, var(--forest-800), transparent 60%); }
  .gpreview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gpreview a:nth-child(4) { grid-column: span 1; }
  .topbar__left .topbar__badge { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__right { display: none; }
  .topbar .container { justify-content: center; }
  .header .container { min-height: 72px; }
  .logo img { height: 48px; }
  .header__cta .btn--gold { display: none; }
  .hero { min-height: 560px; height: auto; padding: 80px 0 120px; }
  .hero__scroll { display: none; }
  .stat { padding: 24px 12px; }
  .stat__num { font-size: 30px; }
  .mv, .approach, .quick-links, .form__grid { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .alumni { grid-template-columns: repeat(3, 1fr); }
  .award { flex-basis: 85%; }
  .contact__info, .form, .prodigies__text { padding: 36px 24px; }
  .masonry { columns: 1; }
  .gal-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gal-stat { flex-direction: column; text-align: center; padding: 20px 12px; gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__years { left: 0; }
  .lightbox__figure { padding: 70px 0 90px; }
  .lightbox__figure img { max-height: 60vh; }
  .lightbox__cap strong { font-size: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); }
  .filter { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
