/* =========================================================
   AARSS HIGH SCHOOL – Main Stylesheet
   Bootstrap 5 + custom theme + animations
   ========================================================= */

:root {
  --navy: #12305E;
  --navy-dark: #0B1F3F;
  --gold: #F5B921;
  --gold-dark: #8A5A00;
  --gold-soft: #FFF4D6;
  --ink: #1E2B3C;
  --body: #3D4A5C;
  --muted: #5B6A80;
  --light: #F5F8FC;
  --line: #E6ECF4;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(18, 48, 94, .14);
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --pad-x: clamp(18px, 5vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
a { color: var(--navy); text-decoration: none; transition: color .25s; }
a:hover { color: var(--navy-dark); }
img { max-width: 100%; }
h1, h2, h3, .font-head { font-family: var(--font-head); }

/* full-width container */
.container-wide { width: 100%; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Background patterns ---------- */
.pat-dots { background-image: radial-gradient(rgba(18,48,94,.10) 1.3px, transparent 1.5px); background-size: 22px 22px; }
.pat-grid {
  background-image: linear-gradient(rgba(18,48,94,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(18,48,94,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.pat-diag { background-image: repeating-linear-gradient(45deg, rgba(18,48,94,.05) 0 1px, transparent 1px 16px); }
.pat-rings {
  background-image:
    radial-gradient(circle at 100% 0, rgba(245,185,33,.16) 0 140px, transparent 141px),
    radial-gradient(circle at 0 100%, rgba(18,48,94,.07) 0 180px, transparent 181px),
    radial-gradient(rgba(18,48,94,.08) 1.2px, transparent 1.4px);
  background-size: auto, auto, 24px 24px;
}
.pat-dots-light { background-image: radial-gradient(rgba(255,255,255,.13) 1.3px, transparent 1.5px); background-size: 22px 22px; }
.pat-diag-light { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 16px); }
.pat-gold { background-image: repeating-linear-gradient(-45deg, rgba(18,48,94,.06) 0 2px, transparent 2px 14px); }
.bg-light-blue { background-color: var(--light); }
.bg-navy { background-color: var(--navy); color: #fff; }
.bg-navy-dark { background-color: var(--navy-dark); }

/* moving pattern on dark sections */
.pat-move { animation: patternMove 30s linear infinite; }
@keyframes patternMove { from { background-position: 0 0; } to { background-position: 440px 440px; } }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
#preloader .loader-logo {
  width: 96px; height: 96px; border-radius: 50%; background: #fff; padding: 10px;
  animation: pulseRing 1.6s ease-out infinite;
}
#preloader .loader-logo img { width: 100%; height: 100%; object-fit: contain; }
#preloader .loader-text { color: var(--gold); font-family: var(--font-head); letter-spacing: 3px; font-weight: 700; }
#preloader .loader-bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
#preloader .loader-bar span { display: block; width: 40%; height: 100%; background: var(--gold); animation: loadBar 1.1s ease-in-out infinite; }
@keyframes loadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(245,185,33,.6); }
  100% { box-shadow: 0 0 0 26px rgba(245,185,33,0); }
}

/* ---------- Scroll progress ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 2000;
  background: linear-gradient(90deg, var(--gold), #ffd66b);
  transition: width .1s linear;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #DCE5F2; font-size: 13px; }
.topbar a { color: #DCE5F2; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); }

/* news ticker */
.ticker { background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.ticker-label { background: var(--navy); color: var(--gold); padding: 8px 18px; position: relative; z-index: 2; flex-shrink: 0; }
.ticker-track { display: inline-flex; gap: 60px; padding-left: 100%; animation: ticker 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span i { margin-right: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Navbar ---------- */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, padding .3s;
  padding-top: 12px; padding-bottom: 12px;
}
.main-nav.scrolled { box-shadow: 0 8px 30px rgba(11,31,63,.12); padding-top: 6px; padding-bottom: 6px; }
.brand-logo { width: 68px; height: 58px; object-fit: contain; transition: transform .5s; }
.navbar-brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1.05; color: var(--navy); }
.brand-tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px; padding: 3px 8px; border-radius: 4px;
}
.main-nav .nav-link {
  color: var(--ink); font-weight: 500; font-size: 15px; position: relative;
  padding: 8px 0 !important; margin: 0 12px;
}
.main-nav .nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-link.active { color: var(--navy); font-weight: 600; }
.main-nav .dropdown-menu {
  border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: 10px;
  animation: dropIn .3s ease both;
}
.main-nav .nav-caret { font-size: 11px; margin-left: 4px; display: inline-block; vertical-align: middle; transition: transform .3s ease; -webkit-text-stroke: .5px; }
.main-nav .dropdown:hover .nav-caret,
.main-nav .dropdown-toggle.show .nav-caret { transform: rotate(180deg); }
.main-nav .dropdown-item { border-radius: 8px; padding: 8px 14px; font-size: 14px; }
.main-nav .dropdown-item:hover { background: var(--gold-soft); color: var(--navy); }
@keyframes dropIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ---------- Buttons ---------- */
.btn-gold, .btn-navy, .btn-outline-light-pill, .btn-outline-navy {
  border-radius: 999px; font-weight: 600; padding: 13px 26px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden; z-index: 1; transition: all .3s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); font-weight: 700; }
.btn-gold:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(245,185,33,.45); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover { color: #fff; background: var(--navy-dark); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(18,48,94,.35); }
.btn-outline-light-pill { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-light-pill:hover { background: #fff; color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
/* shine sweep */
.btn-shine::before {
  content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
}
.btn-shine:hover::before { animation: shine .8s ease; }
@keyframes shine { to { left: 125%; } }
.btn i { transition: transform .3s; }
.btn:hover i.bi-arrow-right { transform: translateX(5px); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; background: var(--navy-dark); }
.hero-slider .carousel-item { height: 640px; position: relative; overflow: hidden; }
.hero-slider .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
}
.hero-slider .carousel-item.active .slide-img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-slider .slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,63,.94) 0%, rgba(11,31,63,.82) 38%, rgba(11,31,63,.25) 72%, rgba(11,31,63,.1) 100%);
}
.hero-slider .slide-pattern { position: absolute; inset: 0; width: 55%; }
.hero-slider .slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; padding-bottom: 50px; color: #fff;
}
.hero-slider .slide-text { max-width: 470px; }
.hero-slider .slide-text > * { opacity: 0; }
.hero-slider .carousel-item.active .slide-text > * { animation: riseIn .8s ease forwards; }
.hero-slider .carousel-item.active .slide-text > *:nth-child(1) { animation-delay: .2s; }
.hero-slider .carousel-item.active .slide-text > *:nth-child(2) { animation-delay: .4s; }
.hero-slider .carousel-item.active .slide-text > *:nth-child(3) { animation-delay: .6s; }
.hero-slider .carousel-item.active .slide-text > *:nth-child(4) { animation-delay: .8s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,185,33,.16); color: var(--gold); border: 1px solid rgba(245,185,33,.5);
  font-size: 13px; font-weight: 600; letter-spacing: .6px; padding: 8px 14px; border-radius: 999px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.hero-title { font-weight: 900; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.18; margin: 20px 0; }
.hero-title span { color: var(--gold); }
.hero-text { font-size: 18px; line-height: 1.65; color: #DCE5F2; max-width: 430px; margin-bottom: 26px; }
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 84px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-slider .carousel-indicators { position: static; margin: 0; gap: 8px; align-items: center; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 12px; height: 6px; border-radius: 999px; border: 0; margin: 0;
  background: rgba(255,255,255,.5); opacity: 1; transition: width .4s, background .4s;
}
.hero-slider .carousel-indicators .active { width: 36px; background: var(--gold); }
.slide-counter { color: #DCE5F2; font-weight: 600; font-size: 14px; margin-left: 14px; }
.sl-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(11,31,63,.45); color: #fff; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center; transition: all .3s;
}
.sl-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.08); }
/* floating shapes in hero */
.float-shape { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.float-shape.s1 { width: 120px; height: 120px; border: 2px dashed rgba(245,185,33,.45); top: 70px; left: 42%; animation: spin 26s linear infinite; }
.float-shape.s2 { width: 18px; height: 18px; background: var(--gold); top: 22%; left: 38%; animation: floatY 4s ease-in-out infinite; }
.float-shape.s3 { width: 10px; height: 10px; background: #fff; bottom: 32%; left: 46%; animation: floatY 5s ease-in-out infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---------- Quick facts ---------- */
.quick-facts { position: relative; margin-top: -48px; z-index: 6; }
.facts-card { background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11,31,63,.14); overflow: hidden; }
.fact-item { display: flex; align-items: center; gap: 16px; padding: 26px 24px; border-right: 1px solid #EEF2F7; height: 100%; transition: background .3s; }
.fact-item:hover { background: var(--gold-soft); }
.fact-item:hover .fact-icon { transform: rotateY(360deg); }
.fact-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--gold-soft); color: #B77F00;
  display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .8s;
}
.fact-label { font-size: 13px; color: var(--muted); }
.fact-value { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.4; }

/* ---------- Section headings ---------- */
.section-pad { padding: 100px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-dark); font-weight: 700; font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; animation: growLine 2s ease-in-out infinite alternate; }
@keyframes growLine { from { width: 14px; } to { width: 34px; } }
.eyebrow.light { color: var(--gold); }
.section-title { font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; color: var(--navy); margin: 14px 0; }
.section-title.light { color: #fff; }
.section-sub { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 680px; }
.section-head-center { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head-center .section-sub { margin: 0 auto; }

/* ---------- About ---------- */
.about-text p { font-size: 17px; line-height: 1.75; color: var(--body); max-width: 620px; }
.mv-card { background: var(--light); border-radius: 14px; padding: 22px; height: 100%; transition: all .3s; border: 1px solid transparent; }
.mv-card:hover { background: #fff; border-color: var(--gold); box-shadow: var(--shadow); }
.mv-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 17px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.mv-card h4 i { color: #B77F00; font-size: 22px; }
.mv-card p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.about-img-wrap { position: relative; padding: 0 20px 20px 0; }
.about-img-wrap::before {
  content: ''; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%;
  border-radius: 22px; background: var(--gold); animation: floatY 6s ease-in-out infinite;
}
.about-img-wrap img { position: relative; width: 100%; aspect-ratio: 5 / 3.6; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 44px rgba(11,31,63,.18); }
.about-badge {
  position: absolute; left: -12px; top: 28px; background: var(--navy); color: #fff;
  border-radius: 14px; padding: 16px 20px; box-shadow: 0 14px 30px rgba(11,31,63,.25);
  animation: floatY 4s ease-in-out infinite;
}
.about-badge strong { font-family: var(--font-head); font-size: 26px; color: var(--gold); display: block; }
.about-badge span { font-size: 13px; color: #DCE5F2; }

/* ---------- Feature cards (why choose) ---------- */
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 28px; display: flex; gap: 18px;
  border: 1px solid var(--line); height: 100%; position: relative; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.feature-card::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 26px; transition: all .4s;
}
.feature-card:hover .feature-icon { background: var(--gold); color: var(--navy); transform: rotate(-10deg) scale(1.08); }
.feature-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-card p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }

/* ---------- Academics ---------- */
.acad-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11,31,63,.06); height: 100%; display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.acad-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.acad-img { overflow: hidden; height: 200px; position: relative; }
.acad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.acad-card:hover .acad-img img { transform: scale(1.1); }
.acad-img .acad-icon {
  position: absolute; right: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 4px solid #fff; transition: transform .5s; z-index: 2;
}
.acad-card:hover .acad-icon { transform: rotate(360deg); }
.acad-body { padding: 26px 24px 24px; flex-grow: 1; }
.acad-pill { display: inline-block; background: var(--gold-soft); color: #7A4F00; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.acad-body h3 { font-family: var(--font-body); font-size: 21px; font-weight: 700; color: var(--navy); margin: 10px 0 8px; }
.acad-body p { font-size: 15px; line-height: 1.6; color: var(--body); }
.check-list { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--body); }
.check-list li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.check-list i { color: #B77F00; }

/* ---------- Approach ---------- */
.step-line { border-top: 3px solid rgba(245,185,33,.35); padding-top: 22px; position: relative; height: 100%; }
.step-line::before {
  content: ''; position: absolute; top: -3px; left: 0; height: 3px; width: 0; background: var(--gold);
  transition: width 1.2s ease;
}
.step-line.aos-animate::before { width: 100%; }
.step-num { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: var(--gold); display: block; }
.step-line h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; color: #fff; margin: 8px 0; }
.step-line p { font-size: 15px; line-height: 1.6; color: #C9D5E8; margin: 0; }

/* ---------- Facilities ---------- */
.facility-card {
  background: #fff; border-radius: 16px; padding: 28px 24px; border: 1px solid var(--line); height: 100%;
  position: relative; overflow: hidden; z-index: 1; transition: all .4s;
}
.facility-card::before {
  content: ''; position: absolute; inset: 0; background: var(--navy); z-index: -1;
  transform: translateY(101%); transition: transform .45s ease;
}
.facility-card:hover::before { transform: translateY(0); }
.facility-card:hover h3 { color: #fff; }
.facility-card:hover p { color: #C9D5E8; }
.facility-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; transition: all .4s;
}
.facility-card:hover .facility-icon { background: var(--gold); animation: wobble .7s ease; }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
.facility-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--navy); transition: color .3s; }
.facility-card p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; transition: color .3s; }

/* ---------- Activities ---------- */
.act-img { border-radius: 18px; overflow: hidden; height: 240px; }
.act-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.act-img:hover img { transform: scale(1.08); }
.act-img.offset { margin-top: 44px; }
.act-pill {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--light);
  font-weight: 600; font-size: 15px; height: 100%; transition: all .3s; border: 1px solid transparent;
}
.act-pill i { color: var(--navy); font-size: 22px; transition: transform .4s; }
.act-pill:hover { background: #fff; border-color: var(--gold); transform: translateX(6px); }
.act-pill:hover i { transform: scale(1.25); color: #B77F00; }

/* ---------- Gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 18px; }
.gal-big { grid-column: span 2; grid-row: span 2; }
.gal-item { margin: 0; position: relative; border-radius: 18px; overflow: hidden; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gal-item::after {
  content: ''; position: absolute; inset: 0; background: rgba(11,31,63,.55); opacity: 0; transition: opacity .4s;
}
.gal-item .zoom {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px;
  transform: translate(-50%, -50%) scale(0); transition: transform .4s;
}
.gal-item figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(11,31,63,.85); color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: transform .4s;
}
.gal-item:hover img { transform: scale(1.1); }
.gal-item:hover::after { opacity: 1; }
.gal-item:hover .zoom { transform: translate(-50%, -50%) scale(1); }
.gal-item:hover figcaption { transform: translateY(-6px); background: var(--gold); color: var(--navy); }
@media (max-width: 991px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; } .gal-big { grid-column: auto; grid-row: auto; } }
/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(5,15,32,.92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; visibility: hidden; transition: all .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 14px; transform: scale(.85); transition: transform .4s; }
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--navy); font-size: 22px;
}

/* ---------- Achievements ---------- */
.ach-item { display: flex; align-items: center; gap: 16px; }
.ach-icon {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(245,185,33,.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; position: relative;
}
.ach-icon::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(245,185,33,.45);
  animation: spin 14s linear infinite;
}
.ach-item strong { font-size: 19px; color: #fff; display: block; }
.ach-item strong.big { font-family: var(--font-head); font-size: 28px; color: var(--gold); }
.ach-item span { font-size: 14px; color: #C9D5E8; }

/* ---------- Principal ---------- */
.principal-card { background-color: #FFFBF0; border: 1px solid #F3E3B5; border-radius: 24px; padding: 48px; }
.principal-photo {
  width: 200px; height: 200px; border-radius: 50%; background: var(--line); border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(11,31,63,.12); display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; flex-shrink: 0; position: relative;
}
.principal-photo::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 2px dashed var(--gold);
  animation: spin 20s linear infinite;
}
.quote-icon { font-size: 54px; color: var(--gold); line-height: 1; }
.principal-quote { font-family: var(--font-head); font-size: 22px; line-height: 1.6; color: var(--navy); }

/* ---------- Admission steps ---------- */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  height: 100%; box-shadow: 0 8px 24px rgba(11,31,63,.05); position: relative; transition: all .35s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.step-badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  position: relative;
}
.step-badge::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.step-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--navy); }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.step-arrow { position: absolute; right: -22px; top: 50px; color: var(--gold); font-size: 24px; z-index: 2; animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- CTA banner ---------- */
.cta-banner { background-color: var(--gold-soft); border-radius: 28px; padding: 40px 48px; position: relative; overflow: hidden; }
.cta-banner::before {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(245,185,33,.35); right: -80px; top: -120px; animation: floatY 6s ease-in-out infinite;
}
.cta-banner img { width: 300px; height: 170px; object-fit: cover; border-radius: 20px; animation: floatY 5s ease-in-out infinite; }
.cta-banner h2 { font-weight: 900; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--navy); }
.year-pill { background: var(--gold); padding: 0 10px; border-radius: 8px; display: inline-block; animation: popPulse 2.4s ease-in-out infinite; }
@keyframes popPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- News ---------- */
.news-card {
  background: #fff; border-radius: var(--radius); padding: 26px; display: flex; gap: 18px; border: 1px solid var(--line);
  height: 100%; transition: all .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-date {
  width: 72px; height: 78px; flex-shrink: 0; border-radius: 14px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .3s;
}
.news-card:hover .news-date { background: var(--gold); color: var(--navy); }
.news-date strong { font-size: 20px; color: var(--gold); transition: color .3s; }
.news-card:hover .news-date strong { color: var(--navy); }
.news-date span { font-size: 12px; letter-spacing: 1px; }
.news-cat { font-size: 12px; font-weight: 700; color: #7A4F00; letter-spacing: 1px; text-transform: uppercase; }
.news-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--navy); margin: 6px 0; }
.news-card p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; }

/* ---------- FAQ (Bootstrap accordion skin) ---------- */
.faq .accordion-item { border: 0; border-radius: 14px !important; overflow: hidden; margin-bottom: 14px; background: var(--light); }
.faq .accordion-button {
  background: var(--light); font-weight: 600; font-size: 17px; color: var(--navy); padding: 20px 24px; box-shadow: none;
}
.faq .accordion-button:not(.collapsed) { background: var(--navy); color: #fff; }
.faq .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.faq .accordion-body { font-size: 15px; line-height: 1.7; color: var(--body); padding: 18px 24px 22px; background: #fff; }

/* ---------- Contact ---------- */
.contact-line {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 18px;
  transition: all .3s; border: 1px solid transparent;
}
.contact-line:hover { border-color: var(--gold); transform: translateX(6px); }
.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-line strong { color: var(--navy); display: block; }
.contact-line span { font-size: 15px; line-height: 1.6; color: var(--body); }
.map-box {
  height: 220px; border-radius: 16px; background: #E1E8F2; border: 1px dashed #9AAAC0;
  display: flex; align-items: center; justify-content: center; color: #4A5A70; font-weight: 600;
}
.enquiry-form { background: #fff; border-radius: 22px; padding: 38px; box-shadow: 0 16px 40px rgba(11,31,63,.08); }
.enquiry-form .form-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.enquiry-form .form-control, .enquiry-form .form-select {
  border: 1px solid #C6D1E0; border-radius: 10px; padding: 12px 14px; min-height: 48px; font-size: 15px;
  transition: border-color .3s, box-shadow .3s;
}
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,185,33,.25); }
.form-success { display: none; background: #E7F6EC; color: #1E6B3A; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.form-success.show { display: block; animation: riseIn .5s ease; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--navy-dark); color: #C9D5E8; }
.footer-logo { background: #fff; border-radius: 12px; padding: 6px; display: inline-flex; }
.footer-logo img { width: 56px; height: 48px; object-fit: contain; }
.footer-title { color: #fff; font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #C9D5E8; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: all .3s; }
.footer-links a:hover { color: var(--gold); transform: translateX(6px); }
.social a {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; transition: all .35s;
}
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-5px) rotate(360deg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ---------- Back to top + WhatsApp float ---------- */
#backToTop {
  position: fixed; right: 24px; bottom: 24px; z-index: 1500; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--navy); font-size: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .35s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { background: var(--navy); color: var(--gold); }
.float-call {
  position: fixed; left: 24px; bottom: 24px; z-index: 1500; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.2); animation: pulseGreen 2s ease-out infinite;
}
.float-call:hover { color: #fff; transform: scale(1.08); }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 100% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .main-nav .navbar-collapse { padding: 16px 0; }
  .main-nav .nav-link { margin: 0; }
  .step-arrow { display: none; }
}
@media (max-width: 767px) {
  .section-pad { padding: 64px 0; }
  .hero-slider .carousel-item { height: 580px; }
  .hero-controls .sl-arrows { display: none !important; }
  .fact-item { border-right: 0; border-bottom: 1px solid #EEF2F7; }
  .principal-card, .cta-banner { padding: 28px; }
  .cta-banner img { width: 100%; }
  .act-img.offset { margin-top: 0; }
  .float-shape { display: none; }
}

/* =========================================================
   INNER PAGES
   ========================================================= */
/* page header banner */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: center; overflow: hidden; background: var(--navy-dark); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,63,.94) 0%, rgba(18,48,94,.80) 55%, rgba(18,48,94,.55) 100%); }
.page-hero .slide-pattern { position: absolute; inset: 0; opacity: .6; }
.page-hero-content { position: relative; z-index: 3; padding-top: 70px; padding-bottom: 70px; }
.page-hero-title { color: #fff; font-weight: 900; font-size: clamp(32px, 4vw, 50px); margin-bottom: 10px; }
.page-hero-sub { color: #DCE5F2; font-size: 17px; max-width: 560px; margin-bottom: 20px; }
.page-crumbs { display: inline-flex; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 18px; margin: 0; font-size: 14px; }
.page-crumbs .breadcrumb-item, .page-crumbs .breadcrumb-item a { color: #DCE5F2; }
.page-crumbs .breadcrumb-item a:hover { color: var(--gold); }
.page-crumbs .breadcrumb-item.active { color: var(--gold); font-weight: 600; }
.page-crumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero + .container-wide.quick-facts { margin-top: -40px; }
a.fact-item { color: inherit; }

/* about */
.mv-card.big { padding: 34px; background: #fff; border-color: var(--line); }
.mv-card.big p { font-size: 16px; line-height: 1.7; }
.about-text p { line-height: 1.8; color: var(--body); }
.message-body p { font-size: 16px; line-height: 1.85; color: var(--body); }

/* lists */
.check-list.big { font-size: 16px; }
.check-list.big li { margin-bottom: 12px; align-items: flex-start; }
.check-list.big li i { margin-top: 3px; font-size: 18px; }
.check-list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; }
.check-list.light { color: #DCE5F2; }
.check-list.light i { color: var(--gold); }

/* academics */
.stage-section { scroll-margin-top: 110px; }
.stage-img { position: relative; border-radius: 24px; overflow: visible; }
.stage-img img { width: 100%; height: 380px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.stage-img .acad-icon { position: absolute; right: 24px; bottom: -26px; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 28px; border: 5px solid #fff; }
.mini-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 12px; }
.subject-chip { background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; transition: all .3s; }
.subject-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.bg-light-blue .subject-chip { background: #fff; }
#apply { scroll-margin-top: 110px; }

/* facilities */
.fac-img { height: 380px; border-radius: 24px; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; }
.dark-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 36px; }
.dark-card .ach-icon { display: inline-flex; }

/* tables */
.table-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(11,31,63,.07); border: 1px solid var(--line); }
.info-table { font-size: 15px; }
.info-table thead th { background: var(--navy); color: #fff; font-weight: 600; padding: 16px 20px; border: 0; }
.info-table td { padding: 14px 20px; color: var(--body); border-color: var(--line); }
.info-table tbody tr:nth-child(even) td { background: var(--light); }
.info-table tbody tr:hover td { background: var(--gold-soft); }
.info-table td:first-child { font-weight: 600; color: var(--navy); }
.note-text { font-size: 14px; color: var(--muted); }
.doc-card { background: #fff; border-radius: 18px; padding: 30px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,31,63,.07); }
.doc-card .check-list i { color: var(--navy); }

/* gallery page */
.filter-btn { border: 2px solid var(--navy); background: transparent; color: var(--navy); font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: 999px; transition: all .3s; }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: #fff; }
.gal-page { grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 240px; }
.gal-item.is-hidden { display: none; }
@media (max-width: 991px) { .gal-page { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .gal-page { grid-template-columns: 1fr; grid-auto-rows: 220px; } }

/* news page */
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.read-more:hover i { transform: translateX(4px); }
.read-more i { transition: transform .3s; }
.side-card { background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line); }
.side-title { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--navy); display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.side-title i { color: var(--gold-dark); }
.event-list, .notice-list { list-style: none; padding: 0; margin: 0; }
.event-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.event-list li:last-child { border-bottom: 0; }
.ev-date { background: var(--gold-soft); color: #7A4F00; font-weight: 700; font-size: 12px; border-radius: 10px; padding: 8px 10px; min-width: 76px; text-align: center; }
.event-list strong { display: block; color: var(--navy); font-size: 15px; }
.event-list span { font-size: 13px; color: var(--muted); }
.notice-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { display: flex; gap: 10px; align-items: center; color: var(--body); font-size: 15px; }
.notice-list a:hover { color: var(--navy); }
.notice-list i { color: #C0392B; font-size: 18px; }
.side-cta { background: var(--navy); color: #DCE5F2; border: 0; }
.side-cta h3 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 20px; }

/* contact page */
.contact-line.bordered { border-color: var(--line); }
.map-frame { border-radius: 22px; overflow: hidden; box-shadow: 0 16px 40px rgba(11,31,63,.1); height: 420px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame.small { height: 240px; border-radius: 16px; }

/* careers */
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; height: 100%; transition: all .35s; }
.job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.job-card h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; color: var(--navy); margin: 12px 0; }
.job-card p { font-size: 14px; color: var(--body); margin-bottom: 6px; display: flex; gap: 8px; }
.job-card p i { color: var(--gold-dark); }

/* privacy */
.policy-card { max-width: 880px; background: #fff; border-radius: 22px; padding: 48px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,31,63,.06); }
.policy-card h2 { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.policy-card p, .policy-card li { font-size: 16px; line-height: 1.8; color: var(--body); }

@media (max-width: 767px) {
  .page-hero { min-height: 260px; }
  .page-hero-content { padding-top: 50px; padding-bottom: 60px; }
  .stage-img img, .fac-img { height: 260px; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .policy-card, .dark-card { padding: 26px; }
  .map-frame { height: 320px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-slider .slide-text > * { opacity: 1; }
}
