/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  min-height: calc(100vh - 90px); /* Locks perfectly into the viewport */
  padding: 100px 5%;
  background-color: var(--bg-offwhite); /* Standardized to global variable */
  text-align: center;
  position: relative;
  overflow: hidden; /* Keeps the sliding cards from breaking the page width */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Carousel Layout --- */
.carousel-outer {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Constrains the width so the arrows sit perfectly near the cards */
  margin: 0 auto;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 0; /* Generous padding ensures the shadows don't get cut off when cards scale up */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Ultra-smooth sliding math */
}

/* --- The Luxury Card Styling --- */
.testimonial-card {
  flex: 0 0 550px;
  background: #ffffff;
  border-radius: 12px; /* Standardized to global card radius */
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Very faint shadow for inactive cards */
  text-align: left;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);

  /* Inactive State */
  opacity: 0.5;
  transform: scale(
    0.85
  ); /* Shrinks inactive cards more to emphasize the center card */
  border-top: 4px solid transparent; /* Placeholder for the active animation */
}

/* --- THE KEY: Active/Center Card Styling --- */
.testimonial-card.active {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 24px 48px rgba(18, 41, 57, 0.08); /* Deep, premium shadow */
  border-top: 4px solid var(--secondary-gold); /* The high-end gold accent tie-in */
}

/* --- The Decorative Watermark Quote --- */
.quote-mark {
  font-size: 6rem;
  font-family: "Georgia", serif; /* Serif fonts make the most elegant quotes */
  color: var(--secondary-gold);
  line-height: 0.5; /* Prevents the giant font from pushing the text too far down */
  margin-top: 20px;
  margin-bottom: 20px;
  opacity: 0.3; /* Gives it a beautiful, premium watermark effect */
}

/* Body Text (Editorial Style) */
.testimonial-text {
  font-size: 1.15rem; /* Larger, more confident text */
  color: var(
    --primary-navy
  ); /* Changed from grey to rich navy for high contrast */
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 35px;
}

/* Author Info (Grounded with a Gold Accent) */
.author-info {
  border-left: 3px solid var(--secondary-gold);
  padding-left: 15px;
}

.student-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.student-info {
  font-size: 0.95rem;
  color: #666666;
}

/* --- Premium Carousel Navigation Buttons --- */
.carousel-outer {
  position: relative;
  width: 100%;
  max-width: 1100px; /* Widened to give the arrows room so they don't overlap the cards */
  margin: 0 auto;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

  color: var(--primary-navy);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* Pushed the z-index very high so they sit above EVERYTHING */
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: var(--secondary-gold);
  box-shadow: 0 12px 30px rgba(168, 141, 62, 0.2);
  transform: translateY(-50%) scale(1.05);
}

/* Pushed further out to the edges so they stop overlapping the faded cards */
.prev-btn {
  left: 0px;
}
.next-btn {
  right: 0px;
}

/* --- Pagination Dots --- */
.dots-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: rgba(18, 41, 57, 0.15); /* Soft navy placeholder */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--secondary-gold); /* Gold dot for active state */
  transform: scale(1.2); /* Slight pop for the active dot */
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 900px) {
  /* Standardized breakpoint */

  .testimonials-section {
    padding: 60px 5%;
  }

  .testimonial-card {
    flex: 0 0 90%;
    padding: 30px 25px; /* Tighter padding for small screens */
  }

  .testimonial-card.active {
    transform: scale(
      1
    ); /* Removes the scale-up on mobile so it doesn't break the edges */
  }

  .testimonial-text {
    font-size: 1.05rem;
  }

  .nav-btn {
    display: none; /* Relies purely on the dots or swiping for mobile */
  }
}
