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

:root {
  --orange:       #FF6B35;
  --orange-dark:  #E5561F;
  --orange-light: #FFF0E8;
  --orange-border:#FFD0B0;

  --yellow:       #FFD43B;
  --yellow-dark:  #F0C000;
  --yellow-light: #FFFBEA;

  --blue:         #4A90E2;
  --blue-dark:    #2D6FC4;
  --blue-light:   #EBF4FF;
  --blue-border:  #B0CEFF;

  --green:        #2ECC8A;
  --green-dark:   #1DAA70;
  --green-light:  #EAFFF5;

  --pink:         #FF6B9D;
  --pink-light:   #FFF0F5;

  --purple:       #9B59B6;
  --purple-light: #F5EEFF;

  /* Neutrals */
  --bg:           #FFFCF8;
  --white:        #FFFFFF;
  --text:         #1A1A2E;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;
  --border:       #F0EDE8;

  /* Typography */
  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Spacing */
  --section-pad:  80px 40px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.10);
  --shadow-orange:0 6px 24px rgba(255,107,53,0.25);
  --shadow-blue:  0 6px 24px rgba(74,144,226,0.25);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  gap: 20px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar__logo {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.navbar__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.navbar__name span {
  color: var(--orange);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.navbar__links a {
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active {
  background: var(--orange-light);
  color: var(--orange);
}

.navbar__cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14px;
  transition: background 0.2s, transform 0.15s !important;
  box-shadow: var(--shadow-orange);
}

.navbar__cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px) !important;
}

/* Hamburger (mobile) */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s;
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 74px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 998;
  box-shadow: var(--shadow-lg);
}

.navbar__mobile.open { display: flex; }

.navbar__mobile a {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: background 0.2s;
}

.navbar__mobile a:hover { background: var(--orange-light); color: var(--orange); }

.navbar__mobile .mobile-cta {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  margin-top: 4px;
}

.footer {
  background: var(--text);
  color: var(--white);
  padding: 56px 40px 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer__brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__brand .footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.footer__brand .footer-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--yellow);
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__col ul li a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--orange-border);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.section-label--blue {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-color: var(--blue-border);
}

.section-label--green {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: #A8EDD0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  margin-bottom: 44px;
}

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

.section-header--center .section-desc {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { background: var(--orange-dark); box-shadow: 0 8px 28px rgba(255,107,53,0.35); }

.btn--secondary {
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange-border);
}
.btn--secondary:hover { background: var(--orange-light); }

.btn--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--blue:hover { background: var(--blue-dark); }

.btn--yellow {
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(255,212,59,0.35);
}
.btn--yellow:hover { background: var(--yellow-dark); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 36px; font-size: 17px; }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}

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

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--orange { background: var(--orange-light); color: var(--orange); }
.badge--blue   { background: var(--blue-light);   color: var(--blue-dark); }
.badge--green  { background: var(--green-light);  color: var(--green-dark); }
.badge--yellow { background: var(--yellow-light); color: #8B6000; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #FFF8F0 0%, #EBF8FF 50%, #F0FFF8 100%);
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 88vh;
}

/* Decorative blobs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  top: -180px; right: -100px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(74,144,226,0.12) 0%, transparent 70%);
  bottom: -120px; left: -80px;
}

.hero__content {
  position: relative;
  max-width: 560px;
  animation: fadeUp 0.7s ease both;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-light);
  color: #7A5800;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid #FFE680;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}

.hero__title .text-orange { color: var(--orange); }
.hero__title .text-blue   { color: var(--blue); }

.hero__tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.hero__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: fit-content;
}

.hero__stat {
  padding: 16px 8px;
  text-align: center;
  border-right: 1.5px solid var(--border);
}

.hero__stat:last-child { border-right: none; }

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.hero__stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: block;
  margin-top: 3px;
}

/* Hero illustration panel */
.hero__visual {
  position: relative;
  flex-shrink: 0;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero__card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 340px;
}

.hero__mini-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}

.hero__mini-card:hover { transform: translateY(-4px); }
.hero__mini-card:nth-child(2) { margin-top: 18px; }
.hero__mini-card:nth-child(4) { margin-top: -18px; }

.hero__mini-card .card-emoji { font-size: 32px; margin-bottom: 8px; display: block; }
.hero__mini-card .card-name  { font-weight: 700; font-size: 13px; color: var(--text); }

/* ============================================================
   HOMEPAGE — TEACHER SECTION
   ============================================================ */
.teacher-section {
  padding: var(--section-pad);
  background: var(--white);
}

.teacher__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.teacher__photo {
  flex-shrink: 0;
  width: 280px;
  height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--orange-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  border: 3px solid var(--orange-border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.teacher__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(74,144,226,0.08));
}

.teacher__badge {
  position: absolute;
  bottom: 20px;
  right: -12px;
  background: var(--yellow);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.teacher__content .section-header { margin-bottom: 24px; }

.teacher__bio {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.teacher__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.teacher__tag {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   HOMEPAGE — GALLERY / STUDENTS SECTION
   ============================================================ */
.gallery-section {
  padding: var(--section-pad);
  background: var(--bg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FFE8D5, #FFD0B0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  cursor: default;
}

.gallery__item:hover { transform: scale(1.03); }
.gallery__item:nth-child(2) { background: linear-gradient(135deg, #D5F0FF, #B0DAFF); }
.gallery__item:nth-child(3) { background: linear-gradient(135deg, #D5FFE8, #A8EDD0); }
.gallery__item:nth-child(4) { background: linear-gradient(135deg, #FFD5F0, #FFB0CC); }
.gallery__item:nth-child(5) { background: linear-gradient(135deg, #F0D5FF, #D4B0FF); grid-column: span 2; }
.gallery__item:nth-child(6) { background: linear-gradient(135deg, #FFFAD5, #FFE0A0); grid-column: span 2; }

/* ============================================================
   HOMEPAGE — CLASSES PREVIEW
   ============================================================ */
.classes-section {
  padding: var(--section-pad);
  background: var(--white);
}

.classes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.class-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-xl);
  padding: 36px 20px 28px;
  border: 2.5px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

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

/* Per-class color theming */
.class-card--7  { background: #FFF5F0; border-color: #FFD0B0; }
.class-card--8  { background: #F0FFF8; border-color: #A8EDD0; }
.class-card--9  { background: #EBF4FF; border-color: #B0CEFF; }
.class-card--10 { background: #FFF0F5; border-color: #FFB0CC; }
.class-card--11 { background: #F5EEFF; border-color: #C8B0FF; }
.class-card--12 { background: #FFFBEA; border-color: #FFE080; }

.class-card__num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.class-card--7  .class-card__num { color: #D94010; }
.class-card--8  .class-card__num { color: #0D8A50; }
.class-card--9  .class-card__num { color: #1A5FC0; }
.class-card--10 .class-card__num { color: #B01050; }
.class-card--11 .class-card__num { color: #5A10A8; }
.class-card--12 .class-card__num { color: #9A6A00; }

.class-card__num sup { font-size: 22px; vertical-align: super; }

.class-card__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.class-card__arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.class-card:hover .class-card__arrow {
  transform: translateX(5px);
  color: var(--orange);
}

/* ============================================================
   HOMEPAGE — ENROLLMENT CTA BANNER
   ============================================================ */
.cta-section {
  padding: 80px 40px;
  background: var(--orange);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-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.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section__inner { position: relative; max-width: 640px; margin: 0 auto; }

.cta-section__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-section__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-section .btn--yellow {
  font-size: 17px;
  padding: 16px 40px;
}

/* ============================================================
   CLASS TEMPLATE PAGE
   ============================================================ */
.class-hero {
  background: linear-gradient(145deg, #FFF8F0, #EBF8FF);
  padding: 60px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}

.class-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  top: -150px; right: -100px;
  border-radius: 50%;
}

.class-hero__breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.class-hero__breadcrumb a {
  color: var(--orange);
  font-weight: 600;
  transition: opacity 0.2s;
}

.class-hero__breadcrumb a:hover { opacity: 0.7; }

.class-hero__badge {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.class-exam__badge {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.class-hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.class-hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Subjects grid */
.subjects-section {
  padding: var(--section-pad);
  background: var(--bg);
}

.subjects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.subject-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-xl);
  padding: 36px 20px 28px;
  border: 2.5px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
  cursor: pointer;
}

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

/* Subject color themes */
.subject-card--math    { background: #FFF5F0; border-color: #FFD0B0; }
.subject-card--science { background: #EBF4FF; border-color: #B0CEFF; }
.subject-card--english { background: #F0FFF8; border-color: #A8EDD0; }
.subject-card--sst     { background: #FFFBEA; border-color: #FFE080; }
.subject-card--computer{ background: #F5EEFF; border-color: #C8B0FF; }
.subject-card--hindi   { background: #FFF0F5; border-color: #FFB0CC; }

.subject-card__icon {
  font-size: 44px;
  margin-bottom: 14px;
  display: block;
}

.subject-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.subject-card--math     .subject-card__name { color: #D94010; }
.subject-card--science  .subject-card__name { color: #1A5FC0; }
.subject-card--english  .subject-card__name { color: #0D8A50; }
.subject-card--sst      .subject-card__name { color: #9A6A00; }
.subject-card--computer .subject-card__name { color: #5A10A8; }
.subject-card--hindi    .subject-card__name { color: #B01050; }

.subject-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.subject-card__arrow {
  font-size: 16px;
  color: var(--text-light);
  transition: transform 0.2s, color 0.2s;
}

.subject-card:hover .subject-card__arrow {
  transform: translateX(4px);
  color: var(--orange);
}

/* ============================================================
   RESOURCE TEMPLATE PAGE
   ============================================================ */
.resource-hero {
  background: linear-gradient(145deg, #EBF4FF, #F5EEFF);
  padding: 60px 40px 52px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}

.resource-hero__icon { font-size: 60px; display: block; margin-bottom: 14px; }

.resource-hero__title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.resource-hero__meta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.resources-section {
  padding: var(--section-pad);
  background: var(--bg);
}

.resources__block {
  max-width: 960px;
  margin: 0 auto 56px;
}

.resources__block:last-child { margin-bottom: 0; }

.resources__block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.resources__block-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.resources__block-icon--syllabus  { background: var(--orange-light); }
.resources__block-icon--notes     { background: var(--blue-light); }
.resources__block-icon--solutions { background: var(--green-light); }
.resources__block-icon--videos    { background: var(--yellow-light); }

.resources__block-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.resources__block-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.resources__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.resource-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-card__file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.resource-card--notes .resource-card__file-icon { background: var(--blue-light); }
.resource-card--solution .resource-card__file-icon { background: var(--green-light); }

.resource-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
}

.resource-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.resource-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Coming Soon / Video Placeholder */
.video-placeholder {
  background: linear-gradient(145deg, #1A1A2E, #2D2D4E);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  border: 2px dashed rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74,144,226,0.2) 0%, transparent 70%);
  top: -80px; right: -60px;
  border-radius: 50%;
  pointer-events: none;
}

.video-placeholder__play {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.video-placeholder__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.video-placeholder__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ============================================================
   ENROLLMENT PAGE
   ============================================================ */
.enroll-hero {
  background: linear-gradient(145deg, #FFF8F0, #EBF4FF);
  padding: 60px 40px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}

.enroll-hero__icon {
  font-size: 60px;
  display: block;
  margin-bottom: 16px;
}

.enroll-section {
  padding: var(--section-pad);
  background: var(--bg);
}

.enroll__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.enroll__info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.enroll__perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.enroll__perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1.5px solid var(--border);
}

.enroll__perk-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.enroll__perk-text strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.enroll__perk-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form */
.enroll__form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.enroll__form h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.enroll__form > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label span {
  color: var(--orange);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
  background: var(--white);
}

.form-control::placeholder { color: var(--text-light); }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  margin-top: 8px;
  border-radius: var(--radius);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.form-success__icon {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.form-success__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* JS-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px;
    min-height: auto;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { margin: 0 auto; }
  .hero__card-stack { width: 100%; max-width: 360px; margin: 0 auto; }

  .teacher__inner { flex-direction: column; text-align: center; gap: 36px; }
  .teacher__photo { width: 220px; height: 260px; font-size: 80px; margin: 0 auto; }
  .teacher__tags { justify-content: center; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(6) { grid-column: span 1; }

  .classes__grid { grid-template-columns: repeat(2, 1fr); }

  .enroll__inner { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px 20px; }

  .navbar { padding: 12px 20px; }
  .navbar__links { display: none; }
  .navbar__cta.desktop-only { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__title { font-size: 40px; }
  .cta-section__title { font-size: 32px; }
  .section-title { font-size: 28px; }

  .hero__card-stack {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .hero__mini-card:nth-child(2),
  .hero__mini-card:nth-child(4) { margin-top: 0; }

  .classes__grid   { grid-template-columns: repeat(2, 1fr); }
  .subjects__grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid   { grid-template-columns: repeat(2, 1fr); }
  .resources__cards{ grid-template-columns: 1fr; }

  .enroll__form { padding: 24px 18px; }

  .footer { padding: 40px 20px 24px; }
}
