.top-news {
    background-color: #eaeaea;
    padding: 4rem 0;
}

.top-news h2 {
    max-width: var(--max-width);
    margin: auto;
    font-size: 2rem;
    font-family: Flama;
    padding-bottom: 3rem;
}

.top-news-content {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
}

.top-news-item {
    padding-bottom: 4rem;
    background-color: #fff;
    box-shadow: 0 0 1rem #c2c2c2;
    transition: transform 250ms;
    flex: 1;
    position: relative;
}

.top-news-item a {
    text-decoration: none;
}

.top-news-image {
    margin-bottom: 0.5rem;
}

.top-news-image img {
    width: 100%;
}

.top-news-date {
    color: #666;
    padding: 0 1rem;
    text-align: left;
}

.top-news-title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.top-news-detail {    
    padding: 0.5rem 0;
    text-decoration: none;
    display: block;
    font-size: 1.125rem;
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
}
.top-news-detail::after {
    content: "";
    position: relative;
    margin-left: 0.25rem;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--color-button);
    mask-image: url("/assets/icons/arrow_outward.svg");
    mask-size: contain;
    width: 1.5rem;
    height: 1.5rem;
}

@media only screen and (max-width: 960px) {
    .top-news-content {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }
    .top-news-item {
        width: 45%;
        flex: none;
    }
}


@media only screen and (max-width: 640px) {
    .top-news-content {
        flex-direction: column;
        align-items: center;
    }

    .top-news-item { 
        width: 100%;
        max-width: 400px;
    }
}