.gradient-button {
    position: relative;
    background: linear-gradient(45deg, #20356d, #2f4f7f);
    color: #fff;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f37124, #ff8c4d);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gradient-button:hover::before {
    opacity: 1;
}

.ai-button {
    background: linear-gradient(45deg, #20356d, #2f4f7f) !important;
}

.apply-button {
    background: transparent !important;
    border: 2px solid #20356d !important;
    color: #20356d !important;
}

.apply-button:hover {
    border-color: #f37124 !important;
    color: #fff !important;
}

.powered-ai-button {
    font-size: 10px !important;
    opacity: 0.8;
}

.logo-slider-container {
    padding: 20px 0;
    background: #fff;
    overflow: hidden;
}

.slider {
    height: 120px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(200px * 24); /* Adjust based on number of slides */
}

.slide {
    height: 100px;
    width: 200px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 12))}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        width: 150px;
    }
    .slide-track {
        width: calc(150px * 24);
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 12))}
    }
}

.video-slider-container {
    padding: 20px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.video-slider {
    height: auto;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.video-track {
    animation: videoScroll 60s linear infinite;
    display: flex;
    width: calc(400px * {{ $ielts_videos->count() * 2 }});
}

.video-slide {
    width: 400px;
    padding: 0 15px;
    flex-shrink: 0;
}

.video-slide .card {
    transition: all 0.3s ease;
    height: 100%;
}

.video-slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.video-slide .card-img-top {
    height: 200px;
    object-fit: cover;
}

@keyframes videoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * {{ $ielts_videos->count() }}))}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-slide {
        width: 300px;
    }
    .video-track {
        width: calc(300px * {{ $ielts_videos->count() * 2 }});
    }
    .video-slide .card-img-top {
        height: 150px;
    }
    @keyframes videoScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * {{ $ielts_videos->count() }}))}
    }
}

/* Pause animation on hover */
.video-slider-container:hover .video-track {
    animation-play-state: paused;
}

.testimonial-slider-container {
    padding: 20px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.testimonial-slider {
    height: auto;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonial-track {
    animation: testimonialScroll 80s linear infinite;
    display: flex;
    width: calc(400px * {{ count($feedbacks->flatten()) * 2 }});
}

.testimonial-slide {
    width: 400px;
    padding: 0 15px;
    flex-shrink: 0;
}

.testimonial-slide .card {
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-slide .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * {{ count($feedbacks->flatten()) }}))}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-slide {
        width: 300px;
    }
    .testimonial-track {
        width: calc(300px * {{ count($feedbacks->flatten()) * 2 }});
    }
    @keyframes testimonialScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * {{ count($feedbacks->flatten()) }}))}
    }
}

/* Pause animation on hover */
.testimonial-slider-container:hover .testimonial-track {
    animation-play-state: paused;
}