/* Celebration Carousel Styles */
#celebration-carousel {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f8fc 0%, #f0f0f7 100%);
  position: relative;
  overflow: hidden;
}

/* Background pattern */
#celebration-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/dot-grid-pattern.svg');
  background-repeat: repeat;
  background-size: 30px 30px;
  opacity: 0.03;
  pointer-events: none;
}

.carousel-header {
  text-align: center;
  margin-bottom: 60px;
}

.carousel-header .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #363058;
  margin-bottom: 1rem;
}

.carousel-header .section-subtitle {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* Carousel Track */
.carousel-track {
  position: relative;
  height: 600px;
  overflow: hidden;
}

/* Carousel Slides */
.carousel-slides {
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(0.95);
}

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

/* Slide Image */
.slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay for better text readability */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

/* Slide Caption */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: white;
  text-align: center;
}

.slide-caption p {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.carousel-control.prev {
  left: 30px;
}

.carousel-control.next {
  right: 30px;
}

.carousel-control svg {
  width: 24px;
  height: 24px;
  color: #363058;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background: #ddd;
}

.indicator.active {
  background: #FF6B35;
  border-color: #FF6B35;
  width: 40px;
  border-radius: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .carousel-header .section-title {
    font-size: 2rem;
  }
  
  .carousel-header .section-subtitle {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .carousel-track {
    height: 400px;
  }
  
  .carousel-control {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control.prev {
    left: 15px;
  }
  
  .carousel-control.next {
    right: 15px;
  }
  
  .slide-caption {
    padding: 30px 20px;
  }
  
  .slide-caption p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .carousel-track {
    height: 300px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control svg {
    width: 20px;
    height: 20px;
  }
  
  .slide-caption p {
    font-size: 1rem;
  }
}

/* Loading state for images */
.slide-image {
  background: #f0f0f0;
  position: relative;
}

.slide-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid #f0f0f0;
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.slide-image.loading::before {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}