/* Sponsors Section - White Background Design */
.sponsors {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    padding: 60px 0 0 0;
}

.sponsors-container {
    margin: 0 auto;
    padding: 0 40px;
}

.sponsors-content {
    display: grid;
    grid-template-columns: 0.7fr 2fr;
    gap: 0;
    align-items: center;
}

/* Left side - Company logos carousel */
.sponsors-logos {
    position: relative;
    overflow: hidden;
}

/* Fade effect at the start and end of carousel */
.sponsors-logos::before,
.sponsors-logos::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.sponsors-logos::before {
    left: 0;
    background: linear-gradient(to right,
            #f5f5f5 0%,
            rgba(245, 245, 245, 0.95) 20%,
            rgba(245, 245, 245, 0.7) 50%,
            rgba(245, 245, 245, 0.3) 80%,
            rgba(245, 245, 245, 0) 100%);
}

.sponsors-logos::after {
    right: 0;
    background: linear-gradient(to left,
            #f5f5f5 0%,
            rgba(245, 245, 245, 0.95) 20%,
            rgba(245, 245, 245, 0.7) 50%,
            rgba(245, 245, 245, 0.3) 80%,
            rgba(245, 245, 245, 0) 100%);
}

/* Carousel container */
.sponsors-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: sponsorScroll 40s linear infinite;
    width: fit-content;
}

.sponsor-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 200px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); */
}

.sponsor-logo {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Right side - Trust text */
.sponsors-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.sponsors-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #292e32;
    font-size: 30px;
    letter-spacing: 0.36px;
    line-height: 46px;
}

.highlight-number {
    color: #5e0da3;
    font-weight: 800;
}

.sponsors-description {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #666666;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.18px;
}

/* Carousel Animation */
@keyframes sponsorScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sponsors-content {
        gap: 60px;
    }

    .sponsors-grid {
        gap: 30px;
        animation-duration: 32s;
    }

    .sponsor-item {
        height: 70px;
        min-width: 180px;
        padding: 15px;
    }

    .sponsor-logo {
        max-width: 100px;
        max-height: 35px;
    }
}

@media (max-width: 768px) {
    .sponsors {
        padding: 60px 0 0 0;
    }

    .sponsors-container {
        padding: 0 20px;
    }

    .sponsors-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .sponsors-grid {
        gap: 20px;
        animation-duration: 30s;
    }

    .sponsors-title {
        font-size: 28px;
        line-height: 38px;
    }

    .sponsors-description {
        font-size: 16px;
        line-height: 26px;
    }

    .sponsor-item {
        height: 75px;
        min-width: 150px;
        padding: 12px;
    }

    .sponsor-logo {
        max-width: 90px;
        max-height: 30px;
    }

    .sponsors-logos::before,
    .sponsors-logos::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .sponsors-container {
        padding: 0 16px;
    }

    .sponsors-content {
        gap: 30px;
    }

    .sponsors-grid {
        gap: 16px;
        animation-duration: 28s;
    }

    .sponsors-title {
        font-size: 24px;
        line-height: 32px;
    }

    .sponsors-description {
        font-size: 14px;
        line-height: 22px;
    }

    /* .sponsor-item {
        height: 50px;
        min-width: 120px;
        padding: 10px;
    } */

    .sponsor-logo {
        max-width: 80px;
        max-height: 25px;
    }

    .sponsors-logos::before,
    .sponsors-logos::after {
        width: 30px;
    }
}

/* Animation Classes for entrance effects */
.sponsors-logos,
.sponsors-text {
    opacity: 1;
    transform: translateY(0);
}

.sponsors-fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.sponsors-fade-in-right {
    animation: fadeInRight 0.8s ease 0.3s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Staggered animation for individual sponsor items */
.sponsor-item {
    opacity: 1;
    transform: translateY(0);
}

.sponsor-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.sponsor-item.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.sponsor-item.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.sponsor-item.animate:nth-child(3) {
    animation-delay: 0.3s;
}

.sponsor-item.animate:nth-child(4) {
    animation-delay: 0.4s;
}

.sponsor-item.animate:nth-child(5) {
    animation-delay: 0.5s;
}

.sponsor-item.animate:nth-child(6) {
    animation-delay: 0.6s;
}

.sponsor-item.animate:nth-child(7) {
    animation-delay: 0.7s;
}

.sponsor-item.animate:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}