/* =========================================
   EXPERTS — premium directory page
========================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.experts-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.experts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.experts-btn--primary {
  background: var(--primary-700);
  color: #ffffff;
  border: 1.5px solid var(--primary-700);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.experts-btn--primary:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.experts-btn--secondary {
  background: transparent;
  color: var(--primary-800);
  border: 1.5px solid rgba(15, 118, 110, 0.28);
}

.experts-btn--secondary:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--primary-700);
  transform: translateY(-1px);
}

.experts-section-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.experts-section-intro h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-800);
}

.experts-section-intro p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.experts-hero {
  padding: clamp(28px, 4vw, 44px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(204, 251, 241, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 50% at 100% 20%, rgba(240, 253, 250, 0.9), transparent 55%),
    #ffffff;
  text-align: center;
}

.experts-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.experts-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--primary-800);
}

.experts-hero p {
  margin: 0 auto 24px;
  max-width: 50ch;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.experts-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Directory ---------- */
.experts-directory {
  padding: clamp(40px, 6vw, 72px) 0;
  background: #ffffff;
}

.experts-directory-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.experts-directory-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);
}

.experts-directory-intro p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.experts-filters {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.experts-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
  min-height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.experts-search svg,
.experts-search i {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  flex-shrink: 0;
}

.experts-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.experts-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.experts-chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.experts-chip:hover {
  border-color: var(--primary-700);
  color: var(--primary-800);
}

.experts-chip.is-active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #ffffff;
}

.experts-empty {
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
}

.experts-item.is-hidden {
  display: none !important;
}

/* Featured + cards (homepage style) */
.expert-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 28px;
  text-align: left;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.95), #ffffff 58%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.expert-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.expert-featured-media,
.expert-card-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
}

.expert-featured-media {
  min-height: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.expert-featured-media img,
.expert-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.expert-featured:hover .expert-featured-media img,
.expert-card:hover .expert-card-media img {
  transform: scale(1.04);
}

.expert-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--primary-800);
}

.expert-rating {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-800);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.expert-rating svg,
.expert-rating i {
  width: 14px;
  height: 14px;
  fill: #f59e0b;
  stroke: #f59e0b;
}

.expert-years {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}

.expert-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 44px);
}

.expert-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.expert-featured-role {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.expert-featured-body h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--primary-800);
}

.expert-featured-copy {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.expert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.expert-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-800);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
}

.expert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.expert-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--primary-700);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.expert-book-btn:hover {
  background: var(--primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.expert-profile-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-700);
}

.expert-profile-link:hover {
  color: var(--primary-800);
}

.experts-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.expert-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 118, 110, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
}

.expert-card--large {
  grid-column: span 3;
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.expert-card--tone-1 .expert-card-media {
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
}

.expert-card--tone-2 .expert-card-media {
  background: linear-gradient(145deg, #ecfdf5, #a7f3d0);
}

.expert-card--tone-3 .expert-card-media {
  background: linear-gradient(145deg, #f0fdfa, #5eead4);
}

.expert-card-media {
  min-height: 200px;
  aspect-ratio: 4 / 3;
}

.expert-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.expert-meta {
  margin-bottom: 8px;
}

.expert-specialty {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-700);
}

.expert-card-body h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.expert-card-body > p {
  margin: 0 0 18px;
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Why ---------- */
.experts-why {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(ellipse 40% 50% at 10% 20%, rgba(204, 251, 241, 0.4), transparent 60%),
    #f8fafc;
}

.experts-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.experts-why-card {
  text-align: center;
  padding: 28px 18px 32px;
  transition: transform 0.3s ease;
}

.experts-why-card:hover {
  transform: translateY(-4px);
}

.experts-why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  margin: 0 auto 16px;
}

.experts-why-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experts-why-card h3 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.experts-why-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Journey ---------- */
.experts-journey {
  padding: clamp(56px, 7vw, 96px) 0;
  background: #ffffff;
}

.experts-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experts-step {
  position: relative;
  display: flex;
  align-items: stretch;
}

.experts-step-card {
  flex: 1;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 118, 110, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experts-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.experts-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.experts-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
}

.experts-step-icon {
  color: var(--primary-700);
}

.experts-step-icon svg,
.experts-step-icon i {
  width: 24px;
  height: 24px;
}

.experts-step-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.experts-step-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.experts-step-connector {
  display: none;
}

/* ---------- CTA ---------- */
.experts-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--background);
}

.experts-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%),
    radial-gradient(ellipse 40% 45% at 50% 100%, rgba(204, 251, 241, 0.55), transparent 70%);
}

.experts-cta-shell {
  position: relative;
  z-index: 1;
}

.experts-cta-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.experts-cta-panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.experts-cta-panel > p {
  margin: 0 auto 32px;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.experts-cta + .footer {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .experts-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expert-card,
  .expert-card--large {
    grid-column: span 1;
  }

  .experts-why-grid,
  .experts-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .expert-featured {
    grid-template-columns: 1fr;
  }

  .expert-featured-media {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .experts-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .experts-btn {
    width: 100%;
  }

  .experts-bento,
  .experts-why-grid,
  .experts-steps {
    grid-template-columns: 1fr;
  }
}
