/* --------------------------------------------------------------
   TESTIMONIALS STYLES
--------------------------------------------------------------- */

body {
  min-height: 100lvh; /* Use large viewport height unit */
  height: 100lvh;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
}

main.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.background {
  min-height: 100dvh;
  height: 100dvh;
  background-image: url(/Assets/Images/Purpletexture.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: top center;
  background-repeat: repeat;
  overflow-x: hidden;
  width: 100%;
}

.main-content {
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.testimonial-grid {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
  will-change: transform;
  width: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
}

.testimonial-card {
  flex: 0 0 80%;
  max-width: 400px;
  background: #f5f9f7;  /* Card background */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  color: #333;  /* Card text color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, opacity 0.4s ease;
  font-family: Arial, sans-serif;
  transform: scale(0.9);
  opacity: 0.6;
  overflow: visible;
}

.testimonial-card.active {
  transform: scale(1.05);
  opacity: 1;
  z-index: 2;
}

.testimonial-card.left,
.testimonial-card.right {
  opacity: 0.4;
  transform: scale(0.95);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-name {
  font-size: 1.2rem;
  color: #136171;  /* Reviewer name color */
  font-weight: 600;
  margin: 0;
}

.source-container {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-source {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial-stars {
  font-size: 1.5rem;
  color: #ffcc00;  /* Star color */
  margin: 0.5rem 0;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.testimonial-date {
  font-size: 0.85rem;
  color: #888;  /* date color */
  margin-top: 0.5rem;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #a8dbcf96;  /* Button background */
  border: none;
  font-size: 2rem;
  color: #136171;  /* Button icon/text color */
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
}

#prevBtn {
  left: 1rem;
}

#nextBtn {
  right: 1rem;
}

/* Add Review Button */
.review-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 1.5rem 0;
}

.review-button {
  padding: 0.5rem 1rem;
  background: #fff;              /* Button background */
  border: 2px solid #f86fd8;    /* Accent border */
  color: #136171;               /* Button text */
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 10px;
}
.review-button:hover {
  background: #a8dbcf;  /* Hover background */
}

.review-button:visited {
  color: #136171;  /* visited link color */
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

@media (max-width: 768px) {
  .testimonial-grid {
    gap: 1rem;
  }

  .testimonial-card {
    flex: 0 0 85%;
    max-width: 300%;
    margin: 0 auto;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
    .main-content {
    padding: 2rem 1rem;
    min-height: 200vh;
    display: flex;
  }
  .testimonial-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 0.5rem;
    width: max-content;
    justify-content: flex-start;
  }

  .testimonial-card {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
    transform: none !important;
    opacity: 1 !important;
  }
}
