/* CATEGORY / LIST PAGE (shared by vesti, intervju, magazin, biblioteka) */
.list-page {
    background: #edeae5;
}

/* ── Masthead ── */
.list-masthead {
    background: #0d0b18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 2rem 0 0;
}
.list-masthead__inner {
    padding: 0 7rem;
}
.list-masthead__back {
    display: inline-block;
    margin-bottom: 14px;
    font-family: "Roboto", sans-serif;
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}
.list-masthead__back:hover {
    color: rgba(255, 255, 255, 0.6);
}
.list-masthead__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 22px;
}
.list-masthead__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.list-masthead__bar {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
}
.list-masthead__subtitle {
    font-family: "Roboto", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.list-masthead__title {
    margin: 0;
    font-family: "Crimson Text", serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}
.list-masthead__count {
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
}
.list-masthead__filter-label {
    margin-right: 4px;
    font-family: "Roboto", sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}
.list-filter {
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-family: "Roboto", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
}
.list-filter:hover {
    opacity: 0.8;
}
.list-filter--active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ── Body ── */
.list-body {
    padding: 3px 7rem 60px;
}

/* Featured (horizontal) */
.list-featured {
    display: flex;
    margin-bottom: 3px;
    background: #f0ede8;
    text-decoration: none;
}
.list-featured:hover {
    opacity: 0.95;
}
.list-featured__image-wrap {
    position: relative;
    flex-shrink: 0;
    width: 420px;
    height: 280px;
    overflow: hidden;
}
.list-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.list-featured__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        transparent 50%,
        rgba(19, 16, 32, 0.6) 100%
    );
}
.list-featured__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    background: var(--primary-color);
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
}
.list-featured__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
}
.list-featured__title {
    margin: 6px 0 14px;
    font-family: "Crimson Text", serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1015;
}
.list-featured__excerpt {
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #5a5050;
}

/* Shared card meta */
.list-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.list-card__chip {
    background: rgba(124, 58, 237, 0.1);
    color: #3b0764;
    font-family: "Roboto", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 6px;
}
.list-card__date {
    font-family: "Roboto", sans-serif;
    font-size: 9px;
    color: #8a7f7a;
}

/* Grid + card (base = single column; columns set per category below) */
.list-grid {
    display: grid;
    gap: 3px;
    grid-template-columns: 1fr;
}
.list-card {
    display: block;
    background: #f0ede8;
    overflow: hidden;
    text-decoration: none;
}
.list-card:hover {
    background: #e8e4df;
}
.list-card__image-wrap {
    display: block;
    position: relative;
    height: 160px;
    overflow: hidden;
}
.list-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.list-card__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 16, 21, 0.3) 0%,
        transparent 60%
    );
}
.list-card__body {
    display: block;
    padding: 14px 16px 18px;
}
.list-card__title {
    display: block;
    margin-top: 8px;
    font-family: "Crimson Text", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.28;
    color: #1a1015;
}
.list-card__excerpt {
    display: block;
    margin-top: 8px;
    font-family: "Roboto", sans-serif;
    font-size: 12.5px;
    line-height: 1.7;
    color: #5a5050;
}

/* ── Per-category variations ── */

/* Vesti (News): dense, small cards, no excerpt */
.list-page--vesti .list-card__excerpt {
    display: none;
}

/* Intervju: spacious 2-col, tall images, big titles, italic excerpt */
.list-page--intervju .list-card {
    background: #f5f0e8;
}
.list-page--intervju .list-card__image-wrap {
    height: 260px;
}
.list-page--intervju .list-card__body {
    padding: 22px 22px 26px;
}
.list-page--intervju .list-card__title {
    font-size: 22px;
}
.list-page--intervju .list-card__excerpt {
    font-style: italic;
}

/* Magazin: medium 3-col */
.list-page--magazin .list-card__image-wrap {
    height: 200px;
}
.list-page--magazin .list-card__title {
    font-size: 18px;
}

/* Column counts (mobile-first: 1 col, widen at breakpoints) */
@media only screen and (min-width: 760px) {
    .list-page--vesti .list-grid,
    .list-page--magazin .list-grid,
    .list-page--biblioteka .list-grid,
    .list-page--intervju .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (min-width: 1100px) {
    .list-page--vesti .list-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .list-page--magazin .list-grid,
    .list-page--biblioteka .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* intervju stays 2-up */
}

/* Featured + masthead responsive */
@media only screen and (max-width: 1200px) {
    .list-masthead__inner {
        padding: 0 1.5rem;
    }
    .list-body {
        padding: 3px 1.5rem 40px;
    }
}
@media only screen and (max-width: 760px) {
    .list-featured {
        flex-direction: column;
    }
    .list-featured__image-wrap {
        width: 100%;
        height: 220px;
    }
    .list-masthead__title {
        font-size: 2.2rem;
    }
}

.list-empty {
    padding: 3rem 0;
    font-family: "Roboto", sans-serif;
    color: #5a5050;
}

/* ── Pagination (restyled) ── */
.list-pagination__container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 32px 0 8px;
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media only screen and (max-width: 760px) {
    .list-pagination__container a {
        font-size: 10px;
    }
}

.list-pagination__container a {
    padding: 9px 18px;
    border: 1px solid rgba(26, 16, 21, 0.2);
    color: #6b5f5a;
    text-decoration: none;
}
.list-pagination__container a:hover {
    background: #1a1015;
    border-color: #1a1015;
    color: #fff;
}
.list-pagination__current {
    color: #8a7f7a;
}

/* ── Events list (event.html) ── */
.event-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.event-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: #f0ede8;
    text-decoration: none;
}
.event-card:hover {
    background: #e8e4df;
}
.event-card__date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
}
.event-card__day {
    display: block;
    font-family: "Crimson Text", serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    color: #1a1015;
}
.event-card__month {
    font-family: "Roboto", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.event-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.event-card__title {
    font-family: "Crimson Text", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1015;
}
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: #8a7f7a;
}
.event-card__loc {
    color: var(--primary-color);
}
