/* Before After Slider — ADN Mark Edition v5.0 */

.bas-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.bas-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  background: #111;
}

/* Fix: imazhet clipohen brenda corner-ve */
.bas-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  background: #111;
  display: block;
  border-radius: 14px; /* same as parent */
}

.bas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.bas-layer--after  { z-index: 1; }
.bas-layer--before { z-index: 2; clip-path: inset(0 50% 0 0); }

/* Divider line + handle */
.bas-divider {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 10;
  transform: translateX(-50%);
}

.bas-divider__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.7);
}

.bas-divider__handle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #1B2F55;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border: 2px solid #F7C845;
}

.bas-divider__handle svg polyline {
  stroke: #F7C845;
}

/* Badges — buton premium navy + gold */
.bas-badge {
  position: absolute;
  top: 12px;
  z-index: 20;
  background: #1B2F55;
  color: #F7C845;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #F7C845;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}

.bas-badge--before { left: 12px; }
.bas-badge--after  { right: 12px; }

/* Mobile */
@media (max-width: 767px) {
  .bas-wrap { grid-template-columns: 1fr; }
  .bas-stage { aspect-ratio: 4/3 !important; min-height: 260px; }
}
