

body {
    background-color: #f5f5f5;
}

.news-container {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;

    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    max-width: 520px;
    margin: 140px auto;
}

.news-title {
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--color-secondary);
}

.news-date {
  color: var(--color-secondary);
}

.news-meta {
    display: grid;
    grid-auto-flow: column;
    gap: 15px;
    font-size: var(--text-sm);
    color: #555;
}

.news-text {
    line-height: 1.6;
    font-size: var(--text-md);
}

.news-text a {
    text-decoration: none;
    color: var(--color-secondary);
}

@media (max-width: 400px) {
    .news-card {
        width: 95%;
        padding: 15px;
    }

    .news-title {
        font-size: var(--text-xl);
    }

    .news-text {
        font-size: var(--text-sm);
    }
}

@media (max-width: 800px) {
    .news-card {
        width: 92%;
        padding: 18px;
    }

    .news-title {
        font-size: var(--text-2xl);
    }

    .news-meta {
        gap: 10px;
        font-size: var(--text-sm);
    }
}