.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: 0;
    background: #fff;
    overflow: hidden;
}

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

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

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

.slide {
    /* height: 100px; */
    width: 250px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slide img:hover {
    transform: scale(1.1);
}

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

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

/* Responsive adjustments */

@media (max-width: 768px) {
    .slide {
        width: 180px;
    }
    .slide-track,
    .slide-track-ltr,
    .slide-track-rtl {
        width: calc(180px * 24);
    }
    @keyframes scroll-ltr {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 12))
        }
    }
    @keyframes scroll-rtl {
        0% {
            transform: translateX(calc(-180px * 12));
        }
        100% {
            transform: translateX(0);
        }
    }
}

.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;
}

/* Why Choose Interlace UK Ltd Section */

.why-choose-section {
    padding: 40px 0;
}

.feature-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.bg-light-blue {
    background-color: #F0F5FF;
}

.bg-light-orange {
    background-color: #FFF8F0;
}

/* 5 Column Grid Layout */

.five-cols .col-md-2-4 {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 768px) {
    .five-cols .col-md-2-4 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Success Stories Section */

.success-stories-section {
    padding-bottom: 40px;
}

/* Success Story Card Updates */

.story-card {
    width: 100%;
    height: auto !important;
    aspect-ratio: 298 / 360;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.object-fit-cover {
    object-fit: cover;
}

.story-footer-glass {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.story-card:hover .story-footer-glass {
    background: rgba(31, 43, 91, 0.8);
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    text-decoration: none;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #fff;
}

.uni-icon {
    background-color: #4F46E5 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Featured Destinations Section */

.featured-destinations-section {
    padding-bottom: 40px;
}

.destination-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* App Download Section */

.app-feature-line {
    width: 2px;
    background: #FF9F00;
    left: 11px;
    top: 12px;
    /* Start from center of first icon */
    height: calc(100% - 24px);
    /* Stop before the end? Or just 100%? Let's try to make it fit better */
    height: 100%;
    z-index: 0;
}

.app-feature-icon {
    width: 24px;
    height: 24px;
    left: -13px;
    background-color: #FF9F00 !important;
    /* Solid Orange */
    border: 2px solid #FF9F00;
    z-index: 1;
    color: #fff;
}

.app-image-bg {
    width: 80%;
    padding-bottom: 80%;
    background: #FF9F00;
    opacity: 0.1;
    z-index: -1;
}

.text-dark-blue {
    color: #170F49;
}

/* Services Section */

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.service-card:hover img {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* How It Works Section */

.step-number {
    font-size: 80px;
    font-weight: bold;
    color: #708090;
    line-height: 1;
}

.step-card {
    border: 1px solid #F0F0F0;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
}

.step-icon {
    width: 40px;
    height: 40px;
}

.bg-light-blue {
    background-color: #E6F0FF;
}

.bg-light-orange {
    background-color: #FFF4ED;
}

/* Student Opportunities Section */

.opportunity-card {
    height: 350px;
    transition: transform 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
}

.opportunity-card-new {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.opportunity-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.opportunity-image-container {
    height: auto;
    overflow: hidden;
}

.opportunity-image-container img {
    transition: transform 0.3s ease;
}

.opportunity-card-new:hover .opportunity-image-container img {
    transform: scale(1.05);
}

.opportunity-footer {
    min-height: 100px;
}

.destination-content {
    border-bottom: 1px solid #f0f0f0;
}

/* Testimonials Section */

.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.review-avatar {
    background-color: #4F46E5 !important;
}

.text-light-blue {
    color: #E6F0FF;
}

/* Review Navigation Arrows */

#prev-reviews,
#next-reviews {
    transition: all 0.3s ease;
    border: none;
}

#prev-reviews:hover,
#next-reviews:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#prev-reviews:active,
#next-reviews:active {
    transform: translateY(-50%) scale(0.95);
}

.destination-image {
    overflow: hidden;
}

.destination-image img {
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.05);
}

/* Join Section */

.join-card {
    transition: transform 0.3s ease;
}

.join-card:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Slider CSS */

.carousel {
    --size: 302px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: var(--size);
    perspective: calc(var(--size) * 5.55);
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.25s linear;
    z-index: 10;
}

.carousel.ready {
    opacity: 1;
}

#carousel .slide {
    position: absolute;
    width: 222px;
    height: var(--size);
    border-radius: 16px;
    overflow: hidden;
    padding: 0 !important;
    display: block !important;
}

#carousel .slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center;
    filter: none !important;
    padding: 0 !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* Mobile Slider for Opportunities Section */

@media (max-width: 767px) {
    .mobile-slider-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
        /* Reset row margins to prevent scroll issues */
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
    }
    .mobile-slider-row::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Webkit */
    }
    .mobile-slider-row>div {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center;
        /* Ensure gutter interactions don't break layout */
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Glassy close button for popup announcement modal */

.popup-close-btn {
    background-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    padding: 4px !important;
    background-size: 0.75em auto !important;
    opacity: 0.9 !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    transform: scale(1.08) rotate(90deg) !important;
}
