/* carousel.css – styles for the carousel */
.carousel-wrapper {
  max-width: 83rem;
  margin: 0 auto;
  padding: 1rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.5);
  background: #0f172a;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  height: 420px;
  position: relative;
}

.carousel-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----- Caption Overlay ----- */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem 2rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.5) 60%,
    transparent 100%
  );
  color: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item:hover .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Georgia', serif;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.carousel-description {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 80%;
  line-height: 1.6;
  margin: 0;
}

/* Always show caption on mobile (no hover) */
@media (max-width: 768px) {
  .carousel-caption {
    transform: translateY(0);
    opacity: 1;
    padding: 1.5rem 1.5rem 1.5rem;
  }
  
  .carousel-title {
    font-size: 1.2rem;
  }
  
  .carousel-description {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: #1e293b;
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.carousel-btn.prev {
  left: 0.75rem;
}

.carousel-btn.next {
  right: 0.75rem;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  border-color: #1e293b;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.5);
}

.dot:hover {
  background: #e2e8f0;
}

/* Footer / counter */
.carousel-footer {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.counter-badge {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 640px) {
  .carousel-item {
    height: 280px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .carousel-btn.prev {
    left: 0.5rem;
  }
  .carousel-btn.next {
    right: 0.5rem;
  }
}