/* ============================================================
   Experts carousel — scoped under .experts-carousel
   Self-contained: imports its own fonts, defines its own
   variables, does not leak styling to the rest of the page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600&family=Onest:wght@300;400;500&display=swap');

.experts-carousel {
  --ec-bg: #050505;
  --ec-surface: #0f0f0f;
  --ec-surface2: #141414;
  --ec-border: rgba(255, 255, 255, 0.06);
  --ec-border-hover: rgba(255, 255, 255, 0.14);
  --ec-accent: #2aec7c;
  --ec-accent-dim: rgba(42, 236, 124, 0.08);
  --ec-text: #f0ede6;
  --ec-text-muted: rgba(240, 237, 230, 0.45);
  --ec-text-dim: rgba(240, 237, 230, 0.18);
  --ec-radius: 12px;
  --ec-card-w: 230px;

  background: var(--ec-bg);
  color: var(--ec-text);
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding: 48px 24px;
  border-radius: var(--ec-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experts-carousel,
.experts-carousel *,
.experts-carousel *::before,
.experts-carousel *::after {
  box-sizing: border-box;
}

.experts-carousel .ec-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ec-text);
  text-align: center;
  margin: 0 0 36px;
  max-width: 480px;
}

.experts-carousel .carousel-wrap {
  width: 100%;
  max-width: 1100px;
  position: relative;
}

.experts-carousel .carousel-viewport {
  overflow: hidden;
  border-radius: var(--ec-radius);
}

.experts-carousel .carousel-track {
  display: flex;
  gap: 14px;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.experts-carousel .expert-card {
  flex: 0 0 var(--ec-card-w);
  width: var(--ec-card-w);
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.experts-carousel .expert-card:hover {
  border-color: var(--ec-border-hover);
  transform: translateY(-2px);
}

.experts-carousel .card-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--ec-accent) 0%, transparent 100%);
}

.experts-carousel .card-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--ec-surface2);
}
.experts-carousel .card-photo img.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s;
}
.experts-carousel .expert-card:hover .card-photo img.photo-img {
  transform: scale(1.03);
}

.experts-carousel .card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(5, 5, 5, 0.6) 68%, rgba(5, 5, 5, 0.97) 100%);
  pointer-events: none;
}

.experts-carousel .photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 10px 12px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.experts-carousel .caption-text .name {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}
.experts-carousel .caption-text .role {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 2px;
  line-height: 1.35;
}

.experts-carousel .caption-logo-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  padding: 3px 5px;
  backdrop-filter: blur(4px);
}
.experts-carousel .caption-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.experts-carousel .card-body {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.experts-carousel .card-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--ec-text);
  letter-spacing: 0.02em;
  margin: 0;
}
.experts-carousel .card-desc {
  font-size: 11.5px;
  color: var(--ec-text-muted);
  line-height: 1.6;
  margin: 0;
}

.experts-carousel .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}

.experts-carousel .nav-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.experts-carousel .dot {
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--ec-text-dim);
  transition: background 0.2s, width 0.25s;
  cursor: pointer;
}
.experts-carousel .dot.active {
  width: 20px;
  background: var(--ec-accent);
}

.experts-carousel .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.experts-carousel .nav-counter {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  color: var(--ec-text-muted);
  letter-spacing: 0.05em;
  min-width: 40px;
  text-align: right;
}
.experts-carousel .nav-buttons {
  display: flex;
  gap: 8px;
}
.experts-carousel .nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ec-border);
  background: var(--ec-surface);
  color: var(--ec-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.experts-carousel .nav-btn:hover {
  border-color: var(--ec-accent);
  background: var(--ec-accent-dim);
  color: var(--ec-accent);
}
.experts-carousel .nav-btn:active {
  transform: scale(0.93);
}
.experts-carousel .nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .experts-carousel {
    --ec-card-w: 200px;
    padding: 28px 16px;
  }
}
@media (max-width: 480px) {
  .experts-carousel {
    --ec-card-w: 72vw;
  }
}
