/* NoRisk blog (fase 1). Kleuren, maten en vormen uit het NoRisk-design system. */

.nr-blog,
.nr-blog-sidebar {
	--nr-orange: #ff6600;
	--nr-orange-hover: #d3542e;
	--nr-blue: #01acf2;
	--nr-night: #282e35;
	--nr-night-raised: #3e434b;
	--nr-ink: #212529;
	--nr-heading: #535353;
	--nr-muted: #666e70;
	--nr-surface-alt: #f8fafa;
	--nr-border: #e9e9e9;
	--nr-border-strong: #e5eaea;
	color: var(--nr-ink);
	font-size: 15px;
	line-height: 24px;
}

.nr-blog a:focus-visible,
.nr-blog summary:focus-visible,
.nr-blog-sidebar a:focus-visible {
	outline: 2px solid #282e35;
	outline-offset: 2px;
}

/* Op donkere vlakken is de standaard focusring onzichtbaar: daar wit. */
.nr-blog-cta a:focus-visible,
.nr-blog-onderblok--algemeen a:focus-visible,
.nr-blog-side--dark a:focus-visible {
	outline-color: #fff;
}

/* Overzicht */
.nr-blog-header { text-align: center; max-width: 760px; margin: 30px auto 40px; }
.nr-blog-title { font-size: 32px; line-height: 38.4px; font-weight: 400; color: var(--nr-heading); margin: 0 0 10px; }
.nr-blog-title b { font-weight: 700; }
.nr-blog-intro p:last-child { margin-bottom: 0; }

.nr-blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 576px) { .nr-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .nr-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nr-blog-card { border: 1px solid var(--nr-border); background: #fff; display: flex; flex-direction: column; }
.nr-blog-card__media { position: relative; display: block; height: 190px; background: var(--nr-night-raised); }
.nr-blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-blog-card__body { padding: 45px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nr-blog-card__body--nobadge { padding-top: 20px; }
.nr-blog-card__title { font-size: 20px; line-height: 27px; font-weight: 400; margin: 0 0 10px; }
.nr-blog-card__title a { color: var(--nr-heading); text-decoration: none; }
.nr-blog-card__title a:hover { color: var(--nr-ink); }
.nr-blog-card__excerpt { font-size: 14px; line-height: 21px; margin: 0 0 15px; }
.nr-blog-card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--nr-orange); }
.nr-blog-card__more:hover { color: var(--nr-orange-hover); }
.nr-blog-card--compact .nr-blog-card__body { padding: 15px; }
.nr-blog-card--compact .nr-blog-card__title { font-size: 16px; line-height: 23px; margin: 0; }

.nr-blog-badge { position: absolute; left: 20px; bottom: -30px; width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .1); display: flex; align-items: center; justify-content: center; }
.nr-blog-badge img { width: 34px; height: 34px; }
.nr-blog-badge--blue { background: var(--nr-blue); }
.nr-blog-badge--orange { background: var(--nr-orange); }
.nr-blog-badge--dark { background: var(--nr-night); }

.nr-blog-meta { font-size: 13px; color: var(--nr-muted); margin-bottom: 5px; }

.nr-blog .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 40px 0 60px; }
.nr-blog .nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--nr-border); border-radius: 4px; color: var(--nr-ink); text-decoration: none; }
.nr-blog .nav-links .page-numbers.current { background: var(--nr-blue); border-color: var(--nr-blue); color: #fff; font-weight: 700; font-size: 19px; }

/* Donkere sectie over de volle breedte, zonder horizontale scroll */
.nr-blog-cta { background: var(--nr-night); box-shadow: 0 0 0 100vmax var(--nr-night); clip-path: inset(0 -100vmax); color: #fff; text-align: center; padding: 50px 0 60px; margin-top: 20px; }
.nr-blog-cta h2 { font-size: 27px; line-height: 1.5; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.nr-blog-cta p { color: #fff; max-width: 640px; margin: 0 auto 25px; }
.nr-blog-cta .nr-blog-score { margin: 25px auto 0; }

/* Opleidingslinks */
.nr-blog-links ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .nr-blog-links--raster ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nr-blog-links--rij ul { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 25px; }
.nr-blog-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 15px; background: var(--nr-night-raised); color: #fff; border-radius: 4px; text-decoration: none; }
.nr-blog-links a:hover { background: #4a5059; color: #fff; }

/* Knop en score */
.nr-blog-btn { display: inline-block; position: relative; min-height: 50px; padding: 13px 50px 13px 30px; line-height: 24px; border-radius: 4px; background: var(--nr-orange); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; text-align: left; }
.nr-blog-btn:hover, .nr-blog-btn:focus { background: var(--nr-orange-hover); color: #fff; text-decoration: none; }
.nr-blog-btn::after { content: ""; position: absolute; right: 25px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.nr-blog-score { font-size: 14px; }
.nr-blog-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }

/* Bericht */
.nr-blog-post { padding: 30px 0 60px; }
.nr-blog-post__title { font-size: 32px; line-height: 38.4px; font-weight: 400; color: var(--nr-heading); margin: 0 0 10px; }
.nr-blog-post__meta { font-size: 14px; margin-bottom: 20px; }
.nr-blog-post__image { margin: 0 0 25px; }
.nr-blog-post__image img { width: 100%; height: 340px; object-fit: cover; display: block; }
.nr-blog-post__content h2 { font-size: 24px; line-height: 1.25; font-weight: 400; color: var(--nr-heading); margin: 35px 0 15px; scroll-margin-top: 20px; }
.nr-blog-post__content p { margin: 0 0 15px; }

.nr-blog-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nr-muted); margin-bottom: 5px; }
.nr-blog-answer { background: var(--nr-surface-alt); border: 1px solid var(--nr-border-strong); padding: 20px; margin: 0 0 25px; }
.nr-blog-answer p { font-size: 16px; line-height: 26px; margin: 0; }

.nr-blog-toc { border: 1px solid var(--nr-border); padding: 15px 20px; margin: 0 0 10px; }
.nr-blog-toc summary { font-weight: 700; color: var(--nr-heading); cursor: pointer; min-height: 24px; }
.nr-blog-toc ul { margin: 10px 0 0; display: grid; gap: 6px; }

.nr-checklist { list-style: none; margin: 0 0 15px; padding: 0; }
.nr-checklist li { display: flex; align-items: baseline; gap: 10px; }
.nr-check { display: inline-block; flex: none; width: 6px; height: 11px; margin: -3px 3px 0 2px; border-right: 2px solid var(--nr-orange); border-bottom: 2px solid var(--nr-orange); transform: rotate(45deg); }

/* Onderblok */
.nr-blog-onderblok { margin-top: 40px; }
.nr-blog-onderblok h2 { font-size: 24px; line-height: 1.25; font-weight: 400; margin: 5px 0 15px; }
.nr-blog-onderblok--algemeen { background: var(--nr-night); color: #fff; padding: 30px; }
.nr-blog-onderblok--algemeen h2, .nr-blog-onderblok--algemeen li { color: #fff; }
.nr-blog-onderblok--algemeen h2 b { font-weight: 700; }
.nr-blog-onderblok--cursus { border: 1px solid var(--nr-border); display: flex; flex-wrap: wrap; }
.nr-blog-onderblok--cursus h2 { color: var(--nr-heading); }
.nr-blog-onderblok__media { position: relative; flex: 1 1 220px; min-height: 180px; background: var(--nr-night-raised); }
.nr-blog-onderblok__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-blog-onderblok__media .nr-blog-badge { left: auto; right: -30px; bottom: auto; top: 50%; transform: translateY(-50%); z-index: 1; }
.nr-blog-onderblok__body { flex: 2 1 340px; padding: 25px 25px 25px 50px; }
.nr-blog-onderblok__body--nobadge { padding-left: 25px; }
.nr-blog-onderblok__body p { font-size: 14px; line-height: 21px; }
@media (max-width: 575px) {
	.nr-blog-onderblok__media .nr-blog-badge { left: 20px; right: auto; top: auto; bottom: -30px; transform: none; }
	.nr-blog-onderblok__body { padding: 45px 16px 20px; }
	.nr-blog-onderblok__body--nobadge { padding-top: 20px; }
}

/* Lees ook */
.nr-blog-related { margin-top: 50px; }
.nr-blog-related h2 { font-size: 24px; line-height: 1.25; font-weight: 400; color: var(--nr-heading); margin: 0 0 15px; }
.nr-blog-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

/* Zijbalk */
.nr-blog-sidebar { padding: 30px 0 60px; }
.nr-blog-sidebar .widget { margin-bottom: 20px; }
.nr-blog-side { padding: 20px; border: 1px solid var(--nr-border); font-size: 14px; line-height: 21px; }
.nr-blog-side--dark { background: var(--nr-night); border: 0; border-radius: 7px; color: #fff; padding: 25px; }
.nr-blog-side--dark p { color: #fff; }
.nr-blog-side--dark .nr-blog-btn { display: block; }
.nr-blog-side--contact { background: var(--nr-surface-alt); border-color: var(--nr-border-strong); }
.nr-blog-side__title { font-size: 19px; font-weight: 700; margin: 0 0 10px; }

/* Mobiel */
@media (max-width: 575px) {
	.nr-blog-title, .nr-blog-post__title { font-size: 26px; line-height: 32px; }
	.nr-blog-post__image img { height: 210px; }
	.nr-blog-onderblok--algemeen { padding: 20px 16px; }
	.nr-blog-btn { display: block; }
}
