/* =======================================
   TESTIMONIALS PAGE (Aesthetic Modern)
   Horizontal Scroll (3 visible cards)
   Palette: #123458, #f1efec, #ffffff, #d4c9be
   ======================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #123458;
  --secondary: #f1efec;
  --accent: #d4c9be;
  --text-dark: #123458;
  --text-light: #ffffff;
}

/* ✅ Page Container Background */
.page-container {
  background-color: #F1EFEC;
  color: var(--text-light);
  min-height: 60vh; /* fixed height */
  width: 100%;
  padding: 40px 0;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Headings */
.heading-alones {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin: 20px 0 10px 0;
  color: #123458;
}

/* Review Header */
.review-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

/* Leave Review Button */
.leave-review-btn {
  background-color: var(--accent);
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.leave-review-btn:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

/* Carousel Container */
.review-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px auto;
  overflow: visible; /* ✅ remove hidden to stop fade clipping */
}

/* Review Cards Wrapper */
.review-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 30px 40px;
  justify-content: flex-start;
}

.review-container::-webkit-scrollbar {
  display: none;
}

/* Review Card */
.review-card {
  background-color: var(--secondary);
  color: var(--text-dark);
  border-radius: 15px;
  padding: 25px;
  width: 320px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(18, 52, 88, 0.2);
  transition: 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

/* Review Content */
.review-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-stars {
  color: gold;
  margin-bottom: 10px;
}

.review-quote {
  font-style: italic;
  margin-bottom: 10px;
  color: #333;
}

/* Date */
.review-content small {
  font-size: 0.85rem;
  color: #666;
}

/* No Reviews */
.no-reviews {
  color: var(--text-light);
  text-align: center;
  font-size: 1rem;
  margin: 20px auto;
}

/* ✅ Carousel Buttons */
.carousel-btn {
  background-color: var(--accent);
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.carousel-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -20px; /* ✅ pull a bit outside */
}

.next-btn {
  right: -20px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: var(--secondary);
  color: var(--text-dark);
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 4px 12px rgba(18, 52, 88, 0.3);
}

.closeBtn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.closeBtn:hover {
  color: red;
}

/* Form Styles */
form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

.star-rating {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  flex-direction: row-reverse;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  resize: none;
  font-family: 'Poppins', sans-serif;
}

.submit-btn {
  background-color: var(--primary);
  color: var(--text-light);
  border: none;
  padding: 10px 15px;
  margin-top: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--accent);
  color: var(--text-dark);
  transform: scale(1.05);
}
