/* =====================================================================
   seminar.css - shared styling for the department's seminar pages:
   seminar.html, algebra-seminar.html and machine-learning.html.
   Editing this file changes all three at once.
   ===================================================================== */

.sem-section {
    padding: 8.5rem 0 4.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 55%);
}

.sem-header {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.sem-kicker {
    margin-bottom: 0.5rem;
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sem-title {
    margin-bottom: 0.85rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.sem-lede {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.sem-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.sem-slot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.06);
    color: #0d6efd;
    font-weight: 700;
}

/* ---------- upcoming ---------- */

.sem-upcoming {
    max-width: 900px;
    margin: 0 auto 3.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.sem-upcoming h2 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 750;
}

.sem-upcoming h2 i {
    margin-right: 0.5rem;
    color: #0d6efd;
}

.sem-upcoming p {
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.7;
}

.sem-upcoming p:last-child {
    margin-bottom: 0;
}

.sem-upcoming a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
}

.sem-upcoming a:hover {
    border-bottom-color: #0d6efd;
}

/* ---------- archive ---------- */

.sem-term {
    max-width: 900px;
    margin: 0 auto;
}

.sem-term + .sem-term {
    margin-top: 3.5rem;
}

.sem-term-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0 0 1.75rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 750;
}

.sem-term-slot {
    margin: -1.35rem 0 1.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.sem-term-slot i {
    margin-right: 0.35rem;
    opacity: 0.75;
}

.sem-term-count {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
}

.sem-talk {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sem-talk:last-child {
    border-bottom: 0;
}

.sem-talk h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.35;
}

.sem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin-bottom: 0.9rem;
    color: #64748b;
    font-size: 0.95rem;
}

.sem-meta .sem-speaker {
    color: #0d6efd;
    font-weight: 700;
}

.sem-meta i {
    margin-right: 0.35rem;
    opacity: 0.75;
}

.sem-abstract p {
    margin-bottom: 0.7rem;
    color: #334155;
    line-height: 1.7;
}

.sem-abstract p:last-child {
    margin-bottom: 0;
}

.sem-abstract a,
.sem-refs a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
}

.sem-refs {
    margin: 0.85rem 0 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

.sem-refs li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.sem-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.75rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.sem-back:hover {
    color: #0d6efd;
}

@media (max-width: 767.98px) {
    .sem-section {
        padding-top: 8rem;
    }

    .sem-upcoming {
        padding: 1.35rem;
    }
}
