/*=============== SPONSORS SECTION (INDEX) ===============*/
/* Save as: static/styles/home/sponsors_index.css
   Include on index.html next to your other home stylesheets:
   <link rel="stylesheet" href="{{ url_for('static',filename='styles/home/sponsors_index.css', v='1.20260121') }}">
*/

.sponsors-section {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.sponsors_h2 {
    font-weight: 900;
    font-size: 5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    word-break: break-word;
    overflow-wrap: break-word;
}

.sponsors_h2 span {
    color: rgb(199, 15, 15);
}

/* One block per tier (Gold, Silver, Bronze, Partners, Collaborators) */
.sponsors-tier {
    margin-bottom: 3.5rem;
}

.sponsors-tier:last-child {
    margin-bottom: 0;
}

.sponsors-tier-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgb(199, 15, 15);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.75rem;
    position: relative;
}

.sponsors-tier-label::before,
.sponsors-tier-label::after {
    content: "—";
    color: #555;
    margin: 0 0.75rem;
}

.sponsors-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
}

/* Individual logo card */
.sponsor-logo-box {
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
}

.sponsor-logo-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.sponsor-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Optional caption under a logo (used for the mixed Partners row) */
.sponsor-logo-caption {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #aaa;
}

.sponsor-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*=============== TIER SIZING (importance hierarchy) ===============*/
.tier-gold .sponsor-logo-box {
    width: 280px;
    height: 160px;
    border: 2px solid rgb(199, 15, 15);
}

.tier-silver .sponsor-logo-box {
    width: 210px;
    height: 125px;
}

.tier-bronze .sponsor-logo-box {
    width: 165px;
    height: 100px;
}

.tier-partner .sponsor-logo-box {
    width: 135px;
    height: 85px;
}

.tier-collaborator .sponsor-logo-box {
    width: 105px;
    height: 68px;
}

/*=============== RESPONSIVE ===============*/
@media screen and (max-width: 768px) {
    .sponsors-section {
        padding: 3rem 1rem;
    }

    .sponsors_h2 {
        font-size: 3rem !important;
    }

    .sponsors-logos-row {
        gap: 1.25rem;
    }

    .tier-gold .sponsor-logo-box {
        width: 200px;
        height: 115px;
    }

    .tier-silver .sponsor-logo-box {
        width: 150px;
        height: 90px;
    }

    .tier-bronze .sponsor-logo-box {
        width: 120px;
        height: 75px;
    }

    .tier-partner .sponsor-logo-box {
        width: 100px;
        height: 65px;
    }

    .tier-collaborator .sponsor-logo-box {
        width: 82px;
        height: 55px;
    }
}