/* Services section on homepage styling */
.bg-light {
  background-color: white !important;
}

/* Section sizing and position */
/* Allow overflow so top shadows aren’t clipped */
.features {
  position: relative;
  overflow: visible !important;
  height: fit-content;
  margin-top: 6vh;
  padding-top: 2rem; /* allow space for top shadows */
}

/* Override Bootstrap’s hidden overflow on inner carousel elements */
.features .carousel-inner,
.features .carousel-item {
  overflow: visible !important;
  padding-top: 2rem; /* allow space inside carousel items */
}

/* Indicators on the carousel */
.features .carousel-indicators {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  margin: 0;
}

.features .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3b82f6;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.features .carousel-indicators .active {
  opacity: 1;
}

/* Each feature card styling */
.feature-card {
  width: 320px;
  height: 300px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 1rem;
}

.feature-card .card-body svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.feature-card .card-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1e40af;
  line-height: 1.3;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(35%) sepia(93%) saturate(468%) hue-rotate(190deg)
    brightness(93%) contrast(90%);
}

/* Prevent wrapping of cards on desktop slides */
@media (min-width: 768px) {
  #featuresCarouselDesktop .carousel-item .d-flex {
    flex-wrap: nowrap;
  }
  #featuresCarouselDesktop .carousel-item {
    overflow-x: auto;
  }
  #featuresCarouselDesktop .carousel-item::-webkit-scrollbar {
    display: none;
  }
  #featuresCarouselDesktop .carousel-item {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Move carousel arrows to the edge on mobile */
@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 12%; /* Increase clickable area */
  }

  .carousel-control-prev {
    left: -12px !important;
  }

  .carousel-control-next {
    right: -12px !important;
  }

  /* Optional: adjust the icon size for better visibility on small screens */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Landscape-mobile up to 900px: keep cards side-by-side */
@media (max-width: 900px) and (orientation: landscape) {
  /* Force no wrap and horizontal scroll if needed */
  #featuresCarouselDesktop .carousel-item .d-flex {
    flex-wrap: nowrap !important;
  }
  #featuresCarouselDesktop .carousel-item {
    overflow-x: auto !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 12%; /* Increase clickable area */
  }

  .carousel-control-prev {
    left: -40px !important;
  }

  .carousel-control-next {
    right: -40px !important;
  }

  /* Optional: adjust the icon size for better visibility on small screens */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}
