/* ===============================
   EXPERT SECTION (Public)
================================ */

.eb-expert-section {
  background: linear-gradient(
    180deg,
    var(--eb-primary-50),
    var(--eb-expert-section-bg-bottom)
  );
}

.eb-expert-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--eb-gray-500);
  font-size: 0.95rem;
}

/* Card */
.eb-expert-card {
  background: var(--eb-bg-card);
  padding: 24px 22px;
  text-align: left;
  box-shadow: var(--eb-shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.eb-expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eb-shadow-lg);
}

/* Avatar */
.eb-expert-avatar {
  width: 100%;
  height: 40%;
  overflow: hidden;
  margin-bottom: 14px;
}

.eb-expert-avatar img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Text */
.eb-expert-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--eb-gray-900);
  margin-bottom: 2px;
}

.eb-expert-role {
  font-size: 0.78rem;
  color: var(--eb-gray-500);
  margin-bottom: 10px;
}

.eb-expert-bio {
  font-size: 0.85rem;
  color: var(--eb-gray-700);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* Read more */
.eb-expert-readmore {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--eb-primary-500);
}

.eb-expert-readmore:hover {
  text-decoration: underline;
}

/* ===============================
   Expert Modal (2 Column)
================================ */

.eb-expert-modal {
  border-radius:0px;
  overflow: hidden;
  box-shadow: var(--eb-shadow-lg);
  text-align: left;
}

/* Left image column */
.eb-expert-modal-image {
  background: var(--eb-expert-modal-image-bg);
  min-height: 420px;
}

.eb-expert-modal-image img {
  width: 100%;
  height: 510px;
  object-fit: cover;      /* KEY */
  object-position: center;
}

/* Bio text */
.eb-expert-modal-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--eb-gray-700);
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

/* ===============================
   Expert Sheet (Mobile)
================================ */

.eb-expert-sheet {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  height: 75vh;
}

.eb-expert-sheet .offcanvas-header {
  padding-top: 10px;
  padding-bottom: 8px;
}

.eb-expert-sheet-handle {
  width: 48px;
  height: 4px;
  background: var(--eb-gray-300);
  border-radius: 999px;
  margin: 8px auto 0;
}

.eb-expert-sheet-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.eb-expert-sheet-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--eb-gray-700);
}

/* Mobile fallback */
@media (max-width: 767px) {
  .eb-expert-modal-image {
    min-height: 260px;
  }

  .eb-expert-modal-bio {
    max-height: none;
  }
}

@media (max-width: 576px) {
  .eb-expert-section .eb-card-swiper .swiper-button-prev,
  .eb-expert-section .eb-card-swiper .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
  }
}
