/* =========================
   SECTION LAYOUT
========================= */

.testimonial-section {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 160px;
  gap: 65px;
}

.testimonial-slide{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.testimonial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.swiper-testimonial-wrapper {
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.testimonial-header {
  width: 100%;
  text-align: left;
}


/* =========================
   CARD
========================= */

.testimonial-card {
  width: 420px;
  height: 450px;
  background-color: #DEE2E6;
  border-radius: 14px;
  padding: 20px;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.testimonial-card-wrapper {
  display: flex;
  justify-content: center;
  overflow: visible;
}

/* =========================
   DETAILS BOX
========================= */

.testimonial-detail-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  padding: 140px 18px 18px; /* space for avatar */
  border-left: 3px solid #001845;
  border-radius: 12px;
  background: #e9ecef;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: visible;
}

/* =========================
   AVATAR (OVERLAP)
========================= */

.testimonial-avatar {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* =========================
   CONTENT LAYERING
========================= */

.testimonial-detail-wrapper > *:not(.testimonial-avatar) {
  position: relative;
  z-index: 2;
}

/* =========================
   DECORATIVE QUOTE
========================= */

.testimonial-detail-wrapper::after {
  content: "\201E";
  position: absolute;
  bottom: 18px;
  right: 12px;
  font-size: 240px;
  line-height: 1;
  opacity: 0.12;
  color: #001845;
  pointer-events: none;
  z-index: 1;
}

/* =========================
   TEXT
========================= */

.testimonial-card-details h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #001845;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

.testimonial-card-details h4 {
  font-size: 1.1rem;
  margin: 0;
  color: #001845;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

.testimonial-detail-wrapper blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #001845;
  flex-grow: 1;
  word-wrap: break-word;
}

/* Remove default blockquote quotes */
blockquote::before,
blockquote::after {
  content: none;
}

/* =========================
   SWIPER
========================= */

.swiper-slide {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Navigation buttons stay outside cards */
.swiper-button-prev,
.swiper-button-next {
  background: #ffffff;
  border-radius: 50%;
  width: 48px !important;
  height: 48px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  position: relative;
  top: auto;
  padding: 10px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: none !important;
}

.swiper-navigation-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .testimonial-section {
    padding: 40px 80px;
  }

  .testimonial-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 30px 40px;
  }

  .swiper-button-next, .swiper-button-prev{
    top: var(--swiper-navigation-top-offset, 30%);
  }

  .testimonial-detail-wrapper::after {
    bottom: 50px;
  }
}

@media (max-width: 480px) {
  .testimonial-section {
    padding: 20px;
    gap: 30px;
  }

  .testimonial-card {
    height: auto;
    padding: 15px;
  }

  .testimonial-detail-wrapper {
    height: auto;
    padding: 120px 15px 15px;
    gap: 8px;
  }

  .testimonial-avatar {
    width: 120px;
    height: 120px;
    border: 3px solid #ffffff;
  }

  .testimonial-card-details h3 {
    font-size: 1.1rem;
  }

  .testimonial-card-details h4 {
    font-size: 0.95rem;
  }

  .testimonial-detail-wrapper blockquote {
    font-size: 15px;
    line-height: 1.5;
  }

  .star {
    font-size: 2em;
  }
}
