/* ============================================================
   LEADERS ACADEMIA LMS — public.css
   Public Website Styles
   ============================================================ */

/* ============================================================
   1. SMOOTH SCROLL & BASE
   ============================================================ */
html { scroll-behavior: smooth; }

.section-padding { padding-block: 5rem; }
.section-padding-sm { padding-block: 3rem; }
.section-padding-lg { padding-block: 7rem; }

/* ============================================================
   SHARED SECTION HEADER COMPONENT
   One eyebrow + heading + subtitle + divider pattern for every
   public page. Works two ways: wrap a bare <h2>/<p> in
   .section-header (descendant selectors below), or use the
   explicit .section-label/.section-title/.section-subtitle
   classes directly on any element.
   ============================================================ */
.section-header { margin-bottom: 3.5rem; text-align: center; }

.section-header .section-label,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(37,99,235,0.1);
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-header h2,
.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-title span { color: var(--primary); }

.section-header p,
.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.75;
}

.section-divider {
  width: 60px;
  height: 3px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ============================================================
   SHARED HERO BADGE
   The small pill badge shown above the H1 in interior-page
   hero sections (About, Teachers, Pricing, etc.)
   ============================================================ */
.hero-badge {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   SHARED LEGAL PAGE STYLES
   Used by Privacy Policy and Terms & Conditions.
   ============================================================ */
.legal-hero {
  background: linear-gradient(135deg, #0F172A 0%, #2563EB 60%, #06B6D4 100%);
  padding: 4rem 0 3rem;
}
.legal-toc {
  position: sticky; top: 80px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 1.5rem;
}
.legal-toc h6 { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 0.75rem; }
.toc-link {
  display: block; color: #475569; font-size: 0.83rem;
  text-decoration: none; padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9; transition: color 0.2s;
}
.toc-link:last-child { border-bottom: none; }
.toc-link:hover { color: #2563EB; }
.toc-link.active { color: #2563EB; font-weight: 600; }

.legal-content h2 {
  font-size: 1.4rem; font-weight: 700; color: #0F172A;
  margin-top: 2.5rem; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid rgba(37,99,235,0.15);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; font-weight: 600; color: #0F172A; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content p, .legal-content li { color: #475569; line-height: 1.85; font-size: 0.92rem; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li, .legal-content ol li { margin-bottom: 0.4rem; }
.legal-content a { color: #2563EB; }
.legal-meta {
  background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px; padding: 0.85rem 1.25rem;
  font-size: 0.82rem; color: #475569; margin-bottom: 2rem;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 40%, #06B6D4 100%);
  overflow: hidden;
  padding-block: 6rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpolygon points='50,8 92,30 92,70 50,92 8,70 8,30' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cpolygon points='50,22 78,38 78,62 50,78 22,62 22,38' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F8FAFC' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,80C1120,85,1280,75,1360,69.3L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.7s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .accent { color: #FCD34D; }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
  display: block;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.hero-image-wrapper {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.hero-image-wrapper img {
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.hero-image-float-card {
  position: absolute;
  background: white;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-image-float-card.card-1 {
  bottom: -20px;
  left: -30px;
  animation: float 3.5s ease-in-out 0.5s infinite;
}

.hero-image-float-card.card-2 {
  top: -16px;
  right: -20px;
  animation: float 3s ease-in-out 1s infinite;
}

.hero-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-float-label { font-size: 0.6875rem; color: #64748B; }
.hero-float-value { font-size: 0.9375rem; font-weight: 700; color: #0F172A; }

/* Floating shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.3);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(6,182,212,0.4);
  bottom: 100px;
  left: -80px;
  animation-delay: 2s;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.4);
  top: 30%;
  right: 20%;
  animation-delay: 1s;
}

/* ============================================================
   3. FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(6,182,212,0.1) 100%);
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.feature-link:hover { gap: 0.75rem; color: var(--primary); }

/* ============================================================
   4. COURSE LISTING CARDS
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   SHARED COURSE CARD COMPONENT
   Used by: home.php (Featured Courses), courses.php (listing),
   course-detail.php (Related Courses)
   ============================================================ */
.course-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.25);
}

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

.course-thumb i {
  font-size: 3.2rem;
  color: rgba(255,255,255,0.7);
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb i { transform: scale(1.15) rotate(-3deg); }

.course-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb-img { transform: scale(1.06); }

.course-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-category {
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.badge-level-beginner,
.badge-level-intermediate,
.badge-level-advanced {
  border-radius: 50px;
  padding: 0.3rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 600;
}
.badge-level-beginner { background: #10b981; color: #fff; }
.badge-level-intermediate { background: #f59e0b; color: #fff; }
.badge-level-advanced { background: #ef4444; color: #fff; }

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

.course-title-sm {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.course-teacher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.teacher-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
}

.course-rating .stars,
.star-filled { color: #f59e0b; }

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1.1rem;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.course-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.course-price.free { color: #10b981; }

.course-price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}

.course-card .btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

/* Category filter chips (courses listing) */
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.category-chip.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

/* ============================================================
   5. TEACHER PROFILE CARDS
   ============================================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.teacher-card-cover {
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
}

.teacher-card-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,5 55,18 55,42 30,55 5,42 5,18' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='1'/%3E%3C/svg%3E");
}

.teacher-card-avatar {
  margin-top: -40px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.teacher-card-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.teacher-card-body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.teacher-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.teacher-specialty {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.teacher-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}

.teacher-stat {
  text-align: center;
}

.teacher-stat-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  display: block;
}

.teacher-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.teacher-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.teacher-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.teacher-social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================================
   6. TESTIMONIAL SECTION
   ============================================================ */
.testimonials-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon points='40,5 75,25 75,55 40,75 5,55 5,25' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  backdrop-filter: blur(12px);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}

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

.testimonial-author-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
}

.testimonial-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  display: block;
}

.testimonial-author-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  display: block;
}

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

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

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

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 9999px;
}

/* ============================================================
   7. PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--light);
  transition: background 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 30px 60px rgba(37,99,235,0.2);
}

.pricing-card.featured::before {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pricing-card:hover:not(.featured) {
  border-color: var(--primary-light);
  box-shadow: 0 16px 40px rgba(37,99,235,0.1);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 1.25rem;
  border-radius: 0 0 0.75rem 0.75rem;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-price {
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  vertical-align: top;
  line-height: 1.6;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-period-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text);
}

.pricing-feature-icon { color: var(--success); flex-shrink: 0; }
.pricing-feature-icon.cross { color: var(--text-light); }

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
}

.pricing-toggle-label.active { color: var(--primary); }

.pricing-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.pricing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pricing-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--light);
  border-radius: 9999px;
  transition: background 0.3s ease;
}

.pricing-toggle input:checked + .pricing-toggle-track {
  background: var(--primary);
}

.pricing-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.pricing-toggle input:checked ~ .pricing-toggle-thumb {
  transform: translateX(24px);
}

.pricing-save-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* ============================================================
   8. STATS COUNTER SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon points='40,5 75,25 75,55 40,75 5,55 5,25' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.stat-item {}

.stat-value-counter {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-suffix {
  color: var(--accent);
}

.stat-item-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.stat-item-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.85;
}

/* ============================================================
   9. CTA SECTIONS
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #2D3748 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  position: relative;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  background: #0A1628;
  color: rgba(255,255,255,0.7);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lets the browser distribute the wrapped address across both lines evenly
   (e.g. "F Block, Satellite Town," / "New Katarian Road, Rawalpindi, Pakistan")
   instead of one long line + one short leftover line. Falls back to normal
   wrapping in browsers that don't support text-wrap: balance yet. */
.footer-address-text {
  text-wrap: balance;
}

.footer-link:hover {
  color: white;
  padding-left: 4px;
}

.footer-link::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.footer-link:hover::before { opacity: 1; }

.footer-newsletter {
  margin-top: 1.25rem;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  color: white;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }

.footer-newsletter-input:focus {
  border-color: var(--primary-light);
}

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

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

.footer-bottom-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover { color: white; }

/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.faq-item.open {
  border-color: rgba(37,99,235,0.25);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}

.faq-question-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  flex: 1;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.3s ease;
}

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

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer { display: block; animation: fadeIn 0.25s ease; }

/* ============================================================
   12. COURSE FILTER TABS
   ============================================================ */
.course-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.375rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  display: inline-flex;
}

.filter-tab {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  white-space: nowrap;
}

.filter-tab:hover { color: var(--primary); background: rgba(37,99,235,0.06); }

.filter-tab.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================================
   13. SCROLL REVEAL (AOS-like)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="fade"]   { transform: none; }
[data-reveal="up"]     { transform: translateY(40px); }
[data-reveal="down"]   { transform: translateY(-40px); }
[data-reveal="left"]   { transform: translateX(-40px); }
[data-reveal="right"]  { transform: translateX(40px); }
[data-reveal="scale"]  { transform: scale(0.85); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ============================================================
   14. CONTACT FORM
   ============================================================ */
.contact-section {
  background: var(--bg);
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* ============================================================
   15. RESPONSIVE - PUBLIC
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: 80vh; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-divider { display: none; }
  .pricing-card.featured { transform: none; }
  .pricing-grid { gap: 1rem; }
  .course-filter-tabs { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
