#news {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 80px;
    background-color: white;
}

#news h2 {
    font-size: 42px;
    line-height: 1em;
    margin: 0;
}

.news-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 40px;
    position: relative;
}

.news-icon::before {
    content: "";
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: var(--vb-global-color-text);
    border-radius: 50%;
    top: 38px;
}

.vb .color-1 {
    fill: var(--vb-global-color-secondary);
}
.vb .color-2 {
    fill: var(--vb-global-color-primary);
}

#description {
    text-align: center;
}

#news article {
    width: 320px;
}

#news article a {
    text-decoration: none;
}

#news article .container {
    justify-content: center;
    padding: 0 20px 20px 20px;
    color: var(--vb-global-color-text);
    box-shadow:
        rgba(0, 0, 0, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    gap: 20px;
}

#news article:hover .container {
    transform: translateY(-20px);
    box-shadow:
        rgba(0, 0, 0, 0.3) 0px 19px 38px,
        rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

#news article h3,
#news article p {
    line-height: 1.4em;
    margin: 0;
}

#news article h2,
#news article h3 {
    color: var(--vb-global-color-secondary);
}

#news #posts h2 {
    font-size: 32px;
}

#news article p {
    font-size: 16px;
}

#news article .date {
    color: white;
    background-color: var(--vb-global-color-secondary);
    padding: 5px 10px;
    font-size: 19px;
    font-weight: 800;
    text-transform: capitalize;
    margin-top: -20px;
}

#news article:hover .date {
    color: var(--vb-global-color-text);
    background-color: var(--vb-global-color-accent);
}

@media (prefers-color-scheme: dark) {
    .vb .color-1 {
        fill: white;
    }
    .vb .color-2 {
        fill: var(--vb-global-color-secondary);
    }
    #news {
        background-color: var(--vb-global-color-primary);
    }
    #news article .container {
        background-color: var(--vb-global-color-bg2);
    }
    #news article h2,
    #news article h3,
    #news article p {
        color: white;
    }
    #news article .date {
        background-color: white;
        color: var(--vb-global-color-secondary);
    }
    #news article:hover .date {
        color: white;
        background-color: var(--vb-global-color-secondary);
    }
    .news-icon::before {
        background-color: white;
    }
}

@media (min-width: 1030px) {
    section#news {
        padding: 140px calc((100vw - 1140px) / 2);
        flex-direction: row;
        gap: 0;
    }
    #news {
        display: flex;
        justify-content: space-between;
    }
    #news h2 {
        font-size: 52px;
    }
    .news-icon {
        width: 380px;
    }
}

#posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1030px) {
    #posts {
        flex-direction: row;
    }
}
