/* Text Carousel for Dr. Hasan's Bio
----------------------------------------------- */

.text-carousel-container {
  position: relative;
  overflow: visible;
  width: 90%;
  max-height: 50vh;
  padding: 0 50px;
  margin: 0 auto;
}

.text-slide {
  position: absolute;
  width: 90%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 30px 0;
}

.text-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.text-slide h5 {
  color: #fff;
  /* Altera gold color */
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(20px);
}

.text-slide p.subheader {
  font-family: 'Big Caslon Display', serif;
  font-size: max(24px, 3vw) !important;
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
  opacity: 0;
  transform: translateY(20px);
}

.text-slide p.content {
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  max-width: 80%;
}

/* Navigation dots */
.carousel-navigation {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: none;
  /* was flex */
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(207, 174, 95, 0.3);
  /* Altera gold with opacity */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: rgba(207, 174, 95, 1);
  /* Solid Altera gold */
}

/* Progress bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: rgba(207, 174, 95, 0.2);
  z-index: 5;
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #CFAE5F;
  /* Altera gold */
  transition: width 0.3s linear;
}

/* Navigation arrows */
.carousel-arrows {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  /* Ensure arrows don't block content interaction */
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 20px;
  pointer-events: auto;
  /* Re-enable pointer events for the arrows themselves */
}

.carousel-arrow:hover {
  background-color: #CFAE5F;
  color: #fff;
}

.carousel-arrow.prev {
  margin-left: -40px;
  /* Move further outside */
}

.carousel-arrow.next {
  margin-right: -40px;
  /* Move further outside */
}

/* Media query for smaller screens */
@media only screen and (max-width: 1000px) {
  .carousel-arrow.prev {
    margin-left: -20px;
  }

  .carousel-arrow.next {
    margin-right: -20px;
  }
}