/* =========================================
   Shared card layouts
========================================= */


.ttb-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ttb-card-grid__item {
	min-width: 0;
}

.ttb-card-slider-wrap {
	position: relative;
}

.ttb-card-slider {
	margin: 0 -12px;
}

.ttb-card-slide {
	padding: 0 12px;
}

/* =========================================
   Filter layout
========================================= */

.ttb-course-filter-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ttb-course-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ttb-course-filter-btn {
	border: 1px solid rgba(19, 41, 75, 0.12);
	background: #ffffff;
	color: #13294b;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ttb-course-filter-btn:hover {
	border-color: rgba(31, 89, 255, 0.2);
	background: #f7fbff;
}

.ttb-course-filter-btn.is-active {
	background: linear-gradient(90deg, #1f59ff 0%, #26abe0 100%);
	color: #ffffff;
	border-color: transparent;
}

.ttb-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* =========================================
   One shared card style
========================================= */

.ttb-card {
	position: relative;
	min-height: 380px;
	border-radius: 28px;
	overflow: hidden;
	background: #eef5fb;
	border: 1px solid rgba(19, 41, 75, 0.08);
	box-shadow: 0 10px 30px rgba(19, 41, 75, 0.05);
	height: 100%;
}

.ttb-card__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.55) 0 16%, transparent 16.5%),
		radial-gradient(circle at 80% 18%, rgba(255,255,255,0.35) 0 14%, transparent 14.5%),
		radial-gradient(circle at 82% 82%, rgba(255,255,255,0.30) 0 18%, transparent 18.5%),
		linear-gradient(140deg, transparent 0 38%, rgba(255,255,255,0.22) 38% 52%, transparent 52% 100%),
		linear-gradient(135deg, rgba(31, 89, 255, 0.06), rgba(38, 171, 224, 0.04)),
		linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}

.ttb-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: 28px;
	min-height: 380px;
	height: 100%;
	box-sizing: border-box;
}

.ttb-card__tag {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255,255,255,0.55);
	border: 1px solid rgba(19, 41, 75, 0.08);
	color: #13294b;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
	text-decoration: none;
}

.ttb-card__title {
	margin: 0 0 14px;
	font-size: 30px;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #13294b;
	max-width: 80%;
}

.ttb-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 3; /* limit to 3 lines */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wp--preset--color--true-navy) !important;
}

.ttb-card__title {
	min-height: calc(1.3em * 3); /* adjust line-height if needed */
}

.ttb-card__title a {
	color: inherit;
	text-decoration: none;
}

.ttb-card__desc {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(19, 41, 75, 0.82);
	max-width: 80%;
}

.ttb-card__btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, #1f59ff 0%, #26abe0 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ttb-card__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(31, 89, 255, 0.2);
}

/* Category variants */
.ttb-card--student-engagement { background: #eef7fd; }
.ttb-card--online-training { background: #edf4ff; }
.ttb-card--student-support { background: #eef9f2; }
.ttb-card--llnd { background: #f5f9ef; }
.ttb-card--facilitation-skills { background: #f1f5fa; }
.ttb-card--instructional-design { background: #fbf3e8; }



/* Responsive */
@media (max-width: 1024px) {
	.ttb-card-grid,
	.ttb-course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ttb-card-grid,
	.ttb-course-grid {
		grid-template-columns: 1fr;
	}

	.ttb-card {
		min-height: 340px;
	}

	.ttb-card__content {
		min-height: 340px;
		padding: 24px;
	}

	.ttb-card__title {
		font-size: 24px;
	}
}





/* =========================================
   Slider FIX
========================================= */

/* Track alignment */
.ttb-card-slider .slick-track {
	display: flex !important;
	align-items: stretch;
}

/* Each slide */
.ttb-card-slide {
	width: 33.333% !important; /* 3 visible */
	padding: 0 12px;
	box-sizing: border-box;
	height: auto;
}

/* Ensure card fills slide, not page */
.ttb-card-slide .ttb-card {
	height: 100%;
}

/* Prevent cards from going full width */
.ttb-card-slider .slick-slide {
	height: auto;
}

/* Spacing fix */
.ttb-card-slider .slick-list {
	margin: 0 -12px;
}

/* Tablet */
@media (max-width: 1024px) {
	.ttb-card-slide {
		width: 50% !important;
	}
}

/* Mobile */
@media (max-width: 640px) {
	.ttb-card-slide {
		width: 100% !important;
	}
}



/* Default = 3 columns */
.ttb-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* 2 cards */
.ttb-card-grid.is-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 1 card */
.ttb-card-grid.is-1 {

	grid-template-columns: repeat(3, minmax(0, 1fr));

}

/* ONLY center fallback grids that were originally sliders */

.ttb-card-grid.is-1.is-slider-fallback {

	grid-template-columns: 1fr;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;

}

.ttb-card-grid.is-2.is-slider-fallback {

	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;

}


/* Course slider arrows */
.ttb-card-slider-controls {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
	width: 100%;
}

.ttb-card-slider-arrows {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
}

.ttb-card-slider-arrows .ttb-course-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	color: #13294b;
}

.ttb-card-slider-arrows .ttb-course-arrow i {
	font-size: 20px;
	line-height: 1;
	color: #13294b;
	display: inline-block;
}

.ttb-card-slider-arrows .ttb-course-arrow:hover {
	background: transparent;
	box-shadow: none;
	opacity: 0.7;
}

.ttb-card-slider-arrows .ttb-course-arrow.slick-disabled {
	opacity: 0.3;
	cursor: default;
}











/* =========================================
   Course category banner base
========================================= */

.tax-ld_course_category .wp-block-cover.alignfull {
	position: relative;
	overflow: hidden;
	min-height: 460px !important;
	padding-top: 110px !important;
	padding-bottom: 90px !important;
	background: #eef5fb;
}

.tax-ld_course_category .wp-block-cover.alignfull .wp-block-cover__image-background {
	display: none;
}

.tax-ld_course_category .wp-block-cover.alignfull .wp-block-cover__background {
	background: none !important;
	opacity: 1 !important;
}

.tax-ld_course_category .wp-block-cover.alignfull::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		none;
	pointer-events: none;
}

max-width: var(--wp--style--global--content-size); {
	position: relative;
	z-index: 2;
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.tax-ld_course_category .wp-block-cover.alignfull .scrolling {
	max-width: 760px;
	padding: 0 !important;
}

.tax-ld_course_category .hero-feature__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin: 0 0 24px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(255,255,255,0.55);
	border: 1px solid rgba(19, 41, 75, 0.08);
	color: #13294b;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.tax-ld_course_category .hero-feature__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.tax-ld_course_category .hero-feature__eyebrow a:hover {
	color: #1f59ff;
}

.tax-ld_course_category .hero-feature__eyebrow .bread-divider {
	opacity: 0.5;
}

.tax-ld_course_category .wp-block-query-title {
	margin: 0 0 18px !important;
	font-size: clamp(44px, 6vw, 72px) !important;
	line-height: 0.95 !important;
	letter-spacing: -0.04em;
	color: #13294b;
}

.tax-ld_course_category .wp-block-term-description {
	margin: 0;
	max-width: 720px;
}

.tax-ld_course_category .wp-block-term-description p {
	margin: 0;
	font-size: 22px;
	line-height: 1.45;
	color: rgba(19, 41, 75, 0.82);
}

/* =========================================
   Category colours to match cards
========================================= */

body.term-assessment-design .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_06_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-digital-tools-ai .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_05_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-facilitation-skills .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_03_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-instructional-design .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_04_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-llnd .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_01_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-online-training .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_08_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-student-engagement .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_02_1600x500.png') no-repeat top left;
  background-size: cover;
}

body.term-student-support .wp-block-cover.alignfull {
	background: url('/wp-content/uploads/2026/04/CardBanner_07_1600x500.png') no-repeat top left;
  background-size: cover;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 700px) {
	
	.ttb-card-grid.is-1, .ttb-card-grid, .ttb-card-grid.is-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
	
	.ld-alert-certificate {display: none !important;}
	
	.tax-ld_course_category .wp-block-cover.alignfull {
		min-height: 360px !important;
		padding-top: 72px !important;
		padding-bottom: 56px !important;
	}

	max-width: var(--wp--style--global--content-size); {
		width: min(100% - 32px, 1280px);
	}

	.tax-ld_course_category .wp-block-query-title {
		font-size: 44px !important;
		line-height: 0.98 !important;
	}

	.tax-ld_course_category .wp-block-term-description p {
		font-size: 18px;
	}
}


.ttb-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	will-change: transform;
}

.ttb-card:hover,
.ttb-card:focus-within {
	transform: translateY(-8px) scale(1.005);
	box-shadow: 0 12px 24px rgba(19, 41, 75, 0.08);
}



.ttb-card__btn {
	border: 2px solid transparent;
	transition: all 0.25s ease;
}

.ttb-card__btn:hover,
.ttb-card__btn:focus {
	background: transparent !important;
	color: #1f59ff !important;
	border: 2px solid #1f59ff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 18px rgba(31, 89, 255, 0.15) !important;
}



/* default (no JS) */
.ttb-card {
	opacity: 1;
	transform: none;
}

/* as soon as JS is detected */
html.js .ttb-card {
	opacity: 0;
	transform: translateY(24px);
}

/* animation state */
html.js .ttb-card.is-visible {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.5s ease-out,
		transform 0.5s ease-out;
	will-change: opacity, transform;
}




/* =========================================
   Gutenberg editor visibility fix
========================================= */

.editor-styles-wrapper .ttb-card,
.editor-styles-wrapper html.js .ttb-card,
html.js .editor-styles-wrapper .ttb-card {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

.editor-styles-wrapper .ttb-card.is-visible {
	opacity: 1 !important;
	transform: none !important;
}

/* prevent slider overflow issues in editor */
.editor-styles-wrapper .ttb-card-slider,
.editor-styles-wrapper .ttb-card-grid,
.editor-styles-wrapper .ttb-course-grid {
	overflow: visible !important;
}

/* make Slick slides visible inside editor */
.editor-styles-wrapper .slick-track,
.editor-styles-wrapper .slick-list,
.editor-styles-wrapper .slick-slide {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	height: auto !important;
}


/* Prevent card links from being clickable in Gutenberg editor */
.editor-styles-wrapper .ttb-card a,
.editor-styles-wrapper .ttb-card__btn,
.editor-styles-wrapper .ttb-card__tag,
.editor-styles-wrapper .ttb-card__title a {
	pointer-events: none !important;
	cursor: default !important;
}
