* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.series-hero {
    background-image: url('../images/HeaderBackgroundBadge.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.series-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-overlay {
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay h1 {
    font-size: clamp(40px, 6vw, 64px);
}

.series-section {
    width: 100%;
    padding: 40px 20px 80px;
    background: #f5f7fb;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.series-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
}

.sort-dropdown {
    display: inline-block;
    position: relative;
}

.sort-toggle {
    background: #5a7ca0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.sort-toggle:hover {
    background: #4a6784;
}

.sort-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
    z-index: 200;
}

.sort-menu.show {
    display: block;
}

.sort-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.sort-menu button:hover {
    background: #eee;
}

.series-list-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

#seriesList {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.series-item {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 14px 16px;
    border-left: 4px solid #5a7ca0;
    background: #ffffff;
    border-radius: 6px;
    align-items: flex-start;
	transition: transform 300ms ease;
    will-change: transform;
}

.series-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.series-right {
    flex: 1 1 auto;
}

.series-title {
    font-weight: 600;
    font-size: 16px;
    color: #5a7ca0;
}

.series-date {
    font-size: 13px;
    color: #555;
}

.series-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

@media screen and (max-width: 700px) {
    .series-container {
        flex-direction: column;
        align-items: center;
    }

    .sort-dropdown {
        margin-bottom: 16px;
    }

    .series-list-wrapper {
        justify-content: center;
        width: 100%;
    }

    #seriesList {
        max-width: 100%;
    }

    .series-item {
        flex-direction: column;
    }

    .series-left {
        width: 100%;
        margin-bottom: 4px;
    }
}
