/*---------------------------------------
  FEATURES SECTION (ex-Solution Block 3)
-----------------------------------------*/
.features-section {
  background: var(--white-color);
  position: relative;
  z-index: 2;
}

.feature-walkthrough {
  padding: 80px 0;
}

.feature-row {
  padding-left: 40px;
  padding-right: 40px;
}

.feature-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--highlight-icon-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.feature-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--p-color);
  margin-bottom: 16px;
}

.feature-block {
  padding-top: 60px;
  padding-bottom: 60px;
}

.no-shadow {
  filter: none !important;
}

.feature-row p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--p-color);
}

.feature-image {
  border-radius: 12px;
  overflow: visible;
}

.feature-image img {
  width: 100%;
  max-width: 85%;
  height: auto;
  display: block;
  filter: var(--img-shadow);
}

/* Portrait chatbot images — constrained height, image overflows */
.feature-image-overflow {
max-width: 280px;
    height: 360px;
    overflow: visible;
    position: relative;
}

.feature-image-overflow img {
  width: 100%;
  height: auto;
  display: block;
  filter: var(--img-shadow);
}

/* ===== Image Zoom Modal ===== */
.img-zoom-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background:  var(--gradient-dark);
  z-index: 9999;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.img-zoom-overlay.active {
  display: flex;
}

.img-zoom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.img-zoom-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.img-zoom-content img.modal-bg-single {
  background: #F5F5F5AA;
  padding: 15px;
  border-radius: 20px;
}

/* Carousel inside modal */
.modal-carousel {
  max-width: 80vw;
}

.modal-carousel.modal-bg-slides .carousel-slide {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  background: #F5F5F5AA;
  padding: 15px;
  border-radius: 20px;
  border: 0px;
}

@media (max-width: 768px) {
  .features-section .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .feature-row {
    padding-left: 0;
    padding-right: 0;
  }
  .feature-image.portrait {
    max-width: 240px;
    margin: 0 auto;
  }
  .feature-image-overflow {
    max-width: 100%;
    height: auto;
  }
  .img-zoom-overlay {
    padding: 20px;
  }
  .auto-carousel {
    overflow: visible;
    padding: 12px;
  }
  .feature-image img,
  .feature-image-overflow img {
    filter: none;
  }
}
