/* =============================================
   CHESS KIDS ACADEMY — MAIN STYLESHEET
   ============================================= */

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

/* ---------- CSS Variables ---------- */
:root {
  --purple:      #6C3FD4;
  --purple-light:#8B5CF6;
  --purple-dark: #4C2A9E;
  --yellow:      #FBBF24;
  --yellow-light:#FDE68A;
  --orange:      #F97316;
  --green:       #22C55E;
  --blue:        #3B82F6;
  --pink:        #EC4899;
  --bg-light:    #F9F6FF;
  --bg-white:    #FFFFFF;
  --text-dark:   #1E1B4B;
  --text-mid:    #4B5563;
  --text-light:  #6B7280;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --shadow-soft: 0 8px 32px rgba(108,63,212,0.12);
  --shadow-card: 0 4px 24px rgba(108,63,212,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; letter-spacing: 0.5px; }

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

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

/* ---------- Utilities ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-block;
  background: var(--yellow-light);
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 20px rgba(108,63,212,0.35);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(108,63,212,0.45);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(251,191,36,0.35);
}
.btn-secondary:hover {
  background: #f0a800;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(251,191,36,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2.5px solid var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Floating Shapes ---------- */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: floatShape 6s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; background: var(--purple); top: -80px; right: -60px; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--yellow); bottom: 60px; left: -80px; animation-delay: 2s; }
.shape-3 { width: 150px; height: 150px; background: var(--orange); top: 40%; right: 5%; animation-delay: 4s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0;
  transition: all 0.35s ease;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(108,63,212,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(108,63,212,0.4);
}

.logo-img {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(108,63,212,0.4);
}

.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--purple);
  line-height: 1;
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 16px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--purple);
  border-radius: 3px;
  transition: all 0.3s;
  display: block;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: white;
  padding: 20px 24px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav a {
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: calc(100vh - 60px);
  max-height: 800px;
  background: linear-gradient(135deg, #F3EEFF 0%, #FFF8E7 50%, #EEF6FF 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--yellow);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  animation: slideDown 0.8s ease;
}
.hero-badge span { font-size: 1.1rem; }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
  animation: slideUp 0.8s ease 0.1s both;
}
.hero-title .highlight {
  color: var(--purple);
  position: relative;
  display: inline-block;
}
.hero-title .highlight-yellow { color: var(--orange); }

.hero-desc {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.6;
  animation: slideUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  animation: slideUp 0.8s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--purple);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  position: relative;
  animation: slideLeft 0.9s ease 0.2s both;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 40px rgba(108,63,212,0.2));
}

/* Floating badges on hero */
.float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  animation: floatBadge 4s ease-in-out infinite;
}
.float-badge-1 { top: 10%; left: -30px; animation-delay: 0s; }
.float-badge-2 { bottom: 15%; right: -20px; animation-delay: 2s; }
.float-badge .badge-icon { font-size: 1.6rem; }

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

/* Wavy divider */
.wave-divider {
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  overflow: hidden; line-height: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 60px 0;
  background: white;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

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

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.exp-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--purple);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(108,63,212,0.4);
}
.exp-badge .big { font-family: 'Fredoka One', cursive; font-size: 2.8rem; line-height: 1; }
.exp-badge .small { font-size: 0.85rem; font-weight: 700; opacity: 0.85; }

.about-content { padding: 24px 0; }

.about-points {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  color: var(--text-mid);
}
.about-points li .point-icon {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.pi-green  { background: #D1FAE5; }
.pi-purple { background: #EDE9FE; }
.pi-yellow { background: #FEF3C7; }
.pi-blue   { background: #DBEAFE; }

/* ============================================================
   COURSES
   ============================================================ */
#courses {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

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

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.course-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(108,63,212,0.15);
  border-color: var(--purple-light);
}

.course-card.featured {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  border: none;
}
.course-card.featured .course-level,
.course-card.featured .course-desc,
.course-card.featured .course-feature {
  color: rgba(255,255,255,0.85);
}
.course-card.featured .course-title { color: white; }

.course-ribbon {
  position: absolute;
  top: 20px; right: -28px;
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 6px 36px;
  transform: rotate(30deg);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.course-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.course-level {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  margin-bottom: 6px;
}

.course-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.course-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-light);
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.course-card.featured .course-age {
  background: rgba(255,255,255,0.25);
  color: white;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.6;
}

.course-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.course-feature {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.course-card.featured .course-footer { border-color: rgba(255,255,255,0.2); }

.course-price .amount {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--purple);
}
.course-card.featured .course-price .amount { color: var(--yellow); }
.course-price .per { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }
.course-card.featured .course-price .per { color: rgba(255,255,255,0.7); }

/* Tournament Card — full width */
.course-card.tournament {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 40px;
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border: 2px solid var(--yellow);
}
.course-card.tournament .course-emoji { margin-bottom: 0; font-size: 4rem; }
.course-card.tournament .course-body { flex: 1; }
.course-card.tournament .course-title { color: var(--text-dark); }
.course-card.tournament .course-footer { border: none; padding: 0; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why {
  padding: 60px 0;
  background: white;
}

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

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

.why-card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  background: white;
  box-shadow: var(--shadow-card);
}

.why-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.wi-1 { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.wi-2 { background: linear-gradient(135deg, #FEF9C3, #FDE68A); }
.wi-3 { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }
.wi-4 { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.wi-5 { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.wi-6 { background: linear-gradient(135deg, #FFEDD5, #FED7AA); }

.why-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: 60px 0;
  background: linear-gradient(135deg, #F3EEFF 0%, #FFF8E7 100%);
  position: relative;
  overflow: hidden;
}

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

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

.testi-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108,63,212,0.15);
}

.testi-quote {
  font-size: 2.8rem;
  color: var(--yellow);
  font-family: 'Fredoka One', cursive;
  line-height: 0.8;
  margin-bottom: 8px;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, var(--purple), var(--purple-light)); }
.av-2 { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.av-3 { background: linear-gradient(135deg, var(--green), #16A34A); }
.av-4 { background: linear-gradient(135deg, var(--blue), #6366F1); }
.av-5 { background: linear-gradient(135deg, var(--pink), #E879A9); }
.av-6 { background: linear-gradient(135deg, #14B8A6, #0D9488); }

.testi-name { font-weight: 800; font-size: 0.95rem; color: var(--text-dark); }
.testi-role { font-size: 0.8rem; color: var(--text-light); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  padding: 60px 0;
  background: white;
}

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

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 2px solid #EDE9FE;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--purple-light); }

.faq-q {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  gap: 16px;
  user-select: none;
  transition: background 0.2s;
}
.faq-item.open .faq-q { background: #F3EEFF; color: var(--purple); }

.faq-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--purple-dark); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 0 28px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* ============================================================
   ENROLL / CONTACT
   ============================================================ */
#enroll {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  position: relative;
  overflow: hidden;
}

#enroll::before {
  content: '♟ ♛ ♞ ♝';
  position: absolute;
  font-size: 8rem;
  opacity: 0.04;
  color: white;
  top: -30px; right: -40px;
  letter-spacing: 20px;
}

.enroll-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.enroll-left { color: white; }
.enroll-left .section-tag { background: rgba(255,255,255,0.2); color: white; }
.enroll-left .section-title { color: white; }
.enroll-desc { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }

.enroll-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enroll-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.perk-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Form */
.enroll-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.form-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 28px;
}

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

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #EDE9FE;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108,63,212,0.1);
  background: white;
}
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

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

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: 14px;
  margin-top: 8px;
  justify-content: center;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success .success-icon { font-size: 4rem; margin-bottom: 16px; }
.form-success h3 { font-family: 'Fredoka One', cursive; font-size: 1.7rem; color: var(--green); margin-bottom: 8px; }
.form-success p { color: var(--text-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

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

.footer-brand .logo-text { color: white; }
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s;
  cursor: pointer;
}
.social-btn:hover { background: var(--purple); transform: translateY(-3px); }

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Desktop footer fix (Programs column removed, now 3 cols) --- */
.footer-inner {
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .course-card.tournament { grid-template-columns: auto 1fr; }
  .course-card.tournament .course-footer { grid-column: 1 / -1; }
  .enroll-inner { gap: 32px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-inner { justify-content: space-between; padding: 10px 0; }
  .nav-cta { display: inline-flex !important; padding: 8px 16px; font-size: 0.85rem; }
  .logo-text { font-size: 1.1rem; }

  /* Hero */
  #hero { min-height: auto; max-height: none; padding-top: 80px; padding-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-badge { margin: 0 auto 16px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { margin: 0 auto 24px; font-size: 0.95rem; }
  .hero-actions { flex-direction: column; gap: 12px; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
  .hero-image { order: -1; margin-bottom: 20px; }
  .hero-image img { max-width: 280px; margin: 0 auto; }
  .float-badge { display: none; }

  /* Free badge in hero */
  .hero-left > div[style] { justify-content: center; flex-wrap: wrap; }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-image-wrap { order: -1; }
  .section-title { font-size: 1.8rem; }
  .exp-badge { bottom: -16px; right: -8px; padding: 14px 20px; }
  .exp-badge .big { font-size: 2rem; }

  /* Pricing */
  .pricing-grid { max-width: 100% !important; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Enroll */
  .enroll-inner { grid-template-columns: 1fr; gap: 32px; }
  .enroll-left { text-align: center; }
  .enroll-form-wrap { padding: 32px 24px; }

  /* Form rows stack on mobile */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Scroll to top */
  #scrollTop { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero-title { font-size: 1.7rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 14px; }
  .hero-stat .num { font-size: 1.3rem; }
  .hero-stat .label { font-size: 0.7rem; }
  .hero-image img { max-width: 220px; }

  /* About */
  .about-points li { font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }

  /* Pricing */
  .new-pricing-card { padding: 20px 16px; }
  .pricing-tab { padding: 8px 16px; font-size: 0.8rem; }
  .price-val { font-size: 1.5rem; }
  .inclusion-list { font-size: 0.75rem; }
  .pricing-actions { flex-direction: column; }

  /* Why */
  .why-card { padding: 20px 16px; }
  .why-title { font-size: 1.1rem; }
  .why-desc { font-size: 0.85rem; }

  /* Testimonials */
  .testi-card { padding: 20px 16px; }
  .testi-text { font-size: 0.88rem; }

  /* FAQ */
  .faq-q { padding: 14px 16px; font-size: 0.88rem; }
  .faq-a { padding: 0 16px; font-size: 0.88rem; }
  .faq-item.open .faq-a { padding: 0 16px 20px; }
  .faq-icon { width: 28px; height: 28px; min-width: 28px; font-size: 1.1rem; }

  /* Enroll */
  .enroll-form-wrap { padding: 24px 18px; }
  .form-title { font-size: 1.4rem; }
  .form-label { font-size: 0.78rem; }
  .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.88rem; }
  .form-submit { font-size: 0.95rem; padding: 14px; }
  .enroll-perks { gap: 8px; }
  .enroll-perk { font-size: 0.85rem; }

  /* Footer */
  .footer-inner { gap: 24px; }
  #footer { padding: 40px 0 24px; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.5rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .num { font-size: 1.1rem; }
  .section-title { font-size: 1.3rem; }
  .new-pricing-card { padding: 16px 12px; }
  .price-val { font-size: 1.3rem; }
  .enroll-form-wrap { padding: 20px 14px; }
  .form-title { font-size: 1.2rem; }
  .testi-card { padding: 16px 12px; }
  .why-card { padding: 16px 12px; }
}

/* ============================================================
   CHESS BOARD DECORATION
   ============================================================ */
.chess-deco {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.chess-deco span {
  display: block;
  aspect-ratio: 1;
}
.chess-deco span.dark  { background: var(--purple-dark); }
.chess-deco span.light { background: var(--purple-light); }

/* Scroll to top button */
#scrollTop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108,63,212,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 998;
}
#scrollTop.show { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: var(--purple-dark); transform: translateY(-3px); }
/* Pricing Tabs */
.pricing-tabs {
  display: flex;
  justify-content: center;
  background: white;
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}
.pricing-tab {
  padding: 8px 24px;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  color: #64748b;
  font-size: 0.9rem;
}
.pricing-tab.active {
  background: linear-gradient(135deg, var(--yellow), var(--purple));
  color: white;
}

/* Card Styling enhancements */
.new-pricing-card {
  background: white;
  border-radius: 32px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.new-pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.new-pricing-card.gold-border {
  border: 2px solid var(--yellow);
}

.emi-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--purple);
  color: white;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 2;
}

.card-header-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.session-count {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-val {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
}
.price-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.2;
}

.price-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1.1rem;
  margin-right: 8px;
}
.save-tag {
  background: #22c55e;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.whats-included {
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
  padding-top: 16px;
}
.whats-included h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #1e293b;
}

.inclusion-list {
  list-style: none;
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.inclusion-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.inclusion-list li::before {
  content: '✓';
  color: var(--purple);
  font-weight: 900;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-enroll {
  background: #e9d5ff;
  color: #1e1b4b;
  width: 100%;
  padding: 12px;
  border-radius: 100px;
  font-weight: 800;
  text-align: center;
  border: none;
}
.btn-enroll.buddy { background: linear-gradient(135deg, var(--yellow), var(--purple-light)); color: white; }
.btn-demo {
  background: white;
  color: #1e293b;
  border: 1.5px solid var(--purple);
  width: 100%;
  padding: 12px;
  border-radius: 100px;
  font-weight: 800;
  text-align: center;
}

/* Tab Content Visibility */
.tab-content { display: none; }
.tab-content.active { display: grid; }
