@charset "UTF-8";

.section-news__content-item {
    width: 100%;
}

.section-news__content-item-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
    border-bottom: solid 1px var(--primary-white);
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .section-news__content-item-link:hover {
        cursor: pointer;
    }

    .section-news__content-item-link:hover .news-thumbnail img {
        transform: scale(1.05);
    }

    .section-news__content-item-link:hover .news-text {
        opacity: 0.7;
        transition: 0.3s ease-in-out;
    }
}

@media (hover: none), (pointer: coarse) {
    .section-news__content-item-link:active {
        cursor: pointer;
    }

    .section-news__content-item-link:active .news-thumbnail img {
        transform: scale(1.05);
        transition-duration: 0.08s;
    }

    .section-news__content-item-link:active .news-text {
        opacity: 0.7;
        transition: opacity 0.08s ease-out;
    }
}

.news-thumbnail {
    aspect-ratio: 16/9;
    max-width: 250px;
    min-width: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-thumbnail img {
    display: block;
    transition: transform 0.3s ease;
}

.news-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: var(--primary-white);
    opacity: 1;
    transition: 0.3s ease-in-out;
}

.news-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.news-meta-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-family: "Outfit";
    font-weight: 400;
    font-size: 1.6rem;
}

.news-update {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-family: "Outfit";
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--primary-white);
    background-color: var(--primary-red);
    padding: 4px 8px 4px 7px;
    border-radius: 2px;
}

.news-update span {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    background-color: var(--primary-white);
}

.news-text__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .section-news__content-item-link {
        gap: 16px;
    }

    .news-thumbnail {
        width: 24vw;
    }

    .news-meta-text {
        font-size: 1.4rem;
    }

    .news-text__title {
        font-size: 1.4rem;
    }

    .news-text {
        align-self: flex-start;
    }
}

@media (max-width: 500px) {
    .section-news__content-item-link {
        flex-direction: column;
        align-items: center;
    }

    .news-thumbnail {
        width: 100%;
        max-width: none;
    }
}
