#section-5{
    background-color: rgb(126, 90, 37);
}

.sec5-text-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(237, 226, 213);
    padding: 35px;
}

.sec5-text-con h1 {
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
    padding: 10px;
}
.sec5-text-con h2 {
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
    padding: 10px;
}

.sec5-text-con p {
    
    padding: 10px;
}
.sec5-img-carousal {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 40px 40px; 
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease-in-out;
  padding: 40px;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-image {
  flex: none;
  width: 500px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-number {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.carousel-text {
  flex: 1;
  padding: 40px;
  background: rgb(126, 90, 37);
  color: rgb(255, 255, 255);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel-text h2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
}

.carousel-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ede2d5
}

.carousel-btn {
  background: rgb(237, 226, 212);
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: flex-start;
}

.carousel-btn:hover {
  background: white;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  transition: 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
  left: 60px;
}

.carousel-nav.next {
  right: 60px;
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s ease;
}

.dot.active,
.dot:hover {
  background: white;
}

@media (max-width: 1200px) {
  .sec5-text-con {
    padding: 30px 20px; /* Added horizontal padding */
    text-align: center; /* Center the text content */
  }
  
  .sec5-text-con h1,
  .sec5-text-con h2 {
    font-size: 42px; /* Increased from 35px for better proportion */
    line-height: 50px;
    padding: 8px;
    text-align: center;
  }
  
  .sec5-text-con p {
    padding: 8px 20px; /* Added horizontal padding */
    text-align: center;
    max-width: 800px; /* Limit width for better readability */
    margin: 0 auto; /* Center the paragraph */
  }
  
  .sec5-img-carousal {
    padding: 30px 20px; /* Balanced horizontal padding */
    height: 65vh; /* Slightly reduced height */
  }
  
  .carousel-container {
    max-width: 1000px; /* Reduced max-width for better fit */
    margin: 0 auto;
    padding: 0 20px; /* Added padding to container */
  }
  
  .carousel-slide {
    padding: 25px 20px; /* Balanced padding */
    gap: 25px;
    justify-content: center; /* Center the slide content */
    align-items: center;
  }
  
  .carousel-image {
    width: 380px; /* Slightly smaller for better proportion */
    height: 380px;
  }
  
  .carousel-text {
    padding: 25px 20px; /* Consistent padding */
    max-width: 500px; /* Limit width */
  }
  
  .carousel-text h2 {
    font-size: 2rem; /* Slightly reduced */
    margin-bottom: 16px;
  }
  
  .carousel-text p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
  .carousel-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .carousel-nav {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  .carousel-nav.prev {
    left: 25px; /* Adjusted positioning */
  }
  
  .carousel-nav.next {
    right: 25px; /* Adjusted positioning */
  }
  
  .carousel-dots {
    bottom: 40px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Tablet - 900px */
@media (max-width: 900px) {
  .sec5-text-con {
    padding: 25px 20px;
  }
  
  .sec5-text-con h1,
  .sec5-text-con h2 {
    font-size: 36px;
    line-height: 42px;
    padding: 6px;
  }
  
  .sec5-text-con p {
    padding: 8px;
    font-size: 0.95rem;
  }
  
  .sec5-img-carousal {
    padding: 20px;
    height: 45vh;
    min-height: 600px;
  }
  
  /* Stack carousel content vertically */
  .carousel-slide {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    align-items: center;
  }
  
  .carousel-image {
    width: 350px;
    height: 350px;
    flex: none;
  }
  
  .carousel-text {
    width: 100%;
    max-width: 500px;
    padding: 25px;
    text-align: center;
  }
  
  .carousel-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .carousel-text p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .carousel-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    align-self: center;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .carousel-nav.prev {
    left: 30px;
  }
  
  .carousel-nav.next {
    right: 30px;
  }
  
  .carousel-dots {
    bottom: 30px;
    gap: 8px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Mobile Large - 520px */
@media (max-width: 520px) {
  .sec5-text-con {
    padding: 20px 15px;
  }
  
  .sec5-text-con h1,
  .sec5-text-con h2 {
    font-size: 28px;
    line-height: 34px;
    padding: 5px;
  }
  
  .sec5-text-con p {
    padding: 6px;
    font-size: 0.9rem;
  }
  
  .sec5-img-carousal {
    padding: 15px;
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-container {
    max-width: 100%;
  }
  
  .carousel-slide {
    padding: 15px;
    gap: 15px;
  }
  
  .carousel-image {
    width: 280px;
    height: 280px;
  }
  
  .image-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
    bottom: 15px;
  }
  
  .carousel-text {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  .carousel-text h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .carousel-text p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.5;
  }
  
  .carousel-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .carousel-nav.prev {
    left: 20px;
  }
  
  .carousel-nav.next {
    right: 20px;
  }
  
  .carousel-dots {
    bottom: 20px;
    gap: 6px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Mobile Small - 375px */
@media (max-width: 375px) {
  .sec5-text-con {
    padding: 15px 10px;
  }
  
  .sec5-text-con h1,
  .sec5-text-con h2 {
    font-size: 24px;
    line-height: 28px;
    padding: 4px;
  }
  
  .sec5-text-con p {
    padding: 4px;
    font-size: 0.85rem;
  }
  
  .sec5-img-carousal {
    padding: 10px;
    height: 65vh;
    min-height: 450px;
  }
  
  .carousel-slide {
    padding: 10px;
    gap: 12px;
  }
  
  .carousel-image {
    width: 240px;
    height: 240px;
    border-radius: 8px;
  }
  
  .image-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
    bottom: 12px;
  }
  
  .carousel-text {
    padding: 15px 12px;
    border-radius: 8px;
  }
  
  .carousel-text h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  
  .carousel-text p {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .carousel-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
  }
  
  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .carousel-nav.prev {
    left: 15px;
  }
  
  .carousel-nav.next {
    right: 15px;
  }
  
  .carousel-dots {
    bottom: 15px;
    gap: 4px;
  }
  
  .dot {
    width: 6px;
    height: 6px;
  }
}