/* Comparison Section Styles matching Figma Prototype (KÉO NGANG ĐỂ KHÁM PHÁ) */

.comparison-banner-wrapper {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 550px;
  max-height: 800px;
  overflow: hidden;
  user-select: none;
}

.comparison-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
}

.comparison-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.comparison-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  z-index: 2;
}

.comparison-before {
  z-index: 1;
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 10;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: ew-resize;
}

.handle-line {
  flex: 1;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.handle-circle {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 0;
  transition: transform 0.2s ease;
}

.handle-circle:hover {
  transform: scale(1.1);
}

.comparison-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: none;
  text-align: center;
}

.comparison-caption span {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .comparison-banner-wrapper {
    height: 55vh;
    min-height: 400px;
  }
  .handle-circle {
    width: 36px;
    height: 36px;
  }
  .comparison-caption span {
    font-size: 14px;
    letter-spacing: 2px;
  }
}
