/**
 * Module: Workshop Section (Upcoming Live Workshops)
 * Loaded when `workshop_section` layout is present on the page.
 */

:root {
	--indigo: #002B5C;
	--crimson: #ED1C24;
	--slate: #060606;
	--mist: #A5A4A4;
	--frost: #EDEDED;
	--white: #FFFFFF;
	--indigo-deep: #001A3A;
	--indigo-tint: #F2F5F9;
	--ink: #1C2230;
	--ink-soft: #4A5568;
	--line: #D9DCE1;
	--display: 'Gotham', 'Montserrat', system-ui, sans-serif;
	--body: 'Open Sans', system-ui, sans-serif;
	--max: 1180px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 6px;
}

/* Base Section Styling */
.ws,
.workshop-section {
	background: var(--indigo, #002B5C);
	color: #ffffff;
	padding: 72px 0 76px;
	position: relative;
}

.workshop-section .wrap {
	max-width: var(--max, 1180px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(20px, 4vw, 48px));
}

/* Head / Title Area */
.workshop-section .head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 34px;
}

.workshop-section .head .eyebrow {
	font-family: var(--display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 12px;
	display: inline-block;
}

.workshop-section h2 {
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0;
}

.workshop-section .head p {
	color: rgba(255, 255, 255, .78);
	font-family: var(--body);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	max-width: 520px;
	margin: 0;
}

/* Workshops Cards Grid */
.workshop-section .wgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: stretch;
}

/* Workshop Card */
.workshop-section .wc {
	position: relative;
	background: #ffffff;
	color: var(--ink, #1C2230);
	border-radius: 12px;
	padding: 26px 26px 24px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.workshop-section .wc.in {
	opacity: 1;
	transform: none;
}

.workshop-section .wc:hover {
	box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
}

.workshop-section .wc.sel {
	box-shadow: 0 0 0 3px var(--crimson, #ED1C24), 0 24px 50px rgba(0, 0, 0, .25);
}

/* Card Header: Duration Pill & Number */
.workshop-section .wc .top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}

.workshop-section .wc .dur {
	font-family: var(--display);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #ffffff;
	background: var(--indigo, #002B5C);
	padding: 5px 10px;
	border-radius: 999px;
	line-height: 1.2;
}

.workshop-section .wc .dur.half {
	background: var(--crimson, #ED1C24);
}

.workshop-section .wc .num {
	font-family: var(--display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .12em;
	color: var(--mist, #A5A4A4);
	text-transform: uppercase;
}

/* Card Title & Description */
.workshop-section .wc h3 {
	color: var(--indigo, #002B5C) !important;
	font-family: var(--display);
	font-size: 20px;
	font-weight: 700;
	margin: 14px 0 8px;
	line-height: 1.2;
}

.workshop-section .wc p {
	font-family: var(--body);
	font-size: 14.5px;
	color: var(--ink-soft, #4A5568);
	line-height: 1.55;
	margin: 0;
}

/* Ideal For */
.workshop-section .wc .for {
	margin-top: 12px;
	font-family: var(--body);
	font-size: 13px;
	color: var(--ink, #1C2230);
	line-height: 1.4;
}

.workshop-section .wc .for b {
	font-family: var(--display);
	color: var(--indigo, #002B5C);
	font-weight: 700;
}

/* What you'll learn list */
.workshop-section .wc .learn {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line, #D9DCE1);
}

.workshop-section .wc .learn .l {
	font-family: var(--display);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--crimson, #ED1C24);
	margin-bottom: 8px;
}

.workshop-section .wc ul {
	list-style: none;
	display: grid;
	gap: 7px;
	padding: 0;
	margin: 0;
}

.workshop-section .wc li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-family: var(--body);
	font-size: 14px;
	color: var(--ink, #1C2230);
	line-height: 1.45;
}

.workshop-section .wc li::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 5px;
	border-radius: 50%;
	background: var(--indigo-tint, #F2F5F9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED1C24' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

.workshop-section .wc li.has-custom-icon::before {
	display: none;
}

.workshop-section .wc li .learn-icon {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 4px;
	object-fit: contain;
}

/* Price block */
.workshop-section .wc .price {
	margin-top: auto;
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.workshop-section .wc .price b {
	font-family: var(--display);
	font-weight: 800;
	font-size: 26px;
	color: var(--indigo, #002B5C);
	letter-spacing: -.02em;
}

.workshop-section .wc .price span {
	font-family: var(--body);
	font-size: 12.5px;
	color: var(--ink-soft, #4A5568);
}

/* Card Button */
.workshop-section .wc .btn,
.workshop-section .wc .primary,
.workshop-section .wc .outline {
	width: 100%;
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 14px 26px;
	border-radius: var(--radius, 6px);
	border: 2px solid var(--indigo, #002B5C);
	color: var(--indigo, #002B5C);
	background: transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	text-align: center;
	box-sizing: border-box;
}

.workshop-section .wc .btn:hover,
.workshop-section .wc .primary:hover,
.workshop-section .wc .outline:hover {
	transform: translateY(-1px);
}

/* Inactive/unselected card button: invisible placeholder so prices stay 100% aligned horizontally, matching jhgcourses.netlify.app */
.workshop-section .wc:not(.sel):not(.inhouse) .btn,
.workshop-section .wc:not(.sel):not(.inhouse) .btn-outline,
.workshop-section .wc:not(.sel):not(.inhouse) .outline {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none;
	border: 2px solid transparent !important;
	background: transparent !important;
	color: transparent !important;
}

/* Active/selected card button: red crimson matching the active card border design */
.workshop-section .wc.sel .btn,
.workshop-section .wc.sel .btn-primary,
.workshop-section .wc.sel .primary {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto;
	display: inline-flex !important;
	background: var(--crimson, #ED1C24) !important;
	color: var(--white, #FFFFFF) !important;
	border-color: var(--crimson, #ED1C24) !important;
}

.workshop-section .wc.sel .btn:hover,
.workshop-section .wc.sel .btn-primary:hover,
.workshop-section .wc.sel .primary:hover {
	background: #C9151C !important;
	border-color: #C9151C !important;
	color: var(--white, #FFFFFF) !important;
}

/* Outline Button general overrides for on-dark sections */
.workshop-section.on-dark .wc:not(.sel):not(.inhouse) .btn,
.workshop-section.on-dark .wc:not(.sel):not(.inhouse) .btn-outline {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none;
}

/* In-house card variant */
.workshop-section .wc.inhouse {
	background: transparent;
	color: #ffffff;
	border: 1px dashed rgba(255, 255, 255, .35);
	justify-content: center;
}

.workshop-section .wc.inhouse h3 {
	color: #ffffff !important;
}

.workshop-section .wc.inhouse p {
	color: rgba(255, 255, 255, .78);
}

.workshop-section .wc.inhouse .btn {
	width: auto;
	margin-top: 18px;
}

/* Under Bar (in-house info) */
.workshop-section .under {
	margin-top: 26px;
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	font-family: var(--body);
	font-size: 14.5px;
	color: rgba(255, 255, 255, .78);
	line-height: 1.5;
}

.workshop-section .under a {
	color: #ffffff;
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	text-decoration: none;
	transition: opacity .15s ease;
}

.workshop-section .under a:hover {
	opacity: .85;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
	.workshop-section .head {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.workshop-section .wgrid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.ws,
	.workshop-section {
		padding: 52px 0;
	}

	.workshop-section .wgrid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.workshop-section .wc {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
