/* ============================= */
/* TESTIMONIALS SLIDER — FULL CSS */
/* ============================= */

.testimonials-section {
  position: relative;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.slider-testimonials-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  position: relative;
  border-radius: 0;
  padding: 0;
}

/* ── Section Header ── */
.slider-testimonials-section-header {
  margin-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
  padding-top: clamp(0.75rem, 2.5vw, 1.1rem);
}

.slider-title {
  display: inline-block;
  font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
}

/* ── Slider Wrapper ── */
.slider-testimonials {
  position: relative;
  padding: clamp(0.75rem, 2.5vw, 1.1rem) 0;
}

.viewport {
  overflow: hidden;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.viewport.grabbing {
  cursor: grabbing;
}

/* Fade edges */
.slider-testimonials::before,
.slider-testimonials::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15px;
  z-index: 10;
  pointer-events: none;
}

.slider-testimonials::before {
  right: 0;
}

.slider-testimonials::after {
  left: 0;
}

/* ── Track ── */
.track {
  display: flex;
  gap: clamp(0.4rem, 1.2vw, 0.75rem);
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  margin: 0;
  list-style: none;
}

.track.no-anim {
  transition: none;
}

/* ── Slides ── */
.slide {
  flex: 0 0 60vw;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
}

.slide img {
  width: 100%;
  max-height: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
  object-fit: cover;
  border-radius: clamp(0.6rem, 2vw, 1rem);
  pointer-events: none;
  display: block;
}

/* ── Controls Row ── */
/* margin-top = نفس padding الـ slider-testimonials عشان المسافة فوق وتحت الصور تبقى متساوية */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 1.2rem);
  margin-top: clamp(0.75rem, 2.5vw, 1.1rem);
  padding-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
}

/* ── Nav Buttons ── */
.nav {
  width: clamp(1.6rem, 4.5vw, 2.2rem);
  height: clamp(1.6rem, 4.5vw, 2.2rem);
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  font-size: clamp(0.6rem, 1.8vw, 0.8rem);
}

.nav:hover {
  opacity: 0.8;
}

.dots {
  display: none;
}

/* ── Google Reviews Button ── */
/* margin-top = نفس padding-bottom بتاع slider-controls عشان المسافة تتساوى */
.google-reviews-btn-wrapper {
  text-align: center;
  margin-top: clamp(0.75rem, 2.5vw, 1.1rem);
  padding-bottom: clamp(0.75rem, 2.5vw, 1.1rem);
}

.google-reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 0.625rem);
  padding: clamp(0.5rem, 1.8vw, 0.7rem) clamp(1rem, 3.5vw, 1.6rem);
  border-radius: clamp(1.5rem, 5vw, 3rem);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.75rem, 2.2vw, 0.95rem);
  transition: opacity 0.2s ease;
}

.google-reviews-btn:hover {
  opacity: 0.85;
}

.google-reviews-btn-wrapper i {
  border-radius: 50%;
  padding: clamp(0.2rem, 0.8vw, 0.35rem);
  font-size: clamp(0.75rem, 2.2vw, 0.95rem);
}

/* ======================== */
/* Small Tablet — 481px+    */
/* ======================== */

@media (min-width: 481px) {
  .slide {
    flex: 0 0 40vw;
  }
}

/* ======================== */
/* Medium Tablet — 601px+   */
/* ======================== */

@media (min-width: 601px) {
  .slide {
    flex: 0 0 35vw;
  }
}

/* ======================== */
/* Large Tablet — 769px+    */
/* ======================== */

@media (min-width: 769px) {
  .slider-testimonials {
    padding: clamp(0.9rem, 2.5vw, 1.3rem) 0;
  }

  .slider-controls {
    margin-top: 3rem;
    padding-bottom: 1rem;
  }

  .google-reviews-btn-wrapper {
    margin-top: clamp(0.9rem, 2.5vw, 1.3rem);
    padding-bottom: clamp(0.9rem, 2.5vw, 1.3rem);
  }

  .slider-testimonials-section-header {
    margin-bottom: clamp(0.9rem, 2.5vw, 1.3rem);
    padding-top: clamp(0.9rem, 2.5vw, 1.3rem);
  }

  .slide {
    flex: 0 0 30vw;
  }

  .slide img {
    max-height: clamp(160px, 18vw, 220px);
    height: clamp(160px, 18vw, 220px);
  }
}

/* ======================== */
/* Small Desktop — 1025px+  */
/* ======================== */

@media (min-width: 1025px) {
  .slide {
    flex: 0 0 22.5vw;
  }

  .slide img {
    max-height: clamp(160px, 14vw, 200px);
    height: clamp(160px, 14vw, 200px);
  }
}

/* ======================== */
/* Large Desktop — 1441px+  */
/* ======================== */

@media (min-width: 1441px) {
  .slide {
    flex: 0 0 17vw;
  }
}

/* ======================== */
/* Theme — Dark             */
/* ======================== */

.dark-testimonials {
  background-color: var(--helperColor);
  color: var(--white);
}

.dark-testimonials .slider-title {
  color: var(--white);
}

.dark-testimonials .slider-testimonials::before {
  background: linear-gradient(to left, var(--helperColor) 0%, transparent 50%);
}

.dark-testimonials .slider-testimonials::after {
  background: linear-gradient(to right, var(--helperColor) 0%, transparent 50%);
}

.dark-testimonials .nav {
  background-color: var(--white);
  color: var(--helperColor);
}

.dark-testimonials .dots button {
  background-color: var(--white);
}

.dark-testimonials .google-reviews-btn {
  background-color: var(--white);
  color: var(--helperColor);
}

.dark-testimonials .google-reviews-btn-wrapper i {
  color: var(--white);
  background-color: var(--helperColor);
}

/* ======================== */
/* Related Card             */
/* ======================== */

.related2-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: clamp(0.8rem, 2.5vw, 1.2rem);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.related2-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.related2-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: clamp(0.5rem, 1.5vw, 0.8rem);
  pointer-events: none;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.related2-card h3 {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 700;
  margin: 0;
  color: var(--white);
  line-height: 1.4;
}

.related2-card p {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  margin: 0;
  opacity: 0.8;
  color: var(--white);
  line-height: 1.5;
}

.related2-card a {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  align-self: center;
  margin-top: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related2-card a:hover {
  background-color: var(--white);
  color: var(--helperColor);
}