.success-stories-section .stories-slider-wrapper {
    position: relative;
    z-index: 2;
}

.success-stories-section .section-title-wrapper {
    position: relative;
    z-index: 2;
}

/* Success Stories Section */
.success-stories-section {
    background: var(--rp-background);
    padding: 80px 20px 200px;
    position: relative;
    overflow: hidden;
}

.success-stories-container {
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
    text-align: left;
    position: relative;
}

.heading-icon {
    position: absolute;
    top: -80px;
    left: 294px;
    transform: translateX(-50%) rotate(15deg);
    width: 180px;
    height: auto;
    z-index: 0;
    transition: transform 0.1s ease-out;
    will-change: transform;
    pointer-events: none;
}

.icon-parallax {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-title {
    color: var(--rp-headlines);
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--rp-dark-grey);
    font-size: var(--paragraph-lg-size);
    /* max-width: 700px; */
    font-weight: var(--weight-regular);
    line-height: var(--paragraph-lg-line);
    margin-bottom: 0px;
}

/* Bootstrap Carousel Wrapper */
.stories-carousel-wrapper {
    position: relative;
    padding-bottom: 80px;
    margin-bottom: 60px;
}

#storiesCarousel {
    overflow: visible;
}

.carousel-inner {
    overflow: visible;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Stories Row - Display Multiple Cards */
.stories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 15px;
}

/* Story Card Wrapper */
.story-card-wrapper {
    display: flex;
    justify-content: center;
}

/* Story Card - Fixed Dimensions */
.story-card {
    background: var(--rp-headlines);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Story Image */
.story-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 24px 24px 129px 0px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.company-badge {
    position: absolute;
    top: 20px;
    left: 0px;
    background: var(--rp-pale-cyan);
    padding: 8px 16px;
    border-radius: 0px 20px 20px 0px;
    backdrop-filter: blur(10px);
}

.company-badge span {
    color: var(--rp-headlines);
    font-size: var(--paragraph-md-size);
    font-weight: var(--weight-bold);
}

/* Story Content */
.story-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Story Stats */
.story-stats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.stat-item {
    flex: 1;
    min-width: 80px;
    padding: 0px 12px;
    border-right: 1px solid var(--rp-pale-cyan);
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-number {
    color: var(--rp-white);
    font-size: var(--heading-md-size);
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    margin-bottom: 5px;
    line-height: 1.2;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.stat-number span {
    font-size: var(--percentage-lg);
    font-weight: var(--weight-regular);
}

.stat-label {
    color: var(--rp-white);
    font-size: var(--paragraph-sm-size);
    line-height: 1.4;
}

/* Story Description */
.story-description {
    color: var(--rp-white);
    font-size: var(--paragraph-md-size);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Story Button */
.story-btn {
    background: var(--rp-bright-red);
    color: var(--rp-white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: var(--weight-bold);
    font-size: var(--paragraph-sm-size);
    display: inline-block;
    align-self: flex-start;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: auto;
}

.story-btn:hover {
    background: var(--rp-dark-red);
    transform: translateX(5px);
}

/* Custom Navigation Arrows */
.stories-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.stories-nav button {
    border-radius: 0px !important;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute !important;
    width: 50px;
    height: 50px;
    background: var(--rp-logo-black) !important;
    border: none;
    border-radius: 0px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: auto;
    bottom: auto;
}

.carousel-control-prev {
    left: auto;
    right: 70px;
}

.carousel-control-next {
    right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--rp-charcoal) !important;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: var(--rp-white);
    font-size: 20px;
    position: relative !important;
    left: 0 !important;
}

.carousel-control-prev::before,
.carousel-control-next::before {
    display: none;
}

/* Section CTA */
.success-stories-section .section-cta {
    text-align: center;
    margin-top: 60px;
}

.success-stories-section .cta-button {
    background: var(--rp-bright-red);
    color: var(--rp-white);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: var(--weight-bold);
    font-size: var(--paragraph-lg-size);
    display: inline-block;
    transition: all 0.3s ease;
}

.success-stories-section .cta-button:hover {
    background: var(--rp-dark-red);
    transform: scale(1.05);
}

/* Marquee Background */
.marquee-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    display: flex;
    overflow: hidden;
    opacity: 1;
    z-index: 1;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee 60s linear infinite !important;
    white-space: nowrap;
}

.marquee-icon {
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
/* Growth Marquee */
.growth-scroll-wrapper {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
}

.growth-scroll-track {
    display: flex;  /* Changed from inline-flex to flex */
    gap: 0;         /* Changed from 40px to 0 - no gaps */
    will-change: transform;
}

.growth-icon {
    width: 1320px;
    height: auto;
    display: block;  /* Add this to remove inline spacing */
}



@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.no-stories {
    text-align: center;
    padding: 40px;
    font-size: var(--paragraph-lg-size);
    color: var(--rp-dark-grey);
}

/* Responsive */
@media (max-width: 1200px) {
    .stories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .story-card {
        min-height: 480px;
    }

    .stories-nav {
        right: 0;
        transform: translateX(-50%);
    }
    
    .carousel-control-prev {
        left: auto;
        right: 70px;
    }
    
    .stories-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: var(--heading-sm-line);
    }
}

@media (max-width: 990px) {
    .stories-nav {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 30px;
        gap: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .success-stories-section {
        padding: 60px 0px 150px;
        overflow: hidden;
    }
    
    .stories-carousel-wrapper {
        overflow: hidden;
    }
    
    .carousel-inner {
        overflow: hidden;
    }
    
    .stories-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .story-card {
        min-height: 550px;
        max-width: 100%;
    }
    
    .section-title {
        font-size: var(--heading-mobile-lg-size);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: var(--paragraph-md-size);
    }
    
    .heading-icon {
        width: 60px;
        height: 60px;
        top: -20px;
    }
    
    .story-image {
        height: 200px;
    }
    
    .story-content {
        padding: 25px;
        overflow-y: visible;
    }
    
    .marquee-background {
        height: 80px;
    }
    
    .marquee-icon {
        height: 60px;
    }
    
    .stories-nav {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 30px;
        gap: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-control-prev {
        right: 70px;
        left: auto;
    }
    
    .carousel-control-next {
        right: 0;
    }

    .stat-number {
        font-size: var(--heading-sm-line);
    }

    .stat-number span {
        font-size: 24px;
    }

    .growth-scroll-wrapper{
        bottom: 0px;
    }
}

@media (max-width: 576px) {
    
    .story-card {
        min-height: 500px;
    }
    
    .story-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 60px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        right: 55px;
    }

    .stories-nav {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 30px;
        gap: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}


  /* the slides */
 .success-stories-container .slick-slide {
    margin: 0 15px;
    height: auto !important;
  }

  /* the parent */
  .success-stories-container .slick-list {
      margin: 0 -15px;
  } 

  /* Slick Track - Enable flexbox for equal heights */
.success-stories-container .slick-track {
    display: flex !important;
    align-items: stretch !important;
    overflow: visible;
}

/* Story Slide - Full height */
.story-slide {
    padding: 0;
    height: 100% !important;
    display: flex !important;
}

 .success-stories-container .slick-slider .slick-list,  .success-stories-container .slick-slider .slick-track {
    overflow: visible;
}
