/* ==========================================================================
   News category page
   ========================================================================== */

.news-page {
    width: 100%;
    background: #fff;
    font-family: var(--font-family);
    color: #151515;
}

.news-page__main {
    width: 100%;
}

.news-container {
    width: min(100%, var(--container-max-width));
    margin: 0 auto;
}

/* Hero */

.news-hero {
    position: relative;
    height: 271px;
    overflow: hidden;
}

.news-hero__bg {
    position: absolute;
    inset: 0;
    background: #3a68d5;
}

.news-hero__decor {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 96%;
    max-width: 60%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
}

.news-hero .news-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-hero__title {
    margin: 0;
    max-width: 605px;
    color: #fff;
    font-size: 62px;
    font-weight: 600;
    line-height: 66px;
}

/* Breadcrumbs */

.news-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 34px;
    padding-bottom: 45px;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.news-breadcrumbs a {
    color: #151515;
}

.news-breadcrumbs a:hover {
    color: #3a68d5;
}

.news-breadcrumbs__sep,
.news-breadcrumbs__current {
    color: #777;
}

/* Featured */

.news-featured {
    padding-bottom: 64px;
}

.news-featured__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.news-featured__side {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 0;
}

.news-featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-featured-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-card__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(4, 0, 61, 0) 26%, rgba(4, 0, 61, 0.4) 100%),
        linear-gradient(0deg, rgba(23, 23, 23, 0.4) 0%, rgba(23, 23, 23, 0.4) 100%);
}

.news-featured-card--small {
    flex: 1 1 0;
    min-height: 0;
    border-radius: 30px 0;
}

.news-featured-card--small .news-featured-card__image {
    position: absolute;
    inset: 0;
}

.news-featured-card--small .news-featured-card__title {
    position: absolute;
    left: 19px;
    right: 19px;
    bottom: 19px;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    line-height: 26px;
}

.news-featured-card--main {
    min-height: 654px;
    height: 100%;
    border-radius: 60px 0;
}

.news-featured-card--main .news-featured-card__image {
    position: absolute;
    inset: 0;
}

.news-featured-card--main .news-featured-card__content {
    position: absolute;
    left: 53px;
    right: 53px;
    bottom: 53px;
    z-index: 1;
}

.news-featured-card--main .news-featured-card__title {
    margin: 0 0 18px;
    max-width: 547px;
    color: #fff;
    font-size: 42px;
    font-weight: 600;
    line-height: 46px;
}

.news-featured-card--main .news-featured-card__date {
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    line-height: 16px;
}

/* News grid */

.news-list {
    padding-bottom: 80px;
}

.news-list__title {
    margin: 0 0 23px;
    font-size: 32px;
    font-weight: 600;
    line-height: 46px;
    color: #151515;
}

.news-list__grid {
    --news-grid-gap: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, calc((100% - var(--news-grid-gap) * 3) / 4)));
    gap: var(--news-grid-gap);
    align-items: stretch;
    margin-bottom: 48px;
}

.news-list__grid::before {
    content: '';
    grid-column: 1 / -1;
    border-top: 1px solid #ababab;
    margin-bottom: 3px;
}

.news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0.4px solid #ababab;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card__image-link {
    display: block;
}

.news-card__image {
    display: block;
    width: 100%;
    height: 237px;
    object-fit: cover;
    border-bottom-right-radius: 70px;
}

.news-card__title a {
    color: inherit;
}

.news-card__title a:hover {
    color: #3a68d5;
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 214px;
    padding: 16px 16px 20px;
    border-top: 0;
}

.news-card__content {
    flex: 1;
}

.news-card__date {
    display: block;
    margin-bottom: 18px;
    color: #3a68d5;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 400;
    line-height: 26px;
    color: #151515;
}

.news-card__excerpt {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #777;
}

.news-card__footer {
    flex-shrink: 0;
    margin-top: auto;
}

.news-card__footer::before {
    content: '';
    display: block;
    margin: 12px -16px 20px;
    border-top: 1px solid #ababab;
}

.news-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 35px;
    padding: 0 24px;
    border-radius: 20px 0;
    background: rgba(3, 128, 208, 0.1);
    color: #3a68d5;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}

.news-card__btn:hover {
    opacity: 0.85;
}

/* Pagination */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.news-pagination__pages {
    display: flex;
    align-items: center;
    gap: 44px;
}

.news-pagination__page {
    color: #2b2a29;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.news-pagination__page.is-active {
    color: #3a68d5;
    font-weight: 600;
}

.news-pagination__page:hover {
    color: #3a68d5;
}

.news-pagination__dots {
    color: #2b2a29;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.news-pagination__btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #3a68d5;
    cursor: pointer;
}

.news-pagination__btn img {
    display: block;
    width: 9px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.news-pagination__btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   News page — responsive
   ========================================================================== */

@media (max-width: 1320px) {
    .news-list__grid {
        grid-template-columns: repeat(3, minmax(0, calc((100% - var(--news-grid-gap) * 2) / 3)));
    }
}

@media (max-width: 1200px) {
    .news-hero {
        height: 240px;
    }

    .news-hero__title {
        font-size: 52px;
        line-height: 56px;
    }

    .news-breadcrumbs {
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .news-featured {
        padding-bottom: 52px;
    }

    .news-featured__layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .news-featured-card--main {
        min-height: 560px;
        border-radius: 48px 0;
    }

    .news-featured-card--main .news-featured-card__content {
        left: 40px;
        right: 40px;
        bottom: 40px;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 36px;
        line-height: 40px;
    }

    .news-featured-card--small .news-featured-card__title {
        font-size: 17px;
        line-height: 24px;
    }

    .news-list {
        padding-bottom: 64px;
    }

    .news-list__title {
        font-size: 28px;
        line-height: 40px;
    }
}

@media (max-width: 1000px) {
    .news-hero {
        height: 220px;
    }

    .news-hero__title {
        font-size: 46px;
        line-height: 50px;
    }

    .news-featured__layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 30px;
    }

    .news-featured-card--main {
        min-height: 480px;
        border-radius: 40px 0;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 32px;
        line-height: 36px;
    }

    .news-featured-card--small {
        border-radius: 24px 0;
    }

    .news-card__image {
        height: 210px;
        border-bottom-right-radius: 56px;
    }

    .news-card__body {
        min-height: 200px;
    }
}

@media (max-width: 1024px) {
    .news-featured__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-featured-card--main {
        order: -1;
        min-height: 420px;
        height: auto;
        border-radius: 40px 0;
    }

    .news-featured-card--main .news-featured-card__content {
        left: 32px;
        right: 32px;
        bottom: 32px;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 30px;
        line-height: 34px;
        margin-bottom: 14px;
    }

    .news-featured__side {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
        height: auto;
    }

    .news-featured-card--small {
        flex: none;
        height: auto;
        min-height: 160px;
        aspect-ratio: 4 / 3;
    }

    .news-list__grid {
        grid-template-columns: repeat(2, minmax(0, calc((100% - var(--news-grid-gap)) / 2)));
    }
}

@media (max-width: 900px) {
    .news-hero {
        height: 200px;
    }

    .news-hero__title {
        font-size: 40px;
        line-height: 44px;
    }

    .news-hero__decor {
        max-width: 50%;
        height: 90%;
    }

    .news-breadcrumbs {
        padding-top: 24px;
        padding-bottom: 28px;
        gap: 12px;
    }

    .news-featured {
        padding-bottom: 44px;
    }

    .news-featured-card--main {
        min-height: 360px;
        border-radius: 32px 0;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 26px;
        line-height: 30px;
    }

    .news-featured-card--main .news-featured-card__date {
        font-size: 15px;
    }

    .news-featured-card--small .news-featured-card__title {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 15px;
        line-height: 20px;
    }

    .news-list__title {
        font-size: 26px;
        line-height: 36px;
        margin-bottom: 20px;
    }

    .news-pagination {
        gap: 28px;
    }

    .news-pagination__pages {
        gap: 32px;
    }
}

@media (max-width: 700px) {
    .news-hero {
        height: 180px;
    }

    .news-hero__title {
        font-size: 34px;
        line-height: 38px;
    }

    .news-breadcrumbs {
        padding-top: 20px;
        padding-bottom: 24px;
        font-size: 13px;
        line-height: 20px;
    }

    .news-featured {
        padding-bottom: 36px;
    }

    .news-featured__side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .news-featured-card--small {
        flex: none;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 20px 0;
    }

    .news-featured-card--small .news-featured-card__title {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 13px;
        line-height: 17px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .news-featured-card--main {
        min-height: 300px;
        border-radius: 28px 0;
    }

    .news-featured-card--main .news-featured-card__content {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 22px;
        line-height: 26px;
        margin-bottom: 10px;
    }

    .news-list {
        padding-bottom: 48px;
    }

    .news-list__grid {
        --news-grid-gap: 24px;
        margin-bottom: 36px;
    }

    .news-card__image {
        height: 190px;
        border-bottom-right-radius: 48px;
    }

    .news-card__body {
        min-height: 0;
        padding: 14px 14px 18px;
    }

    .news-card__title {
        font-size: 17px;
        line-height: 24px;
    }

    .news-pagination {
        gap: 20px;
    }

    .news-pagination__pages {
        gap: 24px;
    }

    .news-pagination__page,
    .news-pagination__dots {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .news-list__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .news-hero {
        height: 160px;
    }

    .news-hero__title {
        font-size: 30px;
        line-height: 34px;
    }

    .news-featured-card--main {
        min-height: 260px;
        border-radius: 24px 0;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 20px;
        line-height: 24px;
    }

    .news-featured__side {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-featured-card--small {
        aspect-ratio: auto;
        height: 160px;
        border-radius: 20px 0;
    }

    .news-featured-card--small .news-featured-card__title {
        left: 14px;
        right: 14px;
        bottom: 14px;
        font-size: 14px;
        line-height: 18px;
        -webkit-line-clamp: 2;
    }

    .news-list__title {
        font-size: 22px;
        line-height: 30px;
    }

    .news-card__image {
        height: 180px;
        border-bottom-right-radius: 40px;
    }

    .news-card__btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .news-hero {
        height: 140px;
    }

    .news-hero__title {
        font-size: 26px;
        line-height: 30px;
    }

    .news-hero__decor {
        max-width: 45%;
        opacity: 0.85;
    }

    .news-breadcrumbs {
        padding-top: 16px;
        padding-bottom: 20px;
        gap: 10px;
    }

    .news-featured {
        padding-bottom: 28px;
    }

    .news-featured__layout,
    .news-featured__side {
        gap: 20px;
    }

    .news-featured-card--main {
        min-height: 220px;
        border-radius: 20px 0;
    }

    .news-featured-card--main .news-featured-card__content {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .news-featured-card--main .news-featured-card__title {
        font-size: 18px;
        line-height: 22px;
    }

    .news-featured-card--main .news-featured-card__date {
        font-size: 13px;
    }

    .news-featured-card--small {
        height: 140px;
        border-radius: 20px 0;
    }

    .news-list {
        padding-bottom: 40px;
    }

    .news-list__grid {
        --news-grid-gap: 20px;
        margin-bottom: 28px;
    }

    .news-list__title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 16px;
    }

    .news-card__image {
        height: 160px;
        border-bottom-right-radius: 32px;
    }

    .news-card__date {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .news-card__title {
        font-size: 16px;
        line-height: 22px;
    }

    .news-card__excerpt {
        font-size: 13px;
        line-height: 18px;
    }

    .news-card__footer::before {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .news-card__btn {
        height: 40px;
        font-size: 15px;
    }

    .news-pagination {
        gap: 16px;
    }

    .news-pagination__pages {
        gap: 16px;
    }

    .news-pagination__page,
    .news-pagination__dots {
        font-size: 14px;
    }

    .news-pagination__btn {
        width: 28px;
        height: 28px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .news-featured-card:hover,
    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 36px rgba(58, 104, 213, 0.18);
    }
}