/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #1d2c28; background: #fff; }

/* ===== COLOUR VARIABLES ===== */
:root {
  --dark:       #1d2c28;      /* primary dark */
  --dark-deep:  #141f1b;      /* deeper dark for hero/footer */
  --dark-mid:   #2a3f39;      /* mid dark */
  --green-pale: #d8e3d4;      /* primary pale green */
  --green-soft: #c5d6bf;      /* slightly deeper pale */
  --green-mid:  #4a7c59;      /* accent green */
  --green-acc:  #3d6b49;      /* hover accent */
  --gold:       #c8a84b;      /* gold accent */
  --gold-light: #e2c46a;      /* gold highlight */
  --white:      #ffffff;
  --text-dark:  #1d2c28;
  --text-mid:   #4a5c52;
  --text-light: #7a9080;
  --shadow:     0 8px 32px rgba(29,44,40,0.15);
  --radius:     16px;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-weight: 600;
  font-size: 0.93rem; cursor: pointer; text-decoration: none;
  transition: all 0.3s ease; border: none; font-family: 'Poppins', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  color: #fff; box-shadow: 0 4px 20px rgba(29,44,40,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(29,44,40,0.45); background: linear-gradient(135deg, var(--green-mid), var(--dark)); }
.btn-secondary {
  background: transparent; color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-secondary:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.75); }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.section-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--dark); margin-bottom: 14px;
}
.section-desc { color: var(--text-mid); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark-deep); padding: 8px 0; font-size: 0.78rem;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { color: rgba(216,227,212,0.8); display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--gold-light); font-size: 0.72rem; }
.topbar-right { display: flex; gap: 10px; }
.topbar-right a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(216,227,212,0.1); border: 1px solid rgba(216,227,212,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(216,227,212,0.7); font-size: 0.75rem; text-decoration: none; transition: all 0.3s;
}
.topbar-right a:hover { background: var(--green-mid); color: #fff; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; max-width: 100%; z-index: 1000;
  padding: 16px 0; transition: all 0.4s ease;
  background: rgba(20,31,27,0.85); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.navbar.scrolled {
  background: rgba(20,31,27,0.97); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0; box-shadow: 0 4px 24px rgba(20,31,27,0.4);
  top: 0 !important;
}
body .navbar { top: 38px; }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-image {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--gold);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.logo-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon i { font-size: 1.2rem; color: var(--dark-deep); }
.logo-name { display: block; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-sub { display: block; font-size: 0.62rem; color: var(--green-pale); letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a {
  color: rgba(216,227,212,0.9); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold-light); transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1003; position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1510 0%, #141f1b 30%, #1d2c28 65%, #2a3f39 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23d8e3d4' fill-opacity='0.03'%3E%3Cpath d='M50 50v-10h-5v10H35v5h10v10h5V55h10v-5H50zM50 10V0h-5v10H35v5h10v10h5V15h10v-5H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at 60% 40%, rgba(216,227,212,0.07) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center; padding: 130px 24px 90px; max-width: 860px;
  width: 100%;
}
.hero-affiliation {
  font-size: 0.78rem; letter-spacing: 3px; color: var(--gold-light);
  text-transform: uppercase; margin-bottom: 20px;
  background: rgba(216,227,212,0.08); border: 1px solid rgba(216,227,212,0.15);
  display: inline-block; padding: 8px 20px; border-radius: 50px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.hero-content h1 span { color: var(--gold-light); }
.hero-desc {
  font-size: 1.02rem; color: rgba(216,227,212,0.82);
  line-height: 1.8; margin-bottom: 36px;
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(216,227,212,0.08); border: 1px solid rgba(216,227,212,0.18);
  backdrop-filter: blur(8px); color: #fff;
  padding: 9px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
}
.badge i { color: var(--gold-light); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(216,227,212,0.45); font-size: 0.72rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(8px)}
}

/* ===== QUICK LINKS BAR ===== */
.quicklinks-bar {
  background: var(--dark); padding: 0;
}
.quicklinks-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
}
.qlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-pale); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; padding: 14px 20px;
  border-right: 1px solid rgba(216,227,212,0.12);
  transition: all 0.3s; letter-spacing: 0.3px;
}
.qlink:last-child { border-right: none; }
.qlink i { font-size: 0.82rem; color: var(--gold-light); }
.qlink:hover { background: rgba(216,227,212,0.1); color: #fff; }

/* ===== NOTICE MARQUEE ===== */
.marquee-bar {
  background: linear-gradient(90deg, var(--dark-deep), var(--dark-mid));
  padding: 10px 0; overflow: hidden;
  display: flex; align-items: center; border-top: 2px solid var(--gold);
}
.marquee-label {
  background: var(--gold); color: var(--dark-deep);
  font-size: 0.78rem; font-weight: 700; padding: 4px 18px;
  white-space: nowrap; flex-shrink: 0; letter-spacing: 1px;
}
.marquee-wrap { overflow: hidden; flex: 1; }
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 10s linear infinite;
}
.marquee-track span {
  color: rgba(216,227,212,0.88); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.5px; padding: 0 12px;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--green-pale); padding: 36px 0; border-bottom: 3px solid var(--dark); width: 100%; overflow: hidden; }
.stats-grid {
  display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; width: 100%;
}
.stat-item {
  text-align: center; color: var(--dark);
  padding: 16px 48px; border-right: 1px solid rgba(29,44,40,0.2);
  flex: 1; max-width: 260px; min-width: 0;
}
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 1.6rem; color: var(--green-mid); margin-bottom: 8px; display: block; }
.stat-item .stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-item .stat-label { font-size: 0.78rem; color: var(--text-mid); }

/* ===== WELCOME / ABOUT ===== */
.welcome-section { padding: 100px 0; background: #fff; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.school-image-wrap {
  width: 100%; 
  border-radius: 24px; 
  overflow: hidden;
  box-shadow: var(--shadow); 
  border: 4px solid var(--gold);
  background: var(--dark);
}
.school-main-image {
  width: 100%; 
  height: auto;
  display: block;
  object-fit: cover;
}
.school-logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--dark-deep), var(--dark));
  border-radius: 24px;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.school-logo-large {
  width: 260px;
  height: 260px;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid var(--gold-light);
  background: #fff;
  box-shadow: 0 0 40px rgba(200,168,75,0.3);
}
.school-emblem {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--dark-deep), var(--dark));
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); border: 4px solid var(--gold);
}
.emblem-inner { text-align: center; color: #fff; padding: 32px; }
.emblem-cross { font-size: 4rem; color: var(--gold-light); margin-bottom: 16px; display: block; }
.emblem-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.emblem-sub { font-size: 0.82rem; color: var(--green-pale); letter-spacing: 1px; margin-bottom: 16px; }
.emblem-estd { font-size: 1.2rem; color: var(--gold-light); font-weight: 600; margin-bottom: 12px; }
.emblem-motto { font-size: 0.82rem; color: rgba(216,227,212,0.7); line-height: 1.5; font-style: italic; }
.emblem-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.em-card {
  background: var(--green-pale); border-radius: 12px;
  padding: 14px 12px; text-align: center;
  border: 1px solid rgba(29,44,40,0.12);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.em-card i { color: var(--dark); font-size: 1.1rem; }
.em-card span { font-size: 0.75rem; font-weight: 600; color: var(--dark); }
.welcome-text-col .section-label { margin-bottom: 6px; }
.welcome-text-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--dark);
  margin-bottom: 20px; line-height: 1.3;
}
.welcome-text-col p { color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; font-size: 0.93rem; }
.welcome-text-col p em { color: var(--dark); font-style: italic; font-weight: 600; }
.welcome-features { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 32px; }
.wf-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-dark);
}
.wf-item i { color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.welcome-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== ABOUT DETAIL ===== */
.about-detail { padding: 80px 0; background: var(--green-pale); }
.about-detail-text {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.about-detail-text p { color: var(--text-mid); line-height: 1.85; font-size: 0.95rem; text-align: center; }

/* ===== MISSION & VISION ===== */
.mv-section { padding: 80px 0; background: #fff; }
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mv-card {
  background: var(--green-pale); border-radius: var(--radius); padding: 40px 30px;
  text-align: center; border: 1px solid rgba(29,44,40,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mv-card.featured {
  background: linear-gradient(135deg, var(--dark-deep), var(--dark));
  color: #fff; border: 3px solid var(--gold);
}
.mv-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(29,44,40,0.1); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.4rem; color: var(--dark);
}
.mv-card.featured .mv-icon { background: rgba(216,227,212,0.15); color: var(--gold-light); }
.mv-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  color: var(--dark); margin-bottom: 14px;
}
.mv-card.featured h3 { color: var(--gold-light); }
.mv-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }
.mv-card.featured p { color: rgba(216,227,212,0.82); }
.motto-text {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-style: italic; color: var(--gold-light) !important;
  margin-bottom: 12px; line-height: 1.5;
}

/* ===== ACADEMICS ===== */
.academics { padding: 100px 0; background: var(--green-pale); }
.academics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.academic-card {
  background: #fff; border-radius: var(--radius); padding: 32px 24px;
  position: relative; transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(29,44,40,0.1);
}
.academic-card:hover { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(29,44,40,0.18); }
.academic-card.featured {
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  border: 2px solid var(--gold);
}
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--dark-deep);
  font-size: 0.7rem; font-weight: 700; padding: 4px 16px;
  border-radius: 50px; letter-spacing: 1px; white-space: nowrap;
}
.academic-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem; color: var(--dark);
}
.academic-card.featured .academic-icon { background: rgba(216,227,212,0.15); color: var(--gold-light); }
.academic-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--dark); margin-bottom: 6px;
}
.academic-card.featured h3 { color: #fff; }
.academic-classes {
  font-size: 0.78rem; font-weight: 700; color: var(--green-mid);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.academic-card.featured .academic-classes { color: var(--gold-light); }
.academic-card > p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.academic-card.featured > p { color: rgba(216,227,212,0.82); }
.academic-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.academic-list li {
  font-size: 0.82rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 8px;
}
.academic-list li i { color: var(--green-mid); font-size: 0.75rem; flex-shrink: 0; }
.academic-card.featured .academic-list li { color: rgba(216,227,212,0.8); }
.academic-card.featured .academic-list li i { color: var(--gold-light); }

/* ===== FACILITIES ===== */
.facilities { padding: 100px 0; background: #fff; }
.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.facility-card {
  background: var(--green-pale); border-radius: var(--radius); padding: 32px 22px;
  text-align: center; border: 1px solid rgba(29,44,40,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--dark); }
.facility-card:hover i, .facility-card:hover h4, .facility-card:hover p { color: var(--green-pale); }
.facility-card i { font-size: 2.2rem; color: var(--dark); margin-bottom: 14px; display: block; transition: color 0.3s; }
.facility-card h4 { font-size: 0.98rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; transition: color 0.3s; }
.facility-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; transition: color 0.3s; }

/* ===== GALLERY ===== */
.gallery { padding: 100px 0; background: var(--green-pale); }

/* ── Album grid ── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.album-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(29,44,40,0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(29,44,40,0.20);
}
.album-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
}
.album-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.album-card:hover .album-card-img img { transform: scale(1.06); }
.album-card-img.no-cover { background: var(--dark-mid); }
.album-card-no-cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: rgba(216,227,212,0.35);
}
.album-card-info {
  padding: 14px 16px 16px;
  background: #fff;
}
.album-card-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--dark); margin: 0 0 4px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.album-count {
  font-size: 0.75rem; color: var(--text-light); font-weight: 500;
}

/* ── Album detail photo grid ── */
.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.album-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--dark);
}
.album-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.album-photo-item:hover img { transform: scale(1.06); }
.album-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(20,31,27,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
}
.album-photo-item:hover .album-photo-overlay { opacity: 1; }
.album-photo-overlay i {
  font-size: 1.6rem; color: #fff;
}

/* ── Album back bar ── */
.album-back-bar {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.album-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: 50px;
  background: var(--dark); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.3s;
  flex-shrink: 0;
}
.album-back-btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.album-view-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem); color: var(--dark); margin: 0;
}

/* ── Filter buttons (kept for compatibility) ── */
.gallery-filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 24px; border-radius: 50px; border: 2px solid var(--dark);
  background: transparent; color: var(--dark);
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--dark); color: var(--green-pale); border-color: var(--dark);
  box-shadow: 0 4px 16px rgba(29,44,40,0.3);
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; min-height: 100px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(20,31,27,0.75);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.8rem; color: var(--gold-light); }
.gallery-overlay span { color: #fff; font-weight: 600; font-size: 0.9rem; text-align: center; padding: 0 12px; }
.gallery-empty { text-align: center; padding: 80px 0; color: var(--text-mid); }
.gallery-empty i { font-size: 3rem; color: var(--green-mid); margin-bottom: 16px; display: block; }
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(12,21,16,0.97);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox-content img {
  max-width: 90vw; max-height: 80vh; border-radius: 12px;
  object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: block;
}
#lightboxCaption { color: rgba(216,227,212,0.8); margin-top: 14px; font-size: 0.95rem; font-weight: 500; }
.lightbox-close {
  position: fixed; top: 24px; right: 28px;
  background: rgba(216,227,212,0.1); border: 1px solid rgba(216,227,212,0.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--green-mid); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(216,227,212,0.1); border: 1px solid rgba(216,227,212,0.2);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--green-mid); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-deep) 0%, var(--dark) 100%);
}
.testimonials .section-label { color: var(--gold-light); }
.testimonials .section-header h2 { color: #fff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(216,227,212,0.06); border: 1px solid rgba(216,227,212,0.12);
  backdrop-filter: blur(8px); border-radius: var(--radius); padding: 32px;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); }
.stars { color: var(--gold-light); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { color: rgba(216,227,212,0.82); font-size: 0.88rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--dark-mid));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; color: #fff; font-size: 0.88rem; }
.testimonial-author span { color: var(--gold-light); font-size: 0.75rem; }

/* ===== ADMISSIONS ===== */
.admissions { padding: 100px 0; background: #fff; }
.admissions-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.admissions-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--dark); margin-bottom: 16px;
}
.admissions-info > p { color: var(--text-mid); line-height: 1.8; margin-bottom: 36px; }
.admission-steps { display: flex; flex-direction: column; gap: 24px; }
.adm-step { display: flex; align-items: flex-start; gap: 18px; }
.adm-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  color: var(--green-pale); font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(29,44,40,0.25);
}
.adm-step strong { display: block; font-size: 0.92rem; color: var(--dark); margin-bottom: 4px; }
.adm-step p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.admissions-form-wrap {
  background: var(--green-pale); border-radius: 24px; padding: 40px;
  border: 2px solid rgba(29,44,40,0.12); box-shadow: var(--shadow);
}
.admissions-form h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  color: var(--dark); margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px; border: 1.5px solid rgba(29,44,40,0.2);
  border-radius: 10px; font-family: 'Poppins', sans-serif;
  font-size: 0.87rem; color: var(--text-dark); background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--dark); box-shadow: 0 0 0 3px rgba(29,44,40,0.1);
}
.form-group textarea { resize: vertical; }
.admissions-form .btn { margin-top: 8px; font-size: 0.98rem; padding: 15px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,31,27,0.65);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 24px; padding: 48px 40px;
  text-align: center; max-width: 420px; width: 90%;
  transform: scale(0.9); transition: transform 0.3s;
  border: 3px solid var(--dark);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-icon { font-size: 3.5rem; color: var(--green-mid); margin-bottom: 16px; }
.modal-icon-error { color: #c0392b; }

/* Field error state */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-color: #c0392b;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}
.field-error-msg {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--dark); margin-bottom: 12px; }
.modal p { color: var(--text-mid); line-height: 1.7; margin-bottom: 12px; font-size: 0.9rem; }
.modal-contact { font-size: 0.85rem; }
.modal .btn { margin-top: 16px; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--green-pale); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-bottom: 48px; }
.contact-card {
  background: #fff; border-radius: var(--radius);
  padding: 36px 22px; text-align: center;
  border: 1px solid rgba(29,44,40,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--dark); }
.contact-card:hover i, .contact-card:hover h4, .contact-card:hover p,
.contact-card:hover em { color: var(--green-pale); }
.contact-card i { font-size: 2rem; color: var(--dark); margin-bottom: 16px; display: block; transition: color 0.3s; }
.contact-card h4 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; transition: color 0.3s; }
.contact-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.7; transition: color 0.3s; word-break: break-all; overflow-wrap: break-word; }
.contact-link {
  display: inline-block; margin-top: 14px; font-size: 0.83rem;
  font-weight: 600; color: var(--green-mid); text-decoration: none;
  border-bottom: 2px solid var(--green-soft); padding-bottom: 2px; transition: color 0.3s;
}
.contact-link:hover { color: var(--dark); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--dark); }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(135deg, var(--dark-deep), var(--dark)); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 18px; }
.footer-brand p { color: rgba(216,227,212,0.6); font-size: 0.83rem; line-height: 1.8; margin-bottom: 14px; }
.footer-motto {
  font-family: 'Playfair Display', serif; font-style: italic;
  color: var(--gold-light) !important; font-size: 0.88rem;
  margin-bottom: 20px !important;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(216,227,212,0.08); border: 1px solid rgba(216,227,212,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(216,227,212,0.65); font-size: 0.85rem;
  text-decoration: none; transition: all 0.3s;
}
.social-links a:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; transform: translateY(-3px); }
.footer-links h4, .footer-contact h4 { color: var(--green-pale); font-size: 0.92rem; font-weight: 600; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(216,227,212,0.55); text-decoration: none; font-size: 0.83rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--green-pale); }
.footer-contact p {
  color: rgba(216,227,212,0.55); font-size: 0.8rem;
  margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.footer-contact i { color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(216,227,212,0.1); padding: 22px 0; text-align: center;
}
.footer-bottom p { color: rgba(216,227,212,0.35); font-size: 0.78rem; }

/* ===== GALLERY PREVIEW (index) - Album Cards ===== */
.gallery-preview { padding: 100px 0; background: var(--green-pale); }

/* Album card grid - 3 columns on desktop */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.album-preview-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(29,44,40,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.album-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(29,44,40,0.2);
}

.album-preview-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
}
.album-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.album-preview-card:hover .album-preview-img img {
  transform: scale(1.08);
}

.album-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(216,227,212,0.3);
}

.album-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20,31,27,0.85), transparent);
  padding: 16px 14px 12px;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.album-preview-card:hover .album-preview-overlay {
  transform: translateY(0);
}

.album-preview-count {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.album-preview-count i {
  color: var(--gold-light);
}

.album-preview-info {
  padding: 16px 14px;
}
.album-preview-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  line-height: 1.4;
}

/* Slider (hidden for album view) */
.gp-slider-wrap {
  display: none;
}

@media (max-width: 768px) {
  .gp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .gp-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ===== ABOUT ONLY (about.html) ===== */
.about-only {
  max-width: 820px;
  margin: 0 auto;
}
.about-only .section-label { margin-bottom: 6px; }
.about-only h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--dark); margin-bottom: 24px; line-height: 1.3;
}
.about-only p {
  color: var(--text-mid); line-height: 1.85;
  margin-bottom: 16px; font-size: 0.95rem;
}
.about-only p em { color: var(--dark); font-style: italic; font-weight: 600; }

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0c1510 0%, #141f1b 40%, #1d2c28 100%);
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23d8e3d4' fill-opacity='0.03'%3E%3Cpath d='M50 50v-10h-5v10H35v5h10v10h5V55h10v-5H50zM50 10V0h-5v10H35v5h10v10h5V15h10v-5H50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.page-hero-content .section-label { color: var(--gold-light); margin-bottom: 14px; }
.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.page-hero-content p { color: rgba(216,227,212,0.75); font-size: 1rem; line-height: 1.7; }

/* ===== ACTIVE NAV LINK (sub-pages) ===== */
.nav-links a.active-page {
  color: var(--gold-light) !important;
}
.nav-links a.active-page::after { width: 100% !important; }

/* ===== NAV OVERLAY (mobile) ===== */
.nav-overlay { display: none; }

/* ===== SCROLL LOCK (mobile nav open) ===== */
body.nav-open {
  overflow: hidden;
  /* iOS Safari needs this to prevent body scroll behind the overlay */
  position: fixed;
  width: 100%;
  /* preserve scroll position via top (set by JS) */
}

/* ===== FLOATING BUTTONS ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 28px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  border: none; border-radius: 50%; color: var(--green-pale); font-size: 0.95rem;
  cursor: pointer; box-shadow: 0 4px 16px rgba(29,44,40,0.4);
  z-index: 999; opacity: 0; transform: translateY(20px); transition: all 0.3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */

/* Prevent horizontal overflow on all screen sizes */
html {
  overflow-x: hidden;
  width: 100%;
}
body {
  width: 100%;
}
img, video {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}

/* ── 1024px: Tablets landscape ── */
@media (max-width: 1024px) {
  .academics-grid      { grid-template-columns: 1fr 1fr; }
  .facilities-grid     { grid-template-columns: 1fr 1fr; } /* was repeat(4,1fr) — too tight */
  .contact-grid        { grid-template-columns: 1fr 1fr; }  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 36px; }
  .welcome-grid        { gap: 48px; }
  .stats-grid          { grid-template-columns: repeat(4, 1fr); }
  .quicklinks-inner    { justify-content: flex-start; overflow-x: auto; }
  .admissions-grid     { gap: 48px; }
  .testimonials-grid   { grid-template-columns: 1fr 1fr; }
  .mv-grid             { gap: 20px; }
}

/* ── 768px: Tablets portrait & large phones ── */
@media (max-width: 768px) {

  /* Topbar */
  .topbar { display: none; }

  /* Navbar */
  body .navbar { top: 0 !important; overflow: visible; }
  .nav-container { overflow: visible; }
  .hamburger { display: flex; }

  /* Logo — prevent stretching on mobile */
  .logo-image {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0;
    object-fit: cover;
  }
  .logo-name { font-size: 1.05rem; }
  .logo-sub  { font-size: 0.56rem; }

  /* Slide-in drawer */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0c1510 0%, #1d2c28 100%);
    padding: 72px 24px 40px;
    gap: 4px;
    align-items: flex-start;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto;
    border-left: 1px solid rgba(216,227,212,0.1);
    max-width: 85vw;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none;
  }
  .nav-overlay.open { display: block; }
  .nav-links li { width: 100%; }
  .nav-links a {
    font-size: 0.97rem; font-weight: 500;
    color: rgba(216,227,212,0.75);
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; border-radius: 10px;
    border-bottom: 1px solid rgba(216,227,212,0.07);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a:hover,
  .nav-links a.active-page {
    background: rgba(216,227,212,0.1);
    color: var(--gold-light) !important;
    padding-left: 22px;
  }
  .nav-links a::after { display: none; }

  /* Hero */
  .hero-content { padding: 110px 20px 70px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: center; gap: 10px; }

  /* Quick links */
  .quicklinks-bar { overflow-x: auto; }
  .quicklinks-inner { flex-wrap: nowrap; min-width: max-content; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(29,44,40,0.12); padding: 16px 24px; max-width: 100%; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(29,44,40,0.12); }

  /* Welcome / About */
  .welcome-grid { grid-template-columns: 1fr; gap: 36px; }
  .school-emblem { max-width: 380px; margin: 0 auto; width: 100%; }
  .school-logo-wrap { padding: 24px; max-width: 100%; width: 100%; }
  .school-logo-large { width: 180px; height: 180px; max-width: 180px; }
  .school-image-wrap { width: 100%; max-width: 100%; }
  .school-image-wrap img,
  .school-main-image { max-height: 280px; width: 100%; max-width: 100%; object-fit: cover; }

  /* Mission/Vision */
  .mv-grid { grid-template-columns: 1fr; }

  /* Academics */
  .academics-grid { grid-template-columns: 1fr 1fr; }

  /* Facilities */
  .facilities-grid { grid-template-columns: 1fr 1fr; }

  /* Gallery */
  .album-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .album-back-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .album-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-filters { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: 0.8rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Admissions */
  .admissions-grid { grid-template-columns: 1fr; gap: 40px; }
  .admissions-form-wrap { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap iframe { height: 300px !important; }
  .contact-card { padding: 28px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer { padding: 56px 0 0; }
  .footer-logo .logo-image {
    width: 40px !important;
    height: 40px !important;
  }

  /* About detail */
  .about-detail-text p { font-size: 0.9rem; }

  /* Admission steps */
  .adm-step { gap: 14px; }
  .admission-steps { gap: 18px; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* Section spacing */
  .welcome-section, .academics, .facilities,
  .gallery, .gallery-preview, .testimonials,
  .admissions, .contact { padding: 72px 0; }
  .mv-section   { padding: 72px 0; }
  .about-detail { padding: 60px 0; }

  /* Page hero */
  .page-hero { padding: 120px 20px 60px; }
  .page-hero-content h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
  .page-hero-content p  { font-size: 0.92rem; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }

  /* Lightbox arrows */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── 480px: Mobile phones ── */
@media (max-width: 480px) {

  /* Base */
  .container { padding: 0 16px; }

  /* Logo */
  .logo-image {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
  }
  .logo-name { font-size: 0.95rem; }
  .logo-sub  { font-size: 0.52rem; }

  /* Hero */
  .hero-content { padding: 100px 16px 60px; }
  .hero-affiliation { font-size: 0.68rem; letter-spacing: 2px; padding: 6px 14px; }
  .badge { font-size: 0.72rem; padding: 7px 12px; }
  .hero-badges { gap: 8px; }

  /* Quick links */
  .quicklinks-inner { flex-direction: column; flex-wrap: wrap; min-width: unset; align-items: stretch; }
  .qlink { border-right: none; border-bottom: 1px solid rgba(216,227,212,0.08); justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 14px 12px; }
  .stat-item .stat-num { font-size: 1.6rem; }

  /* Welcome */
  .welcome-section { padding: 60px 0; }
  .welcome-grid { gap: 28px; }
  .school-emblem { max-width: 100%; }
  .school-logo-wrap { padding: 20px; }
  .school-logo-large { width: 140px; height: 140px; }
  .school-image-wrap img,
  .school-main-image { max-height: 220px; }
  .emblem-cards { grid-template-columns: 1fr 1fr; }
  .welcome-btns { flex-direction: column; }
  .welcome-btns .btn { width: 100%; justify-content: center; }

  /* Academics */
  .academics-grid { grid-template-columns: 1fr; }
  .academic-card { padding: 24px 18px; }
  .featured-badge { font-size: 0.65rem; padding: 3px 12px; }

  /* Mission/Vision */
  .mv-grid { grid-template-columns: 1fr; gap: 16px; }
  .mv-card { padding: 28px 20px; }

  /* Facilities */
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .facility-card { padding: 24px 16px; }
  .facility-card i { font-size: 1.8rem; }

  /* Gallery */
  .album-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .album-card-info h3 { font-size: 0.82rem; }
  .album-photo-grid { grid-template-columns: 1fr; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.76rem; }

  /* Admissions */
  .admissions-grid { gap: 28px; }
  .admissions-form-wrap { padding: 24px 16px; border-radius: 16px; }
  .admissions-form h3 { font-size: 1.25rem; margin-bottom: 20px; }
  .admissions-info h2 { font-size: 1.6rem; }
  .adm-step { gap: 12px; }
  .adm-num { width: 34px; height: 34px; font-size: 0.78rem; flex-shrink: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 260px !important; }
  .contact-card { padding: 28px 18px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo .logo-image {
    width: 36px !important;
    height: 36px !important;
  }
  .footer-brand p { font-size: 0.8rem; }
  .footer-links h4, .footer-contact h4 { margin-bottom: 14px; }

  /* Section spacing */
  .academics, .facilities, .gallery, .gallery-preview,
  .testimonials, .admissions, .contact { padding: 60px 0; }
  .mv-section    { padding: 60px 0; }
  .about-detail  { padding: 60px 0; }

  /* Page hero */
  .page-hero { padding: 100px 16px 50px; }
  .page-hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-hero-content p { font-size: 0.9rem; }

  /* Lightbox */
  .lightbox-content img { max-height: 70vh; }
  .lightbox-prev { left: 4px; width: 38px; height: 38px; }
  .lightbox-next { right: 4px; width: 38px; height: 38px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }

  /* Modal */
  .modal { padding: 36px 24px; }
  .modal h3 { font-size: 1.4rem; }

  /* Misc */
  .back-to-top { bottom: 16px; right: 16px; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-desc { font-size: 0.88rem; }
}
