/* ============================================================
   Little Bloom Academy — style.css
   Organized sections:
   01. CSS Variables & Theming
   02. Reset & Base
   03. Typography
   04. Utility Classes
   05. Navigation
   06. Hero Section
   07. About Section
   08. Courses Section
   09. Testimonials
   10. Career Section
   11. FAQ Section
   12. Contact Section
   13. Footer
   14. Back to Top
   15. Animations & Keyframes
   16. Responsive (Tablet & Mobile)
============================================================ */

/* ============================================================
   01. CSS VARIABLES & THEMING
============================================================ */
:root {
  /* Brand Colors */
  --color-sky: #87CEEA;
  --color-mint: #98E8C1;
  --color-yellow: #FFD97D;
  --color-coral: #FF9B71;
  --color-lavender: #C4B5FD;
  --color-pink: #FFB3C6;
  --color-blue: #6AAFE6;

  /* Gradients */
  --gradient-hero: linear-gradient(145deg, #E0F4FF 0%, #FFF0F9 35%, #F0FFF8 70%, #FFFBEA 100%);
  --gradient-primary: linear-gradient(135deg, #6AAFE6, #A78BFA);
  --gradient-warm: linear-gradient(135deg, #FFD97D, #FF9B71);
  --gradient-mint: linear-gradient(135deg, #98E8C1, #6AAFE6);

  /* Light Theme */
  --bg-main: #FAFBFF;
  --bg-alt: #F3F6FF;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(250, 251, 255, 0.88);

  --text-heading: #1E1B4B;
  --text-body: #4B5563;
  --text-muted: #9CA3AF;
  --text-on-primary: #FFFFFF;

  --border-color: rgba(0,0,0,0.07);
  --shadow-card: 0 8px 32px rgba(106, 175, 230, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 16px 48px rgba(106, 175, 230, 0.22), 0 4px 16px rgba(0,0,0,0.1);
  --shadow-nav: 0 2px 20px rgba(0,0,0,0.08);

  /* Spacing */
  --section-padding: 5rem 0;
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-main: #0F0E1A;
  --bg-alt: #1A1831;
  --bg-card: #1E1C35;
  --bg-nav: rgba(15, 14, 26, 0.92);

  --text-heading: #F0EDFF;
  --text-body: #B0AABF;
  --text-muted: #6B6480;

  --border-color: rgba(255,255,255,0.08);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 16px 48px rgba(106, 175, 230, 0.2), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-nav: 0 2px 20px rgba(0,0,0,0.4);

  --gradient-hero: linear-gradient(145deg, #0F1525 0%, #170F2A 35%, #0A1F1A 70%, #1A160A 100%);
}

/* ============================================================
   02. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================================
   03. TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Baloo 2', cursive;
  color: var(--text-heading);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }

p { color: var(--text-body); }

/* ============================================================
   04. UTILITY CLASSES
============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border-color);
}

.section-title {
  margin-bottom: 1rem;
}

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

.text-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-bounce);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(106, 175, 230, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(106, 175, 230, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-color);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-outline:hover {
  background: var(--color-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--gradient-primary);
  color: white;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 0 2px 12px rgba(106, 175, 230, 0.35);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(106, 175, 230, 0.5);
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   05. NAVIGATION
============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-nav);
  padding: 0.6rem 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.6rem;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-text strong { color: #6AAFE6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-heading);
  background: var(--bg-alt);
}

.nav-link.active {
  color: #6AAFE6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-bounce);
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 999px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

/* ============================================================
   06. HERO SECTION
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="dark"] .blob { opacity: 0.2; }

.blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #87CEEA, #C4B5FD);
  top: -80px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #FFD97D, #FF9B71);
  top: 30%; right: -80px;
  animation-delay: -2s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #98E8C1, #87CEEA);
  bottom: 10%; left: 20%;
  animation-delay: -4s;
}
.blob-4 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #FFB3C6, #C4B5FD);
  bottom: 20%; right: 25%;
  animation-delay: -6s;
}

/* Floating decorative elements */
.floatie {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.floatie-star  { animation: floatA 4.5s ease-in-out infinite; }
.floatie-moon  { animation: floatB 5s ease-in-out infinite; }
.floatie-heart { animation: floatC 4s ease-in-out infinite; }
.floatie-cloud { animation: floatA 6s ease-in-out infinite; }
.floatie-rainbow { animation: floatB 5.5s ease-in-out infinite; }
.floatie-sparkle { animation: floatC 3.5s ease-in-out infinite; }

.hero-container {
  position: relative;
  z-index: 5;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(106, 175, 230, 0.3);
  color: #5a9fd4;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: pulse 3s ease-in-out infinite;
}

[data-theme="dark"] .hero-badge {
  background: rgba(30, 28, 53, 0.8);
}

.hero-headline {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.headline-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  color: var(--text-body);
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-avatars {
  display: flex;
}

.trust-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid white;
  margin-right: -10px;
  object-fit: cover;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-text strong { color: var(--text-heading); }

/* Hero Illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  position: relative;
  width: 380px;
  height: 380px;
}

.illus-bg-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(106, 175, 230, 0.12), rgba(196, 181, 253, 0.12));
  border: 2px dashed rgba(106, 175, 230, 0.3);
  animation: spin 18s linear infinite;
}

.ring-2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(152, 232, 193, 0.15), rgba(255, 217, 125, 0.15));
  border: 2px dashed rgba(152, 232, 193, 0.4);
  animation: spin 12s linear infinite reverse;
}

.illus-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 16px 60px rgba(106, 175, 230, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

[data-theme="dark"] .illus-center {
  background: var(--bg-card);
}

.illus-emoji-wrap {
  animation: wobble 3s ease-in-out infinite;
}

.illus-main-emoji {
  font-size: 3.5rem;
}

/* Orbit items */
.orbit-item {
  position: absolute;
  top: 50%; left: 50%;
}

.orbit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-card);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  transition: var(--transition-bounce);
}

[data-theme="dark"] .orbit-card {
  background: var(--bg-card);
}

.orbit-card:hover { transform: scale(1.15); }

.orbit-card span {
  font-size: 1.5rem;
  line-height: 1;
}

/* Position orbit items around center */
.orbit-1 { transform: translate(calc(-50% + 165px), -50%); }
.orbit-2 { transform: translate(calc(-50% + 50px), calc(-50% - 155px)); }
.orbit-3 { transform: translate(calc(-50% - 165px), -50%); }
.orbit-4 { transform: translate(calc(-50% - 50px), calc(-50% + 155px)); }
.orbit-5 { transform: translate(calc(-50% + 110px), calc(-50% + 135px)); }

.orbit-1 .orbit-card { animation: floatA 4s ease-in-out infinite; }
.orbit-2 .orbit-card { animation: floatB 4.5s ease-in-out infinite; }
.orbit-3 .orbit-card { animation: floatC 3.8s ease-in-out infinite; }
.orbit-4 .orbit-card { animation: floatA 5s ease-in-out infinite; }
.orbit-5 .orbit-card { animation: floatB 4.2s ease-in-out infinite; }

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 3;
}
.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ============================================================
   07. ABOUT SECTION
============================================================ */
.about {
  background: var(--bg-main);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.card-mission::before { background: var(--gradient-primary); }
.card-vision::before  { background: var(--gradient-warm); }
.card-values::before  { background: var(--gradient-mint); }

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

.about-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  margin-bottom: 0.75rem;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}

.stat-number {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-number::after {
  content: '+';
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-bounce);
}

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

.team-img-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.team-img-wrap img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.team-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.team-card h4 { margin-bottom: 0.25rem; }
.team-card p  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.team-subjects {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.team-subjects span {
  background: var(--bg-alt);
  color: var(--color-blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

/* ============================================================
   08. COURSES SECTION
============================================================ */
.courses {
  background: var(--bg-alt);
}

.courses-bg-decor {
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.12), transparent 70%);
  pointer-events: none;
}

/* Filter buttons */
.course-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--bg-card);
  color: var(--text-body);
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(106, 175, 230, 0.35);
  transform: translateY(-2px);
}

/* Course grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

.course-card.hidden {
  display: none;
}

.course-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.15));
  animation: wobble 4s ease-in-out infinite;
}

.course-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.age-tag, .tag-creative, .tag-stem, .tag-language, .tag-social {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.age-tag       { background: rgba(106, 175, 230, 0.12); color: var(--color-blue); }
.tag-creative  { background: rgba(255, 107, 153, 0.12); color: #E8467A; }
.tag-stem      { background: rgba(110, 219, 167, 0.12); color: #2E9E6A; }
.tag-language  { background: rgba(133, 189, 255, 0.12); color: #3381D4; }
.tag-social    { background: rgba(167, 139, 250, 0.12); color: #7C3AED; }

.course-body h3 {
  margin-bottom: 0.5rem;
}

.course-body p {
  font-size: 0.9rem;
  color: var(--text-body);
  flex: 1;
  margin-bottom: 1rem;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.course-duration {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   09. TESTIMONIALS SECTION
============================================================ */
.testimonials {
  background: var(--bg-main);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  text-align: center;
}

.testi-quote {
  font-size: 4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: 'Baloo 2', cursive;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testi-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--color-blue);
}

.testi-author strong {
  display: block;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.testi-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testi-stars { font-size: 0.85rem; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-card);
}

.slider-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.slider-dot.active {
  background: var(--color-blue);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   10. CAREER SECTION
============================================================ */
.career {
  background: var(--bg-alt);
}

.career-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
}

.career-text .section-tag { margin-bottom: 0.75rem; }
.career-text .section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.career-text p { margin-bottom: 1.75rem; font-size: 1rem; }

.career-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
}

.perk-chip {
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: var(--transition-bounce);
}

.perk-chip:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.04);
}

/* Job cards */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-bounce);
}

.job-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(106, 175, 230, 0.4);
}

.job-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-info { flex: 1; }
.job-info h4 { margin-bottom: 0.25rem; }
.job-info p  { font-size: 0.85rem; color: var(--text-muted); }

.job-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.job-tag {
  background: rgba(106, 175, 230, 0.12);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ============================================================
   11. FAQ SECTION
============================================================ */
.faq {
  background: var(--bg-main);
}

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

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item.open {
  border-color: rgba(106, 175, 230, 0.4);
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  gap: 1rem;
  transition: var(--transition);
}

.faq-question:hover { background: var(--bg-alt); }

.faq-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--color-blue);
  font-weight: 300;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gradient-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p { font-size: 0.95rem; line-height: 1.75; }

/* ============================================================
   12. CONTACT SECTION
============================================================ */
.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-heading);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(106, 175, 230, 0.15);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #EF4444;
}

.form-error {
  font-size: 0.78rem;
  color: #EF4444;
  font-weight: 600;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: rgba(110, 219, 167, 0.15);
  border-radius: var(--radius-sm);
  color: #2E9E6A;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
  border: 1.5px solid rgba(110, 219, 167, 0.3);
}

.form-success.visible { display: block; }

/* Contact info side */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-color);
  transition: var(--transition-bounce);
}

.info-card:hover {
  transform: translateX(4px);
  border-color: rgba(106, 175, 230, 0.4);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-card h4 { margin-bottom: 0.25rem; font-size: 0.9rem; }
.info-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.info-card a  { color: var(--color-blue); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-placeholder {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.map-placeholder:hover {
  border-color: var(--color-blue);
  background: rgba(106, 175, 230, 0.05);
}

.map-pin { font-size: 2rem; margin-bottom: 0.5rem; }
.map-placeholder p { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); margin-bottom: 0.25rem; }
.map-placeholder span { font-size: 0.78rem; }

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-card);
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(106, 175, 230, 0.4);
}

.social-btn svg { stroke: currentColor; fill: currentColor; }

/* ============================================================
   13. FOOTER
============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1.5px solid var(--border-color);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.fb1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--color-blue), transparent);
  top: -100px; right: -100px;
}

.fb2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--color-mint), transparent);
  bottom: 0; left: -50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h5 {
  margin-bottom: 1.25rem;
  color: var(--text-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col li, .footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--color-blue);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-legal a:hover { color: var(--color-blue); }

/* ============================================================
   14. BACK TO TOP
============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(106, 175, 230, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition-bounce);
}

.back-to-top svg {
  width: 20px; height: 20px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(106, 175, 230, 0.6);
}

/* ============================================================
   15. ANIMATIONS & KEYFRAMES
============================================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

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

/* Stagger children */
.reveal.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal.revealed > *:nth-child(3) { transition-delay: 0.19s; }
.reveal.revealed > *:nth-child(4) { transition-delay: 0.26s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -20px) scale(1.05); }
  66%  { transform: translate(-10px, 15px) scale(0.97); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-6deg); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%  { transform: rotate(3deg) scale(1.05); }
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(106, 175, 230, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(106, 175, 230, 0); }
}

/* ============================================================
   16. RESPONSIVE STYLES
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-sub { margin: 0 auto 2rem; }

  .hero-cta { justify-content: center; }

  .hero-trust { justify-content: center; }

  .hero-illustration {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 180px; height: 180px; }
  .illus-center { width: 100px; height: 100px; }
  .illus-main-emoji { font-size: 2.8rem; }

  .orbit-1 { transform: translate(calc(-50% + 125px), -50%); }
  .orbit-2 { transform: translate(calc(-50% + 40px), calc(-50% - 115px)); }
  .orbit-3 { transform: translate(calc(-50% - 125px), -50%); }
  .orbit-4 { transform: translate(calc(-50% - 40px), calc(-50% + 115px)); }
  .orbit-5 { transform: translate(calc(-50% + 85px), calc(-50% + 100px)); }

  .about-cards    { grid-template-columns: 1fr; }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .courses-grid   { grid-template-columns: repeat(2, 1fr); }
  .career-hero    { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stat-divider { display: none; }
  .stat-item { width: 45%; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    z-index: 1001;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .hamburger { display: flex; }

  .btn-nav { display: none; }

  /* Hero */
  .hero { padding-top: 4.5rem; padding-bottom: 5rem; }

  .hero-container { gap: 2.5rem; }

  .floatie { font-size: 1.3rem; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn-large { width: 100%; justify-content: center; max-width: 300px; }

  /* About */
  .stats-row { padding: 1.5rem; }
  .stat-item { width: 100%; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; }
  .course-filters { gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

  /* Career */
  .career-hero { padding: 2rem; }
  .job-card {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .job-meta { width: 100%; justify-content: flex-end; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* Back to top */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }

  /* Testimonials */
  .testimonial-card { padding: 2rem 1.5rem; }

  .testi-author { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  .hero-illustration { width: 240px; height: 240px; }
  .ring-1 { width: 200px; height: 200px; }
  .ring-2 { width: 150px; height: 150px; }

  .orbit-1 { transform: translate(calc(-50% + 105px), -50%); }
  .orbit-2 { transform: translate(calc(-50% + 30px), calc(-50% - 95px)); }
  .orbit-3 { transform: translate(calc(-50% - 105px), -50%); }
  .orbit-4 { transform: translate(calc(-50% - 30px), calc(-50% + 95px)); }
  .orbit-5 { transform: translate(calc(-50% + 70px), calc(-50% + 80px)); }

  .orbit-card { padding: 0.5rem 0.65rem; }
  .orbit-card span { font-size: 1.2rem; }

  .team-grid { grid-template-columns: 1fr; }

  .stats-row { padding: 1.25rem; }

  .career-hero { padding: 1.5rem; }
}
