.news {
    padding: 8rem 0;
    background-color: var(--blue);
}

.news__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.9rem;
    gap: 2.7rem;
}

.news__title {
    margin-bottom: 0;
    font-size: 4.8rem;
}

.news__title em {
    font-weight: 700;
}

.news-swiper {
    padding-bottom: 5rem !important;
}

.news-swiper .swiper-slide {
    height: auto !important;
}

.news__btns {
    margin-left: auto !important;
    margin-bottom: 0 !important;
}

.news__btns .swiper-button-next,
.news__btns .swiper-button-prev {
    background-color: #fff;
    border-radius: .8rem;
    padding: .8rem;
    border: 1px solid #F4F4F4;
}

.news__btns .swiper-button-next:after,
.news__btns .swiper-button-prev:after {
    color: #2B2D3E;
}

.news-swiper .swiper-pagination {
    bottom: 0 !important;
    right: 0;
}

.news-swiper .swiper-pagination-bullet {
    width: 1rem;
    height: 1rem;
    background: #fff;
    opacity: 1;
}

.news-swiper .swiper-pagination-bullet-active {
    background: var(--violet);
}

.news-card {
    background: #fff;
    border-radius: 1.2rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #F4F4F4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.news-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.news-card__img {
    border-radius: 1.2rem;
    height: 13rem;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.6rem;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-card__content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: #2B2D3E;
}

.news-card__excerpt {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #2B2D3ECC;
    margin-bottom: 1.6rem;
}

.news-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card__date {
    font-size: 1.2rem;
    color: #32353E80;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.news-card__views {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.2rem;
    color: #2B2D3E;
}

.news-card__views svg {
    width: 2.4rem;
    height: 2.4rem;
    stroke: #2B2D3E;
}

@media (max-width: 640px) {
    .news {
        padding: 4rem 0;
    }

    .news__header {
        margin-bottom: 2rem;
    }

    .news-card__img {
        height: 18rem;
    }

    .news-card__content {
        padding: 1.5rem;
    }

    .news-card__title {
        font-size: 1.6rem;
    }

    .news-card__excerpt {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .news-swiper {
        padding-bottom: 3rem !important;
    }
}