/*=============== SPONSORS PAGE ===============*/
/* Save as: static/styles/sponsors/sponsors_page.css
   Include in sponsors.html css_extra_includes block:
   <link rel="stylesheet" href="{{ url_for('static',filename='styles/sponsors/sponsors_page.css', v='1.20260121') }}">
*/

.sponsors-page-header {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 5rem 2rem 3rem;
}

.sponsors-page-header h1 {
    font-weight: 900;
    font-size: 4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    word-break: break-word;
}

.sponsors-page-header h1 span {
    color: rgb(199, 15, 15);
}

.sponsors-page-header p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sponsors-page-body {
    background-color: #1a1a1a;
    padding: 1rem 2rem 5rem;
}

.sponsors-page-tier {
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.sponsors-page-tier-label {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgb(199, 15, 15);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.sponsor-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sponsor-card .logo-wrap {
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.sponsor-card .sponsor-info h3 {
    color: rgb(199, 15, 15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sponsor-card .sponsor-info .sponsor-role {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.6rem;
}

.sponsor-card .sponsor-info p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.sponsor-card .sponsor-info a.sponsor-link {
    color: rgb(199, 15, 15);
    font-size: 0.9rem;
    font-weight: 600;
}

.sponsor-card .sponsor-info a.sponsor-link:hover {
    text-decoration: underline;
}

/* Tier-based logo box sizing, mirrors the index hierarchy */
.tier-gold .logo-wrap { width: 220px; height: 130px; border: 2px solid rgb(199, 15, 15); }
.tier-silver .logo-wrap { width: 180px; height: 110px; }
.tier-bronze .logo-wrap { width: 150px; height: 95px; }
.tier-partner .logo-wrap { width: 130px; height: 85px; }
.tier-collaborator .logo-wrap { width: 110px; height: 72px; }

@media screen and (max-width: 768px) {
    .sponsors-page-header h1 {
        font-size: 2.5rem;
    }

    .sponsor-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .tier-gold .logo-wrap,
    .tier-silver .logo-wrap,
    .tier-bronze .logo-wrap,
    .tier-partner .logo-wrap,
    .tier-collaborator .logo-wrap {
        width: 160px;
        height: 95px;
    }
}


/*=============== COLLABORATORS — COMPACT ROW ===============*/
/* Add this to styles/root/sponsors.css.
   If you already have a rule like ".tier-collaborator .logo-wrap { ... }"
   from the full sponsor-card layout, you can remove it — collaborators
   no longer use .sponsor-card, so that rule is now unused. */

.collaborators-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.collaborator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.collaborator-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-3px);
}

.collaborator-item .logo-wrap-sm {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    background-color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.collaborator-item .logo-wrap-sm img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.collaborator-item .collaborator-name {
    color: #eee;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.collaborator-item .collaborator-link {
    color: rgb(199, 15, 15);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.collaborator-item .collaborator-link:hover {
    text-decoration: underline;
}

/* Row on wide screens; stack to a single column on narrow ones */
@media screen and (max-width: 600px) {
    .collaborators-row {
        flex-direction: column;
        align-items: stretch;
    }

    .collaborator-item {
        justify-content: center;
    }
}

/* Very narrow screens: stack logo/name/link within each item too */
@media screen and (max-width: 360px) {
    .collaborator-item {
        flex-direction: column;
        text-align: center;
    }
}