/* Tutors page — custom profile layout for a 2-person staff roster. No static design
   existed for this (the reference theme's team-details.html assumes one full page per
   teacher with fake review/skill-percentage padding). Built from the site's own design
   tokens (assets/css/main.css :root) rather than a new palette: var(--theme) family,
   var(--box-shadow), var(--border), the same 20-24px card radius used on event/program
   cards elsewhere on the site. */

/* Closing CTA card moved to the shared assets/css/cta-card.css — loaded site-wide via
   includes/cta-section.php, not just here. */

.tutors-intro-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text);
}

/* ---- Alternating profile row ---- */
.tutor-profile {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.tutor-profile:last-child {
  margin-bottom: 0;
}
.tutor-profile--reverse {
  flex-direction: row-reverse;
}

.tutor-profile__media {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
}
.tutor-profile__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  aspect-ratio: 4 / 5;
  /* Soft colored backdrop peeking past the photo edge — same decorative intent as the
     theme's about-image-2 offset-image trick elsewhere, done in pure CSS instead of a
     bespoke PNG so it works with any photo aspect ratio. */
}
.tutor-profile__media::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--bg4);
  border-radius: 24px;
  z-index: -1;
}
.tutor-profile--reverse .tutor-profile__media::before {
  inset: 20px 20px -20px -20px;
}
.tutor-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutor-profile__badge {
  position: absolute;
  left: 24px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 12px 20px 12px 12px;
  box-shadow: var(--box-shadow);
  font-weight: 600;
  color: var(--header);
  font-size: 14px;
}
.tutor-profile--reverse .tutor-profile__badge {
  left: auto;
  right: 24px;
}
.tutor-profile__badge i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme);
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}

.tutor-profile__content {
  flex: 1 1 auto;
  min-width: 0;
}
.tutor-profile__role {
  display: inline-block;
  color: var(--theme);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.tutor-profile__name {
  font-size: 32px;
  margin-bottom: 16px;
}
.tutor-profile__bio {
  color: var(--text);
  margin-bottom: 28px;
}

/* ---- Stat mini-cards (education / experience / certification / specialty) ---- */
.tutor-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tutor-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tutor-stat:hover {
  border-color: var(--theme);
  box-shadow: var(--box-shadow);
}
.tutor-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg4);
  color: var(--theme);
  font-size: 18px;
  flex-shrink: 0;
}
.tutor-stat__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tutor-stat__text span {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}
.tutor-stat__text strong {
  font-size: 15px;
  color: var(--header);
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .tutor-profile,
  .tutor-profile--reverse {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
  }
  .tutor-profile__media {
    max-width: 420px;
    width: 100%;
    flex-basis: auto;
  }
  .tutor-profile__content {
    text-align: center;
  }
  .tutor-profile__stats {
    text-align: left;
  }
}
@media (max-width: 575px) {
  .tutor-profile__stats {
    grid-template-columns: 1fr;
  }
  .tutor-profile__name {
    font-size: 26px;
  }
  .tutor-profile__badge {
    font-size: 13px;
    padding: 10px 16px 10px 10px;
  }
}
