/* =========================================================================
   Chi tiết trải nghiệm — Quotes carousel
   ========================================================================= */

.exp-dquotes {
  padding: 72px 0;
  background: #FAFAFA;
}

.exp-dquotes .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

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

/* --- Slide --------------------------------------------------------------- */
.exp-dquotes__slide {
  display: flex !important;
  flex-direction: column;
  height: auto;
}

/* --- Image --------------------------------------------------------------- */
.exp-dquotes__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1070 / 682;
  border-radius: 20px;
  overflow: hidden;
  background: #E0E0E0;
}

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

/* --- Quote --------------------------------------------------------------- */
.exp-dquotes__quote {
  margin: 10px 0 0 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  text-align: center;
}

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

.exp-dquotes__prev {
  left: calc((1100px - min(100vw, 1440px)) / 2);
}

.exp-dquotes__next {
  right: calc((1100px - min(100vw, 1440px)) / 2);
}

.exp-dquotes__prev:disabled,
.exp-dquotes__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

.exp-dquotes__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-dquotes__dots .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
}

/* --- CTA button ---------------------------------------------------------- */
.exp-dquotes__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  background: #293948;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.exp-dquotes__btn:hover {
  background: #1e2d3a;
  color: #FFFFFF;
}

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

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

  .exp-dquotes .container {
    gap: 32px;
  }

  .exp-dquotes__prev,
  .exp-dquotes__next {
    width: 40px;
    height: 40px;
  }
  .exp-dquotes__prev svg,
  .exp-dquotes__next svg {
    width: 40px;
    height: 40px;
  }
}

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

  .exp-dquotes .container {
    gap: 24px;
  }

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

  .exp-dquotes__quote {
    font-size: 17px;
  }

  .exp-dquotes__prev,
  .exp-dquotes__next {
    width: 36px;
    height: 36px;
  }
  .exp-dquotes__prev svg,
  .exp-dquotes__next svg {
    width: 36px;
    height: 36px;
  }

  .exp-dquotes .exp-dquotes__dots.swiper-pagination {
    margin-top: 16px;
  }

  .exp-dquotes__btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
