.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--blue-cloud-10);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
.news-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin:1rem 0 1rem 0;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumb {
    width: 100%;
    height: 11rem;
    object-fit: cover;
}

.news-title {
    font-size: 1.25rem;
    color: var(--black);
}

.news-date {
    font-size: 0.9rem;
    color: var(--black-50);
}

.news-excerpt {
    color: var(--black-50);
    overflow: hidden;
}

.news-link {
    display: inline-block; /* instead of block */
    font-weight: bold;
    color: var(--orange);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--orange);
    border-radius: 0.4rem;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-self: start; /* ensures it stays aligned left in flex container */
    margin-top: auto; /* pushes button to bottom if card grows */
}

.news-link:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* Article Page Styles */

.article-content {
    margin: 2rem auto;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: "Inter", sans-serif;
}

.news-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.news-item h2 {
    font-size: 1.25rem;
    color: var(--black);
}

.news-item h2 a {
    color: var(--orange);
    text-decoration: none;
}

.news-date {
    font-size: 0.875rem;
    color: var(--black-50);
}

.article-image {
    width: 100%;
    max-height: 80vh;
    object-fit: scale-down;
    margin: 1rem 0;
}

.btn--back {
    display: inline-block;
    margin-bottom: 1rem;
    background: var(--orange);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    text-decoration: none;
}
