/* ========= MENTORS HERO ========= */
.mentors-hero {
  background: var(--color-void);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mentors-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.017) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
}

.mentors-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(224,85,53,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.mentors-hero__title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  position: relative;
}

.mentors-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.65;
  position: relative;
}

.mentors-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mentors-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.mentors-hero__stat:last-child {
  border-right: none;
}

.mentors-hero__stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.mentors-hero__stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ========= NOTICE BANNER ========= */
.mentors-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(224,85,53,0.05);
  border-left: 3px solid var(--color-red);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin: 40px 0 0;
}

.mentors-notice__icon {
  color: var(--color-red);
  flex-shrink: 0;
}

.mentors-notice p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ========= FILTERS ========= */
.mentors-filters {
  padding: 32px 0 0;
  background: var(--color-cream);
}

.mentors-filters__wrap {
  position: relative;
  display: inline-block;
}

.mentors-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--color-border-cream);
  background: var(--color-white);
  color: var(--color-text-dark);
  cursor: pointer;
  transition: border-color 0.2s;
}

.mentors-filters__toggle:hover {
  border-color: var(--color-text-muted);
}

.mentors-filters__toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.mentors-filters__toggle.open svg {
  transform: rotate(180deg);
}

.mentors-filters__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border: 1px solid var(--color-border-cream);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.mentors-filters__dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mentors-filter {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 9px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.mentors-filter:hover {
  background: var(--color-cream);
}

.mentors-filter.active {
  background: var(--color-cream-dark);
  font-weight: 600;
  color: var(--color-red);
}

/* ========= MENTOR GRID ========= */
.mentors-grid-section {
  background: var(--color-cream);
  padding: 36px 0 120px;
}

.mentors-grid {
  columns: 1;
  column-gap: 22px;
}

/* ========= MENTOR CARD ========= */
.mentor-card {
  break-inside: avoid;
  margin-bottom: 22px;
  display: block;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px solid var(--color-border-cream);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.mentor-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--color-border-cream);
}

.mentor-card.hidden {
  display: none;
}

/* Photo */
.mentor-card__image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--color-cream-dark);
  position: relative;
}

.mentor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mentor-card:hover .mentor-card__image img {
  transform: scale(1.04);
}

.mentor-card__image::after {
  content: 'View profile';
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 14, 0.52);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.mentor-card:hover .mentor-card__image::after {
  opacity: 1;
}

/* Info section */
.mentor-card__info {
  padding: 20px 22px 20px;
}

.mentor-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}

.mentor-card__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Category tags (injected by JS) */
.mentor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.mentor-card__tag {
  font-size: 0.6563rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(224,85,53,0.07);
  color: var(--color-red);
}

/* Bio is hidden — used only as data source for the modal */
.mentor-card__bio {
  display: none;
}

/* ========= BIO MODAL ========= */
.mentor-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mentor-modal.open {
  opacity: 1;
  pointer-events: all;
}

.mentor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 14, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mentor-modal__panel {
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mentor-modal.open .mentor-modal__panel {
  transform: translateY(0) scale(1);
}

.mentor-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s;
}

.mentor-modal__close:hover {
  background: var(--color-white);
  transform: scale(1.08);
}

.mentor-modal__photo {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--color-cream-dark);
  flex-shrink: 0;
}

.mentor-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mentor-modal__content {
  padding: 28px 28px 32px;
}

.mentor-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.mentor-modal__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.mentor-modal__role {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border-cream);
}

.mentor-modal__bio {
  font-size: 0.9375rem;
  color: var(--color-text-dark);
  line-height: 1.75;
  margin: 0;
}

/* Desktop: side-by-side */
@media (min-width: 600px) {
  .mentor-modal__panel {
    flex-direction: row;
    max-height: 80vh;
  }

  .mentor-modal__photo {
    width: 260px;
    height: auto;
    flex-shrink: 0;
  }

  .mentor-modal__content {
    overflow-y: auto;
    padding: 36px;
  }
}

/* ========= RESPONSIVE ========= */
@media (min-width: 768px) {
  .mentors-grid {
    columns: 2;
    column-gap: 22px;
  }

  .mentor-card__image {
    height: 280px;
  }
}

@media (min-width: 1200px) {
  .mentors-grid {
    columns: 3;
    column-gap: 26px;
  }

  .mentor-card__image {
    height: 300px;
  }
}
