/* ===============================================
   ANYTIME VIDYA – Session 2027 Board Exam Website
   Premium CSS Design System
   =============================================== */

/* ── FONTS & RESET ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Baloo+2:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --primary: #e31e24;        /* Vidya Red */
  --primary-dark: #b91c1c;
  --primary-light: #fef2f2;
  --secondary: #f59e0b;      /* Gold */
  --secondary-dark: #d97706;
  --accent: #1e3a8a;         /* Deep Blue */
  --accent-light: #eff6ff;

  /* Neutral */
  --white: #ffffff;
  --light: #f8fafc;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #1e3a8a 0%, #312e81 40%, #4c1d95 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  --grad-red: linear-gradient(135deg, #e31e24 0%, #b91c1c 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-prize: linear-gradient(135deg, #1e3a8a 0%, #4c1d95 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-glow-red: 0 0 30px rgba(227,30,36,.3);
  --shadow-glow-gold: 0 0 30px rgba(245,158,11,.4);

  /* Spacing */
  --section-py: 80px;
  --container-max: 1200px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; }

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

.hidden { display: none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(227,30,36,.08);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.15);
  background: rgba(255,255,255,.98);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-img {
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-cta {
  background: var(--grad-red) !important;
  color: white !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-glow-red);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(227,30,36,.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 10px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  background: var(--grad-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(227,30,36,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(245,158,11,.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(2%,2%) scale(1.05); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  color: #fbbf24;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  animation: fadeInDown .8s ease;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: var(--container-max);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text { animation: fadeInLeft 1s ease; }

.hero-tag {
  display: inline-block;
  background: var(--grad-gold);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 24px;
}

.brand-highlight {
  color: #fbbf24;
  font-style: italic;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--grad-red);
  color: white;
  box-shadow: var(--shadow-glow-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(227,30,36,.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fbbf24;
  font-family: 'Baloo 2', sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease;
}

.hero-image-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl), var(--shadow-glow-red);
  max-width: 360px;
}

.hero-qb-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
}

.floating-badge img {
  height: 40px;
  object-fit: contain;
}

.floating-tag {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--grad-gold);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow-gold);
  animation: float 3s ease-in-out infinite reverse;
}

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

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ═══════════════════════════════════════════════
   ANNOUNCEMENT BAR
═══════════════════════════════════════════════ */
.announcement-bar {
  background: linear-gradient(90deg, #e31e24 0%, #b91c1c 50%, #e31e24 100%);
  background-size: 200%;
  animation: shimmerBg 4s linear infinite;
  padding: 14px 24px;
}

@keyframes shimmerBg {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

.announcement-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ann-icon { font-size: 1.3rem; }
.ann-text { color: white; font-size: 0.9rem; flex: 1; }
.ann-text strong { font-weight: 800; color: #fbbf24; }

.ann-btn {
  background: white;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
}

.ann-btn:hover {
  background: #fbbf24;
  color: white;
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════════════ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(227,30,36,.15);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.highlight-orange {
  color: var(--secondary);
  position: relative;
}

/* ═══════════════════════════════════════════════
   CLASSES SECTION
═══════════════════════════════════════════════ */
.classes-section {
  padding: var(--section-py) 0;
  background: #f0f4ff;
}

.classes-section .section-title,
.classes-section .section-badge {
  text-align: center;
  display: block;
}

/* CLASS BUTTONS */
.class-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.class-btn {
  position: relative;
  padding: 0;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  aspect-ratio: 1 / 1.1;
  box-shadow: var(--shadow-lg);
  background: white;
}

.class-btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  gap: 4px;
}

.class-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
  transition: transform .3s;
}

.class-btn:hover .class-icon {
  transform: scale(1.15) rotate(-5deg);
}

.class-num {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.85);
}

.class-big-num {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  font-family: 'Baloo 2', sans-serif;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.class-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.class-btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.class-btn:hover .class-btn-shine {
  opacity: 1;
  animation: shine .6s ease;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Class specific gradients */
.class-btn-9  { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.class-btn-10 { background: linear-gradient(135deg, #e31e24 0%, #9b1c1c 100%); }
.class-btn-11 { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
.class-btn-12 { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); }

.class-btn:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.class-btn.active {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  outline: 4px solid white;
  outline-offset: 2px;
}

.class-btn-9.active  { box-shadow: 0 20px 40px rgba(5,150,105,.5); }
.class-btn-10.active { box-shadow: 0 20px 40px rgba(227,30,36,.5); }
.class-btn-11.active { box-shadow: 0 20px 40px rgba(124,58,237,.5); }
.class-btn-12.active { box-shadow: 0 20px 40px rgba(29,78,216,.5); }

/* SUBJECTS GRID */
.subjects-container {
  animation: fadeInUp .5s ease;
}

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

.subject-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-red);
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(227,30,36,.2);
}

.featured-card {
  border: 2px solid var(--secondary);
}

.featured-card::before {
  background: var(--grad-gold);
}

.featured-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--grad-gold);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subject-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.subject-science  { background: #ecfdf5; }
.subject-math     { background: #eff6ff; }
.subject-social   { background: #fff7ed; }
.subject-hindi    { background: #fdf2f8; }
.subject-english  { background: #f0f9ff; }
.subject-sanskrit { background: #fefce8; }
.subject-physics  { background: #eff6ff; }
.subject-chemistry{ background: #fef3c7; }
.subject-biology  { background: #f0fdf4; }
.subject-commerce { background: #f5f3ff; }

.subject-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.subject-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.subject-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-features span {
  background: #f8fafc;
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.btn-order {
  width: 100%;
  padding: 12px;
  background: var(--grad-red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: auto;
}

.btn-order:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-red);
}

.btn-sample {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-sample:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ═══════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════ */
.features-section {
  padding: var(--section-py) 0;
  background: white;
}

.features-section .section-title,
.features-section .section-badge {
  text-align: center;
  display: block;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.feature-img-wrap {
  overflow: hidden;
  height: 300px;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.feature-card:hover .feature-img-wrap img {
  transform: scale(1.05);
}

.feature-content {
  padding: 24px;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   SHOWCASE SECTION
═══════════════════════════════════════════════ */
.showcase-section {
  padding: var(--section-py) 0;
  background: #0f172a;
}

.showcase-section .section-badge {
  background: rgba(245,158,11,.15);
  color: #fbbf24;
  border-color: rgba(245,158,11,.3);
}

.showcase-section .section-title {
  color: white;
  text-align: center;
  display: block;
  margin-bottom: 48px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.showcase-card:hover img {
  transform: scale(1.08);
}

.showcase-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 32px 16px 16px;
  opacity: 0;
  transition: var(--transition);
}

.showcase-card:hover .showcase-overlay {
  opacity: 1;
}

.showcase-overlay h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

/* ═══════════════════════════════════════════════
   PRIZES SECTION
═══════════════════════════════════════════════ */
.prizes-section {
  padding: var(--section-py) 0;
  background: var(--grad-prize);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prizes-section::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");
}

.prizes-badge {
  background: rgba(245,158,11,.2);
  color: #fbbf24;
  border-color: rgba(245,158,11,.4);
}

.prizes-title {
  color: white;
}

.prizes-image-wrap {
  max-width: 900px;
  margin: 40px auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}

.prizes-image-wrap img {
  width: 100%;
}

.prize-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.prize-item {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  transition: var(--transition);
  min-width: 140px;
}

.prize-item:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-4px);
}

.prize-emoji { font-size: 2rem; }

.prize-item span {
  font-weight: 700;
  font-size: 0.9rem;
}

.prize-item small {
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   DIRECTOR SECTION
═══════════════════════════════════════════════ */
.director-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, #fef9ec 0%, #fff5f5 100%);
}

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

.director-letter {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.director-letter img {
  width: 100%;
}

.director-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.director-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.director-content p strong {
  color: var(--primary);
}

.director-signature {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 20px 0;
}

.director-signature p {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.director-name {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 100px;
  box-shadow: var(--shadow-sm);
}

.trust-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Baloo 2', sans-serif;
}

.trust-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════ */
.contact-section {
  padding: var(--section-py) 0;
  background: white;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.contact-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.contact-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.contact-card a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: #0f172a;
  color: white;
  padding: 60px 0 0;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  background: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-link {
  background: rgba(255,255,255,.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.15);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: #fbbf24;
  padding-left: 4px;
}

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

.footer-qb-logo {
  height: 60px;
  object-fit: contain;
  filter: brightness(10);
  background: rgba(255,255,255,.05);
  padding: 10px;
  border-radius: var(--radius-md);
  align-self: flex-start;
}

.footer-tagline {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-qb p {
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,.3);
  transform: scale(.9);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: white;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-logo {
  height: 50px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: var(--transition);
  background: #fafafa;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(227,30,36,.1);
}

.order-summary {
  background: var(--primary-light);
  border: 1px solid rgba(227,30,36,.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.modal-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-glow-red);
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #064e3b;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  z-index: 99999;
  transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--grad-red);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow-red);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(227,30,36,.5);
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   STUDY GUIDE SECTION
═══════════════════════════════════════════════ */
.study-guide-section {
  padding: var(--section-py) 24px;
  background: var(--light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.guide-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--primary);
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-top-color: var(--secondary);
}

.guide-card.full-width {
  grid-column: 1 / -1;
  background: var(--grad-card);
  border-top: 5px solid var(--secondary);
}

.guide-card h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.guide-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
  text-align: justify;
}

.guide-card p strong {
  color: var(--text);
  font-weight: 600;
}

.features-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.features-list-grid ul {
  list-style: none;
}

.features-list-grid ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.features-list-grid ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ═══════════════════════════════════════════════
   DIRECTOR MESSAGE TEXT MODS
═══════════════════════════════════════════════ */
.director-letter-text {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--primary);
}

.director-letter-text h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.director-letter-text p {
  margin-bottom: 15px;
  font-size: 1rem;
  text-align: justify;
}

/* ═══════════════════════════════════════════════
   PRIZES SECTION MODS
═══════════════════════════════════════════════ */
.prize-rules-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.prize-steps h3, .prize-terms h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  color: var(--white);
}

.step-num {
  background: var(--secondary);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--white);
}

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

.prize-terms ul {
  list-style: none;
}

.prize-terms ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.prize-terms ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════
   DREAM 90 MISSION BANNER
═══════════════════════════════════════════════ */
.dream90-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
  padding: 50px 24px;
  color: var(--white);
}

.dream90-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.dream90-content {
  flex: 1;
}

.dream90-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.dream90-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.dream90-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  max-width: 500px;
}

.dream90-btn {
  background: var(--red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.dream90-btn:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.dream90-image {
  flex: 0 0 350px;
}

.dream90-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
  border: 4px solid rgba(255,255,255,0.1);
}

.dream90-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2.4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .director-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .prize-rules-container { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.8rem; }

  .class-buttons-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .class-big-num { font-size: 2.2rem; }

  .subjects-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }

  .prize-highlights { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .dream90-inner { flex-direction: column; text-align: center; padding: 30px 20px; }
  .dream90-content p { margin: 0 auto 30px auto; }
  .dream90-image { flex: 0 0 auto; width: 100%; max-width: 300px; margin-top: 20px; }
  .dream90-content h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .class-buttons-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .modal-box { padding: 24px; }
  .footer-container { gap: 24px; }
}
