/* === KKQ BEFORE/AFTER SLIDER - ALL STYLES === */

.kkq-section {
  background: #f7f9fa;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  font-family: 'Mona Sans', sans-serif;
}

.kkq-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5EBAC3, #3a9aa3, #5EBAC3);
}

.kkq-bg-pattern {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.4;
  pointer-events: none;
}

.kkq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.kkq-header {
  text-align: center;
  margin-bottom: 60px;
}

.kkq-subtitle-tag {
  display: inline-block;
  background: rgba(94,186,195,0.12);
  border: 1px solid rgba(94,186,195,0.3);
  color: #3a9aa3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.kkq-title {
  font-family: 'Mona Sans', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: #0d1b1e;
  line-height: 1.15;
  margin: 0 0 16px;
}

.kkq-title em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #5EBAC3;
}

.kkq-desc {
  font-size: 16px;
  color: #606060;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Slider Wrapper */
.kkq-slider-wrap {
  position: relative;
}

/* Thumbnails (nav) */
.kkq-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.kkq-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.kkq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kkq-thumb.kkq-active {
  border-color: #5EBAC3;
  transform: scale(1.08);
}

/* Main Before/After Comparison */
.kkq-main-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  user-select: none;
  touch-action: none;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
}

.kkq-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.kkq-slide.kkq-visible {
  display: block;
}

/* After image (bottom layer) */
.kkq-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Before image (top layer, clipped) */
.kkq-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.kkq-before-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Labels */
.kkq-label {
  position: absolute;
  top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

.kkq-label-before {
  left: 20px;
  background: rgba(13,27,30,0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}

.kkq-label-after {
  right: 20px;
  background: rgba(94,186,195,0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Divider line */
.kkq-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 9;
  pointer-events: none;
}

/* Handle */
.kkq-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  z-index: 11;
  cursor: ew-resize;
  background: #fff;
  border-radius: 50%;
  border: 3px solid #5EBAC3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.kkq-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 28px rgba(94,186,195,0.4);
}

.kkq-handle svg {
  width: 22px;
  height: 22px;
  stroke: #5EBAC3;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Prev/Next arrows */
.kkq-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.kkq-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(94,186,195,0.4);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.kkq-arrow-btn:hover {
  background: #5EBAC3;
  border-color: #5EBAC3;
  transform: scale(1.08);
}

.kkq-arrow-btn:hover svg {
  stroke: #fff;
}

.kkq-arrow-btn svg {
  width: 18px;
  height: 18px;
  stroke: #5EBAC3;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}

.kkq-counter {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.kkq-counter span {
  color: #5EBAC3;
  font-weight: 700;
}

/* Dots */
.kkq-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.kkq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: none;
  padding: 0;
}

.kkq-dot.kkq-active {
  background: #5EBAC3;
  transform: scale(1.3);
}

/* Drag hint */
.kkq-drag-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  z-index: 12;
}

.kkq-drag-hint.kkq-hidden {
  opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .kkq-section {
    padding: 60px 0 80px;
  }
  .kkq-main-slider {
    aspect-ratio: 4/3;
    border-radius: 14px;
  }
  .kkq-thumb {
    width: 54px;
    height: 40px;
  }
  .kkq-handle {
    width: 40px;
    height: 40px;
  }
  .kkq-label {
    font-size: 10px;
    padding: 4px 10px;
    top: 12px;
  }
}

@media (max-width: 480px) {
  .kkq-main-slider {
    aspect-ratio: 3/4;
    max-height: 70vh;
  }
  .kkq-thumb {
    width: 44px;
    height: 34px;
    border-radius: 6px;
  }
}
