/* ============================================================
   AURELIS INTERNATIONAL SCHOOL — Main Stylesheet
   Learn. Lead. Become.
   ============================================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --navy: #0c1a3a;
  --navy-lt: #1a2d5a;
  --ivory: #f5f0e8;
  --ivory-dk: #ebe4d8;
  --white: #ffffff;
  --sky: #b8d4e8;
  --sky-lt: #dce8f0;
  --green: #6a9e8a;
  --green-lt: #8fb8a4;
  --gold: #c9a84c;
  --gold-lt: #dfc06a;
  --text: #1a1a2e;
  --text-lt: #4a4a5a;
  --muted: #8a8a9a;
  --border: rgba(12, 26, 58, 0.08);
  --shadow-sm: 0 2px 8px rgba(12, 26, 58, 0.06);
  --shadow-md: 0 8px 32px rgba(12, 26, 58, 0.10);
  --shadow-lg: 0 20px 60px rgba(12, 26, 58, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { margin-bottom: 1rem; color: var(--text-lt); }
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ----- Scroll Progress ----- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 10000; }
.scroll-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--navy)); transition: width 0.1s ease-out; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  padding: 0 24px; height: 90px; display: flex; align-items: center;
  transition: var(--transition); background: transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-width); margin: 0 auto; }

/* Logo */
.logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; flex-shrink: 0; }
.logo-main { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; color: var(--navy); transition: var(--transition); }
.logo-sub { font-size: 0.55rem; font-weight: 500; letter-spacing: 1px; color: var(--text-lt); align-self: flex-end; margin-bottom: 3px; margin-left: 4px; line-height: 1.2; }
.scrolled .logo-main { font-size: 1.4rem; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.85rem; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; letter-spacing: 0.3px; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .parent-portal { font-size: 0.8rem; color: var(--text-lt); font-weight: 500; }
.header-actions .parent-portal:hover { color: var(--navy); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  border: none; border-radius: 50px; cursor: pointer;
  transition: var(--transition); text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12, 26, 58, 0.2); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3); }
.btn-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--navy); transition: var(--transition); }
.btn-arrow .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn-arrow:hover .arrow { transform: translateX(6px); }
.btn-arrow:hover { color: var(--gold); }

/* ----- Hamburger ----- */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 10001; position: relative;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: var(--transition); position: absolute; }
.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(6px); }
.hamburger.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ----- Mobile Menu (LEFT) ----- */
.mobile-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 26, 58, 0.5); z-index: 9998;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed; top: 0; left: 0; width: 340px; max-width: 85vw; height: 100vh;
  background: var(--white); z-index: 9999;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; padding: 100px 32px 40px; box-shadow: var(--shadow-lg);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-links { list-style: none; }
.mobile-menu-links li { opacity: 0; transform: translateX(-30px); transition: var(--transition); transition-delay: calc(0.05s * var(--item-index, 0)); }
.mobile-menu.active .mobile-menu-links li { opacity: 1; transform: translateX(0); }
.mobile-menu-links a { display: block; padding: 14px 0; font-size: 1.1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu-links a:hover { color: var(--gold); }
.mobile-menu-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu-cta .btn { justify-content: center; width: 100%; }
.mobile-menu-cta .parent-link { text-align: center; font-size: 0.85rem; color: var(--text-lt); margin-top: 8px; }

/* ============================================================
   SECTIONS & REVEAL
   ============================================================ */
.section { padding: 100px 0; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-title { margin-bottom: 20px; }
.section-text { font-size: 1.1rem; color: var(--text-lt); max-width: 640px; line-height: 1.8; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(12,26,58,0.85) 0%, rgba(12,26,58,0.45) 50%, rgba(12,26,58,0.65) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text { padding-top: 60px; }
.hero-pre { font-size: 0.75rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }
.hero-text h1 { color: var(--white); margin-bottom: 20px; font-size: clamp(2.8rem, 5.5vw, 4.8rem); line-height: 1.05; }
.hero-text h1 .line-span { display: block; }
.hero-text p { color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; max-width: 480px; line-height: 1.8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero-info-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); padding: 40px; color: var(--white); margin-top: 60px; }
.hero-info-card .year { font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.hero-info-card h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.hero-info-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin-bottom: 20px; }
.hero-info-card .btn-arrow { color: var(--gold); }
.hero-decorative { position: absolute; bottom: 40px; right: 40px; z-index: 2; }
.hero-decorative span { display: block; font-family: var(--serif); font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); writing-mode: vertical-rl; }

/* ----- Stats ----- */
.stats-bar { padding: 80px 0; background: var(--ivory); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; color: var(--text-lt); font-weight: 500; }

/* ----- Introduction ----- */
.intro-section { padding: 120px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-images { position: relative; }
.intro-image-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.intro-image-main img { width: 100%; height: 450px; object-fit: cover; }
.intro-image-secondary { position: absolute; bottom: -40px; right: -40px; width: 220px; height: 220px; border-radius: var(--radius-md); overflow: hidden; border: 4px solid var(--white); box-shadow: var(--shadow-md); }
.intro-image-secondary img { width: 100%; height: 100%; object-fit: cover; }
.intro-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }
.intro-stat { display: flex; gap: 40px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.intro-stat-item h4 { font-family: var(--sans); font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.intro-stat-item span { font-size: 0.85rem; color: var(--text-lt); }

/* ----- Philosophy ----- */
.philosophy { padding: 120px 0; background: var(--ivory); }
.philosophy-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar-card { background: var(--white); border-radius: var(--radius-md); padding: 40px 28px; box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; border: 1px solid var(--border); }
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pillar-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ivory); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; }
.pillar-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar-sub { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.pillar-card p { font-size: 0.9rem; color: var(--text-lt); line-height: 1.7; }

/* ----- Academics (home) ----- */
.academics-home { padding: 120px 0; background: var(--white); }
.academics-home-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 64px; }
.academic-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.academic-stage { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 20px; cursor: pointer; transition: var(--transition); text-align: center; }
.academic-stage:hover, .academic-stage.active { border-color: var(--navy); background: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.academic-stage h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 4px; transition: var(--transition); }
.academic-stage .stage-age { font-size: 0.8rem; color: var(--gold); font-weight: 500; margin-bottom: 8px; transition: var(--transition); }
.academic-stage .stage-desc { font-size: 0.85rem; color: var(--text-lt); line-height: 1.6; transition: var(--transition); }
.academic-stage:hover h4, .academic-stage.active h4 { color: var(--white); }
.academic-stage:hover .stage-desc, .academic-stage.active .stage-desc { color: rgba(255, 255, 255, 0.8); }
.academic-stage .stage-detail { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.academic-stage.active .stage-detail { display: block; }

/* ----- Campus (home) ----- */
.campus-home { padding: 120px 0; background: var(--ivory); }
.campus-home-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.campus-grid-home { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.campus-grid-item { border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.campus-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.campus-grid-item:hover img { transform: scale(1.05); }
.campus-grid-item:nth-child(1) { grid-row: 1 / 3; }
.campus-grid-item:nth-child(2) { grid-column: 2 / 4; }
.campus-label { position: absolute; bottom: 16px; left: 16px; background: rgba(12, 26, 58, 0.8); backdrop-filter: blur(10px); color: var(--white); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 500; }

/* ----- Facilities ----- */
.facilities { padding: 120px 0; background: var(--white); }
.facilities-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.facility-card-image { height: 200px; overflow: hidden; }
.facility-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.facility-card:hover .facility-card-image img { transform: scale(1.05); }
.facility-card-content { padding: 24px; }
.facility-icon { font-size: 1.5rem; margin-bottom: 12px; }
.facility-card-content h4 { margin-bottom: 8px; }
.facility-card-content p { font-size: 0.9rem; color: var(--text-lt); line-height: 1.7; margin-bottom: 0; }

/* ----- Why Aurelis ----- */
.why-aurelis { padding: 120px 0; background: var(--ivory); }
.why-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 24px; box-shadow: var(--shadow-sm); text-align: center; }
.why-icon { font-size: 2rem; margin-bottom: 16px; }
.why-card h4 { font-family: var(--sans); margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--text-lt); line-height: 1.7; margin-bottom: 0; }

/* ----- Student Life (home) ----- */
.student-life-home { padding: 120px 0; background: var(--white); }
.student-life-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.student-life-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; border: 1px solid var(--border); border-radius: 50px; background: var(--white); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition); color: var(--text-lt); }
.filter-btn:hover, .filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.student-life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.student-life-item { border-radius: var(--radius-md); overflow: hidden; position: relative; height: 280px; cursor: pointer; }
.student-life-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.student-life-item:hover img { transform: scale(1.05); }
.student-life-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(12, 26, 58, 0.9), transparent); color: var(--white); }
.student-life-item-overlay h4 { color: var(--white); margin-bottom: 4px; }
.student-life-item-overlay span { font-size: 0.8rem; opacity: 0.8; }

/* ----- Testimonials ----- */
.testimonials { padding: 120px 0; background: var(--navy); }
.testimonials .section-label { color: var(--gold); }
.testimonials .section-title { color: var(--white); margin-bottom: 48px; }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-slide { min-width: 100%; display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; padding: 0 40px; }
.testimonial-image { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); }
.testimonial-image img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-content { color: rgba(255, 255, 255, 0.9); }
.testimonial-content .quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-content .name { font-weight: 600; color: var(--gold); font-size: 1rem; }
.testimonial-content .role { font-size: 0.85rem; opacity: 0.7; }
.testimonial-controls { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.testimonial-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); background: transparent; cursor: pointer; transition: var(--transition); }
.testimonial-dot.active { background: var(--gold); border-color: var(--gold); }

/* ----- Achievements ----- */
.achievements { padding: 120px 0; background: var(--white); }
.achievement-sub { text-align: center; max-width: 560px; margin: 0 auto 64px; color: var(--text-lt); }
.achievement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.achievement-item { text-align: center; }
.achievement-number { font-family: var(--serif); font-size: 3.5rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.achievement-label { font-size: 0.9rem; color: var(--text-lt); font-weight: 500; }

/* ----- Future ----- */
.future-section { padding: 120px 0; background: var(--ivory); }
.future-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.future-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.future-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.future-icon { font-size: 2rem; margin-bottom: 16px; }
.future-card h4 { font-family: var(--sans); margin-bottom: 8px; }
.future-card p { font-size: 0.9rem; color: var(--text-lt); margin-bottom: 0; }

/* ----- Admissions CTA ----- */
.admissions-cta { padding: 120px 0; position: relative; overflow: hidden; background: var(--navy); }
.admissions-cta-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.admissions-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.admissions-cta .container { position: relative; z-index: 1; text-align: center; }
.admissions-cta h2 { color: var(--white); margin-bottom: 16px; }
.admissions-cta p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.admissions-cta .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.admissions-cta .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ----- Events preview ----- */
.events-preview { padding: 120px 0; background: var(--white); }
.events-preview-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: var(--transition); cursor: pointer; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.event-card .event-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.event-card h4 { font-family: var(--sans); font-size: 1.1rem; margin-bottom: 4px; }
.event-card .event-category { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.event-card p { font-size: 0.85rem; color: var(--text-lt); line-height: 1.6; margin-bottom: 16px; }
.event-arrow { font-size: 0.9rem; color: var(--navy); transition: var(--transition); }
.event-card:hover .event-arrow { color: var(--gold); }

/* ----- News ----- */
.news-section { padding: 120px 0; background: var(--ivory); }
.news-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-image { height: 200px; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-content { padding: 24px; }
.news-tag { display: inline-block; padding: 4px 12px; background: var(--ivory); border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.news-card-content h4 { font-size: 1.1rem; margin-bottom: 12px; line-height: 1.4; }
.news-card-content p { font-size: 0.9rem; color: var(--text-lt); margin-bottom: 0; }

/* ----- Final CTA ----- */
.final-cta { padding: 120px 0; position: relative; overflow: hidden; background: var(--navy); }
.final-cta-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.final-cta .container { position: relative; z-index: 1; text-align: center; }
.final-cta h2 { color: var(--white); margin-bottom: 16px; }
.final-cta p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.final-cta .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.final-cta .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255, 255, 255, 0.6); }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
.footer-tagline { font-family: var(--serif); font-size: 0.85rem; color: var(--gold); margin-top: 8px; font-style: italic; }
.footer-column h5 { color: var(--white); font-family: var(--sans); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-column ul li a:hover { color: var(--gold); }
.footer-contact li { margin-bottom: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-contact li strong { color: var(--white); display: block; margin-bottom: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-bottom { padding: 24px 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); display: flex; justify-content: space-between; align-items: center; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { padding: 180px 0 80px; position: relative; overflow: hidden; background: var(--navy); }
.page-hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.page-hero .container { position: relative; z-index: 1; }
.page-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block; }
.page-hero h1 { color: var(--white); max-width: 720px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; max-width: 600px; margin-top: 16px; }

.inner-section { padding: 80px 0; }
.inner-section-alt { background: var(--ivory); padding: 80px 0; }
.inner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.inner-image { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.inner-image img { width: 100%; height: 400px; object-fit: cover; }

/* ----- Values ----- */
.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; }
.value-item h4 { font-family: var(--sans); margin-bottom: 8px; }
.value-item p { font-size: 0.9rem; color: var(--text-lt); margin-bottom: 0; }

/* ----- Team ----- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-card { text-align: center; }
.team-card-image { width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.team-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.team-card:hover .team-card-image img { transform: scale(1.05); }
.team-card h4 { font-family: var(--sans); font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.team-card p { font-size: 0.85rem; color: var(--text-lt); margin-bottom: 0; }
.team-card .experience { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* ----- Process ----- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-step { text-align: center; padding: 32px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.process-step h4 { font-family: var(--sans); font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--text-lt); margin-bottom: 0; }

/* ----- Forms ----- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--sans); font-size: 0.95rem; transition: var(--transition); background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(12, 26, 58, 0.1); }
.form-error { font-size: 0.8rem; color: #d32f2f; margin-top: 4px; display: none; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #d32f2f; }
.form-group.error .form-error { display: block; }
.form-success { text-align: center; padding: 48px; display: none; }
.success-icon { font-size: 3rem; color: var(--green); margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-lt); }

/* ----- Campus gallery ----- */
.campus-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }

/* ----- Lightbox ----- */
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(12, 26, 58, 0.97); z-index: 10002; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); padding: 60px; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 80vw; max-height: 80vh; position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox-close { position: fixed; top: 24px; right: 24px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); font-size: 1.4rem; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10003; }
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--white); width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: var(--transition); z-index: 10003; display: flex; align-items: center; justify-content: center; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ----- Faculty filters ----- */
.faculty-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; justify-content: center; }
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.faculty-grid .team-card { display: none; }
.faculty-grid .team-card.visible { display: block; }

/* ----- Events page ----- */
.events-page-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.events-list { max-width: 800px; margin: 0 auto; }
.event-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.event-item:last-child { border-bottom: none; }
.event-item-date { text-align: center; }
.event-item-date .day { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.event-item-date .month { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.event-item-info h4 { font-family: var(--sans); font-size: 1.1rem; margin-bottom: 4px; }
.event-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.event-item-info p { font-size: 0.9rem; color: var(--text-lt); margin-bottom: 0; }
.event-category-pill { display: inline-block; padding: 4px 12px; background: var(--ivory); border-radius: 50px; font-size: 0.75rem; color: var(--text-lt); margin-bottom: 8px; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info-list { list-style: none; }
.contact-info-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list h5 { font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 8px; }
.contact-info-list p { color: var(--text); font-size: 0.95rem; margin-bottom: 0; }

/* ----- Modal ----- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(12, 26, 58, 0.6); z-index: 10002; opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 48px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: var(--transition); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal h3 { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 0.8rem; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .student-life-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .academic-stages { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .campus-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-actions .parent-portal { display: none; }
  .header-actions .btn { display: none; }
  .hamburger { display: flex; background: rgba(255,255,255,0.95); border-radius: 8px; padding: 6px; box-shadow: var(--shadow-sm); }
  .site-header { height: 70px; }
  .hero { min-height: 100vh; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { padding-top: 80px; }
  .hero-text h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-info-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-image-secondary { width: 160px; height: 160px; right: -20px; bottom: -20px; }
  .section { padding: 80px 0; }
  .academics-home-header { grid-template-columns: 1fr; }
  .campus-grid-home { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .campus-grid-item:nth-child(1) { grid-row: auto; }
  .campus-grid-item:nth-child(2) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .page-hero { padding: 140px 0 60px; }
  .inner-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-list { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .event-item { grid-template-columns: 80px 1fr; }
  .event-item .btn-arrow { grid-column: 1 / -1; }
  .campus-gallery { grid-template-columns: 1fr; }
  .campus-gallery .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; }
  .lightbox-content { max-width: 95vw; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .testimonial-slide { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .testimonial-image { margin: 0 auto; width: 140px; height: 140px; }
  .modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .pillars-grid, .why-grid, .team-grid, .faculty-grid, .events-grid, .news-grid, .future-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  .achievement-number { font-size: 2.5rem; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .academic-stages { grid-template-columns: 1fr; }
  .student-life-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .student-life-filters .filter-btn { flex-shrink: 0; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .mobile-menu { width: 100%; }
}

/* ----- Prefers reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}
