/* Extracurriculars (Carousel) Section Styles */

.extracurriculars-text {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}
.extracurriculars-text p {
  text-align: center;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #222 #444;
}

.carousel {
  width: 800px;
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: #222 #444;
}

.carousel-slide {
  width: 800px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.carousel-slide img {
  width: 70%;
  height: 340px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #222; /* subtle background for letterboxing */
  border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.carousel-caption {
  margin-top: 18px;
  color: #fff;
  font-size: 1.25em;
  background: rgba(0,0,0,0.45);
  padding: 8px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(30, 30, 30, 0.35);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.18);
  font-size: 1.3em;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.45;
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.carousel-arrow.left {
  left: 0;
}
.carousel-arrow.right {
  right: 0;
}
.carousel-arrow:hover, .carousel-arrow:focus {
  background: rgba(30,30,30,0.85);
  color: var(--accent-red);
  opacity: 0.95;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(255,59,59,0.30);
  outline: none;
}
.carousel-arrow:active {
  background: #fff;
  color: var(--accent-red);
  box-shadow: 0 2px 8px rgba(255,59,59,0.10);
}
@media (max-width: 700px) {
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3em;
    left: 2px;
    right: 2px;
  }
  .carousel-arrow.left {
    left: 2px;
  }
  .carousel-arrow.right {
    right: 2px;
  }
}

@media (max-width: 1000px) {
  .carousel, .carousel-slide {
    width: 98vw;
    height: 220px;
  }
  .carousel-slide img {
    height: 160px;
  }
}

/* Dark themed scrollbar for carousel and container */
.carousel-container::-webkit-scrollbar, .carousel::-webkit-scrollbar, .container::-webkit-scrollbar {
  width: 10px;
  background: #222;
}
.carousel-container::-webkit-scrollbar-thumb, .carousel::-webkit-scrollbar-thumb, .container::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 8px;
  border: 2px solid #222;
}
.carousel-container::-webkit-scrollbar-track, .carousel::-webkit-scrollbar-track, .container::-webkit-scrollbar-track {
  background: #222;
} 