/* About section — profile, certificates, videos */
.about-page {
  padding: 48px 0 80px;
}

.about-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.about-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  line-height: 1.2;
}

.about-hero-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

.about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.about-subnav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.about-subnav a:hover,
.about-subnav a.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text);
}

.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.about-profile-text h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.about-profile-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}

.about-gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
}

.about-gallery [data-gallery-slide] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.about-gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.about-gallery-dots button.active {
  background: #fff;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.about-stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.about-stat .about-stat-unit {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.about-stat .about-stat-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.about-section-head .section-label {
  display: block;
  margin-bottom: 8px;
}

.about-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.about-section-head p {
  color: var(--text-muted);
  margin: 0;
}

.about-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.about-cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.about-cert-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.about-cert-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.about-cert-card figcaption {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.about-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.about-video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.about-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.about-video-card .about-video-meta {
  padding: 14px 16px;
}

.about-video-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.about-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.about-video-thumb {
  position: relative;
}

.about-video-play svg {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.about-lightbox.open {
  display: flex;
}

.about-lightbox img,
.about-lightbox video {
  max-width: min(92vw, 960px);
  max-height: 88vh;
  border-radius: var(--radius-sm);
}

.about-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.about-teaser {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about-profile-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats .about-stat:last-child {
    grid-column: span 2;
  }
}

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

  .about-stats .about-stat:last-child {
    grid-column: auto;
  }
}
