/*
Theme Name: LD4T Frontend
Author: Skyrizon
Author URI: https://github.com/skyrizon
Description: The presentation layer for learndutch4thai.com — templates, CSS, and header/footer chrome. Content is owned by the ld4t-cms plugin. Originally built for the SiteOrigin Panels page builder (since retired) with a fresh orange and blue design, Thai-friendly typography (Prompt/Sarabun), sticky header, fullscreen search, mobile menu, and footer widget areas.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ld4t-frontend
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, blog, e-commerce
*/

/*--------------------------------------------------------------
# Design Tokens
--------------------------------------------------------------*/
:root {
	/* Brand colors — orange + blue */
	--ld4t-orange:        #F97316;
	--ld4t-orange-dark:   #EA580C;
	--ld4t-orange-light:  #FFEDD5;
	/* --ld4t-orange/-dark stay full-brightness for text/icons/borders drawn
	   ON a light surface (badges, accents, hairlines) — that's most of their
	   call sites. White text painted ON TOP of the orange gradient itself
	   (buttons, the orange CTA band, the header's CTA link) needs its own,
	   darker pair: at #F97316→#EA580C, white text sits at ~2.8:1, well under
	   WCAG AA's 4.5:1 for body-size text. These two hold the same hue and
	   gradient angle, deepened until both stops clear 4.5:1. */
	--ld4t-orange-cta:      #C2410C;
	--ld4t-orange-cta-dark: #9A3412;
	--ld4t-blue:          #1E3A8A;
	--ld4t-blue-bright:   #2563EB;
	--ld4t-blue-dark:     #172554;
	--ld4t-blue-light:    #DBEAFE;

	/* Neutrals */
	--ld4t-ink:           #0F172A;
	--ld4t-text:          #334155;
	--ld4t-muted:         #64748B;
	--ld4t-border:        #E2E8F0;
	--ld4t-surface:       #F8FAFC;
	--ld4t-white:         #FFFFFF;

	/* Typography */
	--ld4t-font-heading:  'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ld4t-font-body:     'Sarabun', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Layout */
	--ld4t-container:     1200px;
	--ld4t-radius:        14px;
	--ld4t-radius-sm:     8px;
	--ld4t-shadow:        0 10px 30px -12px rgba(15, 23, 42, .18);
	--ld4t-shadow-sm:     0 2px 10px -3px rgba(15, 23, 42, .12);
	--ld4t-transition:    .25s cubic-bezier(.4, 0, .2, 1);
}

/*--------------------------------------------------------------
# Base / Reset
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ld4t-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ld4t-text);
	background: var(--ld4t-white);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ld4t-font-heading);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ld4t-ink);
	margin: 0 0 .6em;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.15em; }
h5 { font-size: 1.05em; }
h6 { font-size: 1em; }

p {
	margin: 0 0 1.5em;
}

a {
	color: var(--ld4t-blue-bright);
	text-decoration: none;
	transition: color var(--ld4t-transition);
}

a:hover,
a:focus {
	color: var(--ld4t-orange);
}

blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	background: var(--ld4t-surface);
	border-radius: var(--ld4t-radius-sm);
	font-style: italic;
	color: var(--ld4t-muted);
}

pre, code, kbd {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: .9em;
	background: var(--ld4t-surface);
	border-radius: var(--ld4t-radius-sm);
}

pre {
	padding: 1.25em;
	overflow: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

th, td {
	padding: .65em 1em;
	border: 1px solid var(--ld4t-border);
	text-align: left;
}

th {
	background: var(--ld4t-blue);
	color: var(--ld4t-white);
	font-family: var(--ld4t-font-heading);
	font-weight: 500;
}

/*--------------------------------------------------------------
# Forms & Buttons
--------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: .7em 1em;
	font-family: inherit;
	font-size: 1em;
	color: var(--ld4t-ink);
	background: var(--ld4t-white);
	border: 1.5px solid var(--ld4t-border);
	border-radius: var(--ld4t-radius-sm);
	transition: border-color var(--ld4t-transition), box-shadow var(--ld4t-transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--ld4t-blue-bright);
	box-shadow: 0 0 0 3px var(--ld4t-blue-light);
}

button,
input[type="submit"],
input[type="button"],
.button,
.wp-block-button__link {
	display: inline-block;
	padding: .75em 1.9em;
	font-family: var(--ld4t-font-heading);
	font-size: 1em;
	font-weight: 500;
	color: var(--ld4t-white);
	background: linear-gradient(135deg, var(--ld4t-orange-cta) 0%, var(--ld4t-orange-cta-dark) 100%);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: transform var(--ld4t-transition), box-shadow var(--ld4t-transition);
	/* Matches --ld4t-orange-cta, not --ld4t-orange — the glow is cast by the
	   button's own (darkened, contrast-safe) background, so it needs the same
	   color or the two visibly disagree. */
	box-shadow: 0 4px 14px -4px rgba(194, 65, 12, .5);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.button:active,
.wp-block-button__link:active {
	outline: none;
	transform: translateY(0);
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--ld4t-blue-bright);
	outline-offset: 2px;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	color: var(--ld4t-white);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -6px rgba(194, 65, 12, .6);
}

@media (prefers-reduced-motion: reduce) {
	button,
	input[type="submit"],
	input[type="button"],
	.button,
	.wp-block-button__link {
		transition: box-shadow var(--ld4t-transition);
	}

	button:hover,
	input[type="submit"]:hover,
	.button:hover,
	.wp-block-button__link:hover {
		transform: none;
		filter: brightness(1.08);
	}
}

.button-blue {
	background: linear-gradient(135deg, var(--ld4t-blue-bright) 0%, var(--ld4t-blue) 100%);
	box-shadow: 0 4px 14px -4px rgba(37, 99, 235, .5);
}

.button-blue:hover {
	box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
}

.button-outline {
	background: transparent;
	color: var(--ld4t-blue);
	border: 2px solid var(--ld4t-blue);
	box-shadow: none;
}

.button-outline:hover {
	background: var(--ld4t-blue);
	color: var(--ld4t-white);
	transform: translateY(-2px);
	box-shadow: var(--ld4t-shadow-sm);
}

.button-outline-light {
	background: transparent;
	color: var(--ld4t-white);
	border: 2px solid var(--ld4t-white);
	box-shadow: none;
}

.button-outline-light:hover {
	background: var(--ld4t-white);
	color: var(--ld4t-blue);
	transform: translateY(-2px);
	box-shadow: var(--ld4t-shadow-sm);
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--ld4t-blue);
	color: var(--ld4t-white);
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 8px;
	top: 8px;
	padding: 12px 24px;
	width: auto;
	z-index: 100000;
	border-radius: var(--ld4t-radius-sm);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.ld4t-container {
	/* Scales past the 1200px base on wide/ultra-wide screens instead of leaving the
	   page pinned to a narrow centered column, but never grows unreadably wide. */
	max-width: clamp(var(--ld4t-container), 86vw, 1680px);
	margin: 0 auto;
	padding: 0 24px;
}

@media (min-width: 1600px) {
	.ld4t-container {
		padding: 0 40px;
	}
}

#content.site-content {
	padding: 64px 0;
}

.page-template-full-width #content.site-content,
.page-template-page-builder-blank #content.site-content {
	padding: 0;
}


.content-area-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
}

@media (max-width: 991px) {
	.content-area-with-sidebar {
		grid-template-columns: 1fr;
	}
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#masthead.site-header {
	position: relative;
	z-index: 999;
	background: var(--ld4t-white);
	border-bottom: 1px solid var(--ld4t-border);
}

body.admin-bar #masthead.site-header.sticky {
	top: 32px;
}

#masthead.site-header.sticky {
	position: sticky;
	top: 0;
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, .92);
	transition: box-shadow var(--ld4t-transition);
}

#masthead.site-header.sticky.is-stuck {
	box-shadow: var(--ld4t-shadow-sm);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 84px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-branding .custom-logo {
	max-height: 56px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--ld4t-font-heading);
	font-size: 1.6em;
	font-weight: 700;
}

.site-title a {
	color: var(--ld4t-blue);
}

.site-title a span {
	color: var(--ld4t-orange);
}

.site-description {
	margin: 0;
	font-size: .8em;
	color: var(--ld4t-muted);
}

/*--------------------------------------------------------------
# Category Bar (secondary nav under the header)
--------------------------------------------------------------*/
.category-bar {
	position: relative;
	z-index: 998;
	background: var(--ld4t-surface);
	border-bottom: 1px solid var(--ld4t-border);
}

.category-bar .ld4t-container {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.category-bar .ld4t-container::-webkit-scrollbar {
	display: none;
}

.category-bar .menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 46px;
}

.category-bar .menu-item > a {
	display: block;
	padding: .5em .9em;
	font-family: var(--ld4t-font-heading);
	font-size: .78em;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ld4t-muted);
	border-radius: 999px;
	transition: color var(--ld4t-transition), background var(--ld4t-transition);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.category-bar .menu-item > a:hover {
	color: var(--ld4t-orange);
}

.category-bar .menu-item > a:active {
	outline: none;
	background: none;
}

.category-bar .menu-item > a:focus-visible {
	outline: 2px solid var(--ld4t-blue-bright);
	outline-offset: 2px;
}

.category-bar .current-menu-item > a,
.category-bar .current_page_item > a {
	color: var(--ld4t-blue-bright);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation {
	display: flex;
	align-items: center;
	gap: 8px;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: .55em 1em;
	font-family: var(--ld4t-font-heading);
	font-size: .95em;
	font-weight: 500;
	color: var(--ld4t-ink);
	border-radius: 999px;
	transition: color var(--ld4t-transition), background var(--ld4t-transition);
	outline: none;
	-webkit-tap-highlight-color: transparent;

	white-space: nowrap;
    word-break: keep-all;
}

.main-navigation a:hover {
	color: var(--ld4t-orange);
}

.main-navigation a:active {
	outline: none;
	background: none;
}

.main-navigation a:focus-visible {
	outline: 2px solid var(--ld4t-blue-bright);
	outline-offset: 2px;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--ld4t-blue-bright);
}

/* Dropdowns */
.main-navigation ul ul {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	flex-direction: column;
	align-items: stretch;
	min-width: 220px;
	padding: 8px;
	background: var(--ld4t-white);
	border-radius: var(--ld4t-radius);
	box-shadow: var(--ld4t-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all var(--ld4t-transition);
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation ul ul a {
	border-radius: var(--ld4t-radius-sm);
}

.main-navigation ul ul ul {
	top: 0;
	left: 100%;
}

/* Header CTA from menu item with .menu-cta class */
.main-navigation .menu-cta > a {
	color: var(--ld4t-white);
	background: linear-gradient(135deg, var(--ld4t-orange-cta) 0%, var(--ld4t-orange-cta-dark) 100%);
	box-shadow: none;
}

.main-navigation .menu-cta > a:hover {
	color: var(--ld4t-orange-light);
}

/* Language switcher */
.ld4t-lang-switcher {
	appearance: none;
	background: var(--ld4t-surface);
	color: var(--ld4t-ink);
	border: 1px solid var(--ld4t-border);
	border-radius: 999px;
	padding: .5em 1.6em .5em .9em;
	font-family: var(--ld4t-font-heading);
	font-size: .85em;
	font-weight: 500;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748B'%3e%3cpath d='M4 6l4 4 4-4H4z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right .6em center;
	background-size: 12px;
}

/* Search toggle */
.search-toggle,
#mobile-menu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--ld4t-surface);
	color: var(--ld4t-blue);
	border-radius: 50%;
	box-shadow: none;
}

.search-toggle:hover,
#mobile-menu-button:hover {
	background: var(--ld4t-blue-light);
	transform: none;
	box-shadow: none;
	color: var(--ld4t-blue);
}

.search-toggle svg,
#mobile-menu-button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

#mobile-menu-button {
	display: none;
}

/* Mobile menu */
@media (max-width: 991px) {
	#mobile-menu-button {
		display: inline-flex;
	}

	.main-navigation > div {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ld4t-white);
		border-top: 3px solid var(--ld4t-orange);
		box-shadow: var(--ld4t-shadow);
		padding: 12px 24px 24px;
	}

	.main-navigation.toggled > div {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: stretch;
	}

	.main-navigation ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 16px;
		display: none;
	}

	.main-navigation li.focus > ul,
	.main-navigation li.menu-open > ul {
		display: flex;
	}
}

/*--------------------------------------------------------------
# Fullscreen Search
--------------------------------------------------------------*/
#fullscreen-search {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	background: rgba(23, 37, 84, .96);
	backdrop-filter: blur(6px);
}

#fullscreen-search.visible {
	display: flex;
}

#fullscreen-search span {
	display: block;
	color: rgba(255, 255, 255, .7);
	font-family: var(--ld4t-font-heading);
	margin-bottom: 12px;
}

#fullscreen-search form {
	display: flex;
	gap: 12px;
}

#fullscreen-search input[type="search"] {
	font-size: 1.6em;
	background: transparent;
	border: none;
	border-bottom: 2px solid var(--ld4t-orange);
	border-radius: 0;
	color: var(--ld4t-white);
	padding-left: 0;
}

#fullscreen-search input[type="search"]:focus {
	box-shadow: none;
}

#search-close-button {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	box-shadow: none;
}

#search-close-button svg {
	width: 20px;
	height: 20px;
	fill: var(--ld4t-white);
}

/*--------------------------------------------------------------
# Page & Post Content
--------------------------------------------------------------*/
.entry-header {
	margin-bottom: 32px;
}

.entry-title {
	margin-bottom: .25em;
}

.entry-title a {
	color: var(--ld4t-ink);
}

.entry-title a:hover {
	color: var(--ld4t-orange);
}

.entry-meta {
	font-size: .85em;
	color: var(--ld4t-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.entry-meta a {
	color: var(--ld4t-blue-bright);
}

.entry-thumbnail img {
	border-radius: var(--ld4t-radius);
}

.page-header .page-title {
	position: relative;
	padding-bottom: .4em;
}

.page-header .page-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ld4t-orange), var(--ld4t-blue-bright));
}

/* Blog cards */
.ld4t-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
}

article.post-card {
	background: var(--ld4t-white);
	border: 1px solid var(--ld4t-border);
	border-radius: var(--ld4t-radius);
	overflow: hidden;
	transition: transform var(--ld4t-transition), box-shadow var(--ld4t-transition);
	display: flex;
	flex-direction: column;
}

article.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ld4t-shadow);
}

article.post-card .entry-thumbnail img {
	border-radius: 0;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

article.post-card .post-card-body {
	padding: 24px 28px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

article.post-card .entry-title {
	font-size: 1.25em;
}

article.post-card .entry-meta {
	margin-bottom: 10px;
}

article.post-card .more-link {
	margin-top: auto;
	font-family: var(--ld4t-font-heading);
	font-weight: 500;
	color: var(--ld4t-orange);
}

.sticky .post-card-body::before {
	content: "";
}

/* Category pill on cards */
.post-card .cat-links a {
	display: inline-block;
	font-size: .8em;
	font-weight: 600;
	color: var(--ld4t-blue-bright);
	background: var(--ld4t-blue-light);
	padding: .2em .9em;
	border-radius: 999px;
	margin-bottom: 12px;
}

.post-card .cat-links a:hover {
	background: var(--ld4t-orange-light);
	color: var(--ld4t-orange-dark);
}

/* Pagination */
.pagination,
.posts-navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 50%;
	font-family: var(--ld4t-font-heading);
	font-weight: 500;
	color: var(--ld4t-ink);
	background: var(--ld4t-surface);
}

.pagination .page-numbers.current {
	color: var(--ld4t-white);
	background: var(--ld4t-blue);
}

.pagination .page-numbers:hover:not(.current) {
	background: var(--ld4t-orange-light);
	color: var(--ld4t-orange-dark);
}

/* Post navigation */
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--ld4t-border);
}

.post-navigation .nav-next {
	text-align: right;
}

/*--------------------------------------------------------------
# Sidebar / Widgets
--------------------------------------------------------------*/
.widget {
	margin-bottom: 40px;
}

.widget-title,
.widget .wp-block-heading {
	font-size: 1.1em;
	position: relative;
	padding-bottom: .5em;
	margin-bottom: 1em;
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	border-radius: 2px;
	background: var(--ld4t-orange);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: .5em 0;
	border-bottom: 1px solid var(--ld4t-border);
}

.widget ul li:last-child {
	border-bottom: none;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-area {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--ld4t-border);
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment-body {
	padding: 24px;
	background: var(--ld4t-surface);
	border-radius: var(--ld4t-radius);
	margin-bottom: 24px;
}

.comment-list .children {
	list-style: none;
	padding-left: 40px;
}

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 12px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: linear-gradient(160deg, var(--ld4t-blue-dark) 0%, var(--ld4t-blue) 100%);
	color: rgba(255, 255, 255, .8);
	margin-top: 0;
}

.site-footer a {
	color: rgba(255, 255, 255, .85);
}

.site-footer a:hover {
	color: var(--ld4t-orange);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	padding: 64px 0 40px;
}

.footer-widgets .widget-title {
	color: var(--ld4t-white);
}

.footer-widgets .widget ul li {
	border-color: rgba(255, 255, 255, .1);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
	padding: 56px 0 40px;
}

.footer-link-columns {
	flex: 1 1 320px;
	max-width: 480px;
}

.footer-brand .site-title a {
	color: var(--ld4t-white);
}

.footer-brand .site-description {
	color: rgba(255, 255, 255, .65);
}

.footer-link-columns {
	display: grid;
	/* minmax(min(160px, 100%), 1fr) lets columns shrink to fit narrow screens
	   instead of forcing a fixed 160px minimum that overflows the viewport. */
	grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
	gap: 32px 48px;
}

.footer-column-title {
	margin: 0 0 16px;
	font-size: .95em;
	font-weight: 600;
	color: var(--ld4t-white);
}

.footer-link-column ul,
.footer-link-column nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: .95em;
}

.footer-link-column li a,
.footer-link-column li span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.footer-link-column li svg {
	width: 15px;
	height: 15px;
	flex: none;
	opacity: .85;
}

.footer-divider {
	margin: 0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0;
	font-size: .9em;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .7);
}

.footer-social li {
	display: flex;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	transition: background-color var(--ld4t-transition);
}

.footer-social a:hover {
	background: rgba(255, 255, 255, .16);
}

.footer-social svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/*--------------------------------------------------------------
# SiteOrigin Panels Helpers
--------------------------------------------------------------*/
/* Make full-width-stretched rows behave inside our container */
.panel-row-style {
	padding-top: 0;
	padding-bottom: 0;
}

/* Utility row styles selectable in Page Builder row CSS class field */
.ld4t-row-hero {
	background: linear-gradient(135deg, var(--ld4t-blue-dark) 0%, var(--ld4t-blue) 55%, var(--ld4t-blue-bright) 100%);
	color: var(--ld4t-white);
	padding: 110px 0;
}

.ld4t-row-hero h1,
.ld4t-row-hero h2,
.ld4t-row-hero h3 {
	color: var(--ld4t-white);
}

.ld4t-row-hero .accent,
.ld4t-row-hero em {
	color: var(--ld4t-orange);
	font-style: normal;
}

.ld4t-row-surface {
	background: var(--ld4t-surface);
	padding: 80px 0;
}

.ld4t-row-orange {
	background: linear-gradient(135deg, var(--ld4t-orange-cta) 0%, var(--ld4t-orange-cta-dark) 100%);
	color: var(--ld4t-white);
	padding: 80px 0;
}

.ld4t-row-orange h1,
.ld4t-row-orange h2,
.ld4t-row-orange h3 {
	color: var(--ld4t-white);
}

/* Card widget style — add .ld4t-card to a widget's CSS class */
.ld4t-card {
	display: flex;
	flex-direction: column;
	background: var(--ld4t-white);
	border: 1px solid var(--ld4t-border);
	border-radius: var(--ld4t-radius);
	padding: 32px;
	box-shadow: var(--ld4t-shadow-sm);
	transition: transform var(--ld4t-transition), box-shadow var(--ld4t-transition);
	height: 100%;
}

/* Pin the card's button to the bottom so it lines up across a row even when
   cards have different amounts of text above it (e.g. pricing cards). */
.ld4t-card > .button,
.ld4t-card > .button-outline,
.ld4t-card > .button-blue {
	margin-top: auto;
	align-self: flex-start;
}

.ld4t-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ld4t-shadow);
}

.ld4t-card-top-orange {
	border-top: 4px solid var(--ld4t-orange);
}

.ld4t-card-top-blue {
	border-top: 4px solid var(--ld4t-blue-bright);
}

/* Numbered step badge — for genuinely ordered sequences (e.g. course curriculum order) */
.ld4t-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--ld4t-blue);
	color: var(--ld4t-white);
	font-size: .85em;
	font-weight: 700;
	vertical-align: middle;
}

/* Trust bar — stat items. Stacked (label above caption) so a long label
   (e.g. "Slaaggarantie") never squeezes the caption into a narrow column. */
.ld4t-trust-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ld4t-trust-item h2 {
	margin: 0;
	color: var(--ld4t-blue);
}

.ld4t-trust-item p {
	margin: 0;
	color: var(--ld4t-muted);
}

.ld4t-trust-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ld4t-white);
	border: 1px solid var(--ld4t-border);
}

.ld4t-trust-icon svg {
	width: 28px;
	height: 28px;
	color: var(--ld4t-blue);
}

/* Empathy section — pain-point list with leading icons */
.ld4t-empathy-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.ld4t-empathy-item-last {
	margin-bottom: 0;
}

.ld4t-empathy-icon {
	flex: none;
	display: flex;
	margin-top: 2px;
}

.ld4t-empathy-icon svg {
	width: 22px;
	height: 22px;
	color: var(--ld4t-orange);
}

/* How It Works — large step badges with a connecting line on desktop */
.ld4t-step-number-lg {
	display: flex;
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	font-size: 1.1em;
}

.ld4t-process-step {
	position: relative;
	text-align: center;
}

.ld4t-process-step h3 {
	margin: 0 0 8px;
}

.ld4t-process-step p {
	margin: 0;
	color: var(--ld4t-muted);
}

@media (min-width: 768px) {
	.ld4t-process-step::after {
		content: "";
		position: absolute;
		top: 24px;
		left: calc(50% + 24px + 16px);
		width: calc(100% - 48px - 32px);
		height: 2px;
		background: var(--ld4t-border);
	}

	.ld4t-process-step:last-child::after {
		display: none;
	}
}

/* Contact info list — icon + label + value rows */
.ld4t-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ld4t-contact-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ld4t-border);
}

.ld4t-contact-item:last-child {
	border-bottom: none;
}

.ld4t-contact-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ld4t-blue-light);
	color: var(--ld4t-blue);
}

.ld4t-contact-icon svg {
	width: 18px;
	height: 18px;
}

.ld4t-contact-label {
	display: block;
	font-family: var(--ld4t-font-heading);
	font-weight: 500;
	font-size: .85em;
	color: var(--ld4t-muted);
}

.ld4t-contact-value {
	display: block;
	color: var(--ld4t-ink);
	font-weight: 500;
}

.ld4t-contact-value a {
	color: inherit;
}

/*--------------------------------------------------------------
# FAQ accordion
--------------------------------------------------------------*/
.ld4t-faq {
	max-width: 760px;
	margin: 32px auto 0;
}

.ld4t-faq-item {
	border-bottom: 1px solid var(--ld4t-border);
}

.ld4t-faq-item:first-child {
	border-top: 1px solid var(--ld4t-border);
}

.ld4t-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 22px 4px;
	font-family: var(--ld4t-font-heading);
	font-size: 1.1em;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ld4t-ink);
	text-align: left;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: color var(--ld4t-transition);
}

.ld4t-faq-question:hover {
	color: var(--ld4t-blue-bright);
	transform: none;
	box-shadow: none;
}

.ld4t-faq-icon {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
}

.ld4t-faq-icon::before,
.ld4t-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--ld4t-blue);
	transition: transform var(--ld4t-transition);
}

.ld4t-faq-icon::before {
	width: 14px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.ld4t-faq-icon::after {
	width: 2px;
	height: 14px;
	transform: translate(-50%, -50%);
}

.ld4t-faq-item.is-open .ld4t-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

.ld4t-faq-answer {
	display: grid;
	grid-template-rows: minmax(0, 0fr);
	overflow: hidden;
	transition: grid-template-rows var(--ld4t-transition);
}

.ld4t-faq-item.is-open .ld4t-faq-answer {
	grid-template-rows: minmax(0, 1fr);
}

.ld4t-faq-answer p {
	overflow: hidden;
	/* padding, not margin: a grid item's margin isn't clipped by the
	   0fr-row + overflow:hidden collapse trick above, so it would still
	   show ~20px when "closed". Padding lives inside the item's own box
	   and collapses with it. */
	margin: 0;
	padding: 0 0 20px;
	color: var(--ld4t-text);
}

@media (prefers-reduced-motion: reduce) {
	.ld4t-faq-answer {
		transition: none;
	}

	.ld4t-faq-icon::before,
	.ld4t-faq-icon::after {
		transition: none;
	}
}

/*--------------------------------------------------------------
# Course Catalog & Detail Pages
--------------------------------------------------------------*/

/* Catalog link-cards — whole card links to a course detail page */
.ld4t-course-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.ld4t-course-card:hover,
.ld4t-course-card:focus {
	color: inherit;
}

.ld4t-course-card:focus-visible {
	outline: 2px solid var(--ld4t-blue-bright);
	outline-offset: 2px;
}

.ld4t-course-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: .8em;
	font-weight: 600;
	color: var(--ld4t-orange);
}

.ld4t-course-card-badge svg {
	width: 16px;
	height: 16px;
}

.ld4t-course-card-desc {
	color: var(--ld4t-muted);
	margin-bottom: 16px;
}

.ld4t-course-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	font-size: .9em;
	color: var(--ld4t-muted);
}

.ld4t-course-card-meta svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.ld4t-course-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--ld4t-border);
}

.ld4t-course-card-price {
	font-family: var(--ld4t-font-heading);
	font-weight: 700;
	color: var(--ld4t-ink);
}

.ld4t-course-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--ld4t-font-heading);
	font-weight: 600;
	color: var(--ld4t-orange);
}

.ld4t-course-card-arrow {
	display: inline-block;
	transition: transform var(--ld4t-transition);
}

.ld4t-course-card:hover .ld4t-course-card-arrow,
.ld4t-course-card:focus .ld4t-course-card-arrow {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.ld4t-course-card-arrow {
		transition: none;
	}
}

/* Back link on course detail pages */
.ld4t-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	font-family: var(--ld4t-font-heading);
	font-size: .9em;
	font-weight: 500;
}

.ld4t-row-hero .ld4t-back-link {
	color: rgba(255, 255, 255, .75);
}

.ld4t-row-hero .ld4t-back-link:hover,
.ld4t-row-hero .ld4t-back-link:focus {
	color: var(--ld4t-white);
}

/* Feature checklist — "what's included" / "who it's for" lists */
.ld4t-check-list {
	list-style: none;
	max-width: 640px;
	margin: 32px auto 0;
	padding: 0;
}

.ld4t-check-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 0;
}

.ld4t-check-item p {
	margin: 0;
}

.ld4t-check-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border-radius: 50%;
	color: var(--ld4t-blue-bright);
	background: var(--ld4t-blue-light);
}

.ld4t-check-icon svg {
	width: 13px;
	height: 13px;
}

/* Two-column course detail layout — sticky price/CTA sidebar */
.ld4t-sidebar-cell {
	position: sticky;
	top: 104px;
}

@media (max-width: 991px) {
	.ld4t-sidebar-cell {
		position: static;
	}
}

.ld4t-price-card-label {
	margin: 0 0 4px;
	font-size: .85em;
	color: var(--ld4t-muted);
}

.ld4t-price-card-price {
	margin: 0 0 20px;
	font-family: var(--ld4t-font-heading);
	font-size: 1.6em;
	font-weight: 700;
	color: var(--ld4t-ink);
}

.ld4t-price-card-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.ld4t-price-card-meta li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .95em;
}

.ld4t-price-card-meta svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--ld4t-blue-bright);
}

.ld4t-price-card .button,
.ld4t-price-card .button-outline {
	display: block;
	width: 100%;
	text-align: center;
	margin-bottom: 12px;
}

.ld4t-price-card .button:last-child,
.ld4t-price-card .button-outline:last-child {
	margin-bottom: 0;
}

/* Curriculum prose sections */
.ld4t-curriculum-section {
	margin-bottom: 32px;
}

.ld4t-curriculum-section:last-child {
	margin-bottom: 0;
}

.ld4t-curriculum-section ul {
	margin: 12px 0 0;
	padding-left: 1.3em;
}

.ld4t-curriculum-section li {
	margin-bottom: 6px;
}

/* Format highlights grid */
.ld4t-format-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 32px 0;
}

.ld4t-format-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 20px;
	background: var(--ld4t-surface);
	border-radius: var(--ld4t-radius-sm);
}

.ld4t-format-item-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--ld4t-blue-bright);
	background: var(--ld4t-blue-light);
}

.ld4t-format-item-icon svg {
	width: 20px;
	height: 20px;
}

.ld4t-format-item h4 {
	margin: 0 0 4px;
	font-size: 1em;
}

.ld4t-format-item p {
	margin: 0;
	font-size: .9em;
	color: var(--ld4t-muted);
}

/*--------------------------------------------------------------
# Student Results Carousel
--------------------------------------------------------------*/
.ld4t-results-carousel {
	position: relative;
	/* overflow is on the track-wrap, not the carousel wrapper, so the
	   overlay arrows can sit outside the image frame */
}

/* ---- Track & slides ---- */
.ld4t-results-track-wrap {
	position: relative;
	overflow: hidden;
	margin: 0 -12px;
	padding: 16px 0; /* space for box-shadow without clipping */
}

.ld4t-results-track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Hide scrollbar Firefox */
}

.ld4t-results-track::-webkit-scrollbar {
	display: none; /* Hide scrollbar Chrome/Safari/Edge */
}

.ld4t-results-slide {
	flex: 0 0 calc(100% / var(--ld4t-carousel-cols, 1));
	min-width: 0;
	padding: 0 12px;
	box-sizing: border-box;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.ld4t-results-img-wrap {
	position: relative;
	width: 100%;
	/* Fix the card to a uniform portrait ratio so all cards are perfectly equal */
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--ld4t-surface);
	border-radius: var(--ld4t-radius);
	box-shadow: 0 8px 32px -8px rgba(15, 23, 42, .16);
}

.ld4t-results-img-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;   /* show the full result card inside the uniform box */
	object-position: center;
}

/* Caption gradient overlay */
.ld4t-results-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 14px 20px;
	background: linear-gradient(to top, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, 0) 100%);
	color: var(--ld4t-white);
	font-family: var(--ld4t-font-body);
	font-size: .9em;
	line-height: 1.5;
	text-align: center;
}

/* Placeholder shown until real images are added */
.ld4t-results-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	gap: 14px;
	font-size: 3.5em;
	color: var(--ld4t-muted);
	background: var(--ld4t-surface);
}

.ld4t-results-placeholder span {
	font-family: var(--ld4t-font-body);
	font-size: .32em;
	font-weight: 500;
	color: var(--ld4t-muted);
}

/* ---- Overlay arrow buttons ---- */
.ld4t-results-prev,
.ld4t-results-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
	-webkit-filter: none !important;
	color: var(--ld4t-blue);
	font-size: 2.2em;
	cursor: pointer;
	line-height: 1;
	transition: color var(--ld4t-transition), transform var(--ld4t-transition);
}

.ld4t-results-prev {
	left: 8px;
}

.ld4t-results-next {
	right: 8px;
}

.ld4t-results-prev:hover,
.ld4t-results-next:hover {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
	-webkit-filter: none !important;
	color: var(--ld4t-orange);
	transform: translateY(calc(-50% - 2px));
}

.ld4t-results-prev:focus,
.ld4t-results-next:focus,
.ld4t-results-prev:focus-visible,
.ld4t-results-next:focus-visible,
.ld4t-results-prev:active,
.ld4t-results-next:active {
	box-shadow: none !important;
	background: transparent !important;
	outline: none !important;
}

/* Hide arrows when only one slide */
.ld4t-results-carousel[data-total="1"] .ld4t-results-prev,
.ld4t-results-carousel[data-total="1"] .ld4t-results-next {
	display: none;
}

/* ---- Controls bar (counter + dots) ---- */
.ld4t-results-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

/* Slide counter  e.g. "3 / 8" */
.ld4t-results-counter {
	font-family: var(--ld4t-font-heading);
	font-size: .85em;
	font-weight: 600;
	color: var(--ld4t-muted);
	min-width: 3.5em;
	text-align: center;
}

/* Dot indicators */
.ld4t-results-dots {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 300px;
}

.ld4t-results-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ld4t-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background var(--ld4t-transition), transform var(--ld4t-transition), width var(--ld4t-transition);
	flex-shrink: 0;
}

.ld4t-results-dot.is-active {
	background: var(--ld4t-orange);
	width: 24px;
	border-radius: 4px;
}

.ld4t-results-dot:hover:not(.is-active) {
	background: var(--ld4t-blue-bright);
	transform: scale(1.25);
}

.ld4t-results-dot:focus-visible {
	outline: 3px solid var(--ld4t-blue-light);
	outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.ld4t-results-carousel {
		--ld4t-carousel-cols: min(2, var(--ld4t-carousel-cols-set, 1));
	}
}

@media (max-width: 600px) {
	.ld4t-results-carousel {
		--ld4t-carousel-cols: 1 !important;
	}

	.ld4t-results-prev,
	.ld4t-results-next {
		width: 40px;
		height: 40px;
		font-size: 1.6em;
	}

	.ld4t-results-prev { left: 8px; }
	.ld4t-results-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.ld4t-results-track { transition: none; }
	.ld4t-results-dot   { transition: none; }
}

/*--------------------------------------------------------------
# 404 / No results
--------------------------------------------------------------*/
.error-404 {
	text-align: center;
	padding: 48px 0;
}

.error-404 .page-title {
	font-size: 5em;
	background: linear-gradient(135deg, var(--ld4t-orange), var(--ld4t-blue-bright));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	h1 { font-size: 1.75em; }
	h2 { font-size: 1.4em; }

	.site-title {
		font-size: 1.25em;
	}

	#content.site-content {
		padding: 40px 0;
	}

	.ld4t-row-hero {
		padding: 64px 0;
	}

	.site-header-inner {
		min-height: 68px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.ld4t-faq-question {
		padding: 18px 4px;
		font-size: 1em;
	}
}
