/* ================================================
   Springfield Academy — Main Stylesheet
   Premium Professional School Website
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0f2447;
  --navy-mid:    #1a3461;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-pale:   #eff6ff;
  --gold:        #f59e0b;
  --gold-light:  #fef3c7;
  --success:     #10b981;
  --danger:      #ef4444;
  --warning:     #f59e0b;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm:   0.375rem;
  --radius:      0.625rem;
  --radius-md:   0.875rem;
  --radius-lg:   1.25rem;
  --radius-xl:   1.75rem;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass:       rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
  --navy:        #f1f5f9;
  --navy-mid:    #e2e8f0;
  --blue:        #60a5fa;
  --blue-light:  #93c5fd;
  --blue-pale:   #1e293b;
  --gold:        #fbbf24;
  --white:       #0f172a;
  --gray-50:     #1e293b;
  --gray-100:    #334155;
  --gray-200:    #475569;
  --gray-300:    #64748b;
  --gray-400:    #94a3b8;
  --gray-500:    #cbd5e1;
  --gray-600:    #e2e8f0;
  --gray-700:    #f1f5f9;
  --gray-800:    #f8fafc;
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
  --glass:       rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--gray-800); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9375rem; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(37,99,235,0.35); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.btn-gold:hover { background: #d97706; transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; background: var(--blue-pale); color: var(--blue);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--navy); margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 1.0625rem; color: var(--gray-500); max-width: 520px; margin: 0 auto; }
.divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); margin: 24px auto 0; border-radius: 2px; }

/* ── Animations ── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Loading Screen ── */
#loadingScreen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--navy); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-logo i { font-size: 3rem; color: var(--blue-light); margin-bottom: 20px; }
.loading-name { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 5px; }
.loading-tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 40px; letter-spacing: 0.1em; text-transform: uppercase; }
.loading-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 0; background: var(--blue-light); animation: load 0.8s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--glass); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); z-index: 1000; padding: 0;
  transition: var(--transition);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand span { font-size: 1.25rem; font-weight: 800; color: var(--navy); font-family: 'Playfair Display', serif; }
.nav-brand i { color: var(--blue); font-size: 1.5rem; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  font-size: 0.875rem; font-weight: 500; color: var(--gray-600); padding: 7px 12px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue); background: var(--blue-pale); }
.nav-menu a.admin-link {
  background: var(--blue); color: var(--white); padding: 8px 16px;
  border-radius: var(--radius); font-weight: 600;
}
.nav-menu a.admin-link:hover { background: var(--blue-light); transform: translateY(-1px); }

/* Toggles */
.nav-toggles { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--gray-100); color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--gray-200); transform: rotate(15deg); }
[data-theme="dark"] .theme-toggle { background: var(--gray-100); color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); display: block; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1e3a8a 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 130px 24px 80px; color: var(--white); position: relative; overflow: hidden;
}
.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.03'%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");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  color: #fcd34d; padding: 8px 20px; border-radius: 30px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-content h1 {
  font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 700;
  margin-bottom: 20px; line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-content h1 span { color: #fcd34d; }
.hero-content p { font-size: 1.125rem; max-width: 560px; margin: 0 auto 36px; opacity: 0.85; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 72px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: #fcd34d; font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.875rem; opacity: 0.8; margin-top: 4px; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 0.75rem; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ── About ── */
.about { padding: 96px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.about-card {
  background: var(--white); padding: 36px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold)); opacity: 0; transition: var(--transition);
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.about-card:hover::before { opacity: 1; }
.about-icon {
  width: 64px; height: 64px; background: var(--blue-pale); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  transition: var(--transition);
}
.about-card:hover .about-icon { background: var(--blue); }
.about-icon i { font-size: 1.625rem; color: var(--blue); transition: var(--transition); }
.about-card:hover .about-icon i { color: var(--white); }
.about-card h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.about-card p { color: var(--gray-500); line-height: 1.7; font-size: 0.9375rem; }

/* ── Notices ── */
.notices { padding: 96px 0; background: var(--gray-50); }
.notices-container { display: flex; flex-direction: column; gap: 16px; }
.notice-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px 28px; display: flex; gap: 20px; transition: var(--transition);
  border-left: 4px solid transparent;
}
.notice-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.notice-card.urgent  { border-left-color: var(--danger); }
.notice-card.academic { border-left-color: var(--blue); }
.notice-card.event   { border-left-color: var(--success); }
.notice-card.holiday { border-left-color: var(--gold); }
.notice-card.examination { border-left-color: #8b5cf6; }
.notice-card.general { border-left-color: var(--gray-400); }
.notice-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-icon.urgent      { background: #fef2f2; color: var(--danger); }
.notice-icon.academic    { background: var(--blue-pale); color: var(--blue); }
.notice-icon.event       { background: #f0fdf4; color: var(--success); }
.notice-icon.holiday     { background: var(--gold-light); color: #d97706; }
.notice-icon.examination { background: #f5f3ff; color: #7c3aed; }
.notice-icon.general     { background: var(--gray-100); color: var(--gray-600); }
.notice-content { flex: 1; min-width: 0; }
.notice-content h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.notice-content p { color: var(--gray-500); line-height: 1.65; font-size: 0.9375rem; margin-bottom: 12px; }
.notice-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8125rem; color: var(--gray-400); }
.notice-meta span { display: flex; align-items: center; gap: 5px; }
.notice-priority { padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.notice-priority.high   { background: #fef2f2; color: var(--danger); }
.notice-priority.medium { background: var(--gold-light); color: #d97706; }
.notice-priority.low    { background: #f0fdf4; color: var(--success); }

/* ── Results ── */
.results { padding: 96px 0; background: var(--white); }
.results-search { max-width: 560px; margin: 0 auto 48px; }
.search-box { display: flex; gap: 10px; }
.search-box input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.9375rem; font-family: inherit; transition: var(--transition);
  background: var(--gray-50);
}
.search-box input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-hint { text-align: center; color: var(--gray-400); margin-top: 12px; font-size: 0.8125rem; }
.results-container { max-width: 760px; margin: 0 auto; }
.result-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px 32px;
  box-shadow: var(--shadow-md); margin-bottom: 20px;
  border-top: 4px solid var(--blue);
}
.result-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200);
}
.result-student h3 { font-size: 1.5rem; font-family: 'Playfair Display', serif; color: var(--navy); margin-bottom: 5px; }
.result-student p { color: var(--gray-500); font-size: 0.9rem; }
.result-grade { text-align: center; }
.grade-badge {
  width: 64px; height: 64px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 1.375rem;
  font-weight: 800; margin: 0 auto 6px; font-family: 'Playfair Display', serif;
}
.grade-badge.a-plus { background: #f0fdf4; color: #15803d; box-shadow: 0 0 0 4px #dcfce7; }
.grade-badge.a      { background: #dcfce7; color: #16a34a; box-shadow: 0 0 0 4px #f0fdf4; }
.grade-badge.b-plus { background: var(--blue-pale); color: var(--blue); box-shadow: 0 0 0 4px #dbeafe; }
.grade-badge.b      { background: #dbeafe; color: #3b82f6; box-shadow: 0 0 0 4px var(--blue-pale); }
.grade-badge.c      { background: var(--gold-light); color: #d97706; box-shadow: 0 0 0 4px #fef9c3; }
.grade-badge.d      { background: #ffedd5; color: #ea580c; box-shadow: 0 0 0 4px #fed7aa; }
.grade-badge.f      { background: #fef2f2; color: var(--danger); box-shadow: 0 0 0 4px #fee2e2; }
.grade-badge small  { display: block; font-size: 0.7rem; color: var(--gray-400); font-family: 'Inter', sans-serif; font-weight: 500; }
.result-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.result-item { text-align: center; padding: 16px 12px; background: var(--gray-50); border-radius: var(--radius); }
.result-item label { display: block; font-size: 0.75rem; color: var(--gray-400); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.result-item span { font-size: 1.1875rem; font-weight: 700; color: var(--navy); }
.no-results { text-align: center; padding: 64px 20px; color: var(--gray-400); }
.no-results i { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.no-results h3 { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 8px; }

/* ── Teachers ── */
.teachers { padding: 96px 0; background: var(--gray-50); }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.teacher-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); border: 1px solid var(--gray-200); }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.teacher-photo {
  height: 190px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.teacher-photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(245,158,11,0.15), transparent);
}
.teacher-photo img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.3); z-index: 1; }
.teacher-photo i { font-size: 4.5rem; color: rgba(255,255,255,0.4); }
.teacher-info { padding: 24px; }
.teacher-info h3 { font-size: 1.1875rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.teacher-subject { color: var(--blue); font-weight: 600; font-size: 0.875rem; margin-bottom: 10px; }
.teacher-qualification { color: var(--gray-500); font-size: 0.8125rem; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.teacher-bio { color: var(--gray-600); font-size: 0.875rem; line-height: 1.65; }

/* ── Classes ── */
.classes { padding: 96px 0; background: var(--white); }
.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.class-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-200); }
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.class-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.class-header h3 { font-size: 1.125rem; font-weight: 700; color: var(--navy); }
.class-badge { padding: 5px 14px; background: var(--blue); color: var(--white); border-radius: 20px; font-size: 0.8125rem; font-weight: 600; }
.class-teacher { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gray-600); font-size: 0.9rem; }
.class-teacher i { color: var(--blue); }
.class-description { color: var(--gray-500); margin-bottom: 18px; line-height: 1.65; font-size: 0.9rem; }
.class-subjects { display: flex; flex-wrap: wrap; gap: 7px; }
.class-subject-tag { padding: 4px 12px; background: var(--gray-100); color: var(--gray-600); border-radius: 12px; font-size: 0.75rem; font-weight: 500; }

/* ── Contact ── */
.contact { padding: 96px 0; background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info-header { margin-bottom: 36px; }
.contact-info-header h3 { font-family: 'Playfair Display', serif; font-size: 1.75rem; color: var(--navy); margin-bottom: 8px; }
.contact-info-header p { color: var(--gray-500); }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item-icon {
  width: 48px; height: 48px; background: var(--navy); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon i { color: var(--white); font-size: 1.125rem; }
.contact-item-text h4 { font-size: 0.875rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-item-text p { color: var(--gray-600); font-size: 0.9375rem; }
.contact-form-card { background: var(--white); padding: 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.contact-form-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 0.875rem; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-size: 0.9375rem; font-family: inherit; transition: var(--transition); background: var(--gray-50); color: var(--gray-800);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Footer ── */
.footer { background: var(--navy); color: var(--white); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon i { color: #fcd34d; font-size: 1.375rem; }
.footer-logo-text strong { display: block; font-size: 1.0625rem; font-weight: 700; }
.footer-logo-text span { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: var(--transition); font-size: 0.9375rem; }
.footer-socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.875rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-md); color: var(--white); font-weight: 500;
  font-size: 0.9375rem; z-index: 9999; animation: slideIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-xl); max-width: 380px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--blue); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--gray-400); }
.empty-state i { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.empty-state p { font-size: 1.0625rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: 70px; left: 0; width: 100%; height: calc(100vh - 70px); background: var(--white); flex-direction: column; align-items: center; justify-content: flex-start; padding: 32px 24px; gap: 8px; border-top: 1px solid var(--gray-200); overflow-y: auto; }
  .nav-menu.active { display: flex; }
  .nav-menu a { width: 100%; text-align: center; padding: 12px; font-size: 1rem; }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-stats { gap: 32px; }
  .section-header h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .notice-card { flex-direction: column; }
  .result-header { flex-direction: column; align-items: center; text-align: center; }
  .result-grade { margin-top: 16px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section-header h2 { font-size: 1.75rem; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

/* ── Translate Button & Widget ───────────────────── */
.translate-btn {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 8px;
}

[data-theme="dark"] .translate-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-100);
  border-color: var(--gray-700);
}

.translate-btn:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.translate-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

#google_translate_element {
  display: none; /* Initially hidden until button click */
  margin-right: 12px;
}

.goog-te-gadget {
  font-family: inherit !important;
  color: transparent !important;
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--bg-card);
  font-size: 0.85rem !important;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="dark"] .goog-te-gadget .goog-te-combo {
  border-color: var(--gray-700);
}

.goog-te-banner-frame.skiptranslate,
#goog-gt-tt {
  display: none !important;
}

body {
  top: 0 !important;
}

/* ── WhatsApp FAB ───────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.7); }
.whatsapp-fab-tip {
  position: absolute;
  right: 68px;
  background: #075E54;
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-fab:hover .whatsapp-fab-tip { opacity: 1; }

/* ── Contact Map ────────────────────────────────── */
.contact-map { margin-top: 1rem; }

/* ── Fee Structure Section ──────────────────────── */
.fees { padding: 80px 0; background: var(--gray-50); }
.fees-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-bottom: 24px; }
.fee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}
.fee-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--blue); }
.fee-card-featured { border-color: var(--gold); background: linear-gradient(135deg, var(--white) 80%, #fffbeb); }
.fee-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.fee-card-header { text-align: center; margin-bottom: 20px; }
.fee-icon { width: 52px; height: 52px; background: var(--blue-pale); color: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 12px; }
.fee-card-featured .fee-icon { background: #fef3c7; color: var(--gold); }
.fee-card-header h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.fee-card-header p { font-size: 0.85rem; color: var(--gray-500); }
.fee-amount { text-align: center; font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; line-height: 1; }
.fee-amount span { color: var(--blue); }
.fee-amount small { font-size: 0.85rem; font-weight: 400; color: var(--gray-400); }
.fee-card-featured .fee-amount span { color: var(--gold); }
.fee-list { list-style: none; margin-bottom: 24px; }
.fee-list li { padding: 7px 0; font-size: 0.9rem; color: var(--gray-600); display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed var(--gray-100); }
.fee-list li:last-child { border: none; }
.fee-list li i { color: var(--success); font-size: 0.75rem; flex-shrink: 0; }
.fee-cta { width: 100%; justify-content: center; }
.fees-note { text-align: center; font-size: 0.85rem; color: var(--gray-500); background: var(--blue-pale); padding: 12px 20px; border-radius: var(--radius); max-width: 700px; margin: 0 auto; }
.fees-note i { color: var(--blue); margin-right: 6px; }

/* ── Gallery Section ────────────────────────────── */
.gallery { padding: 80px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,36,71,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.gallery-overlay span { color: #fff; font-size: 0.875rem; font-weight: 600; text-align: center; }

/* ── Gallery Lightbox ───────────────────────────── */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.active { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.glb-content { max-width: 80vw; text-align: center; }
.glb-content img { max-width: 80vw; max-height: 72vh; border-radius: var(--radius-md); object-fit: contain; }
.glb-caption { color: #f8fafc; font-size: 1rem; font-weight: 600; margin-top: 12px; }
.glb-counter { color: #94a3b8; font-size: 0.85rem; margin-top: 4px; }
.glb-close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.glb-close:hover { background: rgba(255,255,255,0.25); }
.glb-prev, .glb-next { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.glb-prev:hover, .glb-next:hover { background: var(--blue); transform: scale(1.1); }

/* ── Admin Pagination ───────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 4px;
}
.pag-info { font-size: 0.85rem; color: var(--gray-500); }
.pag-controls { display: flex; align-items: center; gap: 4px; }
.pag-btn {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.pag-btn:hover:not(:disabled) { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
.pag-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pag-ellipsis { color: var(--gray-400); padding: 0 4px; font-size: 0.85rem; }

/* ── Print Result Button ────────────────────────── */
.print-result-btn { font-size: 0.82rem; }

/* ── Admissions Section ─────────────────────────── */
.admissions-section { padding: 100px 0; background: var(--gray-50); }
.adm-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 768px) { .adm-process-grid { grid-template-columns: 1fr; } }
.adm-process-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}
.adm-process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.adm-process-num {
  position: absolute;
  top: -18px; left: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}
.adm-process-icon {
  width: 68px; height: 68px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.adm-process-icon i { font-size: 1.75rem; color: var(--blue); }
.adm-process-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.adm-process-card p  { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; }
.adm-cta-wrap { text-align: center; margin-top: 48px; }
.adm-cta-sub  { margin-top: 14px; color: var(--gray-500); font-size: 0.9rem; }
.adm-cta-sub a { color: var(--blue); font-weight: 600; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* ── Admission Modal ────────────────────────────── */
.adm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,36,71,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.adm-modal-overlay.active { opacity: 1; pointer-events: all; }
.adm-modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: admSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes admSlideIn { from { transform: translateY(30px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.adm-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 1rem;
  transition: var(--transition);
}
.adm-modal-close:hover { background: var(--gray-200); }
.adm-modal-header { margin-bottom: 28px; }
.adm-modal-header h2 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.adm-modal-header p  { color: var(--gray-400); font-size: 0.85rem; }

/* Step indicators */
.adm-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px;
}
.adm-step {
  display: flex; align-items: center; flex-direction: column; gap: 4px;
  flex: 0 0 auto;
}
.adm-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  color: var(--gray-400);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.adm-step span { font-size: 0.7rem; font-weight: 600; color: var(--gray-400); }
.adm-step.active   .adm-step-num { border-color: var(--blue); background: var(--blue); color: #fff; }
.adm-step.active   span { color: var(--blue); }
.adm-step.completed .adm-step-num { border-color: var(--success); background: var(--success); color: #fff; }
.adm-step.completed span { color: var(--success); }
.adm-step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 8px; margin-bottom: 20px; }

/* Panel */
.adm-panel-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.adm-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.adm-req      { color: var(--danger); margin-left: 2px; }
.adm-optional { color: var(--gray-400); font-size: 0.8rem; font-weight: 400; }

/* Success panel */
.adm-success { text-align: center; padding: 20px 0; }
.adm-success-icon { font-size: 4rem; color: var(--success); margin-bottom: 16px; }
.adm-success h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.adm-success p  { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }
.adm-refno-box {
  margin-top: 20px;
  background: var(--blue-pale);
  border: 1px dashed var(--blue);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--navy);
}
.adm-refno-box strong { color: var(--blue); font-size: 1.05rem; }
