/* =========================================================
   VolyaLive News: homepage strip, archive list and single page
   ========================================================= */
.news-home,
.news-archive,
.news-single-page {
    background: var(--color-background, #fbfaf7);
    color: var(--color-text, #202d49);
}

.news-home {
    padding: clamp(56px, 7vw, 96px) 24px;
}

.news-home__inner,
.news-archive__inner {
    width: min(1320px, 100%);
    margin-inline: auto;
}

.news-home__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.news-home__heading h2,
.news-archive__heading h1 {
    margin: 8px 0 12px;
    color: #202d49;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.news-home__heading > div > p:last-child,
.news-archive__heading > p:last-child {
    margin: 0;
    color: #68788f;
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-home__all,
.news-row__link,
.news-article__back {
    color: #3657c9;
    font-weight: 700;
    text-decoration: none;
}

.news-home__all {
    flex: 0 0 auto;
    padding-bottom: 7px;
}

.news-home__all:hover,
.news-row__link:hover,
.news-article__back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-home__list,
.news-archive__list {
    display: grid;
    gap: 18px;
}

.news-row {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3e8f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(32, 45, 73, 0.045);
}

.news-row__image-link {
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: #eef2fc;
}

.news-row__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-row__image-link:hover .news-row__image {
    transform: scale(1.035);
}

.news-row__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    color: #3657c9;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.news-row__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(22px, 3vw, 36px);
}

.news-row__date {
    margin: 0 0 10px;
    color: #6c7b91;
    font-size: 0.84rem;
    line-height: 1.5;
}

.news-row__title {
    margin: 0 0 12px;
    color: #202d49;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.news-row__title a {
    color: inherit;
    text-decoration: none;
}

.news-row__title a:hover {
    color: #3657c9;
}

.news-row__excerpt {
    margin: 0 0 18px;
    color: #68788f;
    font-size: 1rem;
    line-height: 1.75;
}

.news-row__link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}

.news-archive {
    padding: clamp(48px, 7vw, 88px) 24px;
}

.news-archive__heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.news-row--archive .news-row__image-link,
.news-row--archive .news-row__image,
.news-row--archive .news-row__placeholder {
    min-height: 250px;
}

.news-pagination {
    margin-top: 36px;
}

.news-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.news-pagination a,
.news-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #dce3f1;
    border-radius: 12px;
    background: #fff;
    color: #3657c9;
    text-decoration: none;
    font-weight: 700;
}

.news-pagination .current {
    border-color: #3657c9;
    background: #3657c9;
    color: #fff;
}

.news-empty {
    padding: 36px;
    border: 1px solid #e3e8f1;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.news-single-page {
    padding: clamp(36px, 6vw, 76px) 24px;
}

.news-article__inner {
    width: min(900px, 100%);
    margin-inline: auto;
}

.news-article__back {
    display: inline-block;
    margin-bottom: 28px;
}

.news-article__header {
    margin-bottom: 28px;
}

.news-article__header h1 {
    margin: 8px 0 18px;
    color: #202d49;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.news-article__lead {
    margin: 0;
    color: #68788f;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
}

.news-article__featured-image {
    margin: 0 0 34px;
}

.news-article__featured-image img {
    display: block;
    width: 100%;
    max-height: 600px;
    border-radius: 20px;
    object-fit: cover;
}

.news-article__content {
    color: #35445e;
    font-size: 1.08rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.news-article__content > * {
    max-width: 100%;
}

.news-article__content img {
    height: auto;
    border-radius: 12px;
}

.news-article__content a {
    color: #3657c9;
}

.news-article__footer {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid #e3e8f1;
}

@media (max-width: 720px) {
    .news-home,
    .news-archive,
    .news-single-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .news-home__heading {
        align-items: flex-start;
    }

    .news-row {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .news-row__image-link,
    .news-row__image,
    .news-row__placeholder,
    .news-row--archive .news-row__image-link,
    .news-row--archive .news-row__image,
    .news-row--archive .news-row__placeholder {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-row__body {
        padding: 22px;
    }

    .news-home__heading h2,
    .news-archive__heading h1 {
        font-size: 2.15rem;
    }
}

@media (max-width: 460px) {
    .news-home__heading {
        display: block;
    }

    .news-home__all {
        display: inline-block;
        margin-top: 18px;
    }

    .news-row__title {
        font-size: 1.35rem;
    }
}



/* Compact news cards: reduce the homepage strip height substantially */
.news-home {
    padding-top: 34px;
    padding-bottom: 38px;
}

.news-home__heading {
    margin-bottom: 18px;
}

.news-home__heading h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    margin: 4px 0 6px;
}

.news-home__heading > div > p:last-child {
    font-size: 0.95rem;
    line-height: 1.45;
}

.news-home__list {
    gap: 12px;
}

.news-home .news-row {
    grid-template-columns: 190px minmax(0, 1fr);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(32, 45, 73, 0.035);
}

.news-home .news-row__image-link,
.news-home .news-row__image,
.news-home .news-row__placeholder {
    min-height: 0;
    height: 150px;
}

.news-home .news-row__image {
    width: 100%;
    object-fit: cover;
}

.news-home .news-row__body {
    justify-content: center;
    padding: 15px 22px;
}

.news-home .news-row__date {
    margin-bottom: 5px;
    font-size: 0.75rem;
}

.news-home .news-row__title {
    margin-bottom: 6px;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.25;
}

.news-home .news-row__excerpt {
    margin-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.news-home .news-row__link {
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .news-home {
        padding-top: 30px;
        padding-bottom: 32px;
    }

    .news-home .news-row {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .news-home .news-row__image-link,
    .news-home .news-row__image,
    .news-home .news-row__placeholder {
        height: 125px;
        min-height: 0;
        aspect-ratio: auto;
    }

    .news-home .news-row__body {
        padding: 12px 14px;
    }

    .news-home .news-row__title {
        font-size: 1rem;
    }

    .news-home .news-row__excerpt {
        font-size: 0.82rem;
        line-height: 1.35;
    }
}

@media (max-width: 460px) {
    .news-home .news-row {
        grid-template-columns: 1fr;
    }

    .news-home .news-row__image-link,
    .news-home .news-row__image,
    .news-home .news-row__placeholder {
        height: auto;
        aspect-ratio: 16 / 7;
    }
}

