/* =========================================================================
   Trải nghiệm khách hàng — Dự án tiêu biểu carousel
   ========================================================================= */

.exp-projects {
  padding: 75px 0;
  background: #FAFAFA;
}

@media screen and (min-width: 1025px) {
  .exp-projects {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* --- H2 ------------------------------------------------------------------ */
.exp-projects__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-projects__carousel {
  position: relative;
  max-width: 1070px;
  margin: 0 auto;
}

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

/* --- Slide --------------------------------------------------------------- */
.exp-projects__slide {
  height: auto;
}

.exp-projects__card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
}

.exp-projects__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  transition: transform 0.35s ease;
}

.exp-projects__card:hover .exp-projects__img {
  transform: scale(1.04);
}

/* --- Nav buttons (sát container, bên ngoài swiper) ----------------------- */
.exp-projects__prev,
.exp-projects__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  line-height: 0;
}

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

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

.exp-projects__prev:disabled,
.exp-projects__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

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

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

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

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

  .exp-projects__prev,
  .exp-projects__next {
    width: 40px;
    height: 40px;
  }
  .exp-projects__prev svg,
  .exp-projects__next svg {
    width: 40px;
    height: 40px;
  }
}

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

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

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

  .exp-projects__prev,
  .exp-projects__next {
    width: 36px;
    height: 36px;
  }
  .exp-projects__prev svg,
  .exp-projects__next svg {
    width: 36px;
    height: 36px;
  }

  .exp-projects .exp-projects__dots.swiper-pagination {
    margin-top: 16px;
  }
}
