/* ---------- Hero ---------- */
.sp-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/static/images/lanterns.jpg') center 20% / cover no-repeat;
    background-color: #343a40;
    height: 380px;
    text-align: center;
}

.sp-hero-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 40pt;
    color: #eeeeee;
    padding-top: 150px;
    text-shadow: 1px 1px 4px #222222;
}

.sp-hero-sub {
    font-family: 'Muli', sans-serif;
    font-size: 17px;
    color: #eeeeee;
    margin-top: 10px;
}

/* ---------- This semester (the big, prominent part) ---------- */
.sp-section-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.4em;
    color: #0d0d0d;
    text-align: center;
    padding: 70px 24px 10px 24px;
}

.sp-current {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 60px 24px;
}

.sp-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    padding: 44px 0;
    border-top: 1px solid #d5d5d5;
}

.sp-row:first-child {
    border-top: 0;
}

/* every other row flips so the logo switches sides */
.sp-row:nth-of-type(even) .sp-logo {
    order: 2;
}

.sp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    padding: 28px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
                0 3px 1px -2px rgba(0, 0, 0, 0.2),
                0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

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

/* use class="sp-logo sp-photo" when the image is a photo that should fill the box */
.sp-logo.sp-photo {
    padding: 0;
    overflow: hidden;
}

.sp-logo.sp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.sp-text h3 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.2em;
    color: #0d0d0d;
    margin: 0 0 6px 0;
}

.sp-text p {
    font-family: 'Muli', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #444444;
    margin: 0 0 12px 0;
}

.sp-text .sp-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777777;
}

.sp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #343a40;
    border-radius: 2px;
    color: #343a40;
    font-family: 'Muli', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sp-link:hover {
    background: #343a40;
    color: #ffffff;
    text-decoration: none;
}

.sp-link i {
    font-size: 18px;
    line-height: 1;
}

/* ---------- Past sponsors (smaller, on a gray band) ---------- */
.sp-past-wrap {
    background: #eceef0;
    padding: 20px 24px 70px 24px;
}

.sp-past-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.9em;
    color: #333333;
    text-align: center;
    padding: 50px 0 30px 0;
}

.sp-past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.sp-past-card {
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
                0 3px 1px -2px rgba(0, 0, 0, 0.2),
                0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.sp-past-top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 20px;
    background: #ffffff;
}

.sp-past-top img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sp-past-photo {
    padding: 0;
    background-color: #dddddd;
    background-size: cover;
    background-position: center;
}

.sp-past-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eeeeee;
}

.sp-past-name {
    font-family: 'Muli', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
}

.sp-past-sem {
    font-family: 'Muli', sans-serif;
    font-size: 13px;
    color: #777777;
    white-space: nowrap;
}

/* ---------- Sponsorship contact strip ---------- */
.sp-cta {
    background: #343a40;
    text-align: center;
    padding: 60px 24px;
}

.sp-cta h2 {
    font-family: 'Philosopher', sans-serif;
    font-size: 2em;
    color: #eeeeee;
    margin-bottom: 18px;
}

.sp-cta a {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 2px;
    color: #ffffff;
    font-family: 'Muli', sans-serif;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sp-cta a:hover {
    background: #ffffff;
    color: #343a40;
    text-decoration: none;
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    .sp-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sp-row:nth-of-type(even) .sp-logo {
        order: 0; /* logo always on top on phones */
    }

    .sp-logo {
        height: 220px;
    }
}