.success-stories-section {
    /* min-height: 80vh; */
    text-align: center;
    padding: 60px 5%;
    background-color: #e8e6e6;
    position: relative;
    margin-bottom: 0px;
    overflow: hidden;
    box-shadow: 0px -8px 12px rgba(0, 0, 0, 0.06); 
}

.success-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    color: #004aad;
    font-size: 50px;
    margin-bottom: 20px;
}

.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.success-wrapper {
    width: 85%;
    overflow: hidden;
    position: relative;
}

.success-track {
    display: flex;
    gap: 60px;
    width: max-content; 
    animation: scrollStories 20s linear infinite;
}

.story {
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    background: white;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.story img {
    width: 100%;
    height: auto;
    border-radius: 0px;
}

.story:hover {
    transform: scale(1.06);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.success-scroll-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
    z-index: 10;
}

.left-success-btn {
    left: 0px;
}

.right-success-btn {
    right: 0px;
}

.success-scroll-btn:hover {
    color: #004aad;
}

@keyframes scrollStories {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.success-wrapper:hover .success-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .success-title {
        font-size: 2rem;
    }

    .success-wrapper {
        animation-duration: 35s;
        gap: 30px;
    }

    .story {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .story {
        width: 180px;
    }

    .success-title {
        font-size: 1.6rem;
    }
}
