/* css/components/News/Insights.css */
.news-insights-section {
    padding: 4rem 0;
    background-color: var(--koeleman-white);
    border-bottom: 1px solid #e5e7eb;
}

.news-insights-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-insights-section .section-title {
    color: var(--koeleman-blue);
    font-size: 2.25rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.insight-card {
    background-color: var(--koeleman-gold-light);
    border: 1px solid #e0d9cf;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
}

.insight-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-card .card-category {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--koeleman-gold);
    color: var(--koeleman-white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.insight-card .card-title {
    font-size: 1.5rem;
    color: var(--koeleman-blue);
    margin: 0 0 0.75rem 0;
}

.insight-card .card-excerpt {
    flex-grow: 1;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    /* Limit excerpt lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.insight-card .card-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.insight-card .card-link {
    font-weight: 700;
    color: var(--koeleman-blue);
}

/* --- Insight Modal Stijlen --- */
#insight-modal-overlay { /* Unieke ID */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#insight-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

#insight-modal-content { /* Unieke ID */
    background-color: var(--koeleman-white);
    padding: 2rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden; /* Belangrijk voor scrollen binnen body */
}

#insight-modal-overlay.is-active #insight-modal-content {
    transform: scale(1);
}

#insight-modal-content .modal-title {
    color: var(--koeleman-blue);
    margin-top: 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

#insight-modal-content .modal-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

#insight-modal-content hr {
    margin: 0 0 1rem;
    border: none;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

#insight-modal-content .modal-body {
    overflow-y: auto;
    line-height: 1.7;
    flex-grow: 1; /* Laat body groeien */
    margin-bottom: 1.5rem; /* Ruimte voor knop */
}

#insight-modal-content .modal-body p,
#insight-modal-content .modal-body ul,
#insight-modal-content .modal-body ol {
    margin-bottom: 1em; /* Standaard marge voor leesbaarheid */
}
#insight-modal-content .modal-body ul,
#insight-modal-content .modal-body ol {
    padding-left: 1.5em; /* Inspringen lijsten */
}

#close-insight-modal { /* Unieke ID */
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background-color: var(--koeleman-gold);
    color: var(--koeleman-white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    align-self: flex-end;
    flex-shrink: 0;
}
