/* File: custom-elements/cgm-testimonial-slider/cgm-testimonial-slider.css */

.cgm-slider-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--cgm-bg-color, #e5eee8);
}

/* Mist Transitions */
.cgm-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.cgm-slider-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ffffff 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Blobs */
.cgm-slider-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.cgm-s-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}
.cgm-s-blob-1 {
  width: 600px;
  height: 600px;
  background-color: var(--cgm-blob-1, #e68492);
  top: -10%;
  left: -10%;
  animation: cgm-breathe 12s infinite alternate ease-in-out;
}
.cgm-s-blob-2 {
  width: 500px;
  height: 500px;
  background-color: var(--cgm-blob-2, #ffad4d);
  bottom: -10%;
  right: -5%;
  animation: cgm-breathe 10s infinite alternate ease-in-out;
}
.cgm-s-blob-3 {
  width: 300px;
  height: 300px;
  background-color: var(--cgm-blob-3, #ffffff);
  top: 30%;
  left: 40%;
  opacity: 0.5;
  animation: cgm-breathe 15s infinite alternate ease-in-out;
}

@keyframes cgm-breathe {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.15) translate(20px, -20px);
  }
}

/* Header */
.cgm-slider-header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.cgm-slider-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #ffad4d;
  display: block;
}
.cgm-slider-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: #2e2e2e;
  margin: 0;
  line-height: 1.2;
}

/* Track */
.cgm-track-wrapper {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 0 4vw;
  box-sizing: border-box;
}
.cgm-slider-track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cgm-slider-track::-webkit-scrollbar {
  display: none;
}

.cgm-slide {
  flex: 0 0 29vw;
  min-width: 350px;
  scroll-snap-align: start;
}

.cgm-glass-card {
  background: var(--cgm-card-tint, rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}
/* .cgm-slide:hover .cgm-glass-card {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
} */

.cgm-watermark {
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: "Playfair Display", serif;
  font-size: 140px;
  line-height: 1;
  color: var(--cgm-quote-color, #ffad4d);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.cgm-quote-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cgm-quote-text {
  font-family: "Open Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  color: #2e2e2e;
  margin-bottom: 20px;
  margin-top: 50px;
}
.cgm-author {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #2e2e2e;
}
.cgm-subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  display: block;
  max-width: 100%;
}

/* Controls */
.cgm-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
  display: none;
}
.cgm-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #2e2e2e;
  background: transparent;
  color: #2e2e2e;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cgm-nav-btn:hover {
  background: #2e2e2e;
  color: #fff;
}
.cgm-dots {
  display: flex;
  gap: 10px;
}
.cgm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.cgm-dot.active {
  background: var(--cgm-quote-color);
  transform: scale(1.2);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .cgm-slider-section {
    padding: 60px 0;
  }
  .cgm-track-wrapper {
    padding: 0 20px;
  }

  .cgm-slider-section::before,
  .cgm-slider-section::after {
    height: 150px;
  }

  .cgm-slide {
    flex: 0 0 85vw;
    min-width: auto;
    margin-right: 15px;
    scroll-snap-align: center;
  }

  /* HIDE ARROWS ON MOBILE */
  .cgm-nav-btn {
    display: none;
  }

  .cgm-glass-card {
    padding: 30px;
  }
  .cgm-watermark {
    font-size: 120px;
    top: -10px;
  }
  .cgm-slider-title {
    font-size: 2rem;
  }
}
