
/* Image Comparison Slider Styles */
.image-comparison-container {
  padding: 20px 0;
}

.image-comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: col-resize;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 400px; /* Fixed height for better appearance */
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 10;
}

.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: all;
  transition: background 0.3s ease;
}

.comparison-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-handle::after {
  content: '\f07e'; /* fa-arrows-left-right */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #333;
  z-index: 21;
}

.image-comparison-slider.active .comparison-handle {
  background: #fff;
}

.comparison-label {
  position: absolute;
  top: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comparison-label-before {
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
}

.comparison-label-after {
  right: 15px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

@media (max-width: 768px) {
  .image-comparison-slider {
    height: 300px;
  }
}
