/* Base Styles */
.custom-body {
  font-family: sans-serif;
  box-sizing: border-box;
}

/* Carousel Container */
.custom-carousel {
  width: 100%;
  padding: 20px;
  border-radius: 25px;
  position: relative; /* Needed for Swiper navigation positioning */
}

/* Carousel Cards */
.custom-carousel-card {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  margin: 0 auto;
  color: white;
  transition: transform 0.3s ease;
}

/* Image Styles */
.img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

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

.img-wrapper:hover .inner-img {
  transform: scale(1.05);
}

/* Content Styles */
.custom-carousel-card a {
  text-decoration: none;
  color: black;
  display: block;
}

.custom-carousel-card span {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 18px;
}

.text-description {
  color: #c03344;
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

/* Swiper Navigation */
/* .swiper-button-prev,
.swiper-button-next {
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: black;
} */

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 749px) {
  .custom-carousel {
    padding: 10px 0;
  }
  
  .custom-carousel-card {
    padding: 10px;
  }
  
  .img-wrapper {
    height: 250px;
  }
}

@media (min-width: 750px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 50px;
    height: 50px;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 24px;
  }
}

/* Accessibility Improvements */
.custom-carousel-card a:focus {
  outline: 2px solid #c03344;
  outline-offset: 4px;
}

/* Performance Optimizations */
.inner-img {
  will-change: transform; /* Helps browsers optimize animations */
}