/* Sliding Buttons Section Styles */


.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Carousel Base Styles */
.carousel-wrapper {
    width: 100vw; /* Full viewport width */
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%); /* Center while allowing overflow */
}

/* Updated Carousel Track */
.carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
    padding: 15px 0;
    /* Add these to ensure full coverage: */
    padding-left: 100vw; /* Extra space on left */
    margin-left: -100vw; /* Pull back to cover */
}

.carousel-btn {
    flex: 0 0 auto;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: rgb(17, 2, 2);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #5a7df4, #9b59e0);
}

/* Animation Styles */
.ltr {
    animation: scrollLeft 40s linear infinite;
}

.rtl {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause on Hover */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sliding-buttons-section {
        padding: 40px 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .carousel-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        margin-bottom: 30px;
    }
    
    .carousel-btn {
        padding: 8px 20px;
        margin: 0 8px;
    }
    
    @media (max-width: 768px) {
    @keyframes scrollLeft {
        100% {
            transform: translateX(calc(-100% + 100vw));
        }
    }
    
    @keyframes scrollRight {
        0% {
            transform: translateX(calc(-100% + 100vw));
        }
    }
    
    .carousel-track {
        padding-left: 50vw;
        margin-left: -50vw;
    }
}
}