#section-7 {
  padding: 20px 40px;
}

.sec7-con {
  max-width: 1200px;
  margin: 0 auto;
}

.sec7-text-con {
  padding: 0.25rem 0.5rem;
     display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.sec7-text-con h1 {
    padding: 10px;
    text-align: center;
    font-family: "Segoe UI", Tahoma, ;
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
}

.sec7-text-con p {
    padding: 10px;
    text-align: center;
    font-size: medium;
}

/* Button Styles */
.sec7-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.category-btn {
  background: #fff;
  border: 2px solid rgb(126, 90, 37);
  color: rgb(126, 90, 37);
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.category-btn:hover {
  background: rgba(126, 90, 37, 0.1);
}

.category-btn.active {
  background: rgb(126, 90, 37);
  color: white;
}

/* Carousel Styles */
.category-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
  padding: 20px 0;
}

.image-slide {
  flex: 0 0 calc(33.333% - 14px); /* 3 images per screen with gap */
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-slide:hover img {
  transform: scale(1.05);
}

/* Navigation Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(126, 90, 37, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
  background: rgb(126, 90, 37);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
  left: -15px;
}

.carousel-nav-btn.next {
  right: -15px;
}

/* Large Desktop - 1200px */
@media (max-width: 1200px) {
  #section-7 {
    padding: 18px 30px;
  }
  
  .sec7-con {
    max-width: 1000px;
  }
  
  .sec7-text-con {
    padding: 8px;
  }
  
  .sec7-text-con h1 {
    font-size: 42px;
    line-height: 50px;
    padding: 8px;
  }
  
  .sec7-text-con p {
    padding: 8px;
    font-size: 1rem;
  }
  
  .sec7-buttons {
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .category-btn {
    padding: 12px 32px;
    font-size: 1.1rem;
    min-width: 130px;
  }
  
  .carousel-track {
    gap: 16px;
    padding: 16px 0;
  }
  
  .image-slide {
    flex: 0 0 calc(33.333% - 11px); /* Adjusted for new gap */
  }
  
  .carousel-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .carousel-nav-btn.prev {
    left: -12px;
  }
  
  .carousel-nav-btn.next {
    right: -12px;
  }
}

/* Tablet - 900px */
@media (max-width: 900px) {
  #section-7 {
    padding: 16px 20px;
  }
  
  .sec7-con {
    max-width: 100%;
  }
  
  .sec7-text-con {
    padding: 6px;
  }
  
  .sec7-text-con h1 {
    font-size: 36px;
    line-height: 42px;
    padding: 6px;
  }
  
  .sec7-text-con p {
    padding: 6px;
    font-size: 0.95rem;
  }
  
  .sec7-buttons {
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .category-btn {
    padding: 10px 24px;
    font-size: 1rem;
    min-width: 120px;
  }
  
  .carousel-track {
    gap: 12px;
    padding: 12px 0;
  }
  
  /* Show 2 images per row on tablets */
  .image-slide {
    flex: 0 0 calc(50% - 6px);
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-nav-btn.prev {
    left: -10px;
  }
  
  .carousel-nav-btn.next {
    right: -10px;
  }
}

/* Mobile Large - 520px */
@media (max-width: 520px) {
  #section-7 {
    padding: 12px 15px;
  }
  
  .sec7-text-con {
    padding: 4px;
  }
  
  .sec7-text-con h1 {
    font-size: 28px;
    line-height: 34px;
    padding: 4px;
  }
  
  .sec7-text-con p {
    padding: 4px;
    font-size: 0.9rem;
  }
  
  .sec7-buttons {
    gap: 8px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
  }
  
  .category-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-width: 140px;
    width: 100%;
    max-width: 200px;
  }
  
  .carousel-track {
    gap: 8px;
    padding: 8px 0;
  }
  
  /* Show 1 image per row on mobile */
  .image-slide {
    flex: 0 0 100%;
    aspect-ratio: 16/10; /* Wider aspect ratio for mobile */
  }
  
  .carousel-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .carousel-nav-btn.prev {
    left: -8px;
  }
  
  .carousel-nav-btn.next {
    right: -8px;
  }
}

/* Mobile Small - 375px */
@media (max-width: 375px) {
  #section-7 {
    padding: 10px 12px;
  }
  
  .sec7-text-con {
    padding: 3px;
  }
  
  .sec7-text-con h1 {
    font-size: 24px;
    line-height: 28px;
    padding: 3px;
  }
  
  .sec7-text-con p {
    padding: 3px;
    font-size: 0.85rem;
  }
  
  .sec7-buttons {
    gap: 6px;
    margin-bottom: 16px;
  }
  
  .category-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    min-width: 120px;
    max-width: 180px;
  }
  
  .carousel-track {
    gap: 6px;
    padding: 6px 0;
  }
  
  .image-slide {
    flex: 0 0 100%;
    aspect-ratio: 16/9; /* Standard mobile aspect ratio */
    border-radius: 6px;
  }
  
  .carousel-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .carousel-nav-btn.prev {
    left: -6px;
  }
  
  .carousel-nav-btn.next {
    right: -6px;
  }
}