:root {
  --navy:       #392B9D;
  --navy-deep:  #0F0C2E;
  --orange:     #FDDD16;
  --orange-deep:#E0241B;
  --orange-light:#FDDD16;
  --paper:      #FBF8F3;
  --paper-2:    #F3E9D8;
  --white:      #ffffff;
  --dark:       #0F0C2E;
  --shadow:     0 4px 24px rgba(57,43,157,.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Nunito', sans-serif;
  background: #fff;
  color: #222;
  overflow-x: hidden;
  width: 100%;
  padding-bottom: 64px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ══ TOP BAR ══ */
#topbar {
  background: var(--navy-deep);
  color: var(--orange-light);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .8rem;
  font-weight: 700;
}
#topbar .phones a {
  color: var(--orange-light);
  text-decoration: none;
  margin-right: 16px;
  white-space: nowrap;
}
#topbar .phones a i { margin-right: 5px; }
#topbar .social { display: flex; gap: 10px; }
#topbar .social a { color: rgba(255,255,255,.75); font-size: .95rem; transition: color .2s; text-decoration: none; }
#topbar .social a:hover { color: var(--orange-light); }

/* ══ HEADER ══ */
#header {
  background: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--orange);
  gap: 14px;
  flex-wrap: wrap;
}
.logo-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo-wrap img { height: 72px; width: 72px; object-fit: contain; flex: none; }
.school-info { min-width: 0; }
.school-info h1 {
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 2.5vw, 1.7rem);
  letter-spacing: .4px;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.22;
}
.school-info h1 span { color: var(--orange-deep); }
.school-info .tagline-sub { font-size: .76rem; color: #666; margin-top: 3px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy); color: #fff;
  padding: 10px 20px; border-radius: 30px;
  font-weight: 800; font-size: .82rem;
  border: none; cursor: pointer; text-decoration: none;
  font-family: 'Nunito', sans-serif;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.hbtn:hover { background: var(--navy-deep); transform: scale(1.03); }

/* ══ NAV ══ */
nav#mainNav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
#menuToggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 14px 0; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
#menuToggle span {
  display: block; width: 25px; height: 2.5px;
  background: #fff; border-radius: 3px; transition: all .3s;
}
#menuToggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#menuToggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menuToggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#navList { list-style: none; display: flex; align-items: stretch; margin: 0; padding: 0; gap: 0; }
#navList > li { position: relative; }
#navList > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 15px 15px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .3px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
#navList > li > a:hover,
#navList > li > a.active,
#navList > li:hover > a { background: var(--orange); color: var(--navy-deep); }
.nav-arrow { font-size: .6rem; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 220px;
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  border-radius: 0 0 12px 12px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .22s; z-index: 1000;
  list-style: none; padding: 4px 0;
}
#navList > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; color: #333; text-decoration: none;
  font-size: .82rem; font-weight: 600;
  border-bottom: 1px solid var(--paper-2);
  transition: background .15s, color .15s, padding .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--paper); color: var(--navy); padding-left: 24px; }
.dropdown li a i { color: var(--navy); width: 16px; text-align: center; }

/* ══ SLIDER ══ */
#slider { position: relative; overflow: hidden; height: 440px; }
.slides-wrap { display: flex; height: 100%; transition: transform .75s cubic-bezier(.77,0,.18,1); }
.slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease; }
.slide.active .slide-bg { transform: scale(1); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,12,46,.82) 0%, rgba(57,43,157,.5) 55%, transparent 100%);
}
.slide-text { position: relative; z-index: 2; padding: 0 60px; max-width: 620px; }
.slide-tag {
  background: var(--orange); color: var(--navy-deep);
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.slide-text h2 {
  font-family: 'Merriweather', serif; color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem); line-height: 1.3;
  font-weight: 900; text-shadow: 0 2px 14px rgba(0,0,0,.4); margin-bottom: 12px;
}
.slide-text p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.65; margin-bottom: 22px; }
.slide-btn {
  display: inline-block; background: var(--orange); color: var(--navy-deep);
  padding: 11px 28px; border-radius: 30px; font-weight: 800; font-size: .88rem;
  text-decoration: none; transition: transform .22s; box-shadow: 0 4px 18px rgba(253,221,22,.4);
}
.slide-btn:hover { transform: scale(1.06); }
.sl-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
}
.sl-arrow:hover { background: var(--navy); border-color: var(--navy); }
#slPrev { left: 16px; } #slNext { right: 16px; }
.sl-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.sl-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, transform .2s; }
.sl-dot.active { background: var(--orange); transform: scale(1.4); }

/* ══ SECTIONS COMMON ══ */
section { padding: 64px 0; position: relative; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sec-title { text-align: center; margin-bottom: 48px; }
.sec-label {
  display: inline-block; background: var(--orange); color: var(--navy-deep);
  padding: 4px 16px; border-radius: 20px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.sec-title h2 { font-family: 'Merriweather', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); font-weight: 900; }
.sec-title h2 span { color: var(--orange-deep); }
.sec-title p { max-width: 620px; margin: 12px auto 0; font-size: .92rem; color: #666; line-height: 1.6; }
.sec-bar { width: 56px; height: 4px; background: var(--orange); margin: 12px auto 0; border-radius: 4px; }

/* ══ PAGE HERO (inner pages) ══ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; text-align: center; padding: 56px 24px 48px;
}
.page-hero h1 { font-family: 'Merriweather', serif; font-size: clamp(1.7rem,4vw,2.6rem); font-weight: 900; }
.page-hero p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: .95rem; }
.breadcrumb { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: var(--orange-light); text-decoration: none; }

/* ══ WELCOME ══ */
#welcome { background: var(--paper); }
.welcome-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.msg-card {
  background: #fff; border-left: 5px solid var(--orange);
  border-radius: 0 14px 14px 0; padding: 26px 28px;
  box-shadow: var(--shadow); font-size: .95rem; line-height: 1.82; color: #3a3a3a;
}
.msg-card strong { color: var(--navy); }
.motto-ribbon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--orange-light);
  padding: 10px 22px; border-radius: 30px;
  font-weight: 800; font-size: .88rem; margin-top: 22px; font-style: italic;
}
.welcome-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.welcome-imgs .wi { border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.welcome-imgs .wi:first-child { grid-column: 1 / -1; }
.welcome-imgs .wi img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.welcome-imgs .wi:first-child img { height: 210px; }
.welcome-imgs .wi:hover img { transform: scale(1.05); }

/* ══ FACILITIES ══ */
#facilities { background: #fff; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fac-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 22px rgba(57,43,157,.1); border: 1.5px solid var(--paper-2);
  transition: transform .28s, box-shadow .28s;
}
.fac-card:hover { transform: translateY(-8px); box-shadow: 0 16px 44px rgba(57,43,157,.18); }
.fac-img { height: 170px; overflow: hidden; position: relative; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fac-card:hover .fac-img img { transform: scale(1.08); }
.fac-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(57,43,157,.55) 0%, transparent 60%); }
.fac-body { padding: 18px 18px 22px; }
.fac-body h3 {
  font-family: 'Merriweather', serif; font-size: .97rem; color: var(--navy);
  font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.fac-body h3 .fi {
  width: 28px; height: 28px; background: var(--paper); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--orange-deep); flex-shrink: 0;
}
.fac-card:nth-child(even) .fi { color: var(--navy); }
.fac-body p { font-size: .82rem; color: #555; line-height: 1.65; margin-bottom: 14px; }
.fac-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 7px 16px;
  border-radius: 20px; font-size: .76rem; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.fac-btn:hover { background: var(--orange-deep); }

/* ══ INFO ROW ══ */
#info-row { background: var(--paper); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-panel { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.info-head {
  background: var(--navy); color: #fff;
  padding: 16px 22px; font-family: 'Merriweather', serif;
  font-size: .95rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.info-head i { color: var(--orange-light); }
.info-body { padding: 22px; }
.dl-list { list-style: none; }
.dl-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px dashed var(--paper-2); font-size: .85rem;
}
.dl-list li:last-child { border-bottom: none; }
.dl-list li i { color: var(--orange-deep); width: 18px; text-align: center; flex-shrink: 0; }
.dl-list li a { flex: 1; color: var(--navy); text-decoration: none; font-weight: 700; transition: color .18s; }
.dl-list li a:hover { color: var(--orange-deep); }
.dl-list li span { flex: 1; color: #444; }
.about-point-list { list-style: none; }
.about-point-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--paper-2); font-size: .85rem; color: #444; line-height: 1.55;
}
.about-point-list li:last-child { border-bottom: none; }
.about-point-list li i { color: var(--orange-deep); margin-top: 3px; flex-shrink: 0; }
.about-point-list li strong { display: block; color: var(--navy); font-size: .88rem; }

/* Notice Board panel - continuous scrolling marquee (bottom to top) */
.notice-panel .notice-board-body { padding: 0; height: 264px; overflow: hidden; position: relative; }
.notice-marquee-viewport {
  height: 100%; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.notice-marquee-list { list-style: none; margin: 0; padding: 0; will-change: transform; }
.notice-marquee-list.scrolling { animation-name: noticeScroll; animation-timing-function: linear; animation-iteration-count: infinite; }
.notice-marquee-viewport:hover .notice-marquee-list.scrolling { animation-play-state: paused; }
.notice-marquee-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 24px; border-bottom: 1px dashed var(--paper-2);
  font-size: .86rem; line-height: 1.55;
}
.notice-marquee-list li:last-child { border-bottom: none; }
.notice-marquee-list li a, .notice-marquee-list li span { color: #444; text-decoration: none; }
.notice-marquee-list li a { font-weight: 700; color: var(--navy); }
.notice-marquee-list li a:hover { color: var(--orange-deep); text-decoration: underline; }
.notice-marquee-list li .notice-date {
  flex: none; margin-top: 1px; background: var(--paper); color: var(--orange-deep);
  font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 20px;
}
.notice-empty { padding: 26px 24px; color: #666; font-size: .85rem; }
/* Scrolls the duplicated list up by exactly one copy's height, so it loops
   seamlessly - content visibly travels from the bottom of the panel toward
   the top, on repeat. */
@keyframes noticeScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (max-width: 640px) {
  .notice-panel .notice-board-body { height: 240px; }
  .notice-marquee-list li { padding: 16px 20px; }
}

/* Quick Facts panel - optional download button */
.qf-download { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--paper-2); text-align: center; }
.qf-download a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; padding: 9px 20px;
  border-radius: 22px; font-size: .82rem; font-weight: 800;
  text-decoration: none; transition: background .2s;
}
.qf-download a:hover { background: var(--orange-deep); }

/* ══ GALLERY ══ */
#gallery { background: var(--navy); }
#gallery .sec-label { background: rgba(255,255,255,.18); color: var(--orange-light); }
#gallery .sec-title h2 { color: #fff; }
#gallery .sec-title h2 span { color: var(--orange-light); }
#gallery .sec-bar { background: var(--orange); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.g-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.1); }
.g-overlay {
  position: absolute; inset: 0; background: rgba(15,12,46,.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s; color: var(--orange-light); font-size: 1.5rem;
}
.g-item:hover .g-overlay { opacity: 1; }
.gallery-more { text-align: center; margin-top: 32px; }
.gallery-more a {
  display: inline-block; background: var(--orange); color: var(--navy-deep);
  padding: 12px 34px; border-radius: 30px; font-weight: 800; font-size: .9rem;
  text-decoration: none; transition: transform .2s;
}
.gallery-more a:hover { transform: scale(1.04); }

/* filter tabs (gallery page) */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  background: #fff; border: 1.5px solid var(--paper-2); color: var(--navy);
  padding: 9px 20px; border-radius: 30px; font-size: .82rem; font-weight: 700;
  cursor: pointer; font-family: 'Nunito', sans-serif; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery-grid.full { grid-template-columns: repeat(4,1fr); }
.g-item[hidden] { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(8,20,28,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px,92vw); max-height: 80vh; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lb-cap { color: #fff; text-align: center; margin-top: 12px; font-size: .85rem; opacity: .8; }
.lb-close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; border: none; }
.lb-close:hover { background: var(--orange); color: var(--navy-deep); }

/* ══ FOOTER ══ */
footer.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer-top { padding: 52px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft-brand img { height: 78px; margin-bottom: 14px; filter: drop-shadow(0 2px 8px rgba(253,221,22,.3)); }
.ft-brand p { font-size: .82rem; line-height: 1.75; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.ft-motto {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--orange-light); color: var(--orange-light);
  padding: 6px 16px; border-radius: 20px; font-size: .78rem; font-weight: 700; font-style: italic; margin-bottom: 16px;
}
.ft-social { display: flex; gap: 9px; margin-top: 4px; }
.ft-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .9rem; text-decoration: none; transition: background .2s, color .2s;
}
.ft-social a:hover { background: var(--orange); color: var(--navy-deep); }
footer.site-footer h4 {
  font-family: 'Merriweather', serif; color: var(--orange-light); font-size: 1.05rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(253,221,22,.35);
}
.ft-links { list-style: none; }
.ft-links li {
  padding: 9px 0; display: flex; align-items: flex-start; gap: 12px;
  font-size: .88rem; color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: transform .2s;
}
.ft-links li:hover { transform: translateX(5px); }
.ft-links li:last-child { border-bottom: none; }
.ft-links li > i {
  color: var(--navy-deep); background: var(--orange);
  width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; box-shadow: 0 3px 10px rgba(253,221,22,.3);
}
.ft-links li a { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .2px; transition: color .2s; }
.ft-links li a:hover { color: var(--orange-light); }
.ft-links li strong { color: #fff; font-size: .82rem; font-weight: 800; display: block; margin-bottom: 2px; letter-spacing: .2px; }
.ft-links li span { font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 600; }
.footer-bar { background: rgba(0,0,0,.25); padding: 14px 24px; text-align: center; font-size: .75rem; color: rgba(255,255,255,.38); }
.footer-bar a { color: var(--orange-light); text-decoration: none; }

/* ══ MOBILE BOTTOM NAV ══ */
#mobileBottomNav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy); border-top: 3px solid var(--orange);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
#mobileBottomNav ul { list-style: none; display: flex; justify-content: space-around; }
#mobileBottomNav ul li a {
  display: flex; flex-direction: column; align-items: center;
  padding: 9px 14px 7px; color: rgba(255,255,255,.65); text-decoration: none;
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; gap: 3px;
  transition: color .2s; white-space: nowrap; border: none; background: none; cursor: pointer;
}
#mobileBottomNav ul li a i { font-size: 1.2rem; }
#mobileBottomNav ul li a.active, #mobileBottomNav ul li a:hover { color: var(--orange-light); }

/* ══ NOTICE / STEPS / CARDS (admission) ══ */
.notice-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--orange-deep) 100%);
  color: #fff; border-radius: 18px; padding: 28px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.notice-box h3 { font-family: 'Merriweather', serif; font-size: 1.2rem; margin-bottom: 10px; }
.notice-box p { font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.6; margin-bottom: 16px; }
.notice-box a {
  display: inline-block; background: var(--orange); color: var(--navy-deep);
  padding: 10px 24px; border-radius: 30px; font-weight: 800; font-size: .85rem; text-decoration: none;
  transition: transform .2s;
}
.notice-box a:hover { transform: scale(1.05); }

.steps { display: flex; flex-direction: column; gap: 20px; }
.step-item { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: var(--navy-deep); font-weight: 900; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.step-text h4 { font-family: 'Merriweather', serif; color: var(--navy); font-size: .98rem; margin-bottom: 4px; }
.step-text p { font-size: .85rem; color: #555; line-height: 1.6; }

.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.adm-card { background: #fff; border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow); }
.adm-card h3 { font-family: 'Merriweather', serif; color: var(--navy); font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.adm-card ul { list-style: none; }
.adm-card ul li { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: .85rem; color: #444; border-bottom: 1px dashed var(--paper-2); }
.adm-card ul li:last-child { border-bottom: none; }
.adm-card ul li i { color: var(--orange-deep); flex-shrink: 0; }

.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.cta-btns a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 30px; font-weight: 800; font-size: .88rem; text-decoration: none;
  transition: transform .2s;
}
.cta-btns a:hover { transform: scale(1.04); }
.cta-call { background: var(--orange); color: var(--navy-deep); }
.cta-wa { background: #25D366; color: #fff; }
.cta-mail { background: var(--navy); color: #fff; }

/* ══ CONTACT ══ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.c-row { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--paper-2); }
.c-row:last-child { border-bottom: none; }
.c-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--orange-deep); font-size: 1rem;
}
.c-info strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: #888; margin-bottom: 2px; }
.c-info a, .c-info span { color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; }
.map-box { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); height: 260px; margin-top: 22px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.contact-card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }

/* whatsapp float */
.wa-float {
  position: fixed; right: 18px; bottom: 86px; z-index: 9998;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); font-size: 1.5rem;
}
@media (max-width: 980px) { .wa-float { bottom: 96px; right: 14px; width: 50px; height: 50px; font-size: 1.35rem; } }

/* ══ REVEAL ══ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ══ RESPONSIVE ══ */
@media (max-width: 980px) {
  .welcome-grid, .info-grid, .footer-grid, .adm-grid, .contact-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #mobileBottomNav { display: block; }
  #menuToggle { display: flex; }
  .header-cta { display: none; }
  #navList {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.28);
    max-height: 75vh; overflow-y: auto; z-index: 998;
  }
  #navList.open { display: flex; }
  #navList > li > a { padding: 13px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border-top: none; border-radius: 0;
    border-left: 4px solid var(--orange); margin-left: 16px;
    display: none; background: rgba(0,0,0,.15);
  }
  .dropdown.open { display: block; }
  .dropdown li a { color: rgba(255,255,255,.82); background: transparent; border-bottom-color: rgba(255,255,255,.07); }
  .dropdown li a:hover { background: rgba(255,255,255,.1); color: var(--orange-light); padding-left: 24px; }
}
@media (max-width: 760px) {
  #topbar { display: none; }
}
@media (max-width: 600px) {
  #header { padding: 12px 16px; }
  .logo-wrap { gap: 12px; width: 100%; }
  .logo-wrap img { height: 70px; width: 70px; }
  .school-info h1 { font-size: 1.12rem; letter-spacing: .2px; white-space: nowrap; }
  .school-info .tagline-sub { display: block; font-size: .72rem; }
}
@media (max-width: 340px) {
  .logo-wrap img { height: 60px; width: 60px; }
  .school-info h1 { font-size: .92rem; }
  .school-info .tagline-sub { font-size: .66rem; }
}
@media (max-width: 560px) {
  .fac-grid { grid-template-columns: 1fr; }
  .welcome-imgs { grid-template-columns: 1fr; }
  .welcome-imgs .wi:first-child { grid-column: 1; }
  #slider { height: 320px; }
  .slide-text { padding: 0 22px; }
  .slide-text h2 { font-size: 1.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   ADDITIONS FOR THE CMS VERSION OF THE SITE
   (all rules above are unchanged from the original design)
   ══════════════════════════════════════════════════════════ */

/* nav: keep the longer menu on one line on smaller desktops */
@media (min-width: 981px) and (max-width: 1180px) {
  #navList > li > a { padding: 15px 10px; font-size: .74rem; letter-spacing: .2px; }
}

/* ══ FACILITY DETAIL ROWS (facilities page, moved from inline <style>) ══ */
.detail-row{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;padding:44px 0;border-bottom:1px solid var(--paper-2);}
.detail-row:last-child{border-bottom:none;}
.detail-row.rev .d-media{order:2;}
.detail-row.rev .d-text{order:1;}
.d-media{border-radius:18px;overflow:hidden;box-shadow:var(--shadow);}
.d-media img{width:100%;height:320px;object-fit:cover;}
.d-text h2{font-family:'Merriweather',serif;color:var(--navy);font-size:clamp(1.2rem,2.4vw,1.6rem);font-weight:900;margin-bottom:12px;}
.d-text .lead{font-size:.92rem;color:#555;line-height:1.75;margin-bottom:16px;}
.d-list{list-style:none;}
.d-list li{display:flex;align-items:flex-start;gap:9px;padding:7px 0;font-size:.85rem;color:#444;}
.d-list li i{color:var(--orange-deep);margin-top:4px;flex-shrink:0;}
@media (max-width:820px){.detail-row,.detail-row.rev{grid-template-columns:1fr;}.detail-row.rev .d-media,.detail-row.rev .d-text{order:initial;}.d-media img{height:220px;}}

/* ══ EMPTY STATE ══ */
.empty-note {
  text-align: center; color: #666; font-size: .95rem; padding: 40px 20px;
  background: var(--paper); border: 1.5px dashed var(--paper-2); border-radius: 18px;
}
.empty-note i { font-size: 2rem; color: var(--navy); margin-bottom: 10px; display: block; }

/* ══ NEWS ══ */
#news-preview { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 22px rgba(57,43,157,.1); border: 1.5px solid var(--paper-2);
  transition: transform .28s, box-shadow .28s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 16px 44px rgba(57,43,157,.18); }
.news-img { display: block; height: 190px; overflow: hidden; position: relative; background: var(--paper); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-img img.news-img-fallback { object-fit: contain; padding: 28px; }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-date {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--orange); color: var(--navy-deep);
  padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
}
.news-body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-family: 'Merriweather', serif; font-size: .98rem; line-height: 1.45; margin-bottom: 8px; }
.news-body h3 a { color: var(--navy); transition: color .2s; }
.news-body h3 a:hover { color: var(--orange-deep); }
.news-body p { font-size: .83rem; color: #555; line-height: 1.65; margin-bottom: 14px; flex: 1; }
.news-body .fac-btn { align-self: flex-start; }
.news-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; font-size: .85rem; color: #666; }
.news-pager a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 8px 18px; border-radius: 20px; font-weight: 700;
}
.news-pager a:hover { background: var(--orange-deep); }

.news-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.news-article-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.news-article-img img { width: 100%; max-height: 460px; object-fit: cover; }
.news-lead {
  font-size: 1rem; color: var(--navy); font-weight: 700; line-height: 1.7;
  border-left: 5px solid var(--orange); padding: 6px 0 6px 16px; margin-bottom: 20px;
}
.news-content { font-size: .95rem; line-height: 1.85; color: #3a3a3a; }
.news-content strong { color: var(--navy); }
.news-back { margin-top: 28px; }
.news-aside .dl-list li { align-items: flex-start; }
.news-aside .dl-list li i { margin-top: 4px; }

/* ══ MANDATORY DISCLOSURE ══ */
.md-section { margin-bottom: 40px; }
.md-section:last-child { margin-bottom: 0; }
.md-heading {
  font-family: 'Merriweather', serif; color: var(--navy); font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 900; margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.md-heading span {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: var(--navy); color: var(--orange-light);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.md-subheading {
  font-family: 'Nunito', sans-serif; color: var(--navy); font-size: .98rem; font-weight: 800;
  margin: 22px 0 12px; text-transform: uppercase; letter-spacing: .03em;
}
.md-table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow); background: #fff; }
.md-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.md-table thead th {
  background: var(--navy); color: #fff; text-align: left;
  padding: 13px 18px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 3px solid var(--orange);
}
.md-table td { padding: 12px 18px; border-bottom: 1px solid var(--paper-2); color: #333; vertical-align: top; line-height: 1.55; }
.md-table tbody tr:last-child td { border-bottom: none; }
.md-table tbody tr:nth-child(even) td { background: var(--paper); }
.md-table .md-label { font-weight: 700; color: var(--navy); }
.md-info .md-label { width: 45%; }
.md-table .md-sl { width: 80px; text-align: center; }
.md-table .md-action { width: 170px; text-align: center; }
.md-view {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 6px 16px; border-radius: 20px;
  font-size: .76rem; font-weight: 700; transition: background .2s;
}
.md-view:hover { background: var(--orange-deep); }
.md-pending { color: #999; font-style: italic; font-size: .82rem; }
.md-empty { padding: 16px 18px; background: #fff; border-radius: 12px; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .md-table td, .md-table thead th { padding: 10px 12px; }
  .md-table .md-action { width: 120px; }
  .md-table .md-sl { width: 56px; }
}