/* === Site B · Sponsors header stack === */
.marquee {
    --gap: 1rem;
    --speed: 60; /* keep in sync with base extra.css */
    --duration: 30s;
}

.sb-sponsors {
    position: relative;
    padding-top: 60px;
}

.sb-sp-head {
    margin-top: 60px;
    margin-bottom: 60px;
    position: relative;
    height: 220px;
    margin-bottom: 1.75rem;
}

#sponsors-top {
    margin-top: 60px;
}

.sb-stack {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 100%;
}

.sb-rect {
    position: absolute;
    border-radius: 10px;
}
.sb-rect--back {
    left: 0;
    top: -40px;
    width: min(750px, 80%);
    height: 200px;
    background: #20306c;
    border-radius: 10px;
}
.sb-rect--front {
    left: 60px;
    top: 20px;
    width: min(750px, calc(85% - 60px));
    height: 200px;
    background: #b8d779;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px;
    border-radius: 10px;
}

.sb-sp-title {
    margin: 0 0 10px 0;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1;
    color: #f0f0f0;
    text-align: left;
}
.sb-sp-body {
    margin: 0;
    font-family: "Lato", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.6vw, 25px);
    line-height: 1.2;
    color: #f0f0f0;
    max-width: 46ch;
}

@media (max-width: 1024px) {
    .sb-sp-head {
        height: 160px;
    }
    .sb-rect--back {
        top: -30px;
        height: 160px;
        width: 70%;
    }
    .sb-rect--front {
        left: 40px;
        top: 16px;
        height: 160px;
        width: calc(85% - 40px);
        padding: 18px 20px;
    }
}
@media (max-width: 640px) {
    .sb-sp-head {
        height: 150px;
    }
    .sb-rect--back {
        display: none;
    }
    .sb-rect--front {
        left: 0;
        width: 100%;
        border-radius: 8px;
        top: 0;
        height: auto;
        padding: 16px;
    }
}

/* === Site B · Sponsor card + tier label === */
.sb-sponsors .sb-card {
    border: 2px solid transparent;
    padding: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.sb-sponsors .sb-card-parent {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.25s ease;
}
.sb-sponsors .sb-card-parent:hover {
    border-radius: 12px;
    border-color: #20306c;
}

.sb-card--top {
    min-height: 180px;
    padding: 24px 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(16, 28, 68, 0.12);
}

.sb-card--tier {
    min-height: 150px;
    padding: 18px 14px;
    border-radius: 12px;
    background: #f9f9fb;
}

.sb-sponsors .sb-tier {
    display: block;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 34px;
    margin: 8px 0 0 0;
    padding: 0 12px;
    background: #f0f0f0;
    color: #20306c;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
@media (max-width: 640px) {
    .sb-sponsors .sb-tier {
        height: 30px;
        line-height: 30px;
        font-size: 14px; /* scale text a touch on phones */
    }
}

/* Ensure each sponsor slot stacks image + label cleanly */
.sb-sponsors li > div,
.sb-sponsors .marquee__item > div {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* makes the label’s 100% width fill the card */
}
