/* ════════════════════════════════════════════
   SMARTTUTORS — Section Styles
   Programs · Subjects · Stories · About
   ════════════════════════════════════════════ */

/* ─── Shared Section Layout ─── */
.section-block {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background: rgba(124, 58, 237, 0.025);
}

.dark .section-alt {
  background: rgba(124, 58, 237, 0.06);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.dark .section-eyebrow {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #A855F7;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}

.dark .section-title { color: white; }

.section-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.dark .section-subtitle { color: rgba(255, 255, 255, 0.55); }

/* ─── Animate on scroll ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }


/* ════════════════════════════════════════════
   PROGRAMS SECTION
   ════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 767px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* ─── Program Card Base ─── */
.program-card {
  position: relative;
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  padding: 36px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 4px 24px rgba(31, 38, 135, 0.07);
  overflow: hidden;
}

.dark .program-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.14);
}

.dark .program-card:hover {
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

/* ─── Premium card ─── */
.premium-card {
  background: linear-gradient(160deg,
    rgba(124, 58, 237, 0.04) 0%,
    rgba(255, 107, 107, 0.03) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.12),
              0 0 0 1px rgba(124, 58, 237, 0.04) inset;
}

.dark .premium-card {
  background: linear-gradient(160deg,
    rgba(124, 58, 237, 0.12) 0%,
    rgba(255, 107, 107, 0.06) 100%);
  border-color: rgba(124, 58, 237, 0.35);
}

.premium-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ─── Card Header ─── */
.program-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.program-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.program-card:hover .program-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.group-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.08));
  color: var(--violet);
}

.premium-icon {
  background: var(--gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.program-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.08);
  color: var(--violet);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.premium-badge {
  background: var(--gradient);
  color: white;
  border: none;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.3);
}

.program-name {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.dark .program-name { color: white; }

.program-tagline {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.dark .program-tagline { color: rgba(255, 255, 255, 0.55); }

/* ─── Features List ─── */
.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.program-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
}

.dark .program-feature { color: rgba(255, 255, 255, 0.75); }

.feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  color: var(--violet);
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-check-premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(255, 107, 107, 0.1));
  color: var(--violet);
}

/* ─── Pricing Row ─── */
.program-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 12px;
  margin-bottom: 24px;
}

.dark .program-pricing {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.program-price {
  font-size: 16px;
  color: #334155;
}

.dark .program-price { color: rgba(255, 255, 255, 0.75); }

.program-price strong {
  font-size: 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 14px;
  color: #94a3b8;
}

.program-students {
  font-size: 13px;
  color: #64748b;
}

.dark .program-students { color: rgba(255, 255, 255, 0.5); }

/* ─── Program CTA ─── */
.program-cta {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
  padding: 14px;
}

.premium-cta {
  background: var(--gradient);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}


/* ════════════════════════════════════════════
   SUBJECTS SECTION
   ════════════════════════════════════════════ */

/* ─── Tabs ─── */
.subjects-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.subject-tab {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  background: white;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dark .subject-tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}

.subject-tab:hover:not(.active) {
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--violet);
  background: rgba(124, 58, 237, 0.04);
}

.subject-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* ─── Subject Panel ─── */
.subjects-panels {
  position: relative;
}

.subject-panel {
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(31, 38, 135, 0.08);
  animation: fadeInPanel 0.35s ease forwards;
}

.dark .subject-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.subject-panel[hidden] { display: none; }

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.subject-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 767px) {
  .subject-panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .subject-panel { padding: 28px; }
}

.subject-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.subject-emoji-badge {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.subject-name {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.dark .subject-name { color: white; }

.subject-level {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: 0.02em;
}

.dark .subject-level { color: #A855F7; }

.subject-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

.dark .subject-desc { color: rgba(255, 255, 255, 0.6); }

.subject-drill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(255, 107, 107, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
}

.dark .subject-drill-badge {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #A855F7;
}

/* ─── Topics Column ─── */
.subject-topics {
  border-left: 1px solid rgba(124, 58, 237, 0.1);
  padding-left: 48px;
}

.dark .subject-topics {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .subject-topics {
    border-left: none;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding-left: 0;
    padding-top: 28px;
  }
}

.subject-topics-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.dark .subject-topics-heading { color: white; }

.subject-topics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.subject-topics-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #475569;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dark .subject-topics-list li { color: rgba(255, 255, 255, 0.65); }

.subject-topics-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.subject-topics-list li:hover {
  background: rgba(124, 58, 237, 0.05);
  transform: translateX(4px);
}

.dark .subject-topics-list li:hover { background: rgba(124, 58, 237, 0.1); }

.subject-cta {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: letter-spacing 0.2s ease;
}

.subject-cta:hover { letter-spacing: 0.02em; }


/* ════════════════════════════════════════════
   TESTIMONIALS / SUCCESS STORIES
   ════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 1023px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── Testimonial Card ─── */
.testimonial-card {
  position: relative;
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 16px rgba(31, 38, 135, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.dark .testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.12);
}

/* Featured card (center / highlight) */
.testimonial-featured {
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  background: linear-gradient(160deg,
    rgba(124, 58, 237, 0.03) 0%,
    rgba(255, 107, 107, 0.02) 100%);
}

.dark .testimonial-featured {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
}

.testimonial-featured-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

/* ─── Card Top Row ─── */
.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-meta {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .testimonial-name { color: white; }

.testimonial-location {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ─── Achievement Badge ─── */
.achievement-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.achievement-astar {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.35);
}

.achievement-distinction {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
  box-shadow: 0 3px 12px rgba(255, 107, 107, 0.35);
}

.achievement-a {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

/* ─── Stars ─── */
.star-rating {
  font-size: 16px;
  color: #F59E0B;
  letter-spacing: 2px;
}

/* ─── Quote ─── */
.testimonial-quote {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  flex: 1;
}

.dark .testimonial-quote { color: rgba(255, 255, 255, 0.6); }

/* ─── Result Line ─── */
.testimonial-result {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  padding: 8px 12px;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.dark .testimonial-result {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
  color: #A855F7;
}

/* ─── Stories CTA Row ─── */
.stories-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}

.stories-cta-text {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.dark .stories-cta-text { color: white; }


/* ════════════════════════════════════════════
   ABOUT / WHY SMARTTUTORS
   ════════════════════════════════════════════ */
.section-about {
  position: relative;
  overflow: hidden;
}

.about-bg-shape {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(124, 58, 237, 0.07), transparent 60%),
              radial-gradient(ellipse at 20% 100%, rgba(255, 107, 107, 0.05), transparent 50%);
  pointer-events: none;
}

/* ─── Metrics Row ─── */
.about-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 64px;
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(31, 38, 135, 0.07);
}

.dark .about-metrics {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.about-metric {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
}

.metric-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.dark .metric-label { color: rgba(255, 255, 255, 0.5); }

.about-metric-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(124, 58, 237, 0.3),
    transparent);
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .about-metrics { flex-direction: column; gap: 28px; }
  .about-metric-divider { width: 60px; height: 1px; }
}

/* ─── Value Pillars ─── */
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

@media (max-width: 1023px) {
  .about-pillars { grid-template-columns: 1fr; }
}

.about-pillar {
  background: white;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 16px rgba(31, 38, 135, 0.06);
}

.dark .about-pillar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.about-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.1);
}

.pillar-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(255, 107, 107, 0.06));
  color: var(--violet);
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.about-pillar:hover .pillar-icon-wrap {
  background: var(--gradient);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

.pillar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.dark .pillar-title { color: white; }

.pillar-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 18px;
}

.dark .pillar-desc { color: rgba(255, 255, 255, 0.6); }

.pillar-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
}

.dark .pillar-points li { color: rgba(255, 255, 255, 0.5); }

.pillar-points li::before {
  content: '→';
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── About CTA Strip ─── */
.about-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 48px;
  background: linear-gradient(135deg,
    rgba(124, 58, 237, 0.06) 0%,
    rgba(255, 107, 107, 0.04) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.08);
}

.dark .about-cta-strip {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
}

.about-cta-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.dark .about-cta-heading { color: white; }

.about-cta-sub {
  font-size: 15px;
  color: #64748b;
}

.dark .about-cta-sub { color: rgba(255, 255, 255, 0.55); }

.about-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.about-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .about-cta-strip {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  .about-cta-btns { justify-content: center; }
}

/* ─── Active Nav Link Scroll Tracking ─── */
.nav-link[data-section].active-scroll {
  color: var(--violet);
  font-weight: 600;
}

.nav-link[data-section].active-scroll::after {
  transform: scaleX(1);
}

.dark .nav-link[data-section].active-scroll {
  color: #A855F7;
}


/* ════════════════════════════════════════════
   HERO MOTIVATIONAL TICKER
   ════════════════════════════════════════════ */

/* ── Keyframe: slides the doubled track by exactly -50%
      so the loop is perfectly seamless with no jumps ── */
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Outer container ── */
.hero-ticker {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 20px;
  overflow: hidden;
  white-space: nowrap;

  /* Dark strip — crisp on any background */
  background: rgba(10, 8, 20, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  padding: 0;

  /* Red glow */
  box-shadow:
    0 2px 20px rgba(220, 38, 38, 0.18),
    0 0 0 1px rgba(220, 38, 38, 0.1) inset;
}

/* ── Soft gradient fade on left & right edges ── */
.hero-ticker::before,
.hero-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.hero-ticker::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(10, 8, 20, 0.95) 0%,
    transparent 100%);
  border-radius: 999px 0 0 999px;
}

.hero-ticker::after {
  right: 0;
  background: linear-gradient(to left,
    rgba(10, 8, 20, 0.95) 0%,
    transparent 100%);
  border-radius: 0 999px 999px 0;
}

/* ── Moving track ── */
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: tickerMove 28s linear infinite;
  padding: 10px 0;
}

/* ── Pause on hover so users can read ── */
.hero-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ── Individual text items ── */
.ticker-item {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 22px;
  transition: opacity 0.2s ease;

  /* Vivid red shimmer */
  background: linear-gradient(
    90deg,
    #ff4444 0%,
    #DC2626 35%,
    #ff6b6b 60%,
    #DC2626 80%,
    #ff4444 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: tickerShimmer 3s linear infinite;
}

@keyframes tickerShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Dot dividers ── */
.ticker-dot {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #ff6b6b;
  flex-shrink: 0;
  padding: 0 2px;
  -webkit-text-fill-color: #ff6b6b;
  opacity: 0.8;
}

/* ── Dark mode adjustments ── */
.dark .hero-ticker {
  background: rgba(10, 8, 20, 0.88);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow:
    0 2px 24px rgba(220, 38, 38, 0.22),
    0 0 0 1px rgba(220, 38, 38, 0.12) inset;
}

.dark .hero-ticker::before {
  background: linear-gradient(to right, rgba(6, 4, 14, 0.95) 0%, transparent 100%);
}

.dark .hero-ticker::after {
  background: linear-gradient(to left, rgba(6, 4, 14, 0.95) 0%, transparent 100%);
}

/* ── Mobile responsiveness ── */
@media (max-width: 640px) {
  .hero-ticker {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .hero-ticker::before,
  .hero-ticker::after {
    width: 36px;
  }

  .ticker-item {
    font-size: 12px;
    padding: 0 16px;
  }

  .ticker-track {
    animation-duration: 22s; /* slightly faster on small screens */
    padding: 9px 0;
  }
}

@media (max-width: 380px) {
  .ticker-item {
    font-size: 11.5px;
    padding: 0 12px;
  }
}

/* ── Respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .ticker-item {
    animation: none;
  }

  /* Show all items stacked if motion is off */
  .hero-ticker {
    overflow: visible;
    white-space: normal;
    border-radius: 16px;
    padding: 12px 20px;
    text-align: center;
  }

  .ticker-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

/* ================================================================
   AI TUTOR CHAT WIDGET
   DeepTutor Socratic Engine - Glassmorphic Floating Drawer
   ================================================================ */

/* ── Floating Action Button ── */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 24px rgba(124, 58, 237, 0.45),
    0 0 0 0 rgba(124, 58, 237, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              opacity 0.25s ease;
  animation: aiFabPulse 2.4s ease-in-out infinite;
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 32px rgba(124, 58, 237, 0.55),
    0 0 0 8px rgba(124, 58, 237, 0.1);
}
.ai-fab:active {
  transform: scale(0.95);
}
.ai-fab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}
.ai-fab svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes aiFabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(124,58,237,0.45), 0 0 0 0 rgba(124,58,237,0.25); }
  50%      { box-shadow: 0 4px 24px rgba(244,63,94,0.45),  0 0 0 10px rgba(124,58,237,0); }
}

/* ── Chat Drawer ── */
.ai-chat-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  width: 380px;
  height: 600px;
  max-height: 85vh;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  /* entry transition */
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-chat-drawer.ai-chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Drawer Header ── */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.ai-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED, #F43F5E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-chat-brand-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
}
.ai-chat-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-chat-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.ai-chat-brand-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
}
.ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: aiStatusPulse 2s ease-in-out infinite;
}
@keyframes aiStatusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.ai-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
.ai-chat-close svg {
  width: 16px;
  height: 16px;
}

/* ── Messages Area ── */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}
.ai-chat-messages::-webkit-scrollbar { width: 5px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

/* ── Message Bubbles ── */
.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: aiBubbleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes aiBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-msg-user {
  flex-direction: row-reverse;
}
.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.ai-msg-avatar-ai {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
}
.ai-msg-avatar-user {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: white;
}
.ai-msg-body {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 260px;
  word-wrap: break-word;
}
.ai-msg-ai .ai-msg-body {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-body {
  background: linear-gradient(135deg, #7C3AED 0%, #a855f7 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

/* ── Typing dots ── */
.ai-typing-indicator .ai-msg-body {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
}
.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: aiDotBounce 1.4s ease-in-out infinite;
}
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ── Input Bar ── */
.ai-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-chat-input::placeholder {
  color: #64748b;
}
.ai-chat-input:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.ai-chat-input:disabled {
  opacity: 0.5;
}
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #7C3AED 0%, #F43F5E 100%);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}
.ai-chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}
.ai-chat-send:active {
  transform: scale(0.95);
}
.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.ai-chat-send svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .ai-chat-drawer {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    max-width: 100vw;
    border-radius: 0;
  }
  .ai-fab {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ── Subject Selector Dropdown ── */
.ai-subject-selector {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(124, 58, 237, 0.06);
  flex-shrink: 0;
}
.ai-subject-dropdown {
  width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a78bfa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ai-subject-dropdown:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
}
.ai-subject-dropdown:focus {
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.ai-subject-dropdown option {
  background: #1e293b;
  color: #e2e8f0;
  padding: 8px;
}

