.before-after-section {
  padding: 80px 0;
  background: #FAFAFA;
  border-top: 1px solid #F1F5F9;
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
}

.before-after-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.before-after-tagline {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #DF0513;
  margin-bottom: 8px;
}

.before-after-title {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.before-after-subtitle {
  font-size: 15px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.before-after-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 50px;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-card {
  display: flex;
  gap: 16px;
  transition: transform 0.2s ease;
}

.feature-card-left {
  flex-direction: row-reverse;
  text-align: right;
}

.feature-card-right {
  flex-direction: row;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon-wrap {
  flex-shrink: 0;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
  color: #000000;
  transition: color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover .feature-icon-box {
  border-color: #DF0513;
  background: #FEF2F2;
  box-shadow: 0 4px 14px rgba(223, 5, 19, 0.15);
}

.feature-card:hover .feature-icon-box svg {
  color: #DF0513;
  transform: scale(1.08);
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 12.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.comparison-stage-wrap {
  position: relative;
  width: 100%;
}

.comparison-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #0B0F19;
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
}

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

.image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.image-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: none;
}

.image-after {
  z-index: 1;
}

.compare-tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.tag-before {
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-after {
  right: 14px;
  background: #DF0513;
  color: #FFFFFF;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #FFFFFF;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.slider-drag-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  color: #000000;
  font-size: 15px;
  font-weight: 800;
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.slider-drag-handle:hover,
.slider-drag-handle:focus-visible {
  color: #DF0513;
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
}

.slider-drag-handle .drag-arrow {
  display: inline-block;
  line-height: 1;
}

.slider-drag-handle .arrow-l {
  margin-right: 2px;
}

.slider-drag-handle .arrow-r {
  margin-left: 2px;
}

.craftsmanship-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0B0F19;
  border: 1px solid #1E293B;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
}

.craftsmanship-video-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.craftsmanship-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: contrast(1.08) brightness(0.85);
}

.craftsmanship-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.85) 45%, rgba(11, 15, 25, 0.4) 100%);
  z-index: 2;
}

.craftsmanship-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.craftsmanship-text-wrap {
  max-width: 650px;
}

.craftsmanship-tagline {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #DF0513;
  margin-bottom: 8px;
}

.craftsmanship-title {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.craftsmanship-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
  line-height: 1.6;
}

.craftsmanship-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.craftsmanship-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}

.craftsmanship-pill svg {
  width: 14px;
  height: 14px;
  color: #DF0513;
}

.craftsmanship-cta {
  flex-shrink: 0;
}

.craftsmanship-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  background: #DF0513;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(223, 5, 19, 0.4);
}

.craftsmanship-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.craftsmanship-btn:hover {
  background: #B70410;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 5, 19, 0.5);
}

.craftsmanship-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .before-after-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .comparison-stage-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .features-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .feature-card-left,
  .feature-card-right {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .craftsmanship-content {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .before-after-section {
    padding: 50px 0;
  }

  .before-after-title {
    font-size: 26px;
  }

  .features-column {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card-left,
  .feature-card-right {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .craftsmanship-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .craftsmanship-title {
    font-size: 22px;
  }

  .craftsmanship-btn {
    width: 100%;
    justify-content: center;
  }
}
