/* Standalone About page. Uses the shared homepage design system and media carousel styles. */

.about-page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 82% 20%, rgba(31, 106, 225, 0.12), transparent 34%),
    linear-gradient(135deg, #f7faff 0%, #eaf2ff 58%, #f2f7ff 100%);
}

.about-page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(31, 106, 225, 0.09);
  border-radius: 50%;
}

.about-page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.about-page-hero-copy {
  max-width: 720px;
}

.about-page-hero h1 {
  max-width: 760px;
  margin: 10px 0 20px;
  color: var(--text-primary);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
}

.about-page-hero h1 span {
  display: block;
  color: var(--brand-primary-dark);
}

.about-page-hero-lead {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.about-page-hero-actions,
.about-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-slideshow {
  width: min(100%, 470px);
  margin-left: auto;
}

.about-slideshow-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dfe9f8;
  border: 1px solid #c9daf3;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(24, 33, 45, 0.18);
}

.about-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 420ms ease, transform 650ms ease;
}

.about-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.about-slide-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(15, 22, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.about-slide-button:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.about-slide-prev {
  left: 14px;
}

.about-slide-next {
  right: 14px;
}

.about-slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.about-slide-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--brand-primary-muted);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.about-slide-dot.is-active {
  width: 25px;
  background: var(--brand-primary);
}

.about-story-grid,
.about-media-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}

.about-story-heading {
  position: sticky;
  top: 116px;
}

.about-story-heading h2,
.about-media-intro-grid h2 {
  margin: 7px 0 0;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.16;
}

.about-story-copy {
  max-width: 760px;
}

.about-story-copy p,
.about-media-intro-grid p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.about-story-copy p:first-child {
  color: var(--text-primary);
  font-size: 18px;
}

.about-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}

.about-fact-card {
  min-width: 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.about-fact-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border-radius: 12px;
  font-size: 18px;
}

.about-fact-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
}

.about-fact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}


.about-page #reviews {
  border-top: 1px solid var(--border);
}

.about-page #reviews .section-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.about-centered-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.about-experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.about-experience-card {
  position: relative;
  min-width: 0;
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.about-experience-card > span {
  display: block;
  margin-bottom: 28px;
  color: var(--brand-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-experience-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.about-experience-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.about-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 42px auto 26px;
}

.about-license-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-muted);
  border-radius: var(--radius-medium);
}

.about-license-card span {
  color: var(--brand-primary-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-license-card h3 {
  margin: 3px 0 0;
  color: var(--text-primary);
  font-size: 16px;
}

.about-license-card strong {
  flex-shrink: 0;
  color: var(--brand-primary-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.about-credential-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.about-credential-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.about-credential-featured {
  border-color: #b9d2fb;
  box-shadow: 0 12px 30px rgba(31, 106, 225, 0.09);
}

.about-credential-award {
  background: #fffdf7;
  border-color: #eee2bd;
}

.about-credential-year {
  color: var(--brand-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.about-credential-card h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.about-credential-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.about-credential-note {
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.about-page .home-youtube-section {
  padding-top: 58px;
}

.about-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 42px auto 0;
}

.about-social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.about-social-card:hover {
  color: var(--brand-primary);
  border-color: #b7cff3;
  transform: translateY(-2px);
}

.about-social-card > i {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  background: var(--brand-primary);
  border-radius: 50%;
  font-size: 18px;
}

.about-social-card strong,
.about-social-card span {
  display: block;
}

.about-social-card strong {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.about-social-card span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-page-cta {
  padding: 70px 0;
  color: var(--text-primary);
  background: var(--brand-primary-soft);
  border-top: 1px solid var(--brand-primary-muted);
}

.about-page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-page-cta h2 {
  max-width: 720px;
  margin: 8px 0 10px;
  color: var(--text-primary);
  font-size: clamp(30px, 3.4vw, 44px);
}

.about-page-cta p {
  max-width: 700px;
  margin: 0;
  color: var(--text-secondary);
}

.about-page-cta-actions {
  flex-shrink: 0;
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .about-page-hero {
    padding: 58px 0;
  }

  .about-page-hero-grid,
  .about-story-grid,
  .about-media-intro-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-page-hero-copy {
    max-width: 780px;
  }

  .about-slideshow {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .about-story-heading {
    position: static;
  }

  .about-fact-grid,
  .about-experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page-cta-inner {
    display: block;
  }

  .about-page-cta-actions {
    margin-top: 26px;
  }
}

@media (max-width: 767.98px) {
  .about-page-hero {
    padding: 42px 0 50px;
  }

  .about-page-hero h1 {
    font-size: 40px;
  }

  .about-page-hero-lead {
    font-size: 16px;
  }

  .about-page-hero-actions .site-button,
  .about-page-cta-actions .site-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .about-slide-button {
    width: 40px;
    height: 40px;
  }

  .about-fact-grid,
  .about-experience-grid,
  .about-license-grid,
  .about-credential-timeline,
  .about-social-grid {
    grid-template-columns: 1fr;
  }

  .about-fact-grid {
    margin-top: 42px;
  }

  .about-license-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-credential-card {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 18px;
  }

  .about-media-intro-section {
    padding-bottom: 18px;
  }

  .about-page .home-youtube-section {
    padding-top: 44px;
  }

  .about-page-cta {
    padding: 54px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-slide,
  .about-social-card,
  .about-slide-dot {
    transition: none;
  }
}
