.swiper-pagination-control {
  display: flex;
  justify-content: center;
}

.swiper-pagination {
  position: relative;
  margin-top: 1.2rem;
}

/* Container của progressbar */
.list-story .swiper-pagination-progressbar {
  background-color: rgba(200, 200, 230, 0.5);
  height: 8px;
  width: 50px;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

/* Phần fill tiến trình */
.list-story .swiper-pagination-progressbar-fill {
  background-color: rgb(200, 200, 230);
}

/* Ẩn bullet mặc định nếu có */
.list-story .swiper-pagination-bullet {
  display: none;
}

/* Completed Story */
#completedStoryWrapper.row {
  row-gap: 40px;
}

.dp-wrap {
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  height: 100%;
}

.dp-slider {
  height: 100%;
  width: 100%;
  position: absolute;
  transform-style: preserve-3d;
}

.dp-slider div {
  transform-style: preserve-3d;
}

.dp_item {
  display: block;
  position: absolute;
  text-align: center;
  color: #fff;
  border-radius: 10px;
  transition: transform 1.2s;
}

.dp-img img {
  border-left: 1px solid #fff;
  width: 100%;
  height: 100%;
  aspect-ratio: 700/350;
  object-fit: cover;
}

.dp_item {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Hiển thị 3 ảnh duy nhất */
.dp_item[data-position="1"],
.dp_item[data-position="2"],
.dp_item[data-position="3"] {
  opacity: 1;
  pointer-events: auto;
}

/* Sử dụng data-position thay vì first-child */
.dp_item[data-position="1"] {
  z-index: 10 !important;
  transform: rotateY(0deg) translateX(80px) !important;
}

.dp_item[data-position="2"] {
  z-index: 9;
  transform: rotateY(0deg) translateX(0%) scale(0.9);
}

.dp_item[data-position="3"] {
  z-index: 8;
  transform: rotateY(0deg) translateX(-10%) scale(0.8);
}

/* Ẩn tất cả các item khác */
.dp_item[data-position="0"] {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

#dp-next,
#dp-prev {
  position: absolute;
  top: 50%;
  right: 4%;
  height: 60px;
  width: 30px;
  z-index: 10;
  cursor: pointer;
  background-color: rgba(200, 200, 230, 0.5);
  border-radius: 30px 0 0 30px; /* Bo tròn */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  transform: translateY(-50%);
}

#dp-prev {
  left: 10%;
  right: unset;
  transform: translateY(-50%) rotate(180deg);
}

#dp-dots {
  position: absolute;
  bottom: -15%;
  z-index: 12;
  left: 50%;
  cursor: default;
  transform: translateX(-50%);
}

#dp-dots li {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-right: 5px;
}

#dp-dots li:hover {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s;
}

#dp-dots li.active {
  background: #fff;
}

.dp_item {
  width: 85%;
}

.dp-content,
.dp-img {
  text-align: left;
}

.dp_item {
  display: flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.dp-content {
  padding-left: 100px;
  padding-right: 0;
  display: inline-block;
  width: 100%;
}

.dp-content h2 {
  color: #41414b;
  font-family: Circular Std Bold;
  font-size: 48px;
  max-width: 460px;
  margin-top: 8px;
  margin-bottom: 0px;
}

.dp-content p {
  color: #74747f;
  max-width: 490px;
  margin-top: 15px;
  font-size: 24px;
}

.dp-content .site-btn {
  margin-top: 15px;
  font-size: 13px;
  padding: 19px 40px;
}

#dp-slider .dp_item:hover:not(:first-child) {
  cursor: pointer;
}

.special-story h3 {
  margin: 1rem 0 1.5rem;
  font-weight: 700;
}

.special-story .author {
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 1rem;
}

.special-story .summary {
  font-size: 1.125rem;
  line-height: 1.5;
  color: #444;
  /* margin-bottom: 1.5rem; */
  margin-bottom: 0;
}

.special-story .read-now {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(90deg, #6dd5fa, #c579fb);
  color: #fff;
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.special-story .read-now:hover {
  cursor: pointer;
  background: linear-gradient(135deg, #9dd2fa 0%, #d57bfb 70%, #d57bfb 100%);
  background-position: right;
  backdrop-filter: blur(30px);
}

/* Reponsive */
@media (max-width: 1140px) {
  /* section 2 bảng */
  .custom-card {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  #dp-dots {
    bottom: -5%;
  }

  .dp_item[data-position="1"] {
    z-index: 10 !important;
    transform: rotateY(0deg) translateX(80px) !important;
  }

  .dp_item[data-position="2"] {
    z-index: 9;
    transform: rotateY(0deg) translateX(5%) scale(0.9);
  }

  .dp_item[data-position="3"] {
    z-index: 8;
    transform: rotateY(0deg) translateX(-8%) scale(0.8);
  }
  .hero-section .slider-img {
    min-height: 262px;
  }
  #dp-next,
  #dp-prev {
    right: 2%;
  }
  #dp-prev {
    left: 13%;
  }
}

@media screen and (max-width: 768px) {
  .hero-section .slider-img {
    min-height: 285px;
  }
  #dp-next,
  #dp-prev {
    right: 3%;
  }
  #dp-prev {
    left: 11.5%;
  }
}
@media screen and (max-width: 576px) {
  #dp-next,
  #dp-prev {
    display: none;
  }
  .hero-section .slider-img {
    min-height: 180px;
  }
  .hero-section {
    margin-top: 2rem;
  }
  .hero-section .dp_item[data-position="1"] {
    transform: rotateY(0deg) translateX(60px) !important;
  }
  .hero-section #dp-dots {
    display: none;
  }
}
