/* ==========================================================================
   Holistic Course Portal — stylesheet
   Alle kleuren/lettertypes komen uit CSS-variabelen die de instellingenpagina
   print (zie includes/settings.php -> hcp_print_color_vars()).
   ========================================================================== */

html {
	background: var( --hcp-page-bg, #f8f7f5 );
}

.hcp-portal-body {
	margin: 0;
	min-height: 100vh;
	background: var( --hcp-page-bg, #f8f7f5 );
	color: #1a1a1a;
	font-family: var( --hcp-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif );
	box-sizing: border-box;
}

.hcp-portal-body h1,
.hcp-portal-body h2,
.hcp-portal-body h3,
.hcp-portal-body h4 {
	font-family: var( --hcp-font-heading, inherit );
}

.hcp-portal-body h1 {
	font-size: var( --hcp-h1-size, 28px );
	color: var( --hcp-h1-color, #2C2416 );
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 16px;
}
.hcp-portal-body h2 {
	font-size: var( --hcp-h2-size, 22px );
	color: var( --hcp-h2-color, #2C2416 );
}
.hcp-portal-body h3 {
	font-size: var( --hcp-h3-size, 18px );
	color: var( --hcp-h3-color, #2C2416 );
}
.hcp-portal-body h4 {
	font-size: var( --hcp-h4-size, 16px );
	color: var( --hcp-h4-color, #2C2416 );
}

.hcp-content-body,
.hcp-content-body p,
.hcp-content-body li {
	color: var( --hcp-text-color, #4A3C2E );
	font-size: var( --hcp-body-size, 16px );
}
.hcp-content-body img {
	border-radius: var( --hcp-image-radius, 0 );
}
.hcp-content-body a:not( [class*="btn"] ):not( [class*="button"] ):not( [class*="cta"] ):not( [class*="tab"] ) {
	color: var( --hcp-link-color, #CC7D14 );
}

/* --------------------------------------------------------------------------
   Topbalk binnen het cursusportaal
   -------------------------------------------------------------------------- */
.hcp-topnav {
	display: block;
	background: var( --hcp-header-bg, #e7ddc7 );
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.06 );
}

.hcp-topnav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1300px;
	margin: 0 auto;
	padding: 14px 24px;
	box-sizing: border-box;
}

.hcp-topnav-brand {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.hcp-topnav-logo {
	max-height: 36px;
	display: block;
}

.hcp-topnav-title {
	font-weight: 700;
	font-size: 16px;
	color: inherit;
}

.hcp-topnav-tabs a {
	position: relative;
	margin-right: 20px;
	text-decoration: none;
	color: #3a3a3a;
	font-weight: 600;
	font-size: 14px;
	padding-bottom: 4px;
	overflow: hidden;
}

.hcp-topnav-tabs a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: var( --hcp-accent-color, #CC7D14 );
	transform: scaleX( 0 );
	transform-origin: left;
	transition: transform 0.45s cubic-bezier( 0.22, 1, 0.36, 1 );
}

.hcp-topnav-tabs a:hover::after,
.hcp-topnav-tabs a.is-active::after {
	transform: scaleX( 1 );
}

.hcp-topnav-tabs a:hover,
.hcp-topnav-tabs a.is-active {
	color: #000;
}

/* --------------------------------------------------------------------------
   Layout: gekaderd/geboxt, niet full-width — zoals het Skool-voorbeeld
   -------------------------------------------------------------------------- */
.hcp-portal {
	display: flex;
	max-width: 1300px;
	margin: 28px auto;
	padding: 0 24px;
	align-items: flex-start;
	box-sizing: border-box;
}

/* Zijbalk + inhoud vormen nu samen ÉÉN kaart, met een verticale lijn ertussen
   als afscheiding — in plaats van twee losse vlakken naast elkaar. */
.hcp-course-card {
	display: flex;
	width: 100%;
	background: var( --hcp-content-bg, #fff );
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
	overflow: hidden;
	align-items: stretch;
}

.hcp-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: var( --hcp-sidebar-bg, #fff );
	border-right: 1px solid #e6e6e6; /* de verticale scheidingslijn */
	padding: 24px 0;
}

.hcp-sidebar-header {
	padding: 0 20px 18px;
	border-bottom: 1px solid #eee;
	margin-bottom: 14px;
}

.hcp-course-title {
	font-weight: 700;
	font-size: 16px;
	display: block;
	margin-bottom: 12px;
	color: var( --hcp-heading-color, #2C2416 );
}

.hcp-sidebar-progress {
	height: 8px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
}
.hcp-sidebar-progress-fill {
	height: 100%;
	background: var( --hcp-accent-color, #CC7D14 );
}
.hcp-sidebar-progress-label {
	font-size: 12px;
	color: #777;
	margin-top: 4px;
	display: block;
}

.hcp-toc a {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 10px;
	padding: 10px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: var( --hcp-sidebar-text, #333 );
	font-size: 13px;
	line-height: 1.4;
}
.hcp-toc-lesson {
	margin-left: 22px !important; /* lessen een beetje laten inspringen t.o.v. het hoofdstuk erboven */
}
.hcp-toc a:hover {
	background: var( --hcp-sidebar-hover, #E8F3E3 );
}
.hcp-toc a.is-active {
	background: color-mix( in srgb, var( --hcp-sidebar-active, #CC7D14 ) 12%, transparent );
	color: var( --hcp-sidebar-active, #CC7D14 );
	font-weight: 600;
}
.hcp-toc-overview {
	font-weight: 700 !important;
	margin-top: 2px;
	margin-bottom: 8px !important;
}

.hcp-toc-section {
	margin-top: 2px;
}
.hcp-toc-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 2px 10px;
	padding: 0 14px;
	height: 42px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	color: var( --hcp-sidebar-text, #333 );
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}
.hcp-toc-section-title:hover {
	background: var( --hcp-sidebar-hover, #E8F3E3 );
}
.hcp-toc-section-title--link.is-active {
	background: color-mix( in srgb, var( --hcp-sidebar-active, #CC7D14 ) 12%, transparent );
	color: var( --hcp-sidebar-active, #CC7D14 );
}
.hcp-toc-section-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1;
	color: #888;
	transform: translateY( -1px );
}
.hcp-toc-section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hcp-toc-section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 1px solid var( --hcp-accent-color, #CC7D14 );
	border-radius: 6px;
	font-size: 10px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var( --hcp-accent-color, #CC7D14 );
	background: #fafafa;
	opacity: 0.6;
}
.hcp-toc-section.is-collapsed .hcp-toc-lesson {
	display: none;
}

.hcp-toc-check {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	border: 1.5px solid #ccc;
	flex-shrink: 0;
	display: inline-block;
}
.hcp-toc-check.is-complete {
	background: var( --hcp-accent-color, #CC7D14 );
	border-color: var( --hcp-accent-color, #CC7D14 );
}

.hcp-toc-empty {
	padding: 0 20px;
	color: #999;
	font-size: 13px;
}

.hcp-toc-print {
	display: inline-flex;
	margin: 0 10px 4px;
	width: calc( 100% - 20px );
	justify-content: center;
}
.hcp-toc-divider {
	border-top: 1px solid #eee;
	margin: 18px 10px 14px;
}

/* ==========================================================================
   Inlogscherm
   ========================================================================== */
.hcp-login-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
	box-sizing: border-box;
}
.hcp-login-box {
	background: var( --hcp-content-bg, #fff );
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
	padding: 40px;
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
}
.hcp-login-logo {
	display: block;
	margin: 0 auto 20px;
	max-height: 44px;
}
.hcp-login-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #611a15;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 16px;
}
.hcp-login-box label {
	display: block;
	font-weight: 600;
	margin: 14px 0 6px;
	font-size: 13px;
}
.hcp-login-box input[type="text"],
.hcp-login-box input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-sizing: border-box;
}
.hcp-login-box button {
	width: 100%;
	margin-top: 20px;
	padding: 12px;
}

/* ==========================================================================
   Printweergave van een hele cursus
   ========================================================================== */
.hcp-print-page {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 24px 80px;
	background: #fff;
}
.hcp-print-chapter {
	margin-top: 40px;
	border-bottom: 2px solid #333;
	padding-bottom: 6px;
}
.hcp-print-lesson {
	margin-top: 28px;
	page-break-inside: avoid;
}
.hcp-print-button-bar {
	position: sticky;
	top: 0;
	background: #fff;
	padding: 16px 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}
@media print {
	.hcp-print-button-bar {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Content — witte, geboxte kaart met zachte schaduw (Skool-stijl)
   -------------------------------------------------------------------------- */
.hcp-content {
	flex-grow: 1;
	padding: var( --hcp-content-spacing-top, 40px ) 50px var( --hcp-content-spacing-bottom, 40px );
	max-width: 820px;
	box-sizing: border-box;
}

.hcp-content--wide {
	background: var( --hcp-content-bg, #fff );
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.hcp-content-body {
	line-height: 1.7;
	font-size: 16px;
}

/* Expliciet herstellen — sommige thema's resetten ul/ol standaard naar
   list-style:none, waardoor bullets/nummers in lesinhoud verdwenen of
   verkeerd uitgelijnd leken. */
.hcp-content-body ul,
.hcp-content-body ol {
	margin: 16px 0;
	padding-left: 24px;
}
.hcp-content-body ul {
	list-style: disc outside;
}
.hcp-content-body ol {
	list-style: decimal outside;
}
.hcp-content-body li {
	margin-bottom: 8px;
	padding-left: 4px;
}

/* --------------------------------------------------------------------------
   Vorige / volgende hoofdstuk — vervangt de oude "Start cursus" /
   "Markeer als voltooid"-knoppen. Op "Volgende" wordt de huidige les
   automatisch als voltooid gemarkeerd voordat je doorgaat.
   -------------------------------------------------------------------------- */
.hcp-chapter-nav-btns {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid #eee;
	gap: 16px;
}

.hcp-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	box-sizing: border-box;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	vertical-align: middle;
}

.hcp-nav-btn-prev {
	background: transparent;
	color: #6B5744;
	border: 1px solid #e0d9cd;
}
.hcp-nav-btn-prev:hover {
	background: #f5f2ee;
}

.hcp-nav-btn-next {
	background: var( --hcp-accent-color, #CC7D14 );
	color: var( --hcp-button-text, #fff );
	margin-left: auto;
	appearance: none;
	-webkit-appearance: none;
}
.hcp-nav-btn-next:hover {
	opacity: 0.9;
}

.hcp-button,
.hcp-buy-button {
	display: inline-block;
	background: var( --hcp-accent-color, #CC7D14 );
	color: var( --hcp-button-text, #fff );
	border: none;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.hcp-button:hover,
.hcp-buy-button:hover {
	opacity: 0.9;
}
.hcp-button--small {
	padding: 7px 14px;
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   Vergrendeld scherm (geen toegang)
   -------------------------------------------------------------------------- */
.hcp-locked-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc( 100vh - 65px );
	text-align: center;
	padding: 40px;
}
.hcp-locked-box {
	max-width: 420px;
}
.hcp-locked-text {
	color: #666;
	margin-bottom: 20px;
}
.hcp-login-link {
	margin-top: 16px;
	font-size: 13px;
}

/* ==========================================================================
   Cursusoverzicht — grid met kaarten (shortcode + Mijn Account)
   ========================================================================== */
.hcp-ov-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 330px, 1fr ) );
	gap: 24px;
	margin: 20px 0;
}

.hcp-ov-card {
	border: 1px solid #eaeaea;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.hcp-ov-cover {
	height: 220px;
	background: linear-gradient( 135deg, #444, #111 );
	background-size: cover;
	background-position: center;
	position: relative;
}

.hcp-ov-lock-overlay {
	position: absolute;
	inset: 0;
	background: var( --hcp-locked-overlay, #1c2b17 );
	opacity: 0.72;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: 10px;
}
.hcp-ov-lock-icon {
	font-size: 22px;
	margin-bottom: 6px;
}
.hcp-ov-unlock-text {
	font-weight: 700;
	font-size: 14px;
}

.hcp-ov-body {
	padding: 16px;
}
.hcp-ov-title {
	font-family: var( --hcp-font-heading, inherit ) !important;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.35;
	color: var( --hcp-heading-color, #2C2416 );
	margin: 0 0 12px;
}

.hcp-ov-progress {
	height: 8px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 4px;
}
.hcp-ov-progress-fill {
	height: 100%;
	background: var( --hcp-accent-color, #CC7D14 );
}
.hcp-ov-progress-label {
	display: block;
	font-size: 12px;
	color: #777;
	margin-bottom: 10px;
}

.hcp-ov-cta {
	display: inline-block;
	background: var( --hcp-accent-color, #CC7D14 );
	color: var( --hcp-button-text, #fff );
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.hcp-ov-cta:hover {
	opacity: 0.9;
}
.hcp-ov-cta--locked {
	background: #333;
}

/* ==========================================================================
   Q&A
   ========================================================================== */
.hcp-qna-course-switch {
	margin-bottom: 10px;
}
.hcp-qna-subheading {
	font-size: 14px;
	color: #888;
	margin: 0 0 20px;
}
.hcp-qna-course-tab {
	display: inline-block;
	margin-right: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-size: 13px;
}
.hcp-qna-course-tab.is-active {
	background: var( --hcp-accent-color, #CC7D14 );
	color: var( --hcp-button-text, #fff );
}

.hcp-qna-form {
	border: 1px solid #eaeaea;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 24px;
}

.hcp-qna-item {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 16px;
	background: #fbfbfa;
}
.hcp-qna-item--pending {
	border: 1px dashed #ccc;
	border-radius: 12px;
	padding: 20px 22px;
	background: #fafafa;
	opacity: 0.8;
}
.hcp-qna-body {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 8px;
	color: var( --hcp-heading-color, #2C2416 );
}
.hcp-qna-meta {
	font-size: 12px;
	color: #999;
	margin: 0 0 10px;
}
.hcp-qna-answer {
	background: #f7f9f5;
	border-left: 3px solid var( --hcp-accent-color, #CC7D14 );
	padding: 10px 14px;
	margin-top: 10px;
	border-radius: 0 8px 8px 0;
	font-size: 14px;
}
.hcp-qna-answer-label {
	font-weight: 700;
}
.hcp-qna-answer-form {
	margin-top: 10px;
}

.hcp-notice {
	color: #777;
}

/* ==========================================================================
   Mijn account
   ========================================================================== */
.hcp-account-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.hcp-account-tabs a {
	padding: 8px 16px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}
.hcp-account-tabs a.is-active {
	background: var( --hcp-accent-color, #CC7D14 );
	color: var( --hcp-button-text, #fff );
}

.hcp-account-order {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 12px;
}
.hcp-account-order-header {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
	margin-bottom: 6px;
}
.hcp-account-order-status {
	font-size: 12px;
	color: #666;
	text-transform: capitalize;
}

.hcp-account-form label {
	display: block;
	font-weight: 600;
	margin: 14px 0 6px;
	font-size: 13px;
}
.hcp-account-form input[type="text"],
.hcp-account-form input[type="email"],
.hcp-account-form input[type="password"] {
	width: 100%;
	max-width: 420px;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Mobiel
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Hoofdmenu op mobiel: hamburger-icoon dat een paneel vanaf rechts opent
   -------------------------------------------------------------------------- */
.hcp-topnav-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 28px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var( --hcp-hamburger-color, #CC7D14 );
}

.hcp-mobile-nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 40;
}

.hcp-mobile-nav-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 280px;
	max-width: 80vw;
	background: #fff;
	z-index: 41;
	padding: 24px 20px;
	box-sizing: border-box;
	transform: translateX( 100% );
	transition: transform 0.3s ease;
	box-shadow: -2px 0 12px rgba( 0, 0, 0, 0.15 );
}
.hcp-mobile-nav-panel.is-open,
.hcp-mobile-nav-overlay.is-open {
	display: block;
}
.hcp-mobile-nav-panel.is-open {
	transform: translateX( 0 );
}

.hcp-mobile-nav-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	position: absolute;
	top: 16px;
	right: 16px;
	cursor: pointer;
	color: #666;
}

.hcp-mobile-nav-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 40px;
}
.hcp-mobile-nav-links a {
	padding: 12px 10px;
	text-decoration: none;
	color: #333;
	font-weight: 600;
	font-size: 15px;
	border-radius: 8px;
}
.hcp-mobile-nav-links a.is-active {
	background: var( --hcp-sidebar-hover, #E8F3E3 );
	color: var( --hcp-accent-color, #CC7D14 );
}

@media ( max-width: 768px ) {
	.hcp-topnav {
		position: static; /* Niet meer sticky/mee-scrollend op mobiel */
	}
	.hcp-ov-grid {
		grid-template-columns: 1fr; /* de vaste 330px-minimum voor 3 kolommen is te breed voor mobiel */
	}
	.hcp-topnav-tabs {
		display: none;
	}
	.hcp-topnav-hamburger {
		display: flex;
	}
	.hcp-portal {
		padding: 0 12px;
	}
	.hcp-course-card {
		flex-direction: column;
	}
	.hcp-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #e6e6e6;
	}
	.hcp-content {
		padding: var( --hcp-content-spacing-top, 40px ) 20px var( --hcp-content-spacing-bottom, 40px );
	}
}
