/* ===== afterschool365 CLONE - MAIN STYLES ===== */

/* === FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap");

/* === VARIABLES === */
:root {
  --brand-purple: #4b01d4;
  --brand-purple-dark: #3800a3;
  --brand-purple-light: #7c45e8;
  --brand-purple-pale: #f0eaff;
  --accent-yellow: #ffc619;
  --accent-orange: #ff6b35;
  --accent-green: #00c48c;
  --accent-pink: #ff4f81;
  --accent-blue: #00b4d8;
  --text-dark: #1a1a2e;
  --text-medium: #4a4a6a;
  --text-light: #8888aa;
  --bg-white: #ffffff;
  --bg-light: #f9f8ff;
  --bg-cream: #fef9f0;
  --border-light: #e8e4f4;
  --shadow-sm: 0 2px 8px rgba(75, 1, 212, 0.08);
  --shadow-md: 0 4px 20px rgba(75, 1, 212, 0.12);
  --shadow-lg: 0 8px 40px rgba(75, 1, 212, 0.18);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --nav-height: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}
input,
textarea,
select {
  font-family: inherit;
  outline: none;
  border: none;
}
ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.gap-32 {
  gap: 32px;
}

/* === PROMO BANNER === */
.promo-banner {
  background: linear-gradient(
    135deg,
    var(--brand-purple),
    var(--brand-purple-light)
  );
  color: white;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.promo-banner .code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: "Nunito", monospace;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.promo-banner .limited {
  color: var(--accent-yellow);
  font-weight: 800;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-wordmark {
  height: 22px;
}

/* Browse button */
.btn-browse {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
}

.btn-browse:hover {
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
}

.btn-browse svg {
  transition: var(--transition);
}
.btn-browse:hover svg {
  transform: rotate(180deg);
}

/* Search bar */
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search form {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  gap: 10px;
  transition: var(--transition);
}

.nav-search form:focus-within {
  border-color: var(--brand-purple);
  background: white;
  box-shadow: 0 0 0 4px rgba(75, 1, 212, 0.08);
}

.nav-search input {
  flex: 1;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-search input::placeholder {
  color: var(--text-light);
  font-weight: 500;
}

.btn-search {
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: 0;
  transition: var(--transition);
}

.btn-search:hover {
  color: var(--brand-purple);
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.nav-search:focus-within .search-dropdown {
  display: block;
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-medium);
}

.search-suggestion:hover {
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
}

.search-suggestion svg {
  color: var(--text-light);
  flex-shrink: 0;
}

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  white-space: nowrap;
}

.btn-link:hover {
  background: var(--brand-purple-pale);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
}

.btn-login:hover {
  background: var(--bg-light);
}

.btn-primary {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--brand-purple);
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  transition: var(--transition-bounce);
  font-family: "Quicksand", sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(75, 1, 212, 0.3);
}

.btn-primary:hover {
  background: var(--brand-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(75, 1, 212, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-lg {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: var(--brand-purple);
  color: white;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 16px rgba(75, 1, 212, 0.35);
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-lg:hover {
  background: var(--brand-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 1, 212, 0.45);
}

.btn-outline-lg {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-lg:hover {
  background: var(--brand-purple-pale);
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(160deg, #fef9f0 0%, #f0eaff 50%, #e8f4ff 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(75, 1, 212, 0.06) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 198, 25, 0.1) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -50px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-purple);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-dark);
}

.hero-title .highlight {
  color: var(--brand-purple);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-yellow);
  border-radius: 3px;
  z-index: -1;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-medium);
  font-weight: 500;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: "Nunito", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-purple);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 460px;
}

.hero-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-card-1 {
  bottom: -20px;
  left: -20px;
  animation-delay: 0s;
}

.hero-float-card-2 {
  top: 20px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-icon-yellow {
  background: #fff8e0;
}
.float-icon-purple {
  background: var(--brand-purple-pale);
}

.float-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: "Nunito", sans-serif;
}

.float-text span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

/* === SECTION COMMON === */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === SUPPORT SECTION === */
.support-section {
  background: var(--bg-light);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.support-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.support-card:nth-child(1)::before {
  background: var(--brand-purple);
}
.support-card:nth-child(2)::before {
  background: var(--accent-orange);
}
.support-card:nth-child(3)::before {
  background: var(--accent-green);
}

.support-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-purple-light);
}

.support-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.support-icon-1 {
  background: var(--brand-purple-pale);
}
.support-icon-2 {
  background: #fff3ed;
}
.support-icon-3 {
  background: #e8fff7;
}

.support-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.support-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* === CLASS CARDS SECTION === */
.classes-section {
  background: white;
}

.classes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.classes-header .section-header {
  text-align: left;
  margin-bottom: 0;
}

.btn-see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brand-purple);
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
  font-family: "Quicksand", sans-serif;
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-see-all:hover {
  gap: 10px;
}

.classes-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.class-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-bounce);
  cursor: pointer;
  position: relative;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.class-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--brand-purple-pale), #e8f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-card-body {
  padding: 14px;
}

.class-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-card-teacher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.teacher-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-purple-pale);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-purple);
}

.teacher-name {
  font-size: 0.78rem;
  color: var(--text-medium);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.class-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-medium);
  font-weight: 600;
  margin-bottom: 10px;
}

.star {
  color: var(--accent-yellow);
}
.rating-count {
  color: var(--text-light);
}

.class-card-meta {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.meta-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.meta-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: "Nunito", sans-serif;
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

.price-badge {
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.save-btn:hover {
  color: var(--accent-pink);
  transform: scale(1.1);
}
.save-btn.saved {
  color: var(--accent-pink);
}

/* === WHY afterschool365 === */
.why-section {
  background: linear-gradient(160deg, #fef9f0, #f8f0ff);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(75, 1, 212, 0.05) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.why-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.why-card-icon-1 {
  background: var(--brand-purple-pale);
}
.why-card-icon-2 {
  background: #fff8e0;
}
.why-card-icon-3 {
  background: #e8fff7;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.65;
}

.why-cta {
  text-align: center;
}

/* === TEACHERS SECTION === */
.teachers-section {
  background: white;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.teacher-card-top {
  background: linear-gradient(135deg, var(--brand-purple-pale), #e8f4ff);
  padding: 32px 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.teacher-card-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  background: white;
  overflow: hidden;
  flex-shrink: 0;
}

.teacher-card-info h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.teacher-expertise {
  font-size: 0.8rem;
  color: var(--brand-purple);
  font-weight: 700;
}

.teacher-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--accent-yellow);
  font-size: 0.75rem;
}

.rating-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.rating-reviews {
  font-size: 0.75rem;
  color: var(--text-light);
}

.teacher-card-body {
  padding: 20px 24px 24px;
  flex: 1;
}

.teacher-bio {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 20px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.btn-view-profile {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--brand-purple);
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  border: none;
  cursor: pointer;
}

.btn-view-profile:hover {
  background: var(--brand-purple-dark);
}

/* === TESTIMONIALS === */
.testimonials-section {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition-bounce);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  font-family: "Nunito", sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--brand-purple-pale);
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 24px;
  margin-top: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-purple-pale);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-purple);
}

.testimonial-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--brand-purple),
    var(--brand-purple-light),
    #6e28d9
  );
  color: white;
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 198, 25, 0.15) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-cta-primary {
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 1rem;
  transition: var(--transition-bounce);
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 198, 25, 0.4);
}

.btn-cta-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 198, 25, 0.5);
}

.btn-cta-secondary {
  padding: 16px 36px;
  border-radius: var(--radius-full);
  background: transparent;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.cta-fine {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
  margin: 0 auto;
}

.cta-fine a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* === FOOTER === */
footer {
  background: var(--text-dark);
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo svg path {
  fill: white;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--brand-purple);
  color: white;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* === BROWSE DROPDOWN === */
.browse-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: none;
  padding: 32px 0;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.browse-menu.open {
  display: block;
}

.browse-menu-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.browse-col h6 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 14px;
}

.browse-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.browse-col ul li a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.browse-col ul li a:hover {
  color: var(--brand-purple);
}

.browse-col ul li a .cat-emoji {
  font-size: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .classes-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .browse-menu-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-image-wrap {
    display: block;
    order: -1;
  }
  .hero-img {
    height: 220px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
  }

  .hero-float-card {
    display: none;
  }

  .hero {
    padding: 32px 0 48px;
  }
  .hero-stats {
    gap: 20px;
  }
  .support-grid,
  .why-grid,
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  .classes-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .nav-actions .btn-link {
    display: none;
  }
  .browse-menu-inner {
    grid-template-columns: 1fr 1fr;
  }
  .classes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .classes-carousel {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .nav-search {
    display: none;
  }
}

/* === ANIMATIONS ON SCROLL === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}
.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}
.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* === SKELETON LOADER === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple-light);
}

@media (max-width: 768px) {
  .nav-search,
  .nav-actions,
  .btn-browse {
    display: none !important;
  }

  .nav-mobile-icons {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  .nav-mobile-icons button,
  .nav-mobile-icons a {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex !important;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    font-family: "Quicksand", sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition:
      color 0.2s,
      background 0.2s;
  }

  .nav-mobile-icons button:hover,
  .nav-mobile-icons a:hover {
    color: var(--brand-purple);
    background: var(--brand-purple-pale);
  }
}

/* Hamburger dropdown menu */
/* Tighten dropdown */
.mobile-dropdown {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 998;
  padding: 12px 16px;
  flex-direction: column;
  gap: 8px;
}

.mobile-dropdown.open {
  display: flex;
}

.mobile-dropdown-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: "Quicksand", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
}

.mobile-dropdown-btn.primary {
  background: var(--brand-purple);
  color: white;
}

.mobile-dropdown-btn.primary:hover {
  background: var(--brand-purple-dark);
}

.mobile-dropdown-btn.outline {
  background: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
}

.mobile-dropdown-btn.outline:hover {
  background: var(--brand-purple-pale);
}

.mobile-dropdown-btn.ghost {
  background: transparent;
  color: var(--text-dark);
}

.mobile-dropdown-btn.ghost:hover {
  background: var(--bg-light);
}

/* Hide on desktop */
.nav-mobile-icons {
  display: none;
}

/* ---- PRICING PAGE STYLES ---- */
.pricing-hero {
  background: linear-gradient(160deg, #fef9f0 0%, #f0eaff 60%, #e8f4ff 100%);
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(75, 1, 212, 0.07) 0%,
    transparent 70%
  );
  top: -180px;
  right: -80px;
  pointer-events: none;
}
.pricing-hero-eyebrow {
  display: inline-block;
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.pricing-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.15;
}
.pricing-hero p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
.pricing-hero-free-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--brand-purple);
  font-weight: 700;
}

/* ---- PLANS ---- */
.plans-section {
  background: var(--bg-white);
  padding: 60px 0;
}
.plans-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.plans-grid {
  display: flex;
  gap: 20px;
  min-width: max-content;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 8px;
}
.plan-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: var(--transition-bounce);
  position: relative;
}
.plan-card:hover {
  border-color: var(--brand-purple-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan-card.plan-featured {
  border-color: var(--brand-purple);
  box-shadow:
    0 0 0 3px rgba(75, 1, 212, 0.1),
    var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-credits {
  font-family: "Nunito", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.plan-credits span {
  color: var(--brand-purple);
}
.plan-price {
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.plan-price .plan-orig {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 4px;
}
.plan-period {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.plan-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.875rem;
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
  border: 2px solid var(--brand-purple);
}
.plan-btn-primary {
  background: var(--brand-purple);
  color: white;
}
.plan-btn-primary:hover {
  background: var(--brand-purple-dark);
}
.plan-btn-outline {
  background: transparent;
  color: var(--brand-purple);
}
.plan-btn-outline:hover {
  background: var(--brand-purple-pale);
}
.plan-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.plan-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-perk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.45;
}
.plan-perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-purple);
  flex-shrink: 0;
  margin-top: 5px;
}
.plan-perk strong {
  color: var(--text-dark);
}
.plans-fine {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 24px auto 0;
  padding: 0 24px;
  line-height: 1.6;
}
.plans-fine a {
  color: var(--brand-purple);
  text-decoration: underline;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--bg-light);
  padding: 72px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.how-card {
  text-align: center;
  padding: 24px 16px;
}
.how-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.how-icon-1 {
  background: #d0f0ff;
}
.how-icon-2 {
  background: #fff3d0;
}
.how-icon-3 {
  background: #ffd6ee;
}
.how-icon-4 {
  background: #ffd6c8;
}
.how-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.how-card p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.how-cta {
  text-align: center;
}

/* ---- FAMILY STORIES ---- */
.stories-section {
  background: white;
  padding: 72px 0;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.story-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-bounce);
}
.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.story-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-yellow);
  color: #7a3e00;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}
.story-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
}
.story-age {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.story-desc {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.65;
}
.story-classes {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-class-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-medium);
}
.story-class-row .credits {
  font-weight: 700;
  color: var(--brand-purple);
}
.stories-cta {
  text-align: center;
}

/* ---- FAQ ---- */
.faq-section {
  background: var(--bg-light);
  padding: 72px 0;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: left;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover {
  background: var(--brand-purple-pale);
}
.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--brand-purple);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ---- BOTTOM CTA ---- */
.pricing-cta {
  background: linear-gradient(
    135deg,
    var(--brand-purple),
    var(--brand-purple-light),
    #6e28d9
  );
  text-align: center;
  padding: 80px 24px;
  color: white;
}
.pricing-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: white;
  margin-bottom: 12px;
}
.pricing-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.pricing-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pricing-hero {
    padding: 48px 24px 40px;
  }
  .stories-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SEARCH PAGE STYLES ===== */

.search-page {
  min-height: 100vh;
  background: #f7f6ff;
  display: flex;
  flex-direction: column;
}

/* --- TOP SEARCH BAR STRIP --- */
.search-topbar {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  box-shadow: 0 2px 12px rgba(75, 1, 212, 0.06);
}

.search-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Category Pill Tabs */
.search-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.search-tab.active {
  background: var(--brand-purple);
  color: white;
  border-color: var(--brand-purple);
}

.search-tab:not(.active) {
  background: white;
  color: var(--text-medium);
  border-color: var(--border-light);
}

.search-tab:not(.active):hover {
  border-color: var(--brand-purple-light);
  color: var(--brand-purple);
  background: var(--brand-purple-pale);
}

/* Main search input row */
.search-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-bar-lg {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  transition: var(--transition);
}

.search-bar-lg:focus-within {
  border-color: var(--brand-purple);
  background: white;
  box-shadow: 0 0 0 4px rgba(75, 1, 212, 0.08);
}

.search-bar-lg svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-bar-lg input {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: transparent;
  border: none;
  outline: none;
  font-family: "Quicksand", sans-serif;
}

.search-bar-lg input::placeholder {
  color: var(--text-light);
  font-weight: 500;
}

.btn-search-lg {
  background: var(--brand-purple);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: "Quicksand", sans-serif;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(75, 1, 212, 0.3);
  flex-shrink: 0;
}

.btn-search-lg:hover {
  background: var(--brand-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(75, 1, 212, 0.4);
}

/* Filter chips row */
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  white-space: nowrap;
}

.filter-chip svg {
  transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: var(--brand-purple-pale);
}

.filter-chip.active svg {
  transform: rotate(180deg);
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  flex-shrink: 0;
}

.btn-more-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
}

.btn-more-filters:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.filter-reset {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 10px;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
}

.filter-reset:hover {
  color: var(--brand-purple);
}

.btn-sort,
.btn-save-search,
.btn-compare {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Quicksand", sans-serif;
  margin-left: auto;
}

.btn-sort:hover,
.btn-save-search:hover,
.btn-compare:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.filter-right-group {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

/* ===== MAIN CONTENT ===== */
.search-body {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 24px;
}

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-result-count {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 600;
}

.search-result-count strong {
  color: var(--text-dark);
  font-weight: 800;
}

/* Active filter badges */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-purple-pale);
  color: var(--brand-purple);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(75, 1, 212, 0.15);
}

.active-filter-badge button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  padding: 0;
  opacity: 0.6;
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1;
}

.active-filter-badge button:hover {
  opacity: 1;
}

/* ===== RESULTS GRID ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== RESULT CARD ===== */
.result-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  position: relative;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(75, 1, 212, 0.12);
  border-color: rgba(75, 1, 212, 0.2);
}

/* Card Badges */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

.card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.card-badge-posts {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-purple);
  border: 1px solid rgba(75, 1, 212, 0.15);
}

.card-badge-spots {
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.card-badge-free {
  background: rgba(0, 196, 140, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 196, 140, 0.2);
}

.card-badge-popular {
  background: rgba(255, 198, 25, 0.15);
  color: #a15014;
  border: 1px solid rgba(255, 198, 25, 0.3);
}

/* Save heart */
.result-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.result-save-btn:hover {
  color: var(--accent-pink);
  transform: scale(1.15);
}
.result-save-btn.saved {
  color: var(--accent-pink);
}

/* Thumbnail */
.result-card-thumb {
  width: 100%;
  height: 148px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--brand-purple-pale), #e8f4ff);
}

.result-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.result-card:hover .result-card-thumb img {
  transform: scale(1.04);
}

/* Teacher strip on image */
.card-teacher-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  padding: 20px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-teacher-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-purple-pale);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--brand-purple);
  flex-shrink: 0;
  overflow: hidden;
}

.card-teacher-info {
  flex: 1;
  min-width: 0;
}

.card-teacher-name {
  font-size: 0.72rem;
  color: white;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-teacher-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.card-teacher-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.card-teacher-rating .star-sm {
  color: var(--accent-yellow);
  font-size: 0.75rem;
}

/* Card body */
.result-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.result-card-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  font-family: "Nunito", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-card-desc {
  font-size: 0.78rem;
  color: var(--text-medium);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-read-more {
  font-size: 0.78rem;
  color: var(--brand-purple);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 14px;
  text-align: left;
}

/* Type badge */
.result-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.result-type-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-medium);
}

.result-type-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Duration / age meta */
.result-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.result-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.result-meta-key {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-meta-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Pricing row */
.result-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.result-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

/* ===== CREDIT COIN — SVG-based ===== */
.result-price-coin {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 1px;
}

.result-price-coin::before {
  content: "";
  display: none;
}

.result-price-number {
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.result-price-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
}

.result-schedule-btn {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-purple);
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.result-schedule-btn:hover {
  gap: 7px;
}

/* Next session */
.result-next-session {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-medium);
  font-weight: 600;
}

.result-next-session svg {
  color: var(--brand-purple);
  flex-shrink: 0;
}

/* ===== LOAD MORE ===== */
.load-more-row {
  display: flex;
  justify-content: center;
  padding: 48px 0 20px;
}

.btn-load-more {
  padding: 14px 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--brand-purple);
  background: white;
  color: var(--brand-purple);
  font-weight: 800;
  font-size: 0.95rem;
  font-family: "Quicksand", sans-serif;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.btn-load-more:hover {
  background: var(--brand-purple);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(75, 1, 212, 0.3);
}

/* ===== FILTER DROPDOWN PANEL ===== */
.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-width: 220px;
  z-index: 200;
  display: none;
  animation: slideDown 0.18s ease;
}

.filter-dropdown-panel.open {
  display: block;
}

.filter-dropdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition);
}

.filter-option:hover {
  color: var(--brand-purple);
}

.filter-option input[type="checkbox"] {
  accent-color: var(--brand-purple);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.filter-option-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.filter-chip-wrap {
  position: relative;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: none;
}

.empty-state-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-medium);
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .filter-right-group {
    display: none;
  }
  .btn-search-lg {
    padding: 11px 18px;
  }
  .result-price-coin {
    width: 18px;
    height: 18px;
  }

  .result-price-coin text {
    font-size: 6.5px;
    y: 13;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .search-input-row {
    flex-direction: column;
  }
  .btn-search-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SEARCH PAGE MOBILE ===== */

@media (max-width: 768px) {
  /* Top bar tighter */
  .search-topbar {
    padding: 12px 16px;
    gap: 0;
  }

  .search-topbar-inner {
    gap: 10px;
  }

  /* Tabs — horizontal scroll, no wrap */
  .search-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .search-tabs::-webkit-scrollbar {
    display: none;
  }

  .search-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  /* Search input row */
  .search-input-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .search-bar-lg {
    padding: 8px 14px;
    gap: 8px;
  }

  .search-bar-lg input {
    font-size: 0.875rem;
  }

  .btn-search-lg {
    padding: 9px 16px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* Filter row — horizontal scroll */
  .filter-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    align-items: center;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip,
  .btn-more-filters {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .filter-reset {
    flex-shrink: 0;
    font-size: 0.78rem;
  }

  /* Hide sort/compare/save on mobile — too cramped */
  .filter-right-group,
  .filter-divider {
    display: none;
  }

  /* Filter dropdown panels — full width on mobile */
  .filter-dropdown-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 32px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    border: none;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 500;
  }

  .filter-dropdown-panel::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0 auto 16px;
  }

  /* Search body */
  .search-body {
    padding: 16px;
  }

  .search-meta-row {
    margin-bottom: 14px;
  }

  .search-result-count {
    font-size: 0.82rem;
  }

  /* Active filter badges */
  .active-filters {
    gap: 6px;
    margin-bottom: 14px;
  }

  .active-filter-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  /* Results grid — 2 columns */
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Cards — tighter */
  .result-card-thumb {
    height: 110px;
  }

  .card-teacher-strip {
    padding: 14px 10px 8px;
    gap: 6px;
  }

  .card-teacher-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }

  .card-teacher-name {
    font-size: 0.65rem;
  }

  .card-teacher-badge {
    display: none; /* too cramped */
  }

  .card-teacher-rating {
    font-size: 0.65rem;
  }

  .result-card-body {
    padding: 10px 10px 12px;
  }

  .result-card-title {
    font-size: 0.78rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 3;
  }

  .result-card-desc {
    display: none; /* hide description on mobile to save space */
  }

  .result-read-more {
    display: none;
  }

  .result-type-row {
    margin-bottom: 6px;
    gap: 4px;
  }

  .result-type-label {
    font-size: 0.68rem;
  }

  .result-type-sub {
    font-size: 0.65rem;
  }

  .result-meta-row {
    gap: 4px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .result-meta-key {
    font-size: 0.62rem;
  }

  .result-meta-val {
    font-size: 0.72rem;
  }

  .result-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .result-price-number {
    font-size: 1rem;
  }

  .result-price-label {
    font-size: 0.65rem;
  }

  .result-schedule-btn {
    font-size: 0.72rem;
    color: var(--brand-purple);
  }

  .result-next-session {
    font-size: 0.65rem;
    margin-top: 8px;
    gap: 4px;
  }

  .card-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .card-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .result-save-btn {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  /* Load more */
  .load-more-row {
    padding: 32px 0 16px;
  }

  .btn-load-more {
    width: 100%;
    padding: 13px;
    font-size: 0.9rem;
  }
}

/* Very small phones — single column */
@media (max-width: 380px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card-thumb {
    height: 140px;
  }

  .result-card-desc {
    display: -webkit-box; /* restore on single column — more room */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .result-price-row {
    flex-direction: row;
    align-items: center;
  }
}
