.highlighted-projects {
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  background-repeat: repeat;
  background-image: url("../images//bg.5fc709131814.webp");
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlighted-projects .main-content-container {
  max-width: none;
  width: 100%;
}
.highlighted-projects swiper-slide{
    display: flex;
    justify-content: center;
    align-items: center;
}
.container {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.section-subtitle {
  color: #96422F;
  font-size: 18px;
  margin-bottom: 10px;
  width: 70%;
  text-align: center;
}

.section-title {
  font-size: 64px;
  color: #43230C;
  width: 100%;
  text-align: center;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.section-desc {
  color: #4F3C22;
  margin-bottom: 60px;
  font-size: 18px;
  width: 60%;
  text-align: center;
  white-space: pre-line;
}

.highlighted-projects swiper-container {
  width: 100%;
  height: auto;
}

/* Scale toàn bộ slide không active */
.highlighted-projects swiper-slide {
  transition: transform 0.4s ease;
  overflow: hidden;
}

.highlighted-projects swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.9);
  transform-origin: center center;
}

.highlighted-projects swiper-slide img {
  width: 576px;
  height: 365px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.8s ease;
}

.highlighted-projects swiper-slide.swiper-slide-active img {
  z-index: 2;
  border-radius: 10px;
}

.slide-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.img-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* kế thừa từ .img-container */
  display: block;
}
.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: max-content;
  max-width: 100%;
  padding: 10px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.5s ease;
}



.slide-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.4s ease;
  position: relative;
  text-align: left;
  margin-bottom: 8px;
}

.slide-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 1s ease;
  color: #fff;
  font-size: 14px;
  text-align: left;
}

/* Hover Effect */
.slide-wrapper:hover .slide-info {
  padding-top: 32px;
}

.slide-wrapper:hover .slide-title {
  transform: translateY(-20px);
}

.slide-wrapper:hover .slide-description {
  opacity: 1;
  max-height: 200px;
}

/* Pagination */
.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #C8B497;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #96422F;
}

/* Arrow buttons */
.arrow {
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  padding: 0;
  border: 1px solid #43230C;
  border-radius: 4px;
  background-color: transparent;
  color: #43230C;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  line-height: 32px;
  transition: border-color 0.3s, color 0.3s;
  font-weight: 300;
}

.arrow:hover {
  color: white;
  background-color: #96422F;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 3;
}

.prev-btn {
  left: -10px;
}

.next-btn {
  right: -10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .highlighted-projects swiper-slide img {
    width: 330px;
    height: 230px;
      border-radius: 10px;
  }
 .highlighted-projects swiper-slide {
    border-radius: 10px;
    overflow: hidden;
  }

    .slide-title {
    font-size: 18px;
  }

  .slide-description {
    font-size: 14px;
  }
  .highlighted-projects {
    padding: 80px 0px;
  }

  .project-card {
    flex: 0 0 80%;
  }

  .project-card.active {
    transform: scale(1.05);
  }

  .nav-btn {
    font-size: 20px;
  }
}

@media (max-width: 768px) {

  .slide-title {
    font-size: 16px;
  }

  .slide-description {
    font-size: 13px;
  }
  .section-subtitle,
  .section-desc {
    font-size: 16px;
  }

  .slide-title {
    font-size: 16px;
  }

  .slide-description {
    font-size: 12px;
  }
  
}

@media (max-width: 480px) {
  .highlighted-projects {
    padding: 80px 0px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle,
  .section-desc {
    font-size: 14px;
  }

  .section-desc {
    width: 100%;
    white-space: normal;
  }

  .slide-title {
    font-size: 14px;
  }

  .slide-description {
    font-size: 12px;
  }
}

@media (min-width: 1024px) and (max-width:1755px) {
  .highlighted-projects swiper-slide img {
    width: 320px;
    height: 200px;
  }
 
  .project-card {
    flex: 0 0 33.33%;
  }

  .highlighted-projects {
    padding: 80px 0;
  }
}




