﻿/* ===== SLIDER ===== */
.slider {
    width: 100%;
    height: 300px;  
    overflow: hidden;
    position: relative;
    background: #f5f7fa;
    aspect-ratio: 16/5;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.10s ease-in-out;
}

    .slides img {
        width: 100%;
        height: 100%;
        min-width: 100%;
        flex-shrink: 0;
     🔥 CHANGE THIS: 'cover' prevents stretching by cropping slightly instead 
    object-fit: cover;
     🔥 OPTIONAL: Keeps the most important part of the banner (the text/logos) centered 
    object-position: center;
        background: #ffffff;
    }
    /* Navigation buttons */
    .slider .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    font-size: 26px;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.slider .prev {
    left: 10px;
}

.slider .next {
    right: 10px;
}
.slider-divider {
    width: 100%;
    height: 5px;
    background: #c4161c;
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}
/*Scroll*/
.scroll-banner {
    background: linear-gradient(90deg, #c4161c, #a81218);
    color: #fff;
    overflow: hidden;
    padding: 10px 0;
    font-size: 14.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.scroll-track {
    display: flex;
    width: max-content;
    animation: scroll-left 35s linear infinite;
}

.scroll-content {
    white-space: nowrap;
    padding-right: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.divider {
    color: #ffd6d6;
    font-size: 14px;
}

/* Highlight CTA link */
.scroll-link {
    background: #ffffff;
    color: #c4161c;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}

    .scroll-link:hover {
        background: #ffd6d6;
        color: #7a0f12;
    }

/* Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .slider {
        height: auto;
    }

    .slides img {
        height: auto;
    }

    .scroll-banner {
        font-size: 13px;
        padding: 8px 0;
    }

    .scroll-link {
        padding: 4px 12px;
        font-size: 13px;
    }
}
