/*
 * Carousel Component Styles
 * Custom styles for the image carousel used in the Panama Summit section
 */

/* ======= CONTAINER ======= */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 10px;
}

/* ======= TRACK & SLIDES ======= */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  transition: all 0.3s ease;
}

.carousel-slide img {
  max-height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ======= NAVIGATION ======= */

.carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.carousel-button {
  background-color: var(--green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.carousel-button:hover {
  transform: scale(1.1);
}

/* ======= INDICATORS ======= */

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--stroke);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--green);
}

/* ======= LOADING STATES ======= */

.carousel-slide.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* ======= CAPTIONS ======= */
.carousel-slide .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(20, 161, 159, 0.8); /* BGI green with opacity */
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide:hover .image-caption {
  opacity: 1;
}

/* ======= RESPONSIVE DESIGN ======= */

@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .carousel-container {
    padding: 0 5px;
  }
  
  .carousel-dots {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .carousel-button {
    width: 35px;
    height: 35px;
  }
  
  .carousel-slide img {
    max-height: 180px;
  }
}