/* ══════════════════════════════════════════════════
   Sermathai Vasan Nursery & Primary School – style.css
   Theme: Teal & Amber (Professional)
   ══════════════════════════════════════════════════ */

:root {
  --saffron:    #0d9488;
  --gold:       #f59e0b;
  --royal:      #0b1f3a;
  --navy:       #0f3d3e;
  --green-light:#27ae60;
  --font-h:     'Cinzel', serif;
  --font-b:     'Nunito', sans-serif;
  --shadow:     0 4px 24px rgba(15,61,62,0.10);
  --radius:     14px;
  --transition: all 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: #f6f9f9; color: #2d3a4a; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-b); }

/* ── SCHOOL HEADER ── */
.school-header-bar {
  background: #fff;
  border-bottom: 4px solid var(--saffron);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 14px 28px;
  display: flex; align-items: center;
  position: relative; min-height: 50px;
  contain: layout;
}
.shb-logo-wrap {
  position: absolute; left: 28px; top: 50%;
  transform: translateY(-50%); z-index: 2;
}
.shb-logo-circle {
  width: 120px; height: 1200px; border-radius: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 32px; font-weight: 900; color: #0f3d3e;
  flex-shrink: 0;
}
.shb-logo-circle img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border-radius: 0;
}
.shb-logo-fallback { font-family: var(--font-h); font-size: 32px; font-weight: 900; color: #fff; }
.shb-center-block {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 5px;
  padding: 0 100px;
}
.shb-name { font-family: var(--font-h); font-size: clamp(20px,2.8vw,34px); font-weight: 900; color: #0f3d3e; letter-spacing: 1px; }
.shb-name span { color: var(--saffron); }
.shb-established { font-size: clamp(11px,1.3vw,14px); color: #5a6a7a; font-weight: 600; }
.shb-accred { font-size: 12px; color: #8a6a2a; font-weight: 700; letter-spacing: 0.4px; }
.shb-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2px; }
.shb-tag { font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; letter-spacing: 0.3px; white-space: nowrap; }
.tag-gold  { background:#fff8e1; border:1px solid #f0c040; color:#7a5c00; }
.tag-green { background:#e8f5e9; border:1px solid #66bb6a; color:#1b5e20; }
.tag-blue  { background:#e0f2f1; border:1px solid #4db6ac; color:#004d40; }
.tag-navy  { background:#e3f2fd; border:1px solid #64b5f6; color:#0d47a1; }
.shb-contact-row-group { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; margin-top: 4px; }
.shb-citem { font-size: 11.5px; color: #4a5568; font-weight: 600; padding: 0 6px; }
.shb-cdivider { font-size: 11px; color: #cbd5e0; }
.shb-hamburger-mobile { display: none; }

/* ── NAVBAR ── */
.navbar {
  background: #0f3d3e; display: flex; align-items: center; justify-content: center;
  padding: 0 20px; position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 3px 16px rgba(0,0,0,0.35);
  will-change: transform;
}
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  display: block; padding: 14px 18px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.85); cursor: pointer;
  border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active-link { color: #fff; border-bottom-color: #f59e0b; background: rgba(255,255,255,0.08); }
.mobile-menu-overlay { display: none; }

/* ── INNER PAGE HEADER (dark blue bar in gallery/staff) — HIDDEN ── */
.inner-page-header { display: none !important; }

/* ── HERO SLIDER ── */
.slider-section { position: relative; width: 100%; }
.slider-container {
  position: relative; width: 100%;
  height: 88vh; min-height: 520px; max-height: 820px; overflow: hidden;
  contain: strict;
}
.slider-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.slider-image.active { opacity: 1; }
.slider-dots { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: 2px solid rgba(255,255,255,0.3); }
.dot.active { background: #f59e0b; border-color: #f59e0b; transform: scale(1.3); }

/* ── BUTTONS ── */
.btn-saffron {
  background: linear-gradient(135deg, #0d9488, #0f3d3e); color: #fff; border: none;
  padding: 13px 30px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,148,136,0.55); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-saffron:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,148,136,0.70); }
.btn-saffron:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; margin-top: 14px; font-size: 15px; padding: 14px; }

/* ── SECTION HEADING ── */
.section-heading { text-align: center; padding: 52px 20px 0; }
.section-heading h2 { font-family: var(--font-h); font-size: clamp(24px,3.5vw,38px); font-weight: 900; color: #0f3d3e; margin-bottom: 8px; }
.section-heading h2 span { color: var(--saffron); }
.section-heading p { font-size: 14px; color: #6b7a99; font-weight: 600; }
.heading-bar { width: 60px; height: 4px; background: linear-gradient(90deg,#0d9488,#f59e0b); border-radius: 2px; margin: 12px auto 0; }

/* ── HIGHLIGHTS ── */
.highlights {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px; padding: 40px 40px 48px; max-width: 1100px; margin: 0 auto;
}
.hcard { background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-bottom: 4px solid var(--saffron); transition: transform 0.3s; }
.hcard:hover { transform: translateY(-4px); }
.hcard-icon { font-size: 32px; margin-bottom: 14px; }
.hcard h3 { font-family: var(--font-h); font-size: 16px; color: var(--navy); margin-bottom: 10px; font-weight: 700; }
.hcard p  { font-size: 13.5px; color: #5a6a7a; line-height: 1.7; }

.section-sep { height: 2px; background: linear-gradient(90deg,transparent,#e2e8f0,transparent); margin: 0 40px; }

/* ── PAGE HEADER ── */
.page-header { text-align: center; padding: 60px 20px 40px; }
.page-title { font-family: var(--font-h); font-size: clamp(28px,4vw,42px); color: var(--navy); font-weight: 900; margin-bottom: 10px; }
.page-sub { font-size: 15px; color: #6b7a99; font-weight: 600; }
.back-page-btn { background: none; border: 2px solid var(--royal); color: var(--royal); padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--transition); margin-bottom: 12px; }
.back-page-btn:hover { background: var(--royal); color: #fff; }

/* ── ABOUT ── */
section#about, section#facilities, section#admissions, section#contact { padding: 0 0 60px; max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 40px; }
.about-text h3 { font-family: var(--font-h); font-size: 20px; color: var(--navy); margin: 24px 0 12px; }
.about-text p { font-size: 14px; color: #4a5568; line-height: 1.8; margin-bottom: 12px; }
.info-box { background: linear-gradient(135deg,#eaf6f5,#e3f2f0); border-radius: var(--radius); padding: 22px; margin-top: 20px; border-left: 4px solid var(--royal); }
.info-box h4 { font-family: var(--font-h); font-size: 15px; color: var(--navy); margin-bottom: 14px; }
.info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(15,61,62,0.1); }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: #6b7a99; font-weight: 600; }
.info-row span:last-child { color: var(--navy); font-weight: 700; }
.about-values h3 { font-family: var(--font-h); font-size: 20px; color: var(--navy); margin-bottom: 20px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.value-item > span { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.value-item strong { font-size: 14px; color: var(--navy); display: block; margin-bottom: 4px; }
.value-item p { font-size: 13px; color: #6b7a99; line-height: 1.6; }

/* ── HEADMASTER QUOTE ── */
.hm-quote-box {
  background: linear-gradient(135deg,#0f3d3e,#0b1f3a);
  border-radius: var(--radius); padding: 26px 24px 22px;
  margin: 22px 0; position: relative; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.hm-quote-icon { font-family: var(--font-h); font-size: 50px; color: rgba(245,158,11,0.55); line-height: 0.5; margin-bottom: 6px; }
.hm-quote-text { font-size: 14px; color: #f1f7f6; line-height: 1.8; font-style: italic; margin-bottom: 14px; }
.hm-quote-author { font-size: 13px; color: var(--gold); font-weight: 700; }

/* ── FACILITIES ── */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; padding: 0 40px; }
.facility-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: transform 0.3s; }
.facility-card:hover { transform: translateY(-4px); }
.fc-icon {
  width: 100%; height: 130px; border-radius: 10px; overflow: hidden;
  margin-bottom: 14px; background: linear-gradient(135deg,var(--navy),var(--royal));
  display: flex; align-items: center; justify-content: center;
}
.fc-icon img { width: 150%; height: 100%; object-fit: cover; object-position: center; }
.fc-icon-fallback { font-size: 36px; }
.facility-card h3 { font-family: var(--font-h); font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.facility-card p { font-size: 13px; color: #5a6a7a; line-height: 1.7; }

/* ── ADMISSIONS ── */
.admissions-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 40px; }
.steps { margin-bottom: 28px; }
.step { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--saffron),var(--gold)); color: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step strong { font-size: 14px; color: var(--navy); display: block; margin-bottom: 4px; }
.step p { font-size: 13px; color: #6b7a99; line-height: 1.6; }
.fees-box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fees-box h4 { font-family: var(--font-h); font-size: 16px; color: var(--navy); margin-bottom: 14px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table th { background: linear-gradient(135deg,var(--navy),var(--royal)); color: #fff; padding: 9px 14px; text-align: left; font-weight: 700; }
.fee-table td { padding: 9px 14px; border-bottom: 1px solid #e8ecf4; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:nth-child(even) td { background: #f7f8fc; }

/* ── FORMS ── */
.admission-form-box, .contact-form-box { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.admission-form-box h3 { font-family: var(--font-h); font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.form-note { font-size: 12px; color: #6b7a99; margin-bottom: 16px; }
.req { color: #e53935; margin-left: 2px; font-weight: 800; }
.opt { color: #9aabb5; font-size: 11px; font-weight: 600; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: #4a5568; margin-bottom: 5px; margin-top: 2px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #2d3a4a; margin-bottom: 12px;
  outline: none; transition: border-color 0.2s; background: #f9fbff;
}
.form-input:focus { border-color: var(--royal); background: #fff; box-shadow: 0 0 0 3px rgba(11,31,58,0.08); }
.char-count { font-size: 11px; color: #9aabb5; text-align: right; margin-top: -8px; margin-bottom: 10px; }
.form-success { color: var(--green-light); font-size: 14px; font-weight: 700; margin-top: 12px; padding: 12px 14px; background: #f0fff4; border-radius: 8px; border: 1px solid #b7ebc0; }

/* ── CONTACT ── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 40px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding: 16px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.contact-card > span { font-size: 22px; flex-shrink: 0; }
.contact-card strong { font-size: 13px; color: var(--navy); display: block; margin-bottom: 4px; font-weight: 700; }
.contact-card p { font-size: 13px; color: #5a6a7a; line-height: 1.7; }
.map-placeholder { background: linear-gradient(135deg,var(--navy),var(--royal)); border-radius: var(--radius); height: 140px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.map-inner { color: #fff; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.6; }

/* ── FOOTER ── */
.footer { background: linear-gradient(135deg,#04140f,#071f1d); color: #fff; padding: 50px 40px 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-top: 10px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-h); font-size: 14px; color: var(--saffron); margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: var(--saffron); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── FOOTER SOCIAL ICONS ── */
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.fs-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.fs-icon svg { width: 18px; height: 18px; fill: #fff; }
.fs-icon:hover { transform: translateY(-3px); }
.fs-facebook:hover  { background: #1877f2; border-color: #1877f2; }
.fs-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); border-color: transparent; }
.fs-youtube:hover    { background: #ff0000; border-color: #ff0000; }

/* ── INNER PAGES ── */
#gallery-page, #staff-page { background: #f6f9f9; min-height: 100vh; }
.inner-page-footer { background: #04140f; padding: 14px 40px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ── GALLERY MODE TOGGLE ── */
.gallery-mode-toggle { display: flex; justify-content: center; gap: 14px; margin: -10px 0 30px; }
.gmt-btn {
  background: #fff; border: 2px solid var(--royal); color: var(--royal);
  padding: 10px 28px; border-radius: 30px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--transition); box-shadow: var(--shadow);
}
.gmt-btn.active { background: linear-gradient(135deg,var(--saffron),var(--navy)); color: #fff; border-color: var(--saffron); }
.gmt-btn:hover { transform: translateY(-2px); }

/* ── GALLERY ── */
.year-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 0 40px 40px; max-width: 1000px; margin: 0 auto; }
.year-btn { background: #fff; border: 3px solid var(--royal); border-radius: var(--radius); padding: 20px 36px; font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--navy); cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.year-btn::before { content:''; position:absolute; inset:0; background:linear-gradient(135deg,var(--saffron),var(--gold)); opacity:0; transition:opacity 0.3s; }
.year-btn:hover::before { opacity:1; }
.year-btn:hover { color:#fff; transform:translateY(-4px); border-color:var(--saffron); }
.year-btn span, .year-btn small { position:relative; z-index:1; }
.year-btn small { display:block; font-size:11px; font-family:var(--font-b); font-weight:600; opacity:0.7; margin-top:2px; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; padding: 0 40px 40px; max-width: 900px; margin: 0 auto; }
.month-btn { background: #fff; border-radius: var(--radius); padding: 18px 14px; text-align: center; cursor: pointer; box-shadow: var(--shadow); border-top: 4px solid var(--royal); transition: var(--transition); }
.month-btn:hover { transform: translateY(-4px); border-top-color: var(--saffron); }
.month-btn .m-icon { font-size: 26px; margin-bottom: 8px; }
.month-btn .m-name { font-family: var(--font-h); font-size: 14px; color: var(--navy); font-weight: 700; }
.month-btn .m-count { font-size: 11px; color: #6b7a99; margin-top: 4px; }
.event-links-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; padding: 0 40px 40px; max-width: 1000px; margin: 0 auto; }
.event-link-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); cursor: pointer; border-left: 5px solid var(--saffron); transition: transform 0.2s; }
.event-link-card:hover { transform: translateX(6px); }
.elc-icon { font-size: 28px; margin-bottom: 10px; }
.elc-title { font-family: var(--font-h); font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 6px; }
.elc-date { font-size: 12px; color: #6b7a99; font-weight: 600; }
.elc-photos { font-size: 11px; color: var(--saffron); font-weight: 700; margin-top: 6px; }
.photo-mosaic { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; padding: 0 40px 40px; }
.photo-thumb { border-radius: 12px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg,var(--navy),var(--royal)); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; transition: transform 0.3s, box-shadow 0.3s; border: 2px solid rgba(255,255,255,0.3); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.photo-thumb:hover { transform: scale(1.04); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.photo-thumb .pt-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: linear-gradient(0deg,rgba(0,0,0,0.75),transparent); font-size: 12px; font-weight: 700; color: #fff; text-align: center; }

/* ── VIDEO GALLERY ── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 22px; padding: 0 40px 40px; max-width: 1100px; margin: 0 auto; }
.video-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--saffron); }
.video-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 14px 16px; }
.video-title { font-family: var(--font-h); font-size: 14px; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.video-date { font-size: 12px; color: #6b7a99; font-weight: 600; }

/* ── LIGHTBOX ── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: 800px; width: 90%; text-align: center; }
.lb-photo { background: linear-gradient(135deg,var(--navy),var(--royal)); border-radius: 16px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 80px; border: 3px solid rgba(255,255,255,0.2); overflow: hidden; }
.lb-photo img { width: 100%; height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 36px; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.lb-prev { left: -60px; } .lb-next { right: -60px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.30); }
.lb-caption { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 12px; font-weight: 600; }

/* ── STAFF ── */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.staff-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--royal); transition: transform 0.3s; }
.staff-card.principal { border-top-color: var(--saffron); grid-column: 1/-1; }
.staff-card:hover { transform: translateY(-4px); }
.staff-photo-wrap {
  width: 110px; height: 140px; margin: 0 auto 16px; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--royal); box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  background: linear-gradient(135deg,var(--navy),var(--royal));
  display: flex; align-items: center; justify-content: center;
}
.staff-card.principal .staff-photo-wrap { width: 130px; height: 165px; border-color: var(--saffron); box-shadow: 0 6px 20px rgba(13,148,136,0.30); }

/* Founder photo only — landscape (wide rectangle) instead of portrait */
.staff-card.principal .staff-photo-wrap.staff-photo-landscape {
  width: 100%;
  max-width: 420px;
  height: 230px;
  border-color: var(--saffron);
}
@media (min-width: 769px) {
  .staff-card.principal .staff-photo-wrap.staff-photo-landscape {
    max-width: 480px;
    height: 260px;
  }
}

.staff-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.staff-photo-wrap.staff-photo-landscape img { object-position: center center; }
.staff-photo-fallback { font-size: 52px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.staff-card h3 { font-family: var(--font-h); font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.staff-role { display: inline-block; background: linear-gradient(135deg,var(--saffron),var(--gold)); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }
.staff-card p { font-size: 13px; color: #5a6a7a; line-height: 1.7; }

/* ── GROUP BOX (used for the 3-patron group & the 4-leadership group) ── */
.staff-group-box {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--saffron);
  padding: 30px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
.staff-mini-card { flex: 1 1 190px; max-width: 230px; text-align: center; }
.staff-mini-photo {
  width: 110px; height: 140px; margin: 0 auto 14px; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--royal); box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  background: linear-gradient(135deg,var(--navy),var(--royal));
  display: flex; align-items: center; justify-content: center;
}
.staff-mini-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.staff-mini-card h3 { font-family: var(--font-h); font-size: 15px; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.staff-mini-sub { font-size: 12px; color: #5a6a7a; line-height: 1.5; margin-bottom: 6px; }

/* ── FEATURED / POPPED CENTER BOX — Vice Principal ── */
.staff-card.featured-staff {
  grid-column: 1 / -1;
  max-width: 300px;
  margin: 6px auto 14px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 12px 34px rgba(245,158,11,0.35);
  transform: scale(1.06);
  position: relative;
}
.staff-card.featured-staff:hover { transform: scale(1.06) translateY(-4px); }
.staff-card.featured-staff::before {
  content: "★ Vice Principal";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--saffron),var(--gold));
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}

/* ── TOAST ── */
.vv-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; padding: 14px 28px; border-radius: 12px;
  font-size: 14px; font-weight: 700; z-index: 99999;
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);
  animation: toastUp 0.3s ease; white-space: nowrap;
}
.vv-toast.success { background: #1b5e20; }
.vv-toast.error   { background: #b71c1c; }
@keyframes toastUp {
  from { opacity:0; transform: translateX(-50%) translateY(20px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

/* ════════════════════
   TABLET ≤900px
   ════════════════════ */
@media (max-width: 900px) {
  .about-grid, .admissions-wrapper, .contact-wrapper { grid-template-columns: 1fr; padding: 0 18px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ════════════════════
   MOBILE ≤768px
   ════════════════════ */
@media (max-width: 768px) {

  .school-header-bar {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; padding: 12px 16px 12px !important;
    position: relative !important; min-height: unset !important; gap: 0 !important;
  }
  .shb-logo-wrap { position: absolute !important; left: 12px !important; top: 12px !important; transform: none !important; }
  .shb-logo-circle { width: 44px !important; height: 44px !important; font-size: 18px !important; }

  .shb-hamburger-mobile {
    display: flex !important; flex-direction: column !important; gap: 5px !important;
    position: absolute !important; right: 12px !important; top: 14px !important;
    background: none !important; border: none !important; cursor: pointer !important; padding: 4px !important; z-index: 10 !important;
  }
  .shb-hamburger-mobile span { display: block !important; width: 24px !important; height: 2.5px !important; background: #0f3d3e !important; border-radius: 2px !important; }
  .shb-hamburger-mobile.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .shb-hamburger-mobile.active span:nth-child(2) { opacity: 0; }
  .shb-hamburger-mobile.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  .shb-center-block {
    display: flex !important; flex-direction: column !important; align-items: center !important;
    text-align: center !important; padding: 52px 8px 8px !important; width: 100% !important; gap: 4px !important;
  }
  .shb-name { font-size: 18px !important; line-height: 1.3 !important; display: block !important; color: #0f3d3e !important; font-weight: 900 !important; }
  .shb-name span { color: #0d9488 !important; }
  .shb-established { font-size: 10.5px !important; }
  .shb-accred { font-size: 10px !important; }
  .shb-tags { gap: 4px !important; }
  .shb-tag { font-size: 9.5px !important; padding: 2px 7px !important; }
  .shb-contact-row-group { display: none !important; }

  .navbar { display: none !important; }

  .mobile-menu-overlay {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    position: fixed !important; inset: 0 !important;
    background: rgba(7,31,29,0.97) !important;
    z-index: 9999 !important; opacity: 0 !important; pointer-events: none !important;
    transition: opacity 0.3s ease !important;
  }
  .mobile-menu-overlay.open { opacity: 1 !important; pointer-events: all !important; }
  .mobile-menu-close { position: absolute !important; top: 20px !important; right: 24px !important; background: none !important; border: none !important; color: #fff !important; font-size: 28px !important; cursor: pointer !important; }
  .mobile-nav-links { list-style: none !important; text-align: center !important; }
  .mobile-nav-links li { margin: 16px 0 !important; }
  .mobile-nav-links a { font-family: 'Cinzel', serif !important; font-size: 20px !important; color: #fff !important; font-weight: 700 !important; cursor: pointer !important; }
  .mobile-nav-links a:hover { color: #f59e0b !important; }

  .slider-container { height: 240px !important; min-height: 200px !important; max-height: 300px !important; }
  .slider-dots { bottom: 50px !important; }

  .highlights { grid-template-columns: 1fr; padding: 18px 14px; gap: 12px; }
  .page-header { padding: 28px 14px 20px; }
  .section-sep { margin: 0 14px; }
  section#about, section#facilities, section#admissions, section#contact { padding: 0 0 32px; }
  .about-grid { padding: 0 14px; gap: 18px; }
  .facilities-grid { grid-template-columns: 1fr 1fr; padding: 0 14px; gap: 10px; }
  .facility-card { padding: 14px 12px; }
  .admissions-wrapper { padding: 0 14px; gap: 18px; }
  .contact-wrapper { padding: 0 14px; gap: 14px; }
  .footer { padding: 24px 14px 0; }
  .footer-content { grid-template-columns: 1fr; gap: 18px; }
  .footer-social { justify-content: center; }
  .gallery-mode-toggle { gap: 8px; }
  .gmt-btn { padding: 8px 18px; font-size: 12.5px; }
  .year-grid { gap: 10px; padding: 0 14px 24px; }
  .year-btn { padding: 14px 10px; font-size: 18px; }
  .month-grid { grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 14px 24px; }
  .event-links-grid { grid-template-columns: 1fr; padding: 0 14px 24px; gap: 10px; }
  .photo-mosaic { grid-template-columns: repeat(2,1fr); gap: 8px; padding: 0 14px 24px; }
  .video-grid { grid-template-columns: 1fr; padding: 0 14px 24px; gap: 14px; }
  .staff-grid { grid-template-columns: 1fr 1fr; padding: 0 14px 40px; gap: 12px; }
  .staff-card.principal { grid-column: 1 / -1; }
  .staff-card.principal .staff-photo-wrap.staff-photo-landscape { height: 200px; max-width: 100%; }
  .staff-group-box { padding: 20px 16px; gap: 18px; }
  .staff-mini-card { flex: 1 1 130px; max-width: 160px; }
  .staff-mini-photo { width: 90px; height: 115px; }
  .staff-card.featured-staff { max-width: 220px; transform: scale(1); }
  .staff-card.featured-staff:hover { transform: translateY(-4px); }
  .lb-prev { left: 2px; font-size: 22px; padding: 6px 10px; }
  .lb-next { right: 2px; font-size: 22px; padding: 6px 10px; }
  .vv-toast { font-size: 12px; padding: 11px 18px; white-space: normal; max-width: 90vw; text-align: center; }
}

/* ════════════════
   SMALL ≤480px
   ════════════════ */
@media (max-width: 480px) {
  .shb-logo-circle { width: 40px !important; height: 40px !important; font-size: 16px !important; }
  .facilities-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card.principal { grid-column: 1; }
  .staff-card.principal .staff-photo-wrap.staff-photo-landscape { height: 180px; }
  .staff-mini-card { flex: 1 1 100%; max-width: 220px; }
  .year-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 0 12px 20px; }
  .month-grid { grid-template-columns: repeat(2,1fr); }
  .photo-mosaic { grid-template-columns: repeat(2,1fr); gap: 6px; }
}