/* ==========================================================================
   Customer Stories Page - Infinite Gallery Banner Carousel & Grid Styles
   SS Healing Rays
   ========================================================================== */

.stories-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0b0b1a;
}

/* 1. Infinite Carousel Wrapper & Track */
.stories-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.stories-carousel-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: max-content;
    gap: 0 !important;
    margin: 0;
    padding: 0;
    animation: storiesBannerTicker 65s linear infinite;
    will-change: transform;
}

.stories-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes storiesBannerTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* 2. Slide Item & Image: Same Height, Strictly Zero Gap */
.stories-carousel-slide {
    flex: 0 0 auto;
    height: 400px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.stories-carousel-img {
    height: 100%;
    width: auto;
    min-width: 280px;
    max-width: 600px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stories-carousel-slide:hover .stories-carousel-img {
    transform: scale(1.04);
}

/* 4. Banner Centered Content */
.stories-banner-content-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.stories-banner-content-wrap a,
.stories-banner-content-wrap button {
    pointer-events: auto;
}

/* Breadcrumb */
.stories-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    transition: color 0.25s ease;
}

.stories-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
}

.stories-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.stories-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* Title & Subtitle */
.stories-banner-title {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(2.3rem, 4.5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.22;
    color: #ffffff;
    letter-spacing: -0.015em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.stories-banner-title em {
    font-family: var(--brand-font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 600;
    color: #ff9bbb;
}

.stories-banner-subtitle {
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 740px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .stories-carousel-slide {
        height: 380px;
    }
    .stories-carousel-img {
        min-width: 250px;
    }
}

@media (max-width: 767.98px) {
    .stories-carousel-slide {
        height: 300px;
    }
    .stories-carousel-img {
        min-width: 200px;
    }
}

/* Stories Page Bento Grid Overrides */
.stories-page-grid {
    grid-auto-rows: minmax(440px, auto);
}

@media (max-width: 991.98px) {
    .stories-page-grid {
        grid-auto-rows: auto;
    }
}

/* Stories Call-To-Action Card at Bottom */
.stories-bottom-cta {
    background: #faf5f8;
    border: 1px solid rgba(186, 67, 108, 0.18);
    border-radius: 28px;
    padding: 3.5rem 2rem;
    margin-top: 4.5rem;
    text-align: center;
}

.stories-bottom-cta-heading {
    font-family: var(--brand-font-marcellus, 'Marcellus', Georgia, serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--heading-color, #111133);
    margin-bottom: 0.75rem;
}

.stories-bottom-cta-heading em {
    font-family: var(--brand-font-serif, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-weight: 600;
    color: var(--secondary-color, #ba436c);
}

.stories-bottom-cta-desc {
    font-family: var(--brand-font-sans, 'Lato', system-ui, sans-serif);
    font-size: 1.05rem;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}
