/*
 * DeL N+ Course Catalogue — front end.
 * Variables are scoped to the plugin wrappers (.dnp, .dnp-page), never :root,
 * so they cannot leak into Blocksy/Elementor. Elementor widget style controls
 * override them per widget.
 */
.dnp,
.dnp-page {
	--dnp-primary: #1965B0;
	--dnp-primary-dark: #13528f;
	--dnp-accent: #F57921;
	--dnp-accent-dark: #dc6612;
	--dnp-ink: #071D49;
	--dnp-text: #3c4257;
	--dnp-muted: #6b7385;
	--dnp-line: #e3e7ef;
	--dnp-surface: #f3f7fc;
	--dnp-bg: #ffffff;
	--dnp-btn-text: #ffffff;
	--dnp-radius: 12px;
	--dnp-gap: 12px;
	--dnp-card-min: 260px;
	box-sizing: border-box;
	color: var(--dnp-text);
}
.dnp *, .dnp-page * { box-sizing: border-box; }
.dnp .dnp-heading { color: var(--dnp-ink); margin: 0 0 14px; line-height: 1.25; }
.dnp h2.dnp-heading { font-size: clamp(20px, 2.2vw, 26px); }
.dnp h3.dnp-heading { font-size: 18px; margin-top: 22px; }
.dnp img { max-width: 100%; height: auto; }
.dnp ul { margin: 0; padding: 0; }
.dnp-richtext ul, .dnp-richtext ol { padding-left: 1.2em; margin: 0 0 1em; }
.dnp-richtext p { margin: 0 0 1em; }

/* Buttons */
.dnp .dnp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 11px 18px; border-radius: 9px; border: 1.5px solid var(--dnp-primary);
	background: var(--dnp-primary); color: var(--dnp-btn-text); font-weight: 700;
	text-decoration: none; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s;
}
.dnp .dnp-btn:hover, .dnp .dnp-btn:focus-visible { background: var(--dnp-primary-dark); color: var(--dnp-btn-text); }
.dnp .dnp-btn--ghost { background: transparent; color: var(--dnp-primary); }
.dnp .dnp-btn--ghost:hover, .dnp .dnp-btn--ghost:focus-visible { background: var(--dnp-surface); color: var(--dnp-primary); }
.dnp .dnp-btn--accent { background: var(--dnp-accent); border-color: var(--dnp-accent); }
.dnp .dnp-btn--accent:hover, .dnp .dnp-btn--accent:focus-visible { background: var(--dnp-accent-dark); border-color: var(--dnp-accent-dark); }
.dnp .dnp-btn--block { display: flex; width: 100%; margin-top: 8px; }
.dnp .dnp-btn--sm { padding: 6px 12px; font-size: 13px; }
.dnp a:focus-visible, .dnp button:focus-visible, .dnp input:focus-visible, .dnp select:focus-visible, .dnp summary:focus-visible { outline: 2px solid var(--dnp-primary); outline-offset: 2px; }

/* Breadcrumbs, provider, title, summary, meta */
.dnp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--dnp-muted); }
.dnp-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.dnp-crumbs a { color: inherit; text-decoration: none; }
.dnp-crumbs a:hover { text-decoration: underline; }
.dnp-provider__inner { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 6px 12px 6px 6px; color: #071D49; font-weight: 700; font-size: 13px; }
.dnp-provider__logo { max-height: 28px; width: auto; }
.dnp-title__text { color: var(--dnp-ink); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
.dnp-summary__text { font-size: 17px; line-height: 1.6; margin: 0; max-width: 64ch; }
.dnp-meta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; }
.dnp-meta__row b { color: var(--dnp-ink); }
.dnp-meta__level { border: 1px solid currentColor; border-radius: 99px; padding: 3px 11px; font-weight: 600; font-size: 13px; }
.dnp-stars { color: var(--dnp-accent); letter-spacing: 1px; }
.dnp-meta__rating small { color: var(--dnp-muted); }

/* Learning method card */
.dnp.dnp-method { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 18px 40px rgba(7, 29, 73, .18); color: var(--dnp-text); }
.dnp-method h2.dnp-heading, .dnp-method .dnp-heading { font-size: 18px; }
.dnp-method__options { display: grid; gap: 10px; }
.dnp-opt { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; border: 1.5px solid var(--dnp-line); border-radius: 10px; padding: 13px; cursor: pointer; }
.dnp-opt:hover { border-color: #b9cde6; }
.dnp-opt.is-selected, .dnp-opt:has(input:checked) { border-color: var(--dnp-primary); background: var(--dnp-surface); }
.dnp-opt input { margin: 3px 0 0; accent-color: var(--dnp-primary); width: 16px; height: 16px; }
.dnp-opt strong { display: block; color: var(--dnp-ink); line-height: 1.3; }
.dnp-opt__desc { display: block; font-size: 12.5px; color: var(--dnp-muted); margin-top: 3px; }
.dnp-opt__price { text-align: right; font-weight: 800; color: var(--dnp-ink); white-space: nowrap; }
.dnp-opt__price s { display: block; font-weight: 500; color: var(--dnp-muted); font-size: 12px; }
.dnp-opt__price small { font-weight: 500; color: var(--dnp-muted); font-size: 12px; }
.dnp-includes { list-style: none; margin: 14px 0 6px; padding: 0; font-size: 13.5px; }
.dnp-includes li { position: relative; padding: 3px 0 3px 20px; }
.dnp-includes li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--dnp-accent); }
.dnp-method__note { font-size: 12px; color: var(--dnp-muted); text-align: center; margin: 8px 0 0; }
.dnp-method__intro { margin: 0 0 6px; }

/* Banner */
.dnp-banner__box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border: 1.5px solid #fbd3b4; background: #fff8f2; border-radius: 14px; padding: 18px 22px; }
.dnp-banner__title { display: block; color: var(--dnp-ink); font-size: 16px; }
.dnp-banner__text p { margin: 2px 0 0; font-size: 14px; }

/* Section navigation */
.dnp-nav__bar { background: var(--dnp-bg); border-bottom: 1px solid var(--dnp-line); }
.dnp-nav__bar ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; margin: 0; padding: 0; scrollbar-width: thin; }
.dnp-nav__bar a { display: block; padding: 15px 14px; white-space: nowrap; color: var(--dnp-muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
.dnp-nav__bar a:hover { color: var(--dnp-ink); }
.dnp-nav__bar a.is-current { color: var(--dnp-ink); border-bottom-color: var(--dnp-accent); }

/* Facts, lists, tiles, chips */
.dnp-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--dnp-gap); margin: 6px 0 4px; }
.dnp-facts__item { border: 1px solid var(--dnp-line); border-radius: var(--dnp-radius); padding: 12px 14px; }
.dnp-facts__item span { display: block; font-size: 12.5px; color: var(--dnp-muted); }
.dnp-facts__item b { color: var(--dnp-ink); }
.dnp-checklist { list-style: none; display: grid; gap: var(--dnp-gap); padding: 0; }
.dnp-checklist li { position: relative; padding-left: 30px; }
.dnp-checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--dnp-surface); color: var(--dnp-primary); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.dnp-checklist strong { color: var(--dnp-ink); }
.dnp-tiles { display: grid; grid-template-columns: repeat(var(--dnp-cols, auto-fill), minmax(170px, 1fr)); gap: var(--dnp-gap); }
.dnp-tile { display: flex; align-items: center; gap: 10px; border: 1px solid var(--dnp-line); border-radius: var(--dnp-radius); padding: 12px; color: var(--dnp-ink); font-weight: 600; font-size: 14px; }
.dnp-tile__img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.dnp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.dnp-chips li { border: 1px solid var(--dnp-line); border-radius: 99px; padding: 6px 13px; font-size: 14px; background: var(--dnp-bg); }
.dnp-list { padding-left: 1.2em !important; }

/* Tables (schedules) */
.dnp-table-wrap { overflow-x: auto; }
.dnp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dnp-table th, .dnp-table td { padding: 12px 10px; border-bottom: 1px solid var(--dnp-line); text-align: left; vertical-align: middle; }
.dnp-table th { font-size: 12.5px; color: var(--dnp-muted); font-weight: 600; }
.dnp-table__date { font-weight: 600; color: var(--dnp-ink); white-space: nowrap; }
.dnp-status { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.dnp-status--open { background: #eaf6ee; color: #1f7a37; }
.dnp-status--few { background: #fff1e6; color: #a64d0b; }
.dnp-status--full { background: #f1f2f5; color: #6b7385; }

/* Certification */
.dnp-cert__grid { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.dnp-cert__badge img { width: 140px; height: auto; }
.dnp-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--dnp-gap); margin: 0 0 14px; }
.dnp-dl dt { font-size: 12.5px; color: var(--dnp-muted); }
.dnp-dl dd { margin: 0; font-weight: 700; color: var(--dnp-ink); }
.dnp-icon-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--dnp-gap); padding: 0; }
.dnp-icon-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dnp-icon { width: 32px; height: 32px; flex: none; object-fit: contain; }
.dnp-icon--dot { border-radius: 8px; background: #fff1e6; border: 1px solid #fbd3b4; display: inline-block; }

/* Accordion (modules, FAQs) */
.dnp-accordion { border: 1px solid var(--dnp-line); border-radius: var(--dnp-radius); overflow: hidden; }
.dnp-accordion details { border-bottom: 1px solid var(--dnp-line); }
.dnp-accordion details:last-child { border-bottom: 0; }
.dnp-accordion summary { display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 650; color: var(--dnp-ink); list-style: none; }
.dnp-accordion summary::-webkit-details-marker { display: none; }
.dnp-accordion summary::after { content: "+"; color: var(--dnp-primary); font-weight: 800; font-size: 18px; line-height: 1; }
.dnp-accordion details[open] summary::after { content: "\2013"; }
.dnp-accordion__body { padding: 0 18px 16px; font-size: 14.5px; }
.dnp-accordion__body p { margin: 0 0 .6em; }

/* Resources and guide */
.dnp-res__grid { display: grid; grid-template-columns: repeat(var(--dnp-cols, auto-fit), minmax(200px, 1fr)); gap: var(--dnp-gap); margin-bottom: 16px; }
.dnp-res__item { border: 1px solid var(--dnp-line); border-radius: var(--dnp-radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.dnp-res__item b { color: var(--dnp-ink); }
.dnp-res__item span { font-size: 13px; color: var(--dnp-muted); }
.dnp-links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.dnp-link { color: var(--dnp-primary); font-weight: 600; }
.dnp-guide__box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--dnp-surface); border-radius: 14px; padding: 18px 20px; }
.dnp-guide__box b { display: block; color: var(--dnp-ink); }
.dnp-guide__box small { color: var(--dnp-muted); }

/* Catalogue */
.dnp-catalogue__tools { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(160px, 1fr)) auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.dnp-catalogue__tools input, .dnp-catalogue__tools select { width: 100%; border: 1px solid var(--dnp-line); border-radius: 10px; padding: 12px 14px; background: #fff; color: var(--dnp-text); font: inherit; }
.dnp-catalogue__reset { font-size: 13px; color: var(--dnp-primary); }
.dnp-catalogue__count { font-size: 13px; color: var(--dnp-muted); margin: 0 0 14px; }
.dnp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--dnp-card-min), 1fr)); gap: 20px; }
.dnp-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.dnp-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.dnp-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.dnp-card { display: flex; flex-direction: column; border: 1px solid var(--dnp-line); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .15s; }
.dnp-card:hover { border-color: #b9cde6; }
.dnp-card__media { display: block; aspect-ratio: 16 / 9; background: var(--dnp-ink); overflow: hidden; }
.dnp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnp-card__ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 85% 15%, var(--dnp-primary) 0 22%, transparent 23%), var(--dnp-ink); }
.dnp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.dnp-card__vendor { font-size: 12px; font-weight: 700; color: var(--dnp-accent); }
.dnp-card__title { font-size: 16px; line-height: 1.35; margin: 0; }
.dnp-card__title a { color: var(--dnp-ink); text-decoration: none; }
.dnp-card__title a:hover { color: var(--dnp-primary); }
.dnp-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--dnp-muted); }
.dnp-card__price { font-weight: 800; color: var(--dnp-ink); font-size: 17px; }
.dnp-card__price small { font-weight: 500; color: var(--dnp-muted); font-size: 12px; }
.dnp-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.dnp-empty { border: 1px dashed var(--dnp-line); border-radius: 12px; padding: 30px; text-align: center; color: var(--dnp-muted); }
.dnp-pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; padding: 0; }
.dnp-pager a, .dnp-pager span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--dnp-line); border-radius: 8px; color: var(--dnp-ink); text-decoration: none; }
.dnp-pager span[aria-current] { background: var(--dnp-ink); border-color: var(--dnp-ink); color: #fff; }
.dnp-admin-note { border: 1px dashed #F57921; padding: 10px 14px; border-radius: 8px; }

/* Elementor editor placeholder for empty widgets */
.dnp-editor-empty { border: 1.5px dashed #F57921; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: #7a3b0c; background: #fff8f2; }

/* ---------------- Built-in course page ---------------- */
.dnp-page { background: var(--dnp-bg); }
.dnp-page__wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dnp-page__hero { background: var(--dnp-ink); color: #dde6f5; padding: 28px 0 40px; }
.dnp-page__hero .dnp { --dnp-ink: #ffffff; --dnp-text: #dde6f5; --dnp-muted: #c2cee4; color: #dde6f5; }
.dnp-page__hero .dnp-method { --dnp-ink: #071D49; --dnp-text: #3c4257; --dnp-muted: #6b7385; color: #3c4257; }
.dnp-page__hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
.dnp-page__intro { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dnp-page__intro .dnp { width: 100%; }
.dnp-page__intro .dnp-provider { width: auto; }
.dnp-page__aside .dnp-method { margin-bottom: -110px; position: relative; z-index: 2; }
.dnp-page__banner { margin-top: 28px; }
.dnp-page__banner .dnp-banner { max-width: calc(100% - 420px); }
.dnp-page__navwrap { position: sticky; top: 0; z-index: 20; margin-top: 28px; }
.admin-bar .dnp-page__navwrap { top: 32px; }
.dnp-page__navwrap .dnp-nav__bar ul { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dnp-page__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 34px; padding-bottom: 70px; }
.dnp-page__main { min-width: 0; max-width: 800px; }
.dnp-page__section { padding: 6px 0 30px; margin-bottom: 26px; border-bottom: 1px solid #e3e7ef; scroll-margin-top: 90px; }
.dnp-page__section:last-child { border-bottom: 0; }
.dnp-page__section > .dnp-heading { color: #071D49; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 0 0 14px; }
.dnp-page__section > .dnp + .dnp { margin-top: 18px; }
.dnp-page__section [id^="dnp-sec-"] { scroll-margin-top: 90px; }
.dnp-page__extra { padding-bottom: 60px; }
.dnp-page__archive { padding-top: 40px; padding-bottom: 70px; }
.dnp-archive__title { color: #071D49; font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 20px; }

@media (max-width: 1000px) {
	.dnp-page__hero-grid, .dnp-page__body { grid-template-columns: 1fr; }
	.dnp-page__aside .dnp-method { margin-bottom: 0; }
	.dnp-page__banner .dnp-banner { max-width: none; }
	.dnp-catalogue__tools { grid-template-columns: 1fr 1fr; }
	.dnp-catalogue__tools input[type="search"] { grid-column: 1 / -1; }
	.dnp-grid--cols-3, .dnp-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.dnp-page__wrap { padding: 0 16px; }
	.dnp-cert__grid { grid-template-columns: 1fr; }
	.dnp-catalogue__tools { grid-template-columns: 1fr; }
	.dnp-grid--cols-2, .dnp-grid--cols-3, .dnp-grid--cols-4 { grid-template-columns: 1fr; }
	.dnp-page__navwrap .dnp-nav__bar ul { padding: 0 8px; }
	.admin-bar .dnp-page__navwrap { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.dnp *, .dnp-page * { transition: none !important; scroll-behavior: auto !important; }
}

/* 1.1.0 additions */
.dnp .dnp-subhead { font-weight: 700; color: var(--dnp-ink); margin: 16px 0 8px; }
.dnp-cert__image { margin: 16px 0 0; }
.dnp-cert__image img { max-width: 420px; width: 100%; height: auto; border: 1px solid var(--dnp-line); border-radius: var(--dnp-radius); }
.dnp-page--body { margin-top: 8px; }
.dnp-page--body .dnp-page__main { max-width: none; }
.dnp-page--body .dnp-page__navwrap { margin-top: 12px; }
.dnp-page--body .dnp-page__navwrap .dnp-nav__bar ul { padding: 0; }
.dnp-page--body .dnp-page__section:first-of-type { padding-top: 18px; }
/* Module topics already carry N+ numbering ("1. …"): no extra bullet. */
.dnp-outline .dnp-list { list-style: none; padding-left: 0 !important; }
.dnp-outline .dnp-list li { padding: 2px 0; }
/* 1.2.0 additions */
.dnp-checklist--icons li { padding-left: 40px; min-height: 30px; }
.dnp-checklist--icons li::before { content: none; }
.dnp-checklist--icons li .dnp-icon { position: absolute; left: 0; top: 0; width: 28px; height: 28px; object-fit: contain; }
.dnp-checklist--icons li:not(:has(.dnp-icon))::before { content: "✓"; }
.dnp-richtext .dnp-content-img { max-width: 100%; height: auto; border-radius: var(--dnp-radius); }
.dnp-method__price { font-size: 26px; font-weight: 800; color: var(--dnp-ink); margin-bottom: 6px; }
.dnp-method__price del { font-size: 15px; font-weight: 500; color: var(--dnp-muted); }
.dnp-method__price ins { text-decoration: none; }
.dnp-link--pdf::before { content: "⤓ "; }
.dnp-cert__badge img { width: 140px; height: auto; image-rendering: auto; }
.dnp-icon { image-rendering: auto; }
