/* ============================================================
   BRIGHTMINDS ACADEMY - MAIN STYLESHEET
   Nursery & Primary School, Owerri, Imo State, Nigeria
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================ */
:root {
  --primary-blue: #1a6fc4;
  --primary-blue-dark: #145aa0;
  --primary-blue-light: #e8f2fc;
  --accent-yellow: #f5c518;
  --accent-yellow-dark: #d4a800;
  --accent-green: #2ecc71;
  --accent-green-dark: #27ae60;
  --accent-orange: #f39c12;
  --text-dark: #2c3e50;
  --text-medium: #555e6d;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --off-white: #f9fafb;
  --light-gray: #ecf0f1;
  --border-color: #dde3ea;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s ease;
  --font-heading: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text-dark);
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 50px 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-tag {
  display: inline-block;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 111, 196, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-yellow:hover {
  background: var(--accent-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

.btn-green {
  background: var(--accent-green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--accent-green-dark);
  transform: translateY(-2px);
}

/* Divider */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  border-radius: 2px;
  margin: 16px auto;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.logo-text .school-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

.logo-text .school-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.nav-links .nav-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-xl);
  margin-left: 8px;
}

.nav-links .nav-cta:hover {
  background: var(--primary-blue-dark);
  color: var(--white);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.mobile-nav .mobile-cta {
  background: var(--primary-blue);
  color: var(--white) !important;
  text-align: center;
  margin-top: 8px;
  border-radius: var(--radius-xl);
}

.mobile-nav .mobile-cta:hover {
  background: var(--primary-blue-dark) !important;
}

/* ============================================================
   5. PAGE HERO BANNER (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0d4a8a 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(245, 197, 24, 0.1);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--accent-yellow);
}

/* ============================================================
   6. HOME PAGE - HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0d4a8a 0%, var(--primary-blue) 50%, #1a8a6c 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: rgba(245, 197, 24, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 20px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 197, 24, 0.2);
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: var(--accent-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
  color: var(--accent-yellow);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-yellow);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   7. HOME PAGE - INTRO SECTION
   ============================================================ */
.intro-section {
  background: var(--off-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image-wrap {
  position: relative;
}

.intro-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.intro-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.intro-badge .badge-number {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.intro-badge .badge-text {
  font-size: 0.75rem;
  font-weight: 600;
}

.intro-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--text-medium);
  margin-bottom: 16px;
}

.intro-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.intro-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.intro-feature .feature-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ============================================================
   8. HOME PAGE - HIGHLIGHTS / CARDS
   ============================================================ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  transform: scaleX(0);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.card-icon.blue { background: var(--primary-blue-light); }
.card-icon.yellow { background: rgba(245, 197, 24, 0.15); }
.card-icon.green { background: rgba(46, 204, 113, 0.15); }
.card-icon.orange { background: rgba(243, 156, 18, 0.15); }

.highlight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.highlight-card p {
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================================
   9. HOME PAGE - IMAGE SLIDER
   ============================================================ */
.slider-section {
  background: var(--text-dark);
  padding: 80px 0;
}

.slider-section .section-header .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-yellow);
}

.slider-section .section-header h2 {
  color: var(--white);
}

.slider-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  padding: 40px 30px 24px;
  color: var(--white);
}

.slide-caption h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}

.slide-caption p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--accent-yellow);
  transform: scale(1.3);
}

/* ============================================================
   10. HOME PAGE - TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--primary-blue-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  color: var(--primary-blue-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.stars {
  color: var(--accent-yellow);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info .author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.author-info .author-role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================================
   11. HOME PAGE - QUICK CONTACT BANNER
   ============================================================ */
.contact-banner {
  background: linear-gradient(135deg, var(--primary-blue), #0d4a8a);
  padding: 60px 0;
  text-align: center;
}

.contact-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.contact-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.banner-contact-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.banner-contact-item span:first-child {
  font-size: 1.2rem;
}

/* ============================================================
   12. ABOUT PAGE
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.mv-card .mv-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.mv-card h3 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 14px;
}

.mv-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h4 {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Head Teacher Message */
.head-teacher-section {
  background: var(--off-white);
}

.head-teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.head-teacher-photo {
  text-align: center;
}

.head-teacher-photo .photo-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}

.head-teacher-photo h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.head-teacher-photo p {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.head-teacher-message blockquote {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
  font-style: italic;
  border-left: 4px solid var(--primary-blue);
  padding-left: 20px;
  margin-bottom: 20px;
}

.head-teacher-message p {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ============================================================
   13. ADMISSIONS PAGE
   ============================================================ */
.admissions-steps {
  counter-reset: step-counter;
}

.step-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.req-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.req-card h3 {
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-blue-light);
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-medium);
}

.req-list li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.age-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.age-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.age-table th {
  background: var(--primary-blue);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

.age-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-medium);
}

.age-table tr:last-child td {
  border-bottom: none;
}

.age-table tr:nth-child(even) td {
  background: var(--off-white);
}

.download-section {
  background: linear-gradient(135deg, var(--primary-blue-light), rgba(46, 204, 113, 0.1));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.download-section h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.download-section p {
  color: var(--text-medium);
  margin-bottom: 28px;
}

/* ============================================================
   14. ACADEMICS PAGE
   ============================================================ */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  margin-bottom: 40px;
}

.program-card:hover {
  box-shadow: var(--shadow-md);
}

.program-card-header {
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.program-card-header.blue-bg {
  background: linear-gradient(135deg, var(--primary-blue), #145aa0);
  color: var(--white);
}

.program-card-header.green-bg {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: var(--white);
}

.program-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.program-card-header h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}

.program-card-header p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.program-card-body {
  padding: 32px 36px;
}

.program-card-body p {
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.7;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.subject-tag {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.subject-tag:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.subject-tag.green-tag {
  background: rgba(46, 204, 113, 0.12);
  color: var(--accent-green-dark);
}

.subject-tag.green-tag:hover {
  background: var(--accent-green);
  color: var(--white);
}

.teaching-approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.approach-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.approach-card .approach-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.approach-card h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Timetable */
.timetable-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 600px;
}

.timetable th {
  background: var(--primary-blue);
  color: var(--white);
  padding: 14px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.timetable th:first-child {
  background: #0d4a8a;
}

.timetable td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-medium);
}

.timetable tr:nth-child(even) td {
  background: var(--off-white);
}

.timetable .break-row td {
  background: rgba(245, 197, 24, 0.12);
  color: var(--accent-yellow-dark);
  font-weight: 600;
}

.timetable .time-col {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: 600;
}

/* ============================================================
   15. GALLERY PAGE
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  background: var(--white);
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 111, 196, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .zoom-icon {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.gallery-overlay p {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
  margin-top: 16px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--accent-yellow);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }

/* ============================================================
   16. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-blue), #0d4a8a);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: var(--white);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail .detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .detail-text h4 {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-detail .detail-text p,
.contact-detail .detail-text a {
  color: var(--white);
  font-size: 0.95rem;
}

.contact-detail .detail-text a:hover {
  color: var(--accent-yellow);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-yellow);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  color: var(--text-medium);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group label span.required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.error-msg.show {
  display: block;
}

.form-success {
  display: none;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--accent-green-dark);
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* Map Section */
.map-section {
  background: var(--off-white);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo .logo-icon {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.footer-brand .footer-logo .school-name {
  color: var(--white);
  font-size: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-blue);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--primary-blue);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-list li span:first-child {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ============================================================
   18. ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal animation */
.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   19. RESPONSIVE DESIGN
   ============================================================ */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-grid,
  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-image-wrap img,
  .about-intro-grid img {
    height: 300px;
  }

  .intro-badge {
    bottom: -10px;
    right: 20px;
  }

  .head-teacher-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .head-teacher-message blockquote {
    text-align: left;
  }
}

/* Mobile: up to 768px */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero-stats {
    gap: 24px;
  }

  /* Grids */
  .mission-vision-grid,
  .requirements-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Slider */
  .slide img {
    height: 260px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Lightbox nav */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  /* Contact form wrapper */
  .contact-form-wrapper,
  .contact-info-card {
    padding: 28px 24px;
  }

  /* Head teacher */
  .head-teacher-card {
    padding: 28px 24px;
  }
}

/* Small mobile: up to 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .banner-contact-info {
    flex-direction: column;
    gap: 16px;
  }

  .banner-buttons {
    flex-direction: column;
    align-items: center;
  }
}
