/* =========================================
   EXPERT PROFILE — premium healthcare detail
========================================= */

.expert-profile-page {
  padding-bottom: 88px;
}

.ep-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ep-btn--primary {
  background: var(--primary-700);
  color: #ffffff;
  border: 1.5px solid var(--primary-700);
}

.ep-btn--primary:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.ep-btn--secondary {
  background: transparent;
  color: var(--primary-800);
  border: 1.5px solid rgba(15, 118, 110, 0.28);
}

.ep-btn--secondary:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--primary-700);
}

.ep-section-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.ep-section-intro h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 400;
  color: var(--primary-800);
}

.ep-section-intro p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.ep-hero {
  padding: clamp(32px, 5vw, 56px) 0;
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(204, 251, 241, 0.5), transparent 60%),
    #ffffff;
}

.ep-hero-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.ep-hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
  box-shadow: var(--shadow-md);
}

.ep-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--primary-800);
}

.ep-availability-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-800);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.ep-availability-badge svg,
.ep-availability-badge i {
  width: 15px;
  height: 15px;
  color: var(--success);
}

.ep-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-700);
}

.ep-back svg,
.ep-back i {
  width: 16px;
  height: 16px;
}

.ep-hero-content h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary-800);
}

.ep-role {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-700);
}

.ep-lead {
  margin: 0 0 22px;
  max-width: 50ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.ep-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ep-trust li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.ep-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary-700);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ep-trust-icon svg,
.ep-trust-icon i {
  width: 18px;
  height: 18px;
}

.ep-trust strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ep-trust span {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.ep-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Bio ---------- */
.ep-bio {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #f8fafc;
}

.ep-bio-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.ep-bio-story h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--primary-800);
}

.ep-bio-story p {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ep-credentials {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: var(--shadow-sm);
}

.ep-credential-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.ep-credential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-700);
}

.ep-credential-icon svg,
.ep-credential-icon i {
  width: 20px;
  height: 20px;
}

.ep-credential-block h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.ep-credential-block p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Expertise cards ---------- */
.ep-expertise {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #ffffff;
}

.ep-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ep-expertise-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 118, 110, 0.1);
  background:
    linear-gradient(160deg, #f0fdfa 0%, #ffffff 55%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ep-expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.1);
}

.ep-expertise-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-700);
  transition: background 0.25s ease, color 0.25s ease;
}

.ep-expertise-card:hover .ep-expertise-icon {
  background: var(--primary-700);
  color: #ffffff;
}

.ep-expertise-icon svg,
.ep-expertise-icon i {
  width: 24px;
  height: 24px;
}

.ep-expertise-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ep-expertise-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Sessions ---------- */
.ep-sessions {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #f8fafc;
}

.ep-session-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.ep-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
}

.ep-session-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.ep-session-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
}

.ep-session-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
}

.ep-session-empty p {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- Gallery ---------- */
.ep-gallery {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #ffffff;
}

.ep-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ep-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f0fdfa;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ep-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ep-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.ep-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.ep-gallery-item:first-child img {
  min-height: 100%;
}

.ep-gallery-item figcaption {
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  color: var(--primary-800);
  background: #ffffff;
}

/* ---------- Testimonials ---------- */
.ep-testimonials {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #f8fafc;
}

.ep-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ep-testimonial-card {
  margin: 0;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: var(--shadow-sm);
}

.ep-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  color: #f59e0b;
}

.ep-stars svg,
.ep-stars i {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
}

.ep-testimonial-card p {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-primary);
}

.ep-testimonial-card footer {
  display: grid;
  gap: 2px;
}

.ep-testimonial-card strong {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.ep-testimonial-card span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- CTA ---------- */
.ep-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) 0;
  background: var(--background);
}

.ep-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 8% 20%, rgba(15, 118, 110, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 60% at 92% 78%, rgba(45, 212, 191, 0.12), transparent 55%);
}

.ep-cta-shell {
  position: relative;
  z-index: 1;
}

.ep-cta-panel {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ep-cta-panel h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  color: var(--text-primary);
}

.ep-cta-panel > p {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.ep-cta .ep-hero-actions {
  justify-content: center;
}

.ep-cta + .ep-sticky-book + .footer,
.ep-cta ~ .footer {
  margin-top: 0;
}

/* ---------- Sticky booking bar ---------- */
.ep-sticky-book {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 12px var(--container-pad);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.ep-sticky-book-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ep-sticky-book-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ep-sticky-book-copy strong {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-sticky-book-copy span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-sticky-book .ep-btn {
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ep-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 900px) {
  .ep-hero-shell,
  .ep-bio-shell,
  .ep-expertise-grid,
  .ep-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .ep-hero-media {
    max-width: 420px;
    margin: 0 auto;
  }

  .ep-trust {
    grid-template-columns: 1fr;
  }

  .ep-session-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .expert-profile-page {
    padding-bottom: 96px;
  }

  .ep-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ep-btn {
    width: 100%;
  }

  .ep-gallery-grid {
    grid-template-columns: 1fr;
  }

  .ep-gallery-item:first-child {
    grid-column: span 1;
  }

  .ep-sticky-book-copy span {
    display: none;
  }

  .ep-sticky-book .ep-btn {
    width: auto;
    min-width: 140px;
  }
}
