/* ==========================================================================
   About page -- values matched exactly against the real site's source
   ========================================================================== */

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 809px) {
  .about-content { flex-direction: column; gap: 32px; padding: 40px 0; }
}

.about-hero-media { width: 42%; flex-shrink: 0; }

@media (max-width: 809px) {
  .about-hero-media { width: 100%; }
}

.about-slideshow {
  position: relative;
  aspect-ratio: 0.87037;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

@media (max-width: 809px) {
  .about-slideshow { aspect-ratio: 1.1; }
}

.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-soft);
}
.about-slide.is-active { opacity: 1; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.slide-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background var(--duration-fast), width var(--duration-fast);
}
.slide-dots .dot.is-active { background: #FFFFFF; width: 16px; border-radius: 3px; }

.slide-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  text-align: center;
}

.about-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

@media (max-width: 809px) {
  .about-hero-text { gap: 32px; }
}

.about-hero-text-inner { display: flex; flex-direction: column; gap: 40px; }

.about-hero-text h2 {
  max-width: 378px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}
.about-hero-text h2 .dark { color: var(--color-text-primary); }
.about-hero-text h2 .muted { color: var(--color-text-tertiary); }

.about-hero-text-body { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.about-hero-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-tertiary);
}

.about-hero-text .btn { align-self: flex-start; }

/* ---- Shared section heading (used above interests + books) ---- */
.section-heading {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 24px;
}
.section-heading .dark { color: var(--color-text-primary); }
.section-heading .muted { color: var(--color-text-tertiary); }

.about-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}
.about-section:last-of-type { border-bottom: 1px solid var(--color-border); }

@media (max-width: 809px) {
  .about-section { padding: 40px 0 60px; }
}

/* ---- Interests: card-style chips with icon + label ---- */
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.interest-chip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 12px 6px 6px;
  background: #F7F8FA;
  border-radius: 12px;
}

.interest-chip img {
  height: 38px;
  width: 44px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.interest-chip span {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* ---- Books: cover row ---- */
.books-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1279px) {
  .books-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 809px) {
  .books-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 220 / 300;
  border-radius: 21px;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out-soft);
}
.book-cover:hover { transform: translateY(-6px); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
