/* css/components/News/NewsFeed.css */
.news-feed-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-feed-section .section-title {
    color: var(--koeleman-blue);
    font-size: 2.25rem;
}

.news-feed-section {
    padding: 4rem 0;
    background-color: var(--koeleman-background);
}

.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: var(--koeleman-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.news-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card .card-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.news-card .card-title {
    font-size: 1.25rem;
    color: var(--koeleman-blue);
    margin-bottom: 0.75rem;
}

.news-card .card-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    color: var(--text-primary);
    /* Limit description lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-card .card-link {
    font-weight: 700;
    color: var(--koeleman-gold);
    align-self: flex-start;
    margin-top: auto; /* Duwt de link naar de onderkant */
}

/* Stijlen voor Laad Meer knop (generiek) */
.load-more-button {
    display: inline-block;
    background-color: var(--koeleman-gold);
    color: var(--koeleman-white);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.load-more-button:hover:not(:disabled) {
    transform: scale(1.02);
    background-color: #8a7651; /* Donkerder goud */
}

.load-more-button:disabled {
    background-color: #d1d5db; /* Grijze kleur */
    cursor: not-allowed;
    opacity: 0.7;
}

.feed-error, .api-error {
    text-align: center;
    padding: 2rem;
    background-color: #fff1f2; /* Lichte roodtint */
    border: 1px solid #ffccd0;
    color: #b91c1c; /* Donkerrood */
    border-radius: 0.5rem;
}
