:root {
    --ngs-gold: #c5a059;
    --ngs-black: #1a1a1a;
    --ngs-gray: #f9f9f9;
    --ngs-white: #ffffff;
    --ngs-font-serif: "Georgia", "Times New Roman", serif;
    --ngs-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- SERVICES GRID (zelfde taal als de cursuskaarten) --- */
.ngs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    font-family: var(--ngs-font-sans);
}
.ngs-card {
    background: var(--ngs-white); border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}
.ngs-card:hover, .ngs-card:focus-visible { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.ngs-card:focus-visible { outline: 2px solid var(--ngs-gold); outline-offset: 2px; }
.ngs-card-image { height: 220px; background-size: cover; background-position: center; position: relative; background-color: #eee; }
.ngs-card-image-empty { background: linear-gradient(135deg, var(--ngs-black) 0%, #3a2f1e 60%, var(--ngs-gold) 160%); }
.ngs-card-price {
    position: absolute; top: 15px; right: 15px; background: var(--ngs-white); color: var(--ngs-black);
    padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ngs-card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.ngs-card-title { margin: 0 0 10px 0; font-size: 1.25rem; color: var(--ngs-black); font-weight: 700; line-height: 1.3; }
.ngs-card-excerpt { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }
.ngs-card-btn { margin-top: auto; color: var(--ngs-gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- MODAL --- */
.ngs-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: var(--ngs-font-sans); }
.ngs-modal[hidden] { display: none; }
.ngs-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,26,0.72);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: ngsFade 0.25s ease;
}
.ngs-modal-card {
    position: relative; z-index: 1;
    background: var(--ngs-white); border-radius: 20px; overflow: hidden;
    width: 100%; max-width: 960px; max-height: 90vh;
    display: grid; grid-template-columns: 1fr 1.1fr;
    box-shadow: 0 40px 90px rgba(0,0,0,0.35);
    animation: ngsRise 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes ngsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ngsRise { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

.ngs-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(26,26,26,0.55); color: #fff; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.ngs-modal-close:hover { background: var(--ngs-gold); color: var(--ngs-black); }

/* Media-kolom: hoofdafbeelding + thumbs */
.ngs-modal-media { display: flex; flex-direction: column; background: var(--ngs-black); min-height: 0; }
.ngs-modal-main { flex: 1; min-height: 320px; }
.ngs-modal-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngs-modal-thumbs { display: flex; gap: 8px; padding: 12px; background: var(--ngs-black); overflow-x: auto; }
.ngs-thumb {
    flex: 0 0 auto; width: 62px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; background: none; opacity: 0.65; transition: opacity 0.2s, border-color 0.2s;
}
.ngs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngs-thumb:hover { opacity: 1; }
.ngs-thumb.is-active { border-color: var(--ngs-gold); opacity: 1; }

/* Info-kolom */
.ngs-modal-info { padding: 40px 36px; overflow-y: auto; }
.ngs-modal-info-full { grid-column: 1 / -1; }
.ngs-modal-title { font-family: var(--ngs-font-serif); font-size: 2rem; line-height: 1.15; margin: 0 0 16px; color: var(--ngs-black); }
.ngs-modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ngs-chip {
    display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 12px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    background: var(--ngs-gray); color: var(--ngs-black); border: 1px solid #eee;
}
.ngs-chip-gold { background: var(--ngs-gold); color: var(--ngs-black); border-color: var(--ngs-gold); }
.ngs-modal-excerpt { font-size: 1.05rem; line-height: 1.6; color: #555; margin: 0 0 22px; }
.ngs-modal-section { margin-bottom: 24px; }
.ngs-section-title {
    margin: 0 0 10px; font-size: 0.85rem; color: var(--ngs-gold);
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
}
.ngs-modal-process { font-size: 0.95rem; color: #666; line-height: 1.7; }
.ngs-modal-process p:last-child { margin-bottom: 0; }
.ngs-props { display: flex; flex-wrap: wrap; gap: 8px; }
.ngs-prop {
    display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 12px;
    letter-spacing: 0.5px; font-weight: 600;
    background: var(--ngs-white); color: var(--ngs-black);
    border: 1px solid var(--ngs-gold);
}
.ngs-products { list-style: none; margin: 0; padding: 0; }
.ngs-products li {
    position: relative; padding: 6px 0 6px 22px; font-size: 0.95rem; color: #444;
    border-bottom: 1px solid #f2f2f2;
}
.ngs-products li:last-child { border-bottom: none; }
.ngs-products li::before {
    content: ''; position: absolute; left: 2px; top: 13px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--ngs-gold);
}

/* Scroll-lock terwijl de modal open is */
html.ngs-modal-open, html.ngs-modal-open body { overflow: hidden !important; }

/* --- RESPONSIVE --- */
@media (max-width: 820px) {
    .ngs-modal { padding: 12px; align-items: flex-end; }
    .ngs-modal-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; }
    .ngs-modal-main { min-height: 220px; max-height: 260px; }
    .ngs-modal-info { padding: 28px 22px; overflow-y: visible; }
    .ngs-modal-title { font-size: 1.6rem; }
}
