.hero-banner-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-banner-carousel-slides {
    border-radius: .5rem;
    overflow: hidden;
    min-height: 22.875rem;
    position: relative;
    width: 100%;
    display: flex;
}

.hero-banner-carousel .hero-banner-swiper {
    flex: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 22.875rem;
    margin: 0;
}

.hero-banner-carousel .swiper-wrapper {
    min-height: 22.875rem;
}

.hero-banner-carousel .swiper-slide {
    overflow: hidden;
}

.hero-banner-slide {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 22.875rem;
    background-color: var(--background, #f8f8f9);
}

.hero-banner-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner-slide-image img {
    display: block;
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
    box-sizing: border-box;
    overflow: hidden;
}

  .hero-banner-slide-content.hero-banner-position-bottom-left {
      left: 0;
      right: auto;
      align-items: flex-start;
      text-align: left;
      padding: 4rem 0rem 3rem 2rem;
  }

.hero-banner-slide-content.hero-banner-position-bottom-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.hero-banner-slide-content.hero-banner-position-bottom-right {
    left: auto;
    right: 0;
    align-items: flex-end;
    text-align: right;
}

.hero-banner-slide-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-black, #1a1a1a);
}

.hero-banner-slide-description {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray, #555);
}

.hero-banner-slide-cta {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    background: var(--sourcing-gradient, linear-gradient(135deg, #6e3df7, #ff4000));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.hero-banner-slide-cta:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* Navigation arrows */
.hero-banner-carousel .custom-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.hero-banner-carousel:hover .custom-swiper-button {
    opacity: 1;
}

.hero-banner-carousel .custom-swiper-button:hover {
    background: rgba(255, 255, 255, 1);
}

.hero-banner-carousel .custom-swiper-button-prev {
    left: 0.75rem;
}

.hero-banner-carousel .custom-swiper-button-next {
    right: 0.75rem;
}

.hero-banner-carousel .custom-swiper-button .s4d-icon {
    font-size: 0.875rem;
    color: var(--tertiary-color, #333);
}

/* Pagination dots - positioned below the banner */
.hero-banner-pagination-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 0;
    user-select: none;
    -webkit-user-select: none;
}

.hero-banner-pagination-wrapper .hero-banner-pagination,
.hero-banner-pagination-wrapper .hero-banner-mobile-pagination {
    position: static;
    display: flex;
    gap: 0.375rem;
    align-items: center;
    justify-content: center;
}

.hero-banner-pagination-wrapper .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--border-light-grey, #d3daf3);
    opacity: 1;
    transition: background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
    border-radius: 1rem;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.hero-banner-pagination-wrapper .swiper-pagination-bullet-active {
    background: var(--purple, #6e3df7);
    width: 2rem;
    height: 0.625rem;
}

/* Mobile responsiveness */
.s4d-mobile .hero-banner-carousel {
    padding: 0;
    margin-top: 0.5rem;
    overflow: visible;
}

.s4d-mobile .hero-banner-carousel-slides {
    border-radius: 0;
    min-height: auto;
    overflow: visible;
    background: var(--white, #fff);
    box-shadow: none;
}

.s4d-mobile .hero-banner-carousel .hero-banner-swiper {
    min-height: auto;
    height: auto;
    box-shadow: 0 0.5rem 1.5rem 0 rgba(36, 21, 80, 0.08);
}

.s4d-mobile .hero-banner-carousel .swiper-wrapper {
    min-height: auto;
}

.s4d-mobile .hero-banner-carousel .swiper-slide {
    overflow: visible;
    height: auto;
}

.s4d-mobile .hero-banner-slide {
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: hidden;
    background-color: var(--white, #fff);
}

.s4d-mobile .hero-banner-slide-image {
    position: relative;
    width: 100%;
    height: auto;
}

.s4d-mobile .hero-banner-slide-image img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

/* Mobile: always stacked card layout */
.s4d-mobile .hero-banner-slide-content {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-width: none;
    padding: 1rem 1.25rem 1.5rem;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.s4d-mobile .hero-banner-slide-title {
    font-size: 1.25rem;
}

.s4d-mobile .hero-banner-slide-description {
    margin: 0.5rem 0;
    font-size: 0.75rem;
}

.s4d-mobile .hero-banner-slide-cta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
}

.s4d-mobile .hero-banner-carousel .custom-swiper-button.custom-swiper-button-prev,
.s4d-mobile .hero-banner-carousel .custom-swiper-button.custom-swiper-button-next {
    display: none;
}

.s4d-mobile .hero-banner-pagination-wrapper {
    padding: 0.75rem 0 0.25rem;
}

/* Media query fallback for mobile - ensures layout works before JS applies .s4d-mobile */
@media (max-width: 57rem) {
    .hero-banner-carousel {
        padding: 0;
        margin-top: 0.5rem;
        overflow: visible;
    }

    .hero-banner-carousel-slides {
        border-radius: 0;
        min-height: auto;
        overflow: visible;
        background: var(--white, #fff);
        box-shadow: none;
    }

    .hero-banner-carousel .hero-banner-swiper {
        min-height: auto;
        height: auto;
    }

    .hero-banner-carousel .swiper-wrapper {
        min-height: auto;
    }

    .hero-banner-carousel .swiper-slide {
        overflow: visible;
        height: auto;
    }

    .hero-banner-slide {
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow: hidden;
        background-color: var(--white, #fff);
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1.5rem 0 rgba(36, 21, 80, 0.08);
    }

    .hero-banner-slide-image {
        position: relative;
        width: 100%;
        height: auto;
    }

    .hero-banner-slide-image img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0;
    }

    .hero-banner-slide-content {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: auto;
        max-width: none;
        padding: 1rem 1.25rem 1.5rem;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-banner-slide-title {
        font-size: 1.25rem;
    }

    .hero-banner-slide-description {
        margin: 0.5rem 0;
        font-size: 0.75rem;
    }

    .hero-banner-slide-cta {
        margin-top: 0.5rem;
        font-size: 0.8125rem;
        padding: 0.5rem 1.25rem;
    }

    .hero-banner-carousel .custom-swiper-button.custom-swiper-button-prev,
    .hero-banner-carousel .custom-swiper-button.custom-swiper-button-next {
        display: none;
    }

    .hero-banner-pagination-wrapper {
        padding: 0.75rem 0 0.25rem;
    }
}
