/* ================= Sponsors page ================= */
body {
    background-color: #F5F5F5;
}

/* ---- Hero ---- */
.smallpages {
    background-color: var(--sand);
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    text-align: center;
    border-radius: 0;
    margin: 0;
}

.smallpages > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
    text-align: left;
    max-width: 1120px;
    margin: 0 auto;
}

.text-container {
    flex: 1 1 320px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.text-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
    line-height: 1.2;
    text-align: left;
}

.text-container h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: var(--tan);
    margin: 0.75rem 0 0;
}

.text-container .explanation {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    text-align: left;
}

/* Hero image sits to the RIGHT of the text on desktop, below on mobile */
.smallpages img {
    order: 2;
    flex: 0 1 440px;
    width: 440px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ---- Sponsor grids ---- */
.sponsors {
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) 1rem;
    background-color: white;
}

.sponsors h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 2.5rem;
    position: relative;
}

.sponsors h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--tan);
    margin: 1rem auto 0;
}

.sponsors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 1rem;
}

/* Four partners share one row on desktop; wrap gracefully on smaller screens */
.sponsor {
    text-align: center;
    flex: 1 1 180px;
    max-width: 240px;
}

.sponsor a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 1.5rem;
    background-color: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sponsor a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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