/* ============================================
   SmartB Academy - About Page (v2 Fresh)
   Mobile-first
   ============================================ */

/* === ABOUT HERO === */
.about-hero {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.about-hero h1 {
  font-size: clamp(26px, 6vw, 44px);
  margin-bottom: 10px;
}
.about-hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .about-hero { padding: 64px 0; }
  .about-hero-sub { font-size: 17px; }
}
@media (min-width: 1024px) {
  .about-hero { padding: 80px 0 48px; }
}

/* Reduce gap between hero and trainer section */
#trainers.section { padding-top: 32px; }
@media (min-width: 768px) { #trainers.section { padding-top: 40px; } }
@media (min-width: 1024px) { #trainers.section { padding-top: 48px; } }

/* === TRAINER TABS === */
.trainer-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.trainer-tab {
  flex: 1;
  max-width: 280px;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.trainer-tab:hover {
  background: var(--blue-soft);
}
.trainer-tab.active {
  border-bottom-color: var(--blue);
  background: var(--blue-wash);
}
.trainer-tab-name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s ease;
}
.trainer-tab.active .trainer-tab-name {
  color: var(--text);
}
.trainer-tab-role {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Panels */
.trainer-panel {
  display: none;
  animation: fadeInPanel 0.35s ease;
}
.trainer-panel.active {
  display: block;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === BIO SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 40px;
}
.about-photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  background: var(--bg);
}
.about-bio p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 24px;
}
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong {
  font-weight: 600;
  color: var(--heading);
}

/* Trainer quote - enhanced version for about page (base in global.css) */
.trainer-quote {
  margin: 28px 0 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--blue-hint), var(--blue-tint-faint));
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.trainer-quote::before {
  content: '\201C';
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 48px;
  font-family: var(--font-s), Georgia, serif;
  color: var(--blue);
  opacity: 0.15;
  line-height: 1;
}
.trainer-quote p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 0;
  padding-left: 20px;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
  }
  .about-grid--reverse {
    grid-template-columns: 1fr 340px;
  }
  .about-grid--reverse .about-photo {
    order: 2;
  }
  .about-grid--reverse .about-bio {
    order: 1;
  }
  .about-photo { margin: 0; }
}

/* === PANEL SUBSECTIONS (journey + certs inside tabs) === */
.alwin-journey,
.trainer-certs {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* === MOBILE VERTICAL TIMELINE === */
.journey-timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 28px;
}
.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  width: 2px;
  height: 100%;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 32px 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -6px;
  top: 2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.timeline-marker img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.timeline-item--highlight .timeline-marker {
  border-color: var(--amber);
}
.timeline-item--summit .timeline-marker {
  border-color: var(--blue);
  background: var(--blue);
}
.timeline-item--summit .timeline-marker img {
  filter: brightness(10);
}
.timeline-content {
  padding-top: 4px;
}
.timeline-content strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.timeline-content span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}

/* === CAREER JOURNEY (mountain climb - desktop only) === */
.journey-mountain {
  display: none;
  margin-top: 48px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.journey-scene {
  display: block;
  width: 100%;
  height: auto;
}
.journey-scene text {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.journey-scene .marker-group { opacity: 0; }

/* Cloud + tree animations handled by GSAP in animations.js */

@media (max-width: 479px) {
  .journey-timeline {
    padding-left: 16px;
  }
  .journey-timeline::before {
    left: 10px;
  }
  .timeline-item {
    padding: 0 0 20px 24px;
  }
  .timeline-marker {
    width: 36px;
    height: 36px;
    left: -8px;
  }
  .timeline-marker img {
    width: 22px;
    height: 22px;
  }
  .timeline-content strong {
    font-size: 14px;
  }
  .timeline-content span {
    font-size: 12px;
  }
  .timeline-content p {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .journey-timeline {
    display: block;
  }
  .journey-mountain {
    display: none;
  }
}

@media (min-width: 900px) {
  .journey-timeline { display: none; }
  .journey-mountain { display: block; }
}

/* === CERTIFICATIONS (clean grouped list) === */
.certs-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .certs-wrap { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.certs-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 20px;
}

.certs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.certs-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.certs-list li:first-child { padding-top: 0; }
.certs-list li:last-child { border-bottom: none; }

.certs-list li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.certs-list li span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
