/**
 * K7 Custom Styles — Part 2
 *
 * Split from the main k7-custom.css to keep further changes isolated.
 * New/session-scoped rules land here. Loaded AFTER k7-custom.css so rules
 * here win on equal specificity.
 */

/* ─── Careers filters (AJAX) ─────────────────────────────────────────── */

/* Show the red icon when idle; swap to the clickable reset link when any
   filter is active. JS toggles `.has-active-filters` on the form. */
.careers-filters .careers-filters-reset {
	display: none;
}

.careers-filters.has-active-filters .careers-filters-reset {
	display: inline-flex;
}

.careers-filters.has-active-filters .careers-filters-icon {
	display: none;
}

/* Dim the grid while an AJAX refresh is in flight. */
.careers-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* ─── Contact Us — Inquiry + Courses dropdowns ──────────────────────── */

.contact-form-wrapper select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: var(--k7-bg-card);
	border: 1px solid var(--k7-border);
	border-radius: 8px;
	padding: 14px 44px 14px 16px;
	font-family: var(--k7-font-body);
	font-size: 0.9375rem;
	color: var(--k7-white);
	outline: none;
	cursor: pointer;
	transition: border-color 0.2s;
	box-sizing: border-box;

	/* Chevron rendered via background-image so the select keeps its native
	   dropdown behaviour without needing an extra wrapper element. */
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 18px center;
}

.contact-form-wrapper select:focus {
	border-color: var(--k7-red);
}

.contact-form-wrapper select option {
	background: var(--k7-bg-card);
	color: var(--k7-white);
}

/* Placeholder-ish state: the first option has an empty value. */
.contact-form-wrapper select:invalid,
.contact-form-wrapper select option[value=""] {
	color: var(--k7-gray);
}

/* Hide the courses field until Course Quotation is picked. */
.contact-course-field.is-hidden {
	display: none;
}

/* ─── Kotter home-page popup (Figma 520:4073) ────────────────────────── */

.kotter-popup .kotter-popup-overlay {
	max-width: 1320px;
	min-height: 640px;
	background-size: cover;
	background-position: center;
}

.kotter-popup .kotter-popup-gradient {
	/* The Figma design stacks a uniform rgba(0,0,0,0.59) tint UNDER a vignette
	   gradient. Since `background-color` on our overlay is hidden by the
	   `background-image` above it, we bake both layers into this single
	   gradient — top ≈65% dark, middle ≈70%, bottom ≈88% for CTA legibility. */
	background: linear-gradient(180deg,
			rgba(0, 0, 0, 0.65) 0%,
			rgba(0, 0, 0, 0.70) 45%,
			rgba(0, 0, 0, 0.88) 100%);
}

.kotter-popup .kotter-popup-content {
	padding: 40px;
	gap: 24px;
}

.kotter-popup .kotter-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 70px;
}

.kotter-popup .kotter-popup-logos {
	display: flex;
	align-items: center;
	gap: 24px;
}

.kotter-popup .kotter-popup-logo-k7,
.kotter-popup .kotter-popup-logo-kotter {
	display: block;
	height: 64px;
	width: auto;
}

.kotter-popup .kotter-popup-logo-kotter {
	height: 60px;
}

/* Override the default close-button position now that it lives in the header.
   Figma shows a red-outlined square with a red × inside. */
.kotter-popup .kotter-popup-header .kotter-popup-close {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	line-height: 1;
	font-size: 22px;
	color: var(--k7-red);
	background: transparent;
	border: 2px solid var(--k7-red);
	border-radius: 6px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.kotter-popup .kotter-popup-header .kotter-popup-close:hover {
	background: var(--k7-red);
	color: var(--k7-white);
}

.kotter-popup .kotter-popup-content h2 {
	max-width: 720px;
	font-size: 56px;
	margin-bottom: 70px;
}

/* Description renders as a 2-column layout — CSS columns handle it cleanly
   because `kotter_popup_description` is a wysiwyg with 2 <p> tags that
   naturally flow into one column each. */
.kotter-popup .kotter-popup-desc {
	column-count: 2;
	column-gap: 48px;
	max-width: 900px;
}

.kotter-popup .kotter-popup-desc p {
	break-inside: avoid;
	margin: 0;
}

.kotter-popup .kotter-popup-bullets {
	flex-wrap: wrap;
	gap: 32px;
	margin-top: 8px;
}

.kotter-popup .kotter-popup-cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.kotter-popup .kotter-popup-cta-wrap .k7-btn--red {
	min-width: 282px;
	text-align: center;
	display: flex;
	justify-content: center;
}

@media (max-width: 768px) {
	.kotter-popup .kotter-popup-content {
		padding: 24px;
	}

	.kotter-popup .kotter-popup-content h2 {
		font-size: 32px;
	}

	.kotter-popup .kotter-popup-header {
		margin-bottom: 24px;
	}

	.kotter-popup .kotter-popup-desc {
		column-count: 1;
	}

	.kotter-popup .kotter-popup-bullets {
		flex-direction: column;
		gap: 12px;
	}
}

/* ============================================================
 * Team Member Inner (single-team_member.php)
 * ============================================================ */
.team-inner {
	background: var(--k7-bg);
	color: var(--k7-white);
}

.team-inner-hero {
	position: relative;
	height: 362px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	clip-path: polygon(0% 0%, 100% 0%, 100% 51.4%, 87.7% 94.1%, 83.8% 100%, 0% 100%);
}

.team-inner-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 35%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0) 100%);
}

.team-inner-hero-content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	color: var(--k7-white);
}

.team-inner-hero-heading {
	font-family: var(--k7-font-heading);
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--k7-white);
}

.team-inner-hero-subtitle {
	font-family: var(--k7-font-body);
	font-size: 18px;
	line-height: 1.45;
	margin: 0;
	color: var(--k7-white);
	max-width: 620px;
	opacity: 0.95;
}

.team-inner-breadcrumb {
	padding: 28px 0 12px;
	background: var(--k7-bg);
}

.team-inner-breadcrumb .k7-container {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: var(--k7-gray-light);
}

.team-inner-breadcrumb a {
	color: var(--k7-gray-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

.team-inner-breadcrumb a:hover {
	color: var(--k7-red);
}

.team-inner-breadcrumb-sep {
	margin: 0 8px;
	opacity: 0.6;
}

.team-inner-breadcrumb-current {
	color: var(--k7-red);
}

.team-inner-body {
	padding: 40px 0 96px;
}

.team-inner-grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 56px;
	align-items: start;
}

.team-inner-sidebar {
	background: transparent;
	padding: 0;
}

.team-inner-photo {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	margin-bottom: 24px;
	object-fit: cover;
	background-color: rgba(26, 26, 26, 1);
}

.team-inner-name {
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--k7-white);
	margin: 0 0 8px;
}

.team-inner-role {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: var(--k7-gray-light);
	margin: 0 0 4px;
	line-height: 1.4;
}

.team-inner-content {
	font-family: 'DM Sans', sans-serif;
	color: var(--k7-gray-light);
}

.team-inner-section {
	margin-bottom: 40px;
}

.team-inner-section:last-child {
	margin-bottom: 0;
}

.team-inner-section h2 {
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--k7-white);
	margin: 0 0 16px;
	line-height: 1.2;
}

.team-inner-section-body {
	font-size: 14px;
	line-height: 1.75;
	color: var(--k7-gray-light);
}

.team-inner-section-body p {
	margin: 0 0 16px;
}

.team-inner-section-body--columns {
	column-count: 2;
	column-gap: 36px;
	display: grid;
	grid-template-columns: 2fr 1fr;


}

.team-inner-section-body--columns p {
	break-inside: avoid-column;
}

.team-inner-section-body ul,
.team-inner-section-body ol {
	padding-left: 20px;
	margin: 0 0 16px;
}

.team-inner-section-body li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.team-inner-section-body ul li::marker {
	color: var(--k7-white);
}

.team-inner-section-body a {
	color: var(--k7-red);
	text-decoration: none;
}

.team-inner-section-body a:hover {
	text-decoration: underline;
}

.team-inner-placeholder {
	background: var(--k7-bg-light);
	border-radius: 12px;
	padding: 48px 32px;
	text-align: center;
}

.team-inner-placeholder h2 {
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: var(--k7-white);
	margin: 0 0 16px;
}

.team-inner-placeholder p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--k7-gray-light);
	max-width: 520px;
	margin: 0 auto 24px;
}

/* Make the About page team cards behave like proper links */
a.team-card,
a.team-card.partner-card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease;
}

a.team-card:hover {
	transform: translateY(-4px);
}

@media (max-width: 1024px) {
	.team-inner-hero {
		height: 360px;
	}

	.team-inner-hero-heading {
		font-size: 52px;
	}

	.team-inner-grid {
		grid-template-columns: 280px 1fr;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.team-inner-hero {
		height: 280px;
	}

	.team-inner-hero-heading {
		font-size: 40px;
	}

	.team-inner-hero-subtitle {
		font-size: 15px;
	}

	.team-inner-body {
		padding: 32px 0 64px;
	}

	.team-inner-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.team-inner-sidebar {
		position: static;
		max-width: 400px;
		margin: 0 auto;
	}

	.team-inner-name {
		font-size: 24px;
	}

	.team-inner-section h2,
	.team-inner-placeholder h2 {
		font-size: 22px;
	}

	.team-inner-section-body--columns {
		column-count: 1;
	}
}

@media (max-width: 480px) {
	.team-inner-hero {
		height: 220px;
	}

	.team-inner-hero-heading {
		font-size: 32px;
	}

	.team-inner-hero-subtitle {
		font-size: 14px;
	}

	.team-inner-breadcrumb .k7-container {
		font-size: 13px;
	}

	.team-inner-section-body {
		font-size: 14px;
	}
}

/* ─── Unified dropdown component (.k7-dropdown) ───────────────────────────
   Custom dropdown UI built on top of a native <select>. The select stays in
   the DOM as the source of truth (form submission, AJAX handlers, screen
   readers, no-JS fallback) and is hidden visually. JS mirrors changes both
   ways and dispatches `change` so existing handlers keep working unchanged.

   Used on Careers filters and the Contact form inquiry/course selects.
   Activated by adding `data-k7-dropdown` to a <select>, or wrapping it in
   a label whose select carries that attribute. The JS handles the rest. */

.k7-dropdown {
	position: relative;
	display: block;
	width: 100%;
	font-family: var(--k7-font-body);
	font-size: 0.9375rem;
	color: var(--k7-white);
}

/* Hide the underlying native select but keep it accessible to assistive tech
   and form submission. Visually-hidden pattern. */
.k7-dropdown>select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Trigger button — closed state matches Figma: black bg, white text + chevron. */
.k7-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	background: #000000;
	border: 1px solid var(--k7-red);
	border-radius: 10px;
	padding: 14px 18px;
	color: var(--k7-white);
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s ease, color 0.2s ease;
	box-sizing: border-box;
}

.k7-dropdown__trigger:hover {
	border-color: var(--k7-red);
}

.k7-dropdown__trigger:focus-visible {
	outline: none;
	border-color: var(--k7-red);
}

.k7-dropdown__label {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.k7-dropdown__chevron {
	flex-shrink: 0;
	width: 14px;
	height: 8px;
	transition: transform 0.2s ease;
	color: currentColor;
}

/* Open state — trigger flips to red text + red chevron, chevron rotates up. */
.k7-dropdown.is-open .k7-dropdown__trigger {
	color: var(--k7-red);
	border-color: var(--k7-red);
}

.k7-dropdown.is-open .k7-dropdown__chevron {
	transform: rotate(180deg);
}

/* Panel — anchored below the trigger, same dark fill, rounded, dividers
   between options. Hidden until is-open. */
.k7-dropdown__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #000000;
	border: 1px solid var(--k7-border);
	border-radius: 10px;
	padding: 6px 0;
	margin: 0;
	list-style: none;
	z-index: 50;
	max-height: 320px;
	overflow-y: auto;
	display: none;
}

.k7-dropdown.is-open .k7-dropdown__panel {
	display: block;
}

.k7-dropdown__option {
	padding: 14px 18px;
	color: var(--k7-white);
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.4;
	border-bottom: 1px solid var(--k7-border);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.k7-dropdown__option:last-child {
	border-bottom: 0;
}

.k7-dropdown__option:hover,
.k7-dropdown__option.is-active {
	color: var(--k7-red);
}

.k7-dropdown__option[aria-selected="true"] {
	color: var(--k7-red);
}

/* When the dropdown lives inside a flexed careers filter row we want the
   trigger to size like the old <select> did (compact, not full-width). */
.careers-filter .k7-dropdown {
	min-width: 180px;
	width: auto;
}

.careers-filter .k7-dropdown__trigger {
	padding: 10px 16px;
	font-size: 14px;
}

/* ============================================================
 * Course Outline — Module tabs (single-course.php, mirrors the Kotter inner)
 * ============================================================ */
.course-outline-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 36px;
	margin-bottom: 40px;
	padding: 0;
}

.course-outline-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 0;
	font-family: var(--k7-font-heading);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.25s ease;
}

.course-outline-tab-btn:hover {
	color: var(--k7-white);
}

.course-outline-tab-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}

.course-outline-tab-btn:hover .course-outline-tab-dot {
	background: var(--k7-white);
}

.course-outline-tab-btn.active {
	color: var(--k7-red);
	font-weight: 600;
}

.course-outline-tab-btn.active .course-outline-tab-dot {
	background: var(--k7-red);
	transform: scale(1.1);
}

.course-outline-tab-panel {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.course-outline-tab-panel.active {
	display: grid;
}

.course-outline-tab-panel-title {
	font-family: var(--k7-font-heading);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 24px;
	line-height: 1.3;
	color: var(--k7-white);
}

.course-outline-tab-panel-image img {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.course-outline-tab-panel.active {
		grid-template-columns: 1fr;
	}

	.course-outline-tabs-nav {
		gap: 12px 24px;
	}

	.course-outline-tab-btn {
		font-size: 16px;
	}
}

/* Register Today button — bottom of course inner module panel */
.course-outline-register-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	padding: 14px 26px;
	background-color: var(--k7-red);
	color: var(--k7-white) !important;
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.02em;
	border-radius: 10px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.course-outline-register-btn:hover,
.course-outline-register-btn:visited,
.course-outline-register-btn:active {
	background-color: var(--k7-red-dark);
	color: var(--k7-white) !important;
}

.course-outline-register-btn:hover {
	transform: translateX(2px);
}

.course-outline-register-btn svg {
	transition: transform 0.25s ease;
}

.course-outline-register-btn:hover svg {
	transform: translateX(2px);
}

/* ============================================================
 * Course Register Page — other-courses grid (creg-*)
 * Format-cards block reuses the .kreg-formats-* styles already defined below.
 * ============================================================ */
.creg-courses-header {
	margin-top: 24px;
}

.creg-courses-subtitle {
	font-family: var(--k7-font-body);
	font-size: 16px;
	color: rgba(255, 255, 255, 0.7);
	margin: -8px 0 32px;
	max-width: 720px;
}

.creg-courses-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-bottom: 80px;
}

.creg-course-card {
	display: flex;
	flex-direction: column;
	background-color: var(--k7-bg-card);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--k7-border);
	color: var(--k7-white);
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.creg-course-card:hover {
	transform: translateY(-4px);
	border-color: var(--k7-red);
	color: var(--k7-white);
}

.creg-course-card-image {
	width: 100%;
	aspect-ratio: 16/10;
	overflow: hidden;
}

.creg-course-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.creg-course-card:hover .creg-course-card-image img {
	transform: scale(1.04);
}

.creg-course-card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.creg-course-card-body h3 {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: var(--k7-white);
	margin: 0;
	transition: color 0.25s ease;
}

.creg-course-card:hover .creg-course-card-body h3 {
	color: var(--k7-red);
}

.creg-course-card-modules {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.creg-course-card-modules li {
	position: relative;
	padding-left: 14px;
	font-family: var(--k7-font-body);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.5;
}

.creg-course-card-modules li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	background: var(--k7-red);
	border-radius: 50%;
}

.creg-course-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--k7-red);
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.creg-courses-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.creg-courses-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
 * Kotter Register Today button (inside Course Outline module panel)
 * + Kotter Register Page (page-kotter-register.php)
 * ============================================================ */

/* Order summary format line on /payment/ when ?format= is set */
.order-item-format {
	display: block;
	margin-top: 6px;
	color: var(--k7-white);
	font-family: var(--k7-font-body);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: normal;
	text-transform: none;
}

/* Register Today button — sits at the bottom of each module tab panel */
.ki-outline-register-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	padding: 14px 26px;
	background-color: var(--k7-red);
	color: var(--k7-white) !important;
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.02em;
	border-radius: 10px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.ki-outline-register-btn:hover,
.ki-outline-register-btn:visited,
.ki-outline-register-btn:active {
	background-color: var(--k7-red-dark);
	color: var(--k7-white) !important;
}

.ki-outline-register-btn:hover {
	transform: translateX(2px);
}

.ki-outline-register-btn svg {
	transition: transform 0.25s ease;
}

.ki-outline-register-btn:hover svg {
	transform: translateX(2px);
}

/* Course pill (under the format-cards section header) */
.kreg-course-pill {
	display: inline-block;
	margin: -8px 0 24px;
	padding: 8px 16px;
	background-color: rgba(238, 41, 52, 0.15);
	border: 1px solid var(--k7-red);
	border-radius: 999px;
	color: var(--k7-red);
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Section header */
.kreg-section-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
}

.kreg-red-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: var(--k7-red);
	border-radius: 3px;
	clip-path: polygon(0 0, 100% 0, 34% 100%, 0% 100%);
	flex-shrink: 0;
	position: relative;
	top: -2px;
}

.kreg-section-header h2 {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.2;
	color: var(--k7-white);
	margin: 0;
}

/* Format Cards */
.kreg-formats-section {
	padding: 72px 0;
	background-color: var(--k7-bg);
}

.kreg-formats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 16px;
}

.kreg-format-card {
	display: flex;
	flex-direction: column;
	background-color: var(--k7-bg-card);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--k7-border);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.kreg-format-card:hover {
	transform: translateY(-4px);
	border-color: var(--k7-red);
}

.kreg-format-card-image {
	width: 100%;
	aspect-ratio: 16/10;
	overflow: hidden;
}

.kreg-format-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.kreg-format-card:hover .kreg-format-card-image img {
	transform: scale(1.03);
}

.kreg-format-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 24px 28px;
	flex: 1;
}

.kreg-format-card-body h3 {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.25;
	color: var(--k7-white);
	margin: 0;
}

/* Self-Paced module / course subtitle (under the "Self-Paced" heading) */
.kreg-format-card-subtitle {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: -4px;
}

.kreg-format-card-module-label {
	font-family: var(--k7-font-body);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--k7-red);
}

.kreg-format-card-module-name {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
}

.kreg-format-card-desc {
	font-family: var(--k7-font-body);
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	flex: 1;
}

.kreg-format-card-price {
	font-family: var(--k7-font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	color: var(--k7-red);
	margin-top: 4px;
}

.kreg-format-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 8px;
	padding: 12px 22px;
	background-color: var(--k7-red);
	color: var(--k7-white) !important;
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	border-radius: 10px;
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.kreg-format-card-btn:hover,
.kreg-format-card-btn:visited,
.kreg-format-card-btn:active {
	background-color: var(--k7-red-dark);
	color: var(--k7-white) !important;
}

/* Articles page "Coming Soon" — shown when no articles are published yet.
   Replaced automatically by the article grid once a post is published. */
.articles-coming-soon {
	text-align: center;
	padding: 80px 24px 96px;
	max-width: 640px;
	margin: 0 auto;
}

.articles-coming-soon-heading {
	font-family: var(--k7-font-heading);
	font-weight: 700;
	font-size: 40px;
	color: var(--k7-red);
	margin: 0 0 16px;
}

.articles-coming-soon-text {
	font-size: 18px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

@media (max-width: 768px) {
	.articles-coming-soon {
		padding: 56px 20px 64px;
	}

	.articles-coming-soon-heading {
		font-size: 32px;
	}

	.articles-coming-soon-text {
		font-size: 16px;
	}
}

/* Self-Paced "Coming Soon" — non-clickable badge replacing the CTA when a
   course / module is toggled to coming-soon. Price stays visible above it. */
.kreg-format-card-btn--soon,
.kreg-format-card-btn--soon:hover,
.preg-format-card-btn--soon,
.preg-format-card-btn--soon:hover {
	background-color: #2a2a2a;
	color: var(--k7-gray-light) !important;
	border: 1px solid var(--k7-border);
	cursor: not-allowed;
	pointer-events: none;
}

.kreg-empty {
	color: rgba(255, 255, 255, 0.7);
	font-size: 16px;
	margin: 16px 0 0;
}

.kreg-empty a {
	color: var(--k7-red);
	text-decoration: underline;
}

/* Core and Advanced Certifications — reuses Kotter page card markup, wraps each card in <a> */
.kreg-cert-section {
	padding: 24px 0 96px;
	background-color: var(--k7-bg);
}

/* Make the Kotter card wrapper clickable on this page only */
.kreg-cert-section .kotter-course-card-wrap.kreg-course-link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.kreg-cert-section .kotter-course-card-wrap.kreg-course-link:hover {
	transform: translateY(-4px);
}

.kreg-cert-section .kotter-course-card-wrap.kreg-course-link:hover .kotter-course-card-title {
	color: var(--k7-red);
}

/* Programs that include this course — bullet tabs (program names, no images),
   first open by default; each panel reveals that program's format types. */
.kreg-programs-section {
	padding: 24px 0 96px;
	background-color: var(--k7-bg);
}

.kreg-programs-tabs {
	margin-top: 16px;
}

.kreg-programs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 32px;
	padding-bottom: 22px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--k7-border);
}

.kreg-program-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
}

.kreg-program-tab-btn:hover {
	color: var(--k7-white);
}

.kreg-program-tab-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	background-color: rgba(255, 255, 255, 0.3);
	transition: background-color 0.2s ease;
}

.kreg-program-tab-btn.active {
	color: var(--k7-red);
}

.kreg-program-tab-btn.active .kreg-program-tab-dot {
	background-color: var(--k7-red);
}

.kreg-program-panel[hidden] {
	display: none;
}

.kreg-program-panel.active {
	animation: kregProgramFade 0.25s ease;
}

@keyframes kregProgramFade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Identical to .kreg-formats-grid so the cards inside a program panel match the
   main format cards above exactly (same width, height, image). */
.kreg-programs-format-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 16px;
}

.kreg-program-learn-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--k7-red) !important;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.kreg-program-learn-more:hover {
	gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {

	.kreg-formats-grid,
	.kreg-programs-format-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {

	.kreg-formats-grid,
	.kreg-programs-format-grid {
		grid-template-columns: 1fr;
	}

	.kreg-section-header h2 {
		font-size: 28px;
	}

	.kreg-program-tab-btn {
		font-size: 16px;
	}
}

/* =================================================================
 * Programs feature
 * ================================================================= */

/* --- Kotter page: Programs tabs section ---
 * Mirrors .kotter-course-tabs-section exactly so the heading + subtitle +
 * red trapezium + tab buttons + panel text all look identical to the
 * existing "Courses and Certifications" section above it. The wrapper
 * lives inside .kotter-body which already supplies the 80px outer padding
 * + 80px gap between sections.
 */
.kotter-programs-section {
	width: 100%;
	max-width: 1280px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.kotter-programs-header {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

/* Heading h2 cascades from .kotter-section-title h2 (36px Bai Jamjuree 600). */
.kotter-programs-subtitle {
	font-family: var(--k7-font-heading);
	font-weight: 300;
	font-size: 24px;
	line-height: 1.25;
	color: var(--k7-white);
	margin: 0;
}

.kotter-programs-tabs-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 40px;
}

.kotter-program-tab-btn {
	display: flex;
	/* align-items: center; */
	gap: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 0;
	text-align: start;
}

.kotter-program-tab-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--k7-white);
	flex-shrink: 0;
	transition: background 0.3s;
	position: relative;
	top: 3px;
}

.kotter-program-tab-btn.active .kotter-program-tab-dot {
	background: var(--k7-red);
}

.kotter-program-tab-label {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.25;
	color: var(--k7-white);
	transition: color 0.3s;
}

.kotter-program-tab-btn.active .kotter-program-tab-label {
	color: var(--k7-red);
}

.kotter-program-tab-panel {
	display: none;
	gap: 40px;
	align-items: flex-start;
}

.kotter-program-tab-panel.active {
	display: flex;
}

.kotter-program-tab-panel-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kotter-program-tab-panel-text h3 {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.25;
	color: var(--k7-white);
	margin: 0;
}

.kotter-program-tab-panel-subtitle {
	font-family: var(--k7-font-body);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.3;
	color: var(--k7-white);
	margin: 0;
}

/* Restore the original bullet-style course list on Kotter Programs tab
 * panels (same look as the kotter-tab-panel-modules pattern). */
.kotter-program-tab-panel-courses {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 24px;
}

.kotter-program-tab-panel-courses .kotter-module-item {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--k7-white);
	display: flex;
	align-items: center;
	gap: 12px;
}

.kotter-program-tab-panel-courses .kotter-module-item::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	min-width: 6px;
	border-radius: 50%;
	background: var(--k7-white);
}

.kotter-program-tab-panel-image {
	flex: 0 0 auto;
	width: 45%;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}

.kotter-program-tab-panel-image a {
	display: block;
}

.kotter-program-tab-panel-image img {
	width: 100%;
	height: auto;
	display: block;
	width: 100%;
	border-radius: 10px;
	object-fit: cover;
	clip-path: polygon(0% 1.957%, 1.603% 0%, 90.002% 0%, 91.349% 0.898%, 99.745% 16.824%, 100% 17.883%, 100% 98.043%, 98.397% 100%, 30.893% 100%, 29.692% 99.338%, 27.729% 96.623%, 26.528% 95.961%, 16.416% 95.961%, 15.215% 96.623%, 13.252% 99.338%, 12.051% 100%, 1.603% 100%, 0% 98.043%);

}

.kotter-program-tab-panel-badge {
	position: absolute !important;
	top: 12px;
	right: 12px;
	width: 72px;
	height: auto;
}

/* --- Courses page: Programs card grid --- */
.courses-programs-section {
	padding: 60px 0 100px;
}

.courses-programs-header {
	margin-bottom: 32px;
}

.courses-programs-subtitle {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	max-width: 720px;
}

/* The .courses-program-card piggybacks on the existing .course-card styling. */

/* --- Program inner (single-program.php) ---
 * Hero mirrors .ki-hero exactly — same height, overlay, 87px left padding
 * inside the container, max-width 775px text column. Result: hero text
 * sits at the same horizontal position as every other inner page hero
 * (kotter, course, careers, services). Naturally left-aligned. */
.program-hero {
	position: relative;
	height: 362px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	clip-path: polygon(0% 0%, 100% 0%, 100% 51.4%, 87.7% 94.1%, 83.8% 100%, 0% 100%);
}

.program-hero .k7-container {
	width: 100%;
}

.program-hero .k7-container .program-hero-content {
	padding: 0;
}

.program-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 1%, rgba(56, 57, 62, 0.4) 49%);
}

.program-hero-content {
	position: relative;
	z-index: 1;
	padding: 41px 0 60px 87px;
	max-width: 775px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	text-align: start;
}

.program-hero-content h1 {
	font-family: var(--k7-font-heading);
	font-weight: 700;
	font-size: 60px;
	line-height: 1em;
	letter-spacing: -0.003em;
	color: var(--k7-white);
	margin: 0;
	text-align: start;
}

.program-hero-subtitle {
	font-family: var(--k7-font-body);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.625;
	letter-spacing: -0.008em;
	color: var(--k7-gray-light);
	margin: 0;
	text-align: start;
}

.program-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.program-red-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background: var(--k7-red);
	border-radius: 3px;
	clip-path: polygon(0 0, 100% 0, 34% 100%, 0% 100%);
	top: -2px;
	position: relative;
}

.program-section-header h2 {
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 600;
	font-size: 32px;
	color: var(--k7-white);
	margin: 0;
}

.program-about-section {
	padding: 64px 0 24px;
}

.program-about-body {
	color: rgba(255, 255, 255, 0.85);
	font-family: 'DM Sans', sans-serif;
	font-size: 17px;
	line-height: 1.8;
}

.program-about-body p {
	margin: 0 0 16px;
}

.program-outline-section {
	padding: 48px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.program-register-cta-section {
	padding: 60px 0 100px;
	text-align: center;
}

.program-register-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	background: var(--k7-red);
	color: var(--k7-white);
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 600;
	font-size: 18px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.program-register-cta-btn:hover {
	background: var(--k7-red-dark);
	color: var(--k7-white);
	transform: translateY(-2px);
}

/* --- Program Register page (page-program-register.php) --- */
.preg-formats-section {
	padding: 80px 0 100px;
}

.preg-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.preg-red-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background: var(--k7-red);
	border-radius: 3px;
	clip-path: polygon(0 0, 100% 0, 34% 100%, 0% 100%);
	top: -2px;
	position: relative;
}

.preg-section-header h2 {
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 600;
	font-size: 32px;
	color: var(--k7-white);
	margin: 0;
}

.preg-program-pill {
	display: inline-block;
	padding: 8px 16px;
	background: rgba(238, 41, 52, 0.12);
	border: 1px solid rgba(238, 41, 52, 0.4);
	border-radius: 10px;
	color: var(--k7-red);
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 40px;
}

.preg-formats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Hover matches .kreg-format-card exactly (lift + red border + image zoom) so
   program cards behave identically to the course / kotter cards. */
.preg-format-card {
	background: var(--k7-bg-card);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--k7-border);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.preg-format-card:hover {
	transform: translateY(-4px);
	border-color: var(--k7-red);
}

.preg-format-card-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.preg-format-card:hover .preg-format-card-image img {
	transform: scale(1.03);
}

.preg-format-card-body {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.preg-format-card-body h3 {
	margin: 0;
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: var(--k7-white);
}

/* "Full Program" + program name subtitle — mirrors .kreg-format-card-subtitle. */
.preg-format-card-subtitle {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: -4px;
}

.preg-format-card-module-label {
	font-family: var(--k7-font-body);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--k7-red);
}

.preg-format-card-module-name {
	font-family: var(--k7-font-heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
}

.preg-format-card-desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	flex: 1;
}

.preg-format-card-price {
	font-family: var(--k7-font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	color: var(--k7-red);
	margin-top: 4px;
}

.preg-format-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--k7-red);
	color: var(--k7-white);
	font-family: 'Bai Jamjuree', sans-serif;
	font-weight: 500;
	font-size: 15px;
	border-radius: 8px;
	text-decoration: none;
	align-self: flex-start;
	transition: background .2s ease;
}

.preg-format-card-btn:hover {
	background: var(--k7-red-dark);
	color: var(--k7-white);
}

.preg-empty {
	color: rgba(255, 255, 255, 0.7);
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
}

/* --- Contact form: program-registration read-only fields --- */
.contact-program-fields {
	margin-top: 4px;
}

.contact-readonly-label {
	display: block;
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 4px;
}

.contact-program-fields input[readonly] {
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.9);
	cursor: not-allowed;
}

/* Registration extras: Promotion Code (full-width) + Group Discount switch below
   it (Virtual/In-Person flow). Group Discount mirrors the field layout — label
   on top, control below. */
.contact-group-discount {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

/* Match the Group Discount label to the rest of the form fields (body font /
   size / colour) instead of the smaller dim readonly-label style. */
.contact-group-discount .contact-readonly-label {
	font-family: var(--k7-font-body);
	font-size: 0.9375rem;
	color: var(--k7-white);
}

/* Toggle + red disclaimer share one line below the label. */
.contact-group-discount-control {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.contact-group-discount-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--k7-font-body);
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--k7-red);
}

.contact-group-discount-note svg {
	flex: 0 0 auto;
}

/* Visually hide the native checkbox with resets + !important so the global
   `.contact-form-wrapper input` box styling can never render it as a box. */
.contact-form-wrapper .contact-group-discount .contact-switch-input,
.contact-switch-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	border: 0 !important;
	background: transparent !important;
	opacity: 0 !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	pointer-events: none;
}

/* The track is a <label for> so clicking it toggles the checkbox. */
.contact-group-discount .contact-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	cursor: pointer;
	transition: background 0.2s ease;
	margin: 0;
}

.contact-group-discount .contact-switch-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.contact-switch-input:checked+.contact-switch {
	background: var(--k7-red);
}

.contact-switch-input:checked+.contact-switch .contact-switch-thumb {
	transform: translateX(20px);
}

.contact-switch-input:focus-visible+.contact-switch {
	box-shadow: 0 0 0 2px rgba(238, 41, 52, 0.5);
}

/* Responsive — mirrors the existing .kotter-course-tabs-* breakpoints */
@media (max-width: 1024px) {
	.preg-formats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.program-hero-content h1 {
		font-size: 48px;
	}
}

@media (max-width: 768px) {
	.preg-formats-grid {
		grid-template-columns: 1fr;
	}

	.preg-section-header h2,
	.program-section-header h2 {
		font-size: 26px;
	}

	.program-hero {
		height: auto;
		min-height: 300px;
	}

	.program-hero-content {
		padding: 30px 24px 40px;
	}

	.program-hero-content h1 {
		font-size: 2rem;
	}

	.program-hero-subtitle {
		font-size: 0.9375rem;
	}

	.kotter-programs-subtitle {
		font-size: 18px;
	}

	.kotter-programs-tabs-nav {
		grid-template-columns: repeat(2, 1fr);
		gap: 2px;
	}

	.kotter-program-tab-label {
		font-size: 13px;
	}

	.kotter-program-tab-panel {
		flex-direction: column;
	}

	.kotter-program-tab-panel-image {
		width: 100%;
	}

	.kotter-program-tab-panel-text h3 {
		font-size: 24px;
	}

	.kotter-program-tab-panel-courses .kotter-module-item,
	.kotter-program-tab-panel-subtitle {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.program-hero {
		min-height: 240px;
	}

	.program-hero-content {
		padding: 24px 16px 32px;
	}

	.program-hero-content h1 {
		font-size: 1.5rem;
	}

	.program-hero-subtitle {
		font-size: 0.8125rem;
	}

	.program-register-cta-btn {
		padding: 14px 24px;
		font-size: 16px;
	}

	.preg-format-card-image img {
		height: 180px;
	}
}