@charset "UTF-8";

.news-list-page {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.news-list-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #17212b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.news-list-back:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

.news-list-back--top {
    background: #f1f6fa;
    box-shadow: inset 0 0 0 1px #dce7ef;
}

.news-list-back--bottom {
    min-width: 220px;
    margin: 56px auto 0;
    background: linear-gradient(90deg, #4ba4e5, #7cbef0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.news-list-heading {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 48px;
}

.news-list-heading h1,
.news-list-heading p {
    margin: 0;
}

.news-list-heading h1 {
    font-size: 3rem;
    line-height: 1;
}

.news-list-heading p {
    font-size: 1.1rem;
    font-weight: 700;
}

.news-list-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 42px 40px;
}

.news-list-card {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 580px;
}

.news-list-image {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #17212b;
}

.news-list-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s, opacity 0.25s;
}

.news-list-image--fallback::before {
    position: absolute;
    z-index: -2;
    inset: -20px;
    background: var(--news-image) center / cover;
    content: "";
    filter: blur(18px);
    opacity: 0.65;
    transform: scale(1.1);
}

.news-list-image--fallback::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(15, 23, 32, 0.2);
    content: "";
}

.news-list-image--fallback img {
    object-fit: contain;
}

.news-list-card h2 {
    margin: 8px 0 6px;
    font-size: 1rem;
    line-height: 1.6;
}

.news-list-card h2 a {
    color: inherit;
    text-decoration: none;
}

.news-list-category {
    margin: 10px 0 0;
    color: #55a9df;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.news-list-card time {
    color: #555;
    font-size: 0.8rem;
}

.news-list-card:hover img {
    opacity: 0.75;
    transform: scale(1.04);
}

.news-list-card:hover h2 a {
    color: #ff69b4;
}

@media (max-width: 800px) {
    .news-list-grid {
        gap: 32px 20px;
    }

}

@media (max-width: 520px) {
    .news-list-page {
        width: min(100% - 32px, 1200px);
        padding-top: 40px;
    }

    .news-list-heading h1 {
        font-size: 2.25rem;
    }

    .news-list-card {
        flex-basis: 100%;
    }
}
