
/* =========================================
   PAST SPONSORS - SINGLE LOGO SLIDER
========================================= */

.past-sponsors-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 35px auto;
    padding: 25px 55px 50px;
    overflow: hidden;
    box-sizing: border-box;
}

.past-sponsors-track {
    display: flex;
    align-items: center;
    gap: 35px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.past-sponsors-track .past-sponsor-logo {
    flex: 0 0 calc((100% - 70px) / 3);
    min-width: 0;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.past-sponsors-track .past-sponsor-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.past-sponsors-track .past-sponsor-logo img:hover {
    transform: scale(1.07);
}

/* Navigation arrows */

.past-sponsors-arrow {
    position: absolute;
    top: 43%;
    z-index: 5;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #243b60;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.13);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.past-sponsors-arrow:hover {
    background: #243b60;
    color: #ffffff;
}

.past-sponsors-prev {
    left: 5px;
}

.past-sponsors-next {
    right: 5px;
}

.past-sponsors-arrow:focus-visible,
.past-sponsors-dot:focus-visible {
    outline: 2px solid #243b60;
    outline-offset: 3px;
}

/* Navigation dots */

.past-sponsors-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.past-sponsors-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.past-sponsors-dot.active {
    width: 24px;
    background: #243b60;
}

/* Tablet */

@media (max-width: 991px) {
    .past-sponsors-slider {
        padding-left: 45px;
        padding-right: 45px;
    }

    .past-sponsors-track {
        gap: 25px;
    }

    .past-sponsors-track .past-sponsor-logo {
        flex-basis: calc((100% - 25px) / 2);
        height: 120px;
    }

    .past-sponsors-track .past-sponsor-logo img {
        max-height: 85px;
    }
}

/* Mobile */

@media (max-width: 575px) {
    .past-sponsors-slider {
        margin: 20px auto;
        padding: 15px 38px 45px;
    }

    .past-sponsors-track {
        gap: 15px;
    }

    .past-sponsors-track .past-sponsor-logo {
        flex-basis: 100%;
        height: 110px;
    }

    .past-sponsors-track .past-sponsor-logo img {
        max-height: 80px;
        max-width: 90%;
    }

    .past-sponsors-arrow {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .past-sponsors-prev {
        left: 2px;
    }

    .past-sponsors-next {
        right: 2px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .past-sponsors-track,
    .past-sponsors-track .past-sponsor-logo img {
        transition: none;
    }
}