/* =========================================================
 * MUSK - ĐỘI NGŨ CHUYÊN GIA
 * Nội dung theo Row/Column Flatsome, nền tràn full width
 * ========================================================= */

.musk-expert-team {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #10131c;
}

.musk-expert-team,
.musk-expert-team *,
.musk-expert-team *::before,
.musk-expert-team *::after {
  box-sizing: border-box;
}

.musk-expert-team img {
  max-width: 100%;
}

.musk-expert-team button,
.musk-expert-team a {
  font: inherit;
}

/* =========================================================
 * LAYOUT TRONG COLUMN
 * ========================================================= */

.musk-expert-team__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 100px 0 50px 0;
}

/* =========================================================
 * LAYOUT
 * ========================================================= */

.musk-expert-team__layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}

/* =========================================================
 * CỘT GIỚI THIỆU BÊN TRÁI
 * ========================================================= */

.musk-expert-team__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 392px;
  padding: 48px 30px 28px;
  background: #ffffff;
  border-radius: 10px;
}

.musk-expert-team__intro-main,
.musk-expert-team__intro-bottom {
  min-width: 0;
}

/* =========================================================
 * DOTS
 * ========================================================= */

.musk-expert-team__dots {
  display: flex;
  align-items: center;
  min-height: 12px;
  margin: 0 0 15px;
  gap: 9px;
}

.musk-expert-team__dot {
  display: block !important;
  flex: 0 0 8px;
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  height: 8px !important;
  min-height: 8px !important;
  max-height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #bfd2ff !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    width 0.25s ease,
    min-width 0.25s ease,
    max-width 0.25s ease,
    background-color 0.25s ease;
}

.musk-expert-team__dot::before,
.musk-expert-team__dot::after {
  display: none !important;
  content: none !important;
}

.musk-expert-team__dot:hover,
.musk-expert-team__dot:focus,
.musk-expert-team__dot:active {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.musk-expert-team__dot.is-active {
  flex-basis: 26px;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  border-radius: 999px !important;
  background: #164eff !important;
}

.musk-expert-team__dot:focus-visible {
  outline: 2px solid rgba(22, 78, 255, 0.5);
  outline-offset: 3px;
}

/* =========================================================
 * MÔ TẢ NGẮN
 * ========================================================= */

.musk-expert-team__subtitle {
  margin: 0 0 24px !important;
  color: #334155;
  font-size: 15px !important;
  line-height: 1.5;
}

/* =========================================================
 * PANEL BÊN PHẢI
 * ========================================================= */

.musk-expert-team__panel {
  position: relative;
  min-width: 0;
  min-height: 392px;
  border-radius: 10px;
  overflow: hidden;
  padding: 34px 38px;
  background: #ffffff;
  contain: layout paint;
}

/* =========================================================
 * SLIDES
 * ========================================================= */

.musk-expert-team__slides {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 324px;
}

/*
 * Khi JS chưa chạy, hiển thị slide đầu ngay.
 */

.musk-expert-team:not([data-musk-team-ready="true"])
  .musk-expert-team__slide:first-child {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

/* =========================================================
 * MỖI SLIDE
 * ========================================================= */

.musk-expert-team__slide {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns:
    minmax(220px, 300px)
    minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 36px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(18px, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease,
    transform 0.38s ease;
}

.musk-expert-team__slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

/* =========================================================
 * KHUNG ẢNH CHUYÊN GIA
 * ========================================================= */

.musk-expert-team__portrait {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 5 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef5ff, #e4edfa);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.musk-expert-team__portrait > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover;
  object-position: center top;
  transform: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: none !important;
}

.musk-expert-team__portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.musk-expert-team__portrait-placeholder svg {
  display: block;
  width: 82%;
  height: auto;
  margin: 0;
  transform: none !important;
}

/* =========================================================
 * THÔNG TIN CHUYÊN GIA
 * ========================================================= */

.musk-expert-team__profile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 9px 0 2px;
}

.musk-expert-team__name {
  margin: 0 0 20px;
  color: #080b12;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.musk-expert-team__description {
  max-width: 590px;
  color: #17213d;
  font-weight: 400;
  line-height: 1.65;
}

.musk-expert-team__description p {
  margin: 0;
}

.musk-expert-team__position {
  margin-top: auto;
  padding-top: 24px;
  padding-right: 100px;
  color: #101828;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================================================
 * NÚT ĐIỀU HƯỚNG
 * ========================================================= */

.musk-expert-team__controls {
  position: absolute;
  right: 38px;
  bottom: 28px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.musk-expert-team__arrow {
  display: inline-flex !important;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #edf4ff !important;
  color: #073f9f !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.musk-expert-team__arrow::before,
.musk-expert-team__arrow::after {
  display: none !important;
  content: none !important;
}

.musk-expert-team__arrow:hover,
.musk-expert-team__arrow:focus,
.musk-expert-team__arrow:active {
  padding: 0 !important;
  box-shadow: none !important;
}

.musk-expert-team__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.musk-expert-team__arrow:hover {
  background: #164eff !important;
  color: #ffffff !important;
}

.musk-expert-team__arrow:first-child:hover {
  transform: translateX(-3px);
}

.musk-expert-team__arrow:last-child:hover {
  transform: translateX(3px);
}

.musk-expert-team__arrow:focus-visible {
  outline: 3px solid rgba(22, 78, 255, 0.3);
  outline-offset: 3px;
}

.musk-expert-team__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
 * EMPTY
 * ========================================================= */

.musk-expert-team__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 30px;
  border: 1px dashed rgba(22, 78, 255, 0.3);
  color: #475569;
  text-align: center;
}

/* =========================================================
 * GHI ĐÈ HỆ DÙNG CHUNG
 *
 * Chỉnh .musk-title / .musk-btn cho riêng element này.
 * File element luôn nạp sau style.css nên thắng cascade.
 * ========================================================= */

.musk-expert-team__header .musk-title__heading {
  color: #ffffff;
}

/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {
  .musk-expert-team__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .musk-expert-team__intro {
    min-height: 225px;
    padding: 30px 22px 24px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .musk-expert-team__intro-bottom {
    margin-top: 32px;
  }

  .musk-expert-team__slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .musk-expert-team .musk-title {
    max-width: 320px;
  }

  .musk-expert-team__inner {
    padding: 50px 0 56px;
  }

  .musk-expert-team__panel {
    min-height: 0;
    padding: 20px 20px 72px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .musk-expert-team__slides {
    min-height: 0;
  }

  /* Ảnh gốc để full bề ngang cột (max-width 360px) nên trên
     màn hình 375-414px gần như chiếm trọn màn hình, quá to
     so với phần chữ bên dưới. Thu lại còn khoảng 60%, canh
     giữa như một avatar lớn thay vì ảnh bìa full-width. */

  .musk-expert-team__portrait {
    width: 220px;
    max-width: 60%;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }

  .musk-expert-team__profile {
    min-height: 0;
    padding: 0;
  }

  .musk-expert-team__name {
    margin-bottom: 15px;
  }

  .musk-expert-team__description {
    line-height: 1.65;
  }

  .musk-expert-team__position {
    margin-top: 22px;
    padding-top: 0;
    padding-right: 0;
  }

  .musk-expert-team__controls {
    right: 20px;
    bottom: 20px;
  }

  .musk-expert-team__arrow {
    flex-basis: 36px;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  .musk-expert-team .musk-title__count {
    font-size: 27px;
  }
}

@media (max-width: 390px) {
  .musk-expert-team__portrait {
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .musk-expert-team__slide,
  .musk-expert-team__arrow,
  .musk-expert-team__dot {
    transition: none !important;
  }
}
