/* ============================================================
   BDS Day Boarding School — Global Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@400;500;600;700&family=Raleway:wght@500;600;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary: #1a3c6e;
  --primary-dark: #122d55;
  --secondary: #f5a623;
  --secondary-dark: #d4891a;
  --accent: #2c9e6e;
  --bg-light: #fafafa;
  --bg-section: #eef4fb;
  --text-dark: #1c1c2e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 60, 110, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 60, 110, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 60, 110, 0.18);
  --radius-card: 12px;
  --radius-btn: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-alt { background: var(--bg-section); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-header .tag {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--secondary-dark);
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--primary);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; min-height: 54px; }

/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: var(--secondary); }
.top-bar .top-bar-right { display: flex; gap: 20px; }

/* ============================================================
   Header & Navigation
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  transition: var(--transition);
}
header.scrolled {
  background: var(--white);
  border-bottom: 2px solid rgba(26, 60, 110, 0.1);
  box-shadow: var(--shadow);
}
nav { padding: 16px 0; }
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 2px solid var(--secondary);
  flex-shrink: 0;
  transition: var(--transition);
}
.logo-img-footer {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  border: 2px solid var(--secondary);
  flex-shrink: 0;
}
header.scrolled .logo-icon { background: var(--primary); color: var(--white); }
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
header.scrolled .logo-name { color: var(--primary); }
.logo-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
header.scrolled .logo-tagline { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
header.scrolled .nav-links a {
  color: var(--text-dark);
}
header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
  color: var(--primary);
  background: var(--bg-section);
}
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  aria-label: "Toggle menu";
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
header.scrolled .hamburger span { background: var(--primary); }
.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); }

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  flex-direction: column;
  padding: 80px 32px 32px;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--secondary); padding-left: 8px; }
.mobile-nav .mobile-cta {
  margin-top: 24px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-btn);
  padding: 14px;
  text-align: center;
  font-weight: 700;
  border: none;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1999;
}
.mobile-nav-overlay.show { display: block; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
.footer-col p, .footer-col li {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}
.footer-contact-item i {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); transition: var(--transition); }
.footer-contact-item a:hover { color: var(--secondary); }
.footer-map {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ============================================================
   Pop-ups
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.popup-overlay.active .popup-card { transform: scale(1) translateY(0); }
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  font-size: 1.2rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.popup-close:hover { background: #dde; transform: rotate(90deg); }
.popup-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.popup-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.popup-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Exit popup */
.popup-card.popup-exit {
  background: var(--primary);
  color: var(--white);
}
.popup-card.popup-exit h2 { color: var(--white); }
.popup-card.popup-exit p { color: rgba(255,255,255,0.8); }
.popup-card.popup-exit .popup-close { background: rgba(255,255,255,0.1); color: var(--white); }
.popup-exit-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.popup-exit-btns .btn { flex: 1; min-width: 160px; justify-content: center; }

/* ============================================================
   Floating Buttons
   ============================================================ */
.floating-buttons {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.floating-buttons.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: var(--transition);
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.float-btn-whatsapp { background: #25d366; }
.float-btn-call { background: var(--primary); }
.float-btn-whatsapp {
  animation: pulse-whatsapp 2.5s infinite;
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ============================================================
   Sticky Mobile Bottom Bar
   ============================================================ */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 58px;
}
.mobile-bottom-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
}
.mobile-bottom-bar .mbb-call { background: var(--primary); }
.mobile-bottom-bar .mbb-enquire { background: var(--secondary); color: var(--primary); }

/* ============================================================
   Hero — Home (Image Slideshow)
   ============================================================ */
.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 8s ease-in-out forwards;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,35,71,0.88) 0%, rgba(26,60,110,0.82) 40%, rgba(29,80,153,0.75) 100%);
  z-index: 1;
}
.hero-home .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-badge-animated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.2);
  color: var(--secondary);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 100px;
  padding: 6px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: badgePulse 3s ease-in-out infinite;
  backdrop-filter: blur(4px);
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(245,166,35,0); }
}
.hero-content h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.12;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero-content h1 span { color: var(--secondary); }
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.hero-rating .stars { color: var(--secondary); letter-spacing: 2px; }

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}
.hero-dot:hover { border-color: var(--secondary); }

/* ============================================================
   Stats Strip
   ============================================================ */
.stats-strip {
  background: var(--secondary);
  padding: 40px 0;
}
.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stat-label {
  color: rgba(26, 60, 110, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   Cards — Feature & Facility
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(26,60,110,0.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,60,110,0.12);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.card:hover .card-icon { background: var(--secondary); }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   About Snippet — Home (Real Image)
   ============================================================ */
.about-snippet .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-image-real {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-image-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.about-image-real:hover img { transform: scale(1.05); }
.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(14,35,71,0.8), transparent);
}
.about-exp-badge {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  display: inline-block;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text-dark);
}
.about-feature .feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ============================================================
   Photo Gallery Carousel
   ============================================================ */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.gallery-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-card);
}
.gallery-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  padding: 4px 0;
}
.gallery-card {
  min-width: calc(33.333% - 16px);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: var(--transition);
  flex-shrink: 0;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card-caption {
  padding: 20px;
}
.gallery-tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--secondary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gallery-card-caption h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.gallery-card-caption p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(26,60,110,0.1);
  color: var(--primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.gallery-nav:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

/* ============================================================
   Student Artwork Grid
   ============================================================ */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.artwork-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.artwork-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.artwork-item:hover img { transform: scale(1.1); }
.artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,35,71,0.9) 0%, rgba(14,35,71,0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.artwork-item:hover .artwork-overlay { opacity: 1; }
.artwork-overlay h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.artwork-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
}

/* ============================================================
   Results Showcase
   ============================================================ */
.results-showcase {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.results-showcase img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.results-showcase:hover img { transform: scale(1.03); }
.results-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(14,35,71,0.95) 0%, rgba(14,35,71,0.7) 60%, transparent 100%);
  padding: 40px 36px 28px;
}
.results-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.results-overlay h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.results-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #f0901a 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--primary); margin-bottom: 12px; }
.cta-banner p { color: rgba(26,60,110,0.75); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,60,110,0.06);
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.3;
  line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.testimonial-stars { color: var(--secondary); margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(26,60,110,0.1);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: none;
  width: 100%;
  text-align: left;
  border: none;
  font-family: 'Nunito', sans-serif;
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--primary);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--primary); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer-inner { padding-bottom: 20px; }

/* ============================================================
   Page Hero (Inner Pages)
   ============================================================ */
.page-hero {
  min-height: 50vh;
  background: linear-gradient(135deg, #0e2347 0%, #1a3c6e 60%, #1d5099 100%);
  display: flex;
  align-items: flex-end;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(245,166,35,0.08);
}
.page-hero-shape-1 { width: 400px; height: 400px; top: -150px; right: -80px; }
.page-hero-shape-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { color: rgba(255,255,255,0.9); }
.page-hero h1 { color: var(--white); font-size: 2.6rem; }
.page-hero.hero-amber {
  background: linear-gradient(135deg, #c47a10 0%, var(--secondary) 50%, #f0c060 100%);
}
.page-hero.hero-amber h1 { color: var(--primary); }
.page-hero.hero-amber .breadcrumb { color: rgba(26,60,110,0.6); }
.page-hero.hero-amber .breadcrumb a { color: rgba(26,60,110,0.6); }
.page-hero.hero-amber .breadcrumb span { color: var(--primary); }

/* ============================================================
   About Page Sections
   ============================================================ */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.mv-card {
  padding: 32px;
  border-radius: var(--radius-card);
  border-left: 4px solid;
}
.mv-card.mission { background: var(--bg-section); border-color: var(--primary); }
.mv-card.vision { background: rgba(44,158,110,0.08); border-color: var(--accent); }
.mv-card h3 { margin-bottom: 10px; }
.mv-card.vision h3 { color: var(--accent); }
.mv-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   Academics — Timeline
   ============================================================ */
.levels-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.level-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
}
.level-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -1px;
  width: 2px;
  height: 56px;
  background: linear-gradient(to bottom, var(--secondary), rgba(245,166,35,0.2));
  z-index: 1;
}
.level-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(26,60,110,0.25);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}
.level-step:hover .level-icon { background: var(--secondary); transform: scale(1.1); }
.level-step h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 6px; }
.level-step p { font-size: 0.82rem; color: var(--text-muted); }
.levels-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 -8px;
  overflow-x: auto;
  padding: 0 16px;
}

/* Subject Cards */
.subject-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  transition: var(--transition);
}
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.subject-card.core { border-color: var(--primary); }
.subject-card.arts { border-color: var(--secondary); }
.subject-card.pe { border-color: var(--accent); }
.subject-card h3 { margin-bottom: 16px; }
.subject-card.core h3 { color: var(--primary); }
.subject-card.arts h3 { color: var(--secondary-dark); }
.subject-card.pe h3 { color: var(--accent); }
.subject-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-tag {
  background: var(--bg-section);
  color: var(--text-dark);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ============================================================
   Admissions Page
   ============================================================ */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,60,110,0.1);
  color: var(--primary);
  border: 1px solid rgba(26,60,110,0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 16px;
}
.page-hero.hero-amber .urgency-badge {
  background: rgba(26,60,110,0.1);
  color: var(--primary);
  border-color: rgba(26,60,110,0.2);
}

.steps-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(26,60,110,0.08);
  transition: var(--transition);
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: var(--bg-section); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step-item h4 { font-size: 0.95rem; color: var(--primary); }

/* Lead Form */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--primary);
  max-width: 680px;
  margin: 0 auto;
}
.lead-form-card h2 { margin-bottom: 8px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group label .required { color: #e53e3e; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid rgba(26,60,110,0.12);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--bg-light);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.08);
}
.form-group .error-msg {
  display: none;
  color: #e53e3e;
  font-size: 0.82rem;
  margin-top: 4px;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #e53e3e; }
.form-group.has-error .error-msg { display: block; }

.trust-signals {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.trust-item i { color: var(--accent); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(44,158,110,0.1);
  color: var(--accent);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 { color: var(--accent); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* Docs checklist */
.docs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}
.doc-item:hover { transform: translateX(4px); border-left: 3px solid var(--accent); padding-left: 17px; }
.doc-item i { color: var(--accent); font-size: 1.1rem; }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: var(--transition);
}
.contact-card:hover .contact-card-icon { background: var(--primary); color: var(--white); }
.contact-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.contact-card p, .contact-card a {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  display: block;
}
.contact-card a:hover { color: var(--primary); }
.contact-form-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-card h2 { margin-bottom: 28px; font-size: 1.6rem; }
.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   Inclusivity Statement
   ============================================================ */
.inclusivity-block {
  background: linear-gradient(135deg, var(--bg-section), #d5e8f8);
  border-radius: var(--radius-card);
  padding: 40px 48px;
  border-left: 5px solid var(--accent);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.inclusivity-block i { font-size: 2rem; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.inclusivity-block h3 { color: var(--accent); margin-bottom: 8px; }
.inclusivity-block p { color: var(--text-muted); }

/* ============================================================
   Medium of Instruction
   ============================================================ */
.medium-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 24px;
  border-left: 5px solid var(--primary);
}
.medium-card i { font-size: 2.5rem; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   Popup Forms
   ============================================================ */
.popup-form .form-group { margin-bottom: 14px; }
.popup-form input,
.popup-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid rgba(26,60,110,0.12);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--bg-light);
}
.popup-form input:focus,
.popup-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.popup-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .hero-home .container { gap: 40px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .top-bar { display: none; }

  /* Mobile bottom bar */
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 58px; }
  .floating-buttons { bottom: 80px; }

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.2rem; }
  .page-hero h1 { font-size: 1.9rem; }

  /* Hero */
  .hero-home { padding: 100px 0 60px; min-height: auto; }
  .hero-home .container {
    text-align: center;
  }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-btns { justify-content: center; }
  .hero-rating { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-dots { bottom: 16px; }

  /* Gallery */
  .gallery-card { min-width: calc(100% - 16px); }
  .gallery-nav { width: 40px; height: 40px; }

  /* Artwork */
  .artwork-grid { grid-template-columns: 1fr; }
  .artwork-overlay { opacity: 1; }

  /* Results */
  .results-overlay { padding: 20px 16px 16px; }
  .results-overlay h3 { font-size: 1.1rem; }
  .results-overlay p { font-size: 0.82rem; }

  /* Grids */
  .cards-grid { grid-template-columns: 1fr; }
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); }
  .about-snippet .container { grid-template-columns: 1fr; gap: 32px; }
  .mission-vision { grid-template-columns: 1fr; }
  .steps-bar { grid-template-columns: repeat(2, 1fr); }
  .step-item:nth-child(2) { border-right: none; }
  .docs-list { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-map { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .levels-timeline { flex-direction: column; }
  .level-step:not(:last-child)::after { display: none; }

  /* Section padding */
  .section { padding: 48px 0; }
  .lead-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .inclusivity-block { padding: 28px; flex-direction: column; }
  .medium-card { flex-direction: column; gap: 16px; }
  .popup-card { padding: 28px 20px; }
  .popup-exit-btns .btn { min-width: 0; }
  .trust-signals { flex-direction: column; gap: 8px; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 1.9rem; }
  .stats-strip .container { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-bar { grid-template-columns: 1fr; }
  .step-item { border-right: none; border-bottom: 1px solid rgba(26,60,110,0.08); }
  .step-item:last-child { border-bottom: none; }
  .btn { padding: 12px 20px; }
  .btn-lg { padding: 14px 24px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-card { min-width: calc(50% - 12px); }
  .artwork-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1199px) {
  h1 { font-size: 2.5rem; }
  .hero-content h1 { font-size: 2.6rem; }
  .gallery-card { min-width: calc(50% - 12px); }
}
