/* Section 1: Green Background */
.about-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #e6f7e6; /* Light green */
  padding: 40px;
  align-items: center;
  justify-content: center;
  gap: 40px;
}



/* Shared Text Block */
.about-text,
.about-white-text {
  flex: 1 1 400px;
  padding: 20px;
}

.about-text h2,
.about-white-text h3 {
  font-size: 28px;
  color: #2f5e2f;
  margin-bottom: 20px;
}

.about-text p,
.about-white-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Shared Image Block */
.about-image,
.about-white-image {
  flex: 1 1 400px;
  padding: 20px;
}

.about-image img,
.about-white-image img {
  width: 100%;
  height: auto;
  min-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section 4: Full-width horizontal image */
.about-image-only-section img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
 
}

/* Section 5: Slices layout */
.about-carousel {
  padding: 40px 20px;
  background: #f9f9f9;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  animation: fade 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.slice {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.slice-image {
  flex: 1;
  min-width: 300px;
}

.slice-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.slice-text {
  flex: 2;
}

.slice-text h3 {
  color: #2f5e2f;
  font-size: 24px;
  margin-bottom: 10px;
}

.testimonial-author {
  font-weight: bold;
  color: #2e7d32;
}

.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: #2e7d32;
}

@media (max-width: 768px) {
  .slice {
    flex-direction: column;
    text-align: center;
  }
}

/* Secton 2 */
.about-white-section {
  background: #fff;
  padding: 20px;
}

.swiper {
  max-width: 1000px;
  margin: auto;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.slide-text {
  flex: 1;
  padding: 10px;
}

.slide-text h2 {
  font-size: 28px;
  color: #2f5e2f;
  margin-bottom: 10px;
}

.slide-text p {
  font-size: 18px;
  color: #666;
}

.slide-image {
  flex: 1;
  text-align: center;
}

.slide-image img {
  width: 100%;
  max-width: 500px;   /* Tăng max-width cho to rõ */
  height: 700px;      /* Tăng chiều cao cho hình rõ hơn */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-pagination-bullet {
  background: #2f5e2f;
}

/* Ẩn nút mũi tên nếu có */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    text-align: center;
  }

  .slide-image img {
    max-width: 90%;
    height: auto;
  }
}
