/**
 * "Training: Homepage carousel" Elementor widget. Scoped to .fct-ht.
 * Heading style follows the homepage section headings (plum Poppins, centred).
 */
.fct-ht {
	--ht-plum: #933183;
	--ht-plum-700: #7a2a6c;
	--ht-plum-900: #4a1640;
	--ht-brass: #e3c189;
	--ht-ink-2: #5b5560;
	--ht-ease: cubic-bezier(.2, .7, .2, 1);
	--ht-cut: 40px;
	--ht-gap: 14px;
	--ht-per: 4;
	padding: clamp(3.5rem, 7vw, 5.5rem) 0;
	background: #fff;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.fct-ht *, .fct-ht *::before, .fct-ht *::after { box-sizing: border-box; }
.fct-ht [hidden] { display: none !important; }
.fct-ht__wrap { width: 100%; max-width: calc(1180px + 2 * clamp(1.25rem, 5vw, 3rem)); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); text-align: center; }
.fct-ht__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.fct-ht__eyebrow {
	display: inline-block; margin: 0 0 .9rem !important; padding: .4rem .9rem; border-radius: 999px;
	background: #f6eef4; color: var(--ht-plum);
	font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.fct-ht__title {
	margin: 0 0 1rem !important;
	font-family: 'Poppins', 'Inter', system-ui, sans-serif !important;
	font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem) !important; font-weight: 700 !important;
	line-height: 1.15 !important; letter-spacing: -0.01em; color: var(--ht-plum) !important; text-align: center !important;
}
.fct-ht__intro {
	margin: 0 auto !important; max-width: 64ch;
	font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.65; color: var(--ht-ink-2); text-align: center !important;
}

/* Carousel */
.fct-ht__carousel { position: relative; margin-top: clamp(2rem, 4vw, 3rem); }
/* Without the script the row scrolls sideways; with it, the carousel moves the track. */
.fct-ht__viewport { overflow-x: auto; padding: 6px 0 12px; scroll-snap-type: x mandatory; }
.fct-ht__item { scroll-snap-align: start; }
.fct-ht.is-ready .fct-ht__viewport { overflow: hidden; scroll-snap-type: none; }
.fct-ht__track {
	list-style: none; margin: 0 !important; padding: 0 !important;
	display: flex; gap: var(--ht-gap);
	transition: transform .6s var(--ht-ease); will-change: transform; touch-action: pan-y;
}
.fct-ht__item {
	flex: 0 0 calc((100% - (var(--ht-per) - 1) * var(--ht-gap)) / var(--ht-per));
	margin: 0; padding: 0; display: flex; min-width: 0;
}
.fct-ht__tile {
	position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 260px; padding: 2rem 1.25rem 3.4rem; gap: .45rem;
	background: var(--ht-plum); color: #fff !important; text-decoration: none !important; text-align: center;
	clip-path: polygon(0 0, calc(100% - var(--ht-cut)) 0, 100% var(--ht-cut), 100% 100%, 0 100%);
	transition: background-color .25s var(--ht-ease), transform .25s var(--ht-ease);
}
.fct-ht__item:nth-child(even) .fct-ht__tile { background: var(--ht-plum-900); clip-path: polygon(0 0, 100% 0, 100% 100%, var(--ht-cut) 100%, 0 calc(100% - var(--ht-cut))); }
a.fct-ht__tile:hover { background: var(--ht-plum-700); transform: translateY(-4px); }
.fct-ht__item:nth-child(even) a.fct-ht__tile:hover { background: #5d1c51; }
.fct-ht__value {
	font-family: 'Poppins', 'Inter', system-ui, sans-serif; font-weight: 600; font-style: italic;
	font-size: clamp(2.4rem, 1.9rem + 1.8vw, 3.3rem); line-height: 1; letter-spacing: -0.02em; color: #fff;
}
.fct-ht__name { font-family: 'Poppins', 'Inter', system-ui, sans-serif; font-size: 1.08rem; font-weight: 600; line-height: 1.3; max-width: 20ch; margin-top: .35rem; }
.fct-ht__text { font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 24ch; }
.fct-ht__cta {
	position: absolute; left: 0; right: 0; bottom: 1.05rem;
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ht-brass);
}
.fct-ht__cta svg { width: 18px; height: 18px; transition: transform .25s var(--ht-ease); }
a.fct-ht__tile:hover .fct-ht__cta svg { transform: translateX(4px); }
a.fct-ht__tile:focus-visible { outline: 3px solid var(--ht-plum-900); outline-offset: 3px; }

.fct-ht__nav {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
	border-radius: 50%; border: 0; background: #fff; color: var(--ht-plum);
	box-shadow: 0 10px 24px -10px rgba(74, 22, 64, .55);
	transition: background-color .2s var(--ht-ease), color .2s var(--ht-ease);
	right: -22px;
}
.fct-ht__nav--prev { left: -22px; right: auto; }
.fct-ht__nav--prev svg { transform: scaleX(-1); }
.fct-ht__nav:hover { background: var(--ht-plum); color: #fff; }
.fct-ht__nav:focus-visible { outline: 3px solid var(--ht-plum-900); outline-offset: 3px; }

.fct-ht__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.fct-ht__dot { width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.fct-ht__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 4px; background: #e6d7e2; transition: background-color .2s var(--ht-ease); }
.fct-ht__dot[aria-current]::before { background: var(--ht-plum); }
.fct-ht__dot:focus-visible { outline: 3px solid var(--ht-plum-900); outline-offset: 2px; }

/* Outlined button */
.fct-ht__more { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0 !important; text-align: center !important; }
.fct-ht__btn {
	display: inline-flex; align-items: center; gap: .55rem;
	min-height: 50px; padding: .75rem 1.4rem; border: 1.5px solid var(--ht-plum);
	color: var(--ht-plum) !important; background: transparent; text-decoration: none !important;
	font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	transition: background-color .2s var(--ht-ease), color .2s var(--ht-ease);
}
.fct-ht__btn svg { width: 18px; height: 18px; transition: transform .25s var(--ht-ease); }
.fct-ht__btn:hover { background: var(--ht-plum); color: #fff !important; }
.fct-ht__btn:hover svg { transform: translateX(4px); }
.fct-ht__btn:focus-visible { outline: 3px solid var(--ht-plum-900); outline-offset: 3px; }

@media (max-width: 1099px) { .fct-ht { --ht-per: 3; } }
@media (max-width: 819px) {
	.fct-ht { --ht-per: 2; }
	.fct-ht__nav { right: -10px; } .fct-ht__nav--prev { left: -10px; right: auto; }
}
@media (max-width: 539px) {
	.fct-ht { --ht-per: 1.15; --ht-cut: 32px; }
	.fct-ht__tile { min-height: 230px; }
	.fct-ht__nav { display: none; }
	/* Small phones: the label and button may wrap, so keep them compact and tidy. */
	.fct-ht__eyebrow { border-radius: 14px; font-size: .72rem !important; letter-spacing: .07em; line-height: 1.5; }
	.fct-ht__btn { width: 100%; justify-content: center; font-size: .88rem; letter-spacing: .02em; text-align: center; }
	.fct-ht__btn svg { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	.fct-ht * { transition: none !important; }
	a.fct-ht__tile:hover { transform: none; }
}
