/* =========================================================================
   Trải nghiệm khách hàng — Shares carousel
   ========================================================================= */

.exp-shares {
  padding: 75px 0;
}

/* --- H2 ------------------------------------------------------------------ */
.exp-shares__title {
  margin: 0 0 40px 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
  text-align: center;
}

/* --- Carousel wrapper ---------------------------------------------------- */
.exp-shares__carousel {
  position: relative;
  max-width: 1070px;
  margin: 0 auto;
  container-type: inline-size;
}

.exp-shares__swiper {
  width: 100%;
  overflow: hidden;
}

/* --- Slide --------------------------------------------------------------- */
/* Swiper forces .swiper-slide display, so use explicit margin instead of gap. */
.exp-shares__slide {
  display: flex !important;
  flex-direction: column;
  height: auto;
}

.exp-shares__slide .exp-shares__content {
  margin-top: 16px;
}

/* --- Media (image + play button) ----------------------------------------- */
.exp-shares__media {
  position: relative;
  width: 100%;
  max-height: 602px;
  aspect-ratio: 1070 / 602;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.exp-shares__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-shares__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s ease;
}

.exp-shares__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.exp-shares__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* --- Content ------------------------------------------------------------- */
.exp-shares__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-shares__item-title {
  margin: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.exp-shares__item-desc {
  margin: 0;
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Nav buttons (outside carousel, vertically centered on media) -------- */
/* Media aspect-ratio 1070/602 => height ≈ 56.26% of carousel width.
   Center of media = 28.13% of carousel width from top.
   `cqw` reads the carousel's inline size, so this scales with viewport. */
.exp-shares__prev,
.exp-shares__next {
  position: absolute;
  top: calc(min(100cqw, 1070px) * 0.2813);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  line-height: 0;
}

.exp-shares__prev {
  left: -72px;
}

.exp-shares__next {
  right: -72px;
}

.exp-shares__prev:disabled,
.exp-shares__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Dots pagination ----------------------------------------------------- */
.exp-shares .exp-shares__dots.swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin-top: 24px;
}

.exp-shares__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 4px;
  background: #293948;
  opacity: 0.3;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.exp-shares__dots .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
}

/* --- Responsive ---------------------------------------------------------- */
@media screen and (max-width: 1220px) {
  .exp-shares__prev {
    left: 8px;
  }
  .exp-shares__next {
    right: 8px;
  }
  .exp-shares__prev svg rect,
  .exp-shares__next svg rect {
    fill: #323F48;
    fill-opacity: 0.5;
  }
}

@media screen and (max-width: 1024px) {
  .exp-shares {
    padding: 60px 0;
  }

  .exp-shares__title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .exp-shares__prev,
  .exp-shares__next {
    width: 40px;
    height: 40px;
  }
  .exp-shares__prev svg,
  .exp-shares__next svg {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 767px) {
  .exp-shares {
    padding: 48px 0;
  }

  .exp-shares__title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .exp-shares__slide {
    gap: 16px;
  }

  .exp-shares__media {
    border-radius: 16px;
  }

  .exp-shares__item-title {
    font-size: 17px;
  }

  .exp-shares__item-desc {
    font-size: 14px;
  }

  .exp-shares__prev,
  .exp-shares__next {
    width: 36px;
    height: 36px;
  }
  .exp-shares__prev svg,
  .exp-shares__next svg {
    width: 36px;
    height: 36px;
  }

  .exp-shares .exp-shares__dots.swiper-pagination {
    margin-top: 16px;
  }
}
