.overlay {
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-color: rgba(0, 0, 0, 0.4); /* Black with 40% opacity */
  z-index: 1;
  border-radius: inherit;
}

.carousel-container {
      overflow: hidden;
      position: relative;
    }

    .carousel-track {
      display: flex;
      gap: 1rem;
      transition: transform 0.5s ease-in-out;
      will-change: transform;
      padding-right: 1rem; /* ensures last item has space */
    }

    .carousel-item-wrapper {
      flex: 0 0 100%;
      max-width: 100%;
    }

    .carousel-item-wrapper a {
        color: #fff;
    }
        .carousel-item-wrapper a:hover {
        color: #FF5733;
    }

    @media (min-width: 768px) {
      .carousel-item-wrapper {
        flex: 0 0 50%;
        max-width: 50%;
      }
    }

    @media (min-width: 1200px) {
      .carousel-item-wrapper {
        flex: 0 0 25%;
        max-width: 25%;
      }
    }

    .carousel-item-custom {
      height: 280px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 12px;
      position: relative;
      overflow: hidden;
    }

    .carousel-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 15px;
      z-index: 10;
      pointer-events: none;
    }

    .carousel-controls .btn-orange-circle {
      pointer-events: all;
    }

    .btn-orange-circle {
      background-color: #FF5733;
      color: #0b101f;
      border: 1px solid #0b101f;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      font-size: 1.5rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s, color 0.3s;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .btn-orange-circle:hover {
      background-color: darkorange;
      color: #ffffff;
    border: 1px solid #ffffff;

    }


    .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
  z-index: 0;
}

/* Zoom effect */
.carousel-item-custom:hover .bg-image {
  transform: scale(1.1); /* zoom in */
}