/* Sticky Partners Banner */
.partners-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-orange);
    border-radius: 50px;
    /* Pill shape */
    padding: 10px 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out forwards;
    max-width: 90%;
    width: auto;
}

.partners-banner.hidden {
    display: none !important;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.banner-label:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
}

.banner-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.banner-logos a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Dynamic Shine Effect */
.banner-logos a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    transition: left 0.6s ease-in-out;
    z-index: 3;
    pointer-events: none;
}

.banner-logos a:hover::after {
    left: 150%;
}

.banner-logos a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-turquoise);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.banner-logos img {
    height: 50px;
    /* Adjusted slightly to fit the container padding */
    width: auto;
    filter: grayscale(0%) brightness(1.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.banner-logos img:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.banner-logos .separator {
    color: var(--accent-orange);
    font-weight: bold;
}

.close-banner {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0 5px;
}

.close-banner:hover {
    color: var(--accent-red);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Light Theme Adjustments */
body.light-theme .partners-banner {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .banner-logos img {
    filter: grayscale(0%) brightness(1);
    /* Original colors */
}

body.light-theme .banner-logos a {
    background: rgba(0, 0, 0, 0.15);
    /* Darker background for visibility */
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .banner-logos a:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .partners-banner {
        bottom: 50px;
        /* Adjusted to 50px */
        padding: 10px 45px 10px 20px;
        border-radius: 50px;
        width: auto;
        max-width: 95%;
        justify-content: center;
        gap: 20px;
    }

    .banner-content {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }

    .banner-label {
        font-size: 0.65rem;
        opacity: 0.8;
        font-weight: 800;
        white-space: normal;
        /* Allow wrapping */
        word-spacing: 100vw;
        /* Force break after each word */
        line-height: 1.1;
        text-align: center;
        min-width: 45px;
    }

    .banner-logos {
        gap: 12px;
    }

    .banner-logos a {
        padding: 8px 15px;
        border-radius: 10px;
    }

    .banner-logos img {
        height: 35px;
    }

    .banner-logos .separator {
        display: none;
    }

    .close-banner {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        padding: 5px;
    }
}

/* Specific fix for Very Small Devices (Portrait Phone) */
@media (max-width: 480px) {
    .partners-banner {
        padding: 8px 45px 8px 15px;
        gap: 15px;
    }

    .banner-content {
        gap: 12px;
    }

    .banner-label {
        font-size: 0.6rem;
        min-width: 40px;
    }

    .banner-logos {
        gap: 10px;
    }

    .banner-logos a {
        padding: 5px 10px;
    }

    .banner-logos img {
        height: 38px;
        /* Larger logos since we have more horizontal space */
    }

    .close-banner {
        right: 12px;
    }
}