/* ============================================================
   MENTORS SECTION - Subscriptions page
   All rules scoped to .sub-mentors to avoid conflicts.
   Card internals reuse existing .mentor-card__* styles.
   ============================================================ */

/* ------------------------------------------------------------
   Section wrapper
   ------------------------------------------------------------ */
.sub-mentors {
  background: var(--bg-grey);
  padding-block: 72px;
}

/* ------------------------------------------------------------
   Centered section header
   ------------------------------------------------------------ */
.sub-mentors__header {
  text-align: center;
  margin-bottom: 48px;
}

.sub-mentors__eyebrow {
  display: block;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
  -webkit-font-smoothing: antialiased;
}

.sub-mentors__headline {
  font-family: 'Inter Display', Inter, -apple-system, sans-serif;
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--blue);
  max-width: 22ch;
  margin: 0 auto 1rem;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
}

.sub-mentors__subhead {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   2-column card grid — align-items: start so an expanded card
   grows downward without stretching its sibling. Capped + centered
   so two cards sit as a balanced pair.
   ------------------------------------------------------------ */
.sub-mentors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 700px;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   Card shell — lighter border/padding vs homepage carousel cards.
   All internal elements (.mentor-card__photo, __name, __badge,
   __detail, __divider) are reused directly from style.css.
   ------------------------------------------------------------ */
.sub-mentors__card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------
   Tagline — always visible
   ------------------------------------------------------------ */
.sub-mentors__tagline {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin: 10px 0 0;
  /* min-height = 2 lines so 1-line taglines match 2-line ones */
  min-height: calc(12.5px * 1.5 * 2);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   "Learn more" toggle button
   ------------------------------------------------------------ */
.sub-mentors__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  /* min 44px tap target; padding fills the hit area without changing layout */
  padding: 10px 0;
  margin-top: 2px;
  min-height: 44px;
  align-self: center;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--purple);
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.sub-mentors__toggle:hover { opacity: 0.8; }

.sub-mentors__chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sub-mentors__toggle[aria-expanded="true"] .sub-mentors__chevron {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------
   Expandable strategy-focus panel
   ------------------------------------------------------------ */
.sub-mentors__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sub-mentors__expand.is-open {
  max-height: 600px;
}

.sub-mentors__strategy-label {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 12px 0 8px;
  -webkit-font-smoothing: antialiased;
}

.sub-mentors__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.sub-mentors__chip {
  display: inline-block;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  line-height: 1.4;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Reserve button — full width, blue
   margin-top: auto pins it to the card bottom
   ------------------------------------------------------------ */
.sub-mentors__reserve {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 500;
  min-height: 44px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background .18s;
  margin-top: 16px;
  -webkit-font-smoothing: antialiased;
}

.sub-mentors__reserve:hover {
  background: var(--blue-hover);
}

/* ------------------------------------------------------------
   Fallback row
   ------------------------------------------------------------ */
.sub-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-grey);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 12px;
}

.sub-fallback__title {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
  -webkit-font-smoothing: antialiased;
}

.sub-fallback__sub {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sub-fallback__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sub-fallback__primary {
  min-height: 44px;
  background: var(--blue);
  color: #fff;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
  -webkit-font-smoothing: antialiased;
}

.sub-fallback__primary:hover {
  background: var(--blue-hover);
}

.sub-fallback__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: transparent;
  color: var(--blue);
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  border-radius: 9px;
  padding: 0 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  -webkit-font-smoothing: antialiased;
}

.sub-fallback__secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .sub-mentors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sub-mentors {
    padding-block: 56px;
  }

  .sub-mentors__header {
    margin-bottom: 36px;
  }

  .sub-fallback {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sub-fallback__actions {
    width: 100%;
  }

  .sub-fallback__primary,
  .sub-fallback__secondary {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sub-mentors {
    padding-block: 48px;
  }

  .sub-mentors__grid {
    grid-template-columns: 1fr;
  }

  .sub-mentors__headline {
    max-width: 100%;
  }

  .sub-mentors__subhead {
    max-width: 100%;
  }
}
