.top-news {
    background-color: #eaeaea;
}

.top-news h2 {
    text-align: center;
    font-size: 2rem;
    padding: 1rem;
    background-color: var(--color-main);
    color: #fff;
    font-family: Roboto;
}

.top-news-content {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 2rem;
    padding: 4rem;
}

.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:hover {
    transform: scale(1.05);
}

.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 {
    text-align: right;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    display: block;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    position: absolute;
    bottom: 0.75rem;
    right: 0;
}

@media only screen and (max-width: 800px) {
    .top-news-content {
        flex-direction: column;
        padding: 4rem 2rem;
        align-items: center;
        gap: 2rem
    }

    .top-news-item { 
        max-width: 480px;
    }
}