.news-page {
    background: var(--black_white950);
    color: var(--black_white50);
    padding: 100px 0;
    transition: padding 0.4s ease;
}

.news-page .container {
    display: flex;
    flex-direction: column;
    gap: 64px;
    transition: padding 0.4s ease, gap 0.4s ease;
}

.news-page .news-page-title {
    opacity: 0;
    transform: scale(0.94);
    visibility: hidden;
    animation: heroReveal 1s ease-out forwards;
    animation-delay: 0.6s;
    will-change: opacity, transform;
    animation-fill-mode: both;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 65px;
}

.news-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-title {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.4s ease;
}

.news-item:hover .news-title {
    text-decoration-color: var(--black_white50);
}

.news-link {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.news-image {
    aspect-ratio: 1 / 1;
}

.news-image img,
.news-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.news-pagination {

    .prev>*,
    .next>*,
    .numbers>* {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--black_white50);
        border-radius: 4px;
        height: 50px;
        width: 50px;
        background: var(--black_white950);
        transition: border-color 0.4s ease, background-color 0.4s ease;
    }

    .prev>*:hover,
    .next>*:hover,
    .numbers>*:hover {
        border-color: var(--primary500);
        background: linear-gradient(to bottom,
                rgba(60, 74, 193, 0) 0%,
                rgba(60, 74, 193, 0.1) 100%);
        cursor: pointer;
    }

    .numbers .current {
        background-color: var(--primary500);
        border-color: var(--primary500);
    }

    .prev svg,
    .next svg {
        width: 18px;
        height: 18px;
    }

    .prev .disabled,
    .next .disabled {
        border-color: var(--neutral500);
        color: var(--neutral500);
        pointer-events: none;
    }

    .numbers {
        display: flex;
        gap: 16px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 70px 0 100px;
    }

    .news-page .container {
        gap: 40px;
    }

    .news-list {
        gap: 40px;
    }

    /* Pagination */
    .news-pagination {
        gap: 6px;
    }

    .news-pagination {

        .prev>*,
        .next>*,
        .numbers>* {
            height: 40px;
            width: 40px;
        }

        .numbers {
            gap: 6px;
        }

        .prev svg,
        .next svg {
            width: 13px;
            height: 13px;
        }
    }
}

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