/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* =========================================================
   Pesevä.fi Gallery Feed
========================================================= */

.results-section {
  padding: 80px 20px;
  background: #ffffff;
}

.results-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.results-feed {
  max-width: 760px;
  margin: 0 auto;
}

.result-card {
  margin-bottom: 36px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.10);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

.result-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 7;
}

.tag-putipuhdas {
  background: #0A66C2;
}

.tag-perusteellinen {
  background: #111827;
}

.tag-tyoauto {
  background: #475569;
}

.result-content {
  padding: 24px;
}

.result-content h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.result-content p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: #555;
}

.result-meta span {
  background: #f1f5f9;
  padding: 7px 11px;
  border-radius: 999px;
}

.result-btn {
  display: inline-block;
  margin-top: 22px;
  background: #0A66C2;
  color: #fff;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.result-btn:hover {
  background: #084f96;
  color: #fff;
}

/* =========================================================
   Before / After Slider
========================================================= */

.before-after-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.before-after-img {
  width: 100%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.after-img {
  position: relative;
  z-index: 1;
}

.before-img-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.before-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  z-index: 5;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  pointer-events: none;
}

.ba-handle::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #111;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.ba-label {
  position: absolute;
  top: 56px;
  z-index: 7;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ba-label-before {
  left: 14px;
}

.ba-label-after {
  right: 14px;
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 600px) {
  .results-section {
    padding: 60px 16px;
  }

  .result-content {
    padding: 20px;
  }

  .result-content h3 {
    font-size: 21px;
  }

  .result-content p {
    font-size: 16px;
  }

  .result-tag {
    font-size: 12px;
    padding: 6px 11px;
  }

  .ba-label {
    top: 52px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .ba-handle::before {
    width: 36px;
    height: 36px;
  }
}