/* ========================================
   ACCOUNTPRO ACADEMY — STYLE.CSS
   Dark Gold Premium Theme
   ======================================== */

/* --- DESIGN TOKENS --- */
:root {
  --bg: #FFFFFF;
  --bg-card: #F9FAFB;
  --bg-card-2: #F3F4F6;
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #A78BFA;
  --text-primary: #111827;
  --text-muted: #4B5563;
  --border: rgba(124, 58, 237, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-purple: 0 10px 30px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
  --font: 'Poppins', sans-serif;
  --font-si: 'Noto Sans Sinhala', sans-serif;

  /* Legacy mapping for easier transition */
  --gold: var(--purple);
  --gold-dark: var(--purple-dark);
  --gold-light: var(--purple-light);
  --shadow-gold: var(--shadow-purple);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold {
  color: var(--gold);
}

.text-center {
  text-align: center;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(234, 179, 8, 0.1);
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(234, 179, 8, 0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

section {
  padding: 100px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(234, 179, 8, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.2);
}

.btn--lg {
  padding: 15px 36px;
  font-size: 1rem;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__img {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo__img {
  height: 40px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.05);
}

.nav__link.active {
  color: var(--gold);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav__link {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.mobile-nav__link:hover {
  color: var(--gold);
  background: rgba(234, 179, 8, 0.05);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 70% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 10% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid dots */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  animation: fadeInDown 0.6s ease both;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero__title--sinhala {
  font-family: var(--font-si);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-muted);
}

.hero__title--english-sub {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero__title--brand {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--purple);
  letter-spacing: 0.01em;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero__socials {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.3);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
}

.social-icon--sm {
  width: 36px;
  height: 36px;
}

.social-icon--sm svg {
  width: 15px;
  height: 15px;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.hero__img-wrap {
  position: relative;
  width: 600px;
  height: 600px;
}

.hero__lecturer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: var(--transition);
}

.hero__img-wrap:hover .hero__lecturer {
  transform: translateY(-8px);
}

/* Floating Bubbles */
.bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bubble__icon {
  font-size: 1rem;
}

.bubble--1 {
  top: 5%;
  left: -8%;
  animation: floatA 3.5s ease-in-out infinite;
}

.bubble--2 {
  top: 25%;
  right: -10%;
  animation: floatB 4s ease-in-out infinite;
}

.bubble--3 {
  bottom: 30%;
  left: -10%;
  animation: floatA 4.5s ease-in-out 0.5s infinite;
}

.bubble--4 {
  top: 55%;
  right: -8%;
  animation: floatB 3.8s ease-in-out 1s infinite;
}

.bubble--5 {
  bottom: 10%;
  left: 5%;
  animation: floatA 4.2s ease-in-out 0.3s infinite;
}

/* Hero Scroll */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ========================================
   ABOUT / STATS
   ======================================== */
.about {
  background: var(--bg-card-2);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.stat-card__num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
  font-weight: 500;
}

/* About Body */
.about__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
}

.about__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about__img-wrap {
  position: relative;
  flex-shrink: 0;
}

.about__img-placeholder {
  width: 220px;
  height: 260px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__img-ring {
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 3px solid var(--gold);
  animation: ringPulse 3s ease-in-out infinite;
  z-index: 0;
}

.about__name-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  min-width: 220px;
}

.about__name-tag h3 {
  font-weight: 700;
  font-size: 1rem;
}

.about__name-tag p {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 4px;
}

/* About Info */
.about__desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.about__quals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about__quals li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.qual-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.features {
  background: var(--bg);
}

.features .section-label,
.features .section-title {
  display: block;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.cat-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
  transform: translateY(-6px);
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-card--featured {
  border-color: rgba(124, 58, 237, 0.4);
}

.cat-card--featured::before {
  transform: scaleX(1);
}

.cat-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cat-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cat-card__grade {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cat-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cat-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.cat-card__link:hover {
  letter-spacing: 0.05em;
}

/* ========================================
   COURSES / LESSON CATALOG
   ======================================== */
.courses {
  background: var(--bg-card-2);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 2px solid rgba(124, 58, 237, 0.1);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--font);
}

.filter-tab:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* Lesson Cards */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.lesson-card:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-6px) scale(1.01);
}

.lesson-card.hidden {
  display: none;
}

.lesson-card__thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.lesson-card__thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.lesson-card:hover .lesson-card__thumb-bg {
  transform: scale(1.05);
}

.thumb-bg--1 {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #a78bfa);
}

.thumb-bg--2 {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6, #c4b5fd);
}

.thumb-bg--3 {
  background: linear-gradient(135deg, #4338ca, #6366f1, #818cf8);
}

.thumb-bg--4 {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #3730a3);
}

.thumb-bg--5 {
  background: linear-gradient(135deg, #5b21b6, #7c3aed, #818cf8);
}

.thumb-bg--6 {
  background: linear-gradient(135deg, #4c1d95, #6d28d9, #7c3aed);
}

.lesson-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--purple);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lesson-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.4;
}

.lesson-card__instructor {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.lesson-card__stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lesson-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lesson-rating {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
}

.lesson-card__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.lesson-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 99px;
}

.tag--gold {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
  color: var(--gold);
}

.courses__cta {
  text-align: center;
  margin-top: 48px;
}

/* ========================================
   EXAM YEAR SELECTION
   ======================================== */
.exam-year {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.exam-year::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.exam-year__sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1rem;
  line-height: 1.7;
}

.exam-year__btns {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.exam-year__btn {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px 48px;
  transition: var(--transition);
  cursor: pointer;
  min-width: 260px;
  box-shadow: 0 0 0 rgba(234, 179, 8, 0);
}

.exam-year__btn:hover {
  background: rgba(234, 179, 8, 0.08);
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.3);
  transform: translateY(-4px);
}

.exam-year__btn--alt {
  border-color: rgba(234, 179, 8, 0.4);
}

.exam-year__btn--alt:hover {
  border-color: var(--gold);
}

.exam-year__btn-year {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.exam-year__btn-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.exam-year__btn-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  margin-left: auto;
  transition: var(--transition);
}

.exam-year__btn:hover .exam-year__btn-arrow {
  transform: translateX(6px);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--bg-card-2);
}

.testimonials__track-wrap {
  margin-top: 48px;
}

.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.testi-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}

.testi-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  color: #0D0D0D;
}

.testi-avatar--1 {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.testi-avatar--2 {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
}

.testi-avatar--3 {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
}

.testi-avatar--4 {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
}

.testi-avatar--5 {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.testi-card__header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.testi-card__header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testi-stars {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testi-card__quote {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  position: relative;
  padding-left: 16px;
}

.testi-card__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
}

.slider-btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: #FFFFFF;
  color: var(--purple);
  font-size: 1.8rem;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin: 0 -10px;
  /* Slight overlap for larger screens to pull it out beautifully */
}

.slider-btn:hover {
  background: var(--purple);
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
  border-color: var(--purple);
}

.slider-btn:active {
  transform: translateY(0) scale(0.95);
}

.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.slider-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(234, 179, 8, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot-item.active {
  background: var(--gold);
  width: 24px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.contact-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col h5 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 20px;
}

.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.85);
  /* Increased whiteness */
  transition: var(--transition);
}

.footer__col ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  /* Increased whiteness */
  line-height: 1.8;
  margin: 16px 0 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  /* Increased whiteness */
}



/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatA {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translateY(0px) translateX(0);
  }

  50% {
    transform: translateY(-8px) translateX(5px);
  }
}

/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  left: 28px;
  z-index: 900;
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  animation: floatB 4s ease-in-out infinite;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-5px);
  background: #20BA5A;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-pop {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: white;
  color: #111827;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-btn:hover .whatsapp-pop {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(124, 58, 237, 0);
  }
}

/* ========================================
   TEACHERS
   ======================================== */
.teachers {
  background: var(--bg-card-2);
}

.teachers__track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  max-width: 1500px;
  /* Kept max-width but removed overflow: hidden so buttons aren't cut off */
  margin-inline: auto;
}

.teachers__track-wrap .slider-btn,
.teachers__track-wrap+.slider-dots {
  display: flex;
  /* Changed from none to show on desktop */
}

.teachers__track-inner {
  overflow: hidden;
  width: 100%;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  /* Add slight vertical padding for hover shadow */
}

.teachers__track {
  display: flex;
  gap: 20px;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.teacher-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  aspect-ratio: 1 / 1.1;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 40px) / 3);
  /* 3 cards visible with 2 gaps of 20px */
}

.teacher-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-purple);
  transform: translateY(-8px);
}

.teacher-card__img-wrap {
  width: 100%;
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg-card-2);
}

.teacher-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}

.teacher-card:hover .teacher-card__img {
  transform: scale(1.05);
}

.teacher-card__info {
  padding: 16px;
  flex-shrink: 0;
}

.teacher-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.teacher-card__subject {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
}

.teacher-card__socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.teacher-card__socials .social-icon {
  width: 38px;
  height: 38px;
}

.teacher-card__socials .social-icon svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   RESPONSIVE — TABLET (<=900px)
   ======================================== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .hero__content {
    display: contents;
  }

  .hero__badge {
    order: 1;
  }

  .hero__title {
    order: 2;
  }

  .hero__sub {
    order: 3;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .hero__visual {
    order: 4;
    margin-top: 10px;
    width: 100%;
  }

  .hero__btns {
    order: 5;
    justify-content: center;
  }

  .hero__socials {
    order: 6;
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 40px;
  }

  .about__quals li {
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lessons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-card {
    flex: 0 0 calc((100% - 20px) / 2);
    /* 2 cards visible with 1 gap of 20px */
  }

  .testimonials__track {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-card {
    min-width: 0;
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

/* ========================================
   RESPONSIVE — MOBILE (<=600px)
   ======================================== */
@media (max-width: 600px) {
  section {
    padding: 70px 0;
  }

  .hero__title {
    gap: 4px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    white-space: normal;
    text-align: center;
  }

  .hero__btns {
    flex-direction: column;
    align-items: center;
  }

  .hero__img-wrap {
    width: 300px;
    height: 350px;
  }

  .bubble {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .btn--lg {
    width: 100%;
    max-width: 320px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 22px 16px;
  }

  .stat-card__num {
    font-size: 2.2rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }

  .filter-tab {
    white-space: nowrap;
  }

  .teachers__track-wrap .slider-btn,
  .teachers__track-wrap+.slider-dots {
    display: flex;
  }

  .teachers__track {
    display: flex;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  .teacher-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 400px;
  }

  .testimonials__track {
    grid-template-columns: 1fr;
  }

  .testi-card {
    min-width: 0;
    max-width: none;
  }

  .testimonials__track-wrap {
    gap: 8px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .exam-year__btns {
    flex-direction: column;
    align-items: center;
  }

  .exam-year__btn {
    width: 100%;
    max-width: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .chat-widget {
    left: 16px;
    bottom: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .chat-widget__popup {
    width: 290px;
  }
}