/**
 * Home UI fixes: equal-height core feature cards; OUR COURSES CTA not clipped.
 * Loads after custom-inline.css
 */

/* ---------- Core features: equal height, full text ---------- */
section.feature-area.style-one .lwt-feature-cards-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	row-gap: 24px;
}

section.feature-area.style-one .lwt-feature-cards-row > [class*="col-"] {
	display: flex;
	flex-direction: column;
}

section.feature-area.style-one .lwt-feature-cards-row .single-feature-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	height: auto;
	box-sizing: border-box;
}

section.feature-area.style-one .lwt-feature-cards-row .feature-content {
	flex: 1 1 auto;
	min-height: 0;
}

section.feature-area.style-one .lwt-feature-cards-row p.feature-desc {
	overflow: visible;
	max-height: none;
	display: block;
}

/* ---------- OUR COURSES: room for hover CTA (tablet / small laptop) ---------- */
@media (max-width: 1399px) and (min-width: 901px) {
	.case-study-area.style-one .courses_list_wrp .owl-stage-outer {
		overflow: visible;
		padding-top: 28px;
		padding-bottom: 48px;
		margin-bottom: 8px;
	}

	.case-study-area.style-one .courses_list_wrp .owl-item {
		padding-top: 8px;
		padding-bottom: 12px;
	}

	.case-study-area.style-one .case-study-single-box {
		overflow: visible;
		height: auto !important;
		min-height: 640px;
	}

	.case-study-area.style-one .case-study-content {
		position: relative;
		padding-bottom: 72px;
	}

	.case-study-area.style-one .course-btn {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 20px;
		text-align: center;
		z-index: 5;
	}

	.case-study-area.style-one .course-btn a {
		position: relative;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
	}

	.case-study-area.style-one .case-study-single-box:hover .course-btn a {
		transform: translateY(-6px);
	}
}

/* Slight cushion on large desktops so CTA never clips vertically */
@media (min-width: 1400px) {
	.case-study-area.style-one .courses_list_wrp .owl-stage-outer {
		padding-top: 20px;
		padding-bottom: 36px;
	}

	.case-study-area.style-one .case-study-content {
		position: relative;
		padding-bottom: 56px;
	}

	.case-study-area.style-one .course-btn {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 22px;
		text-align: center;
		z-index: 5;
	}

	.case-study-area.style-one .course-btn a {
		position: relative;
	}

	.case-study-area.style-one .case-study-single-box:hover .course-btn a {
		transform: translateY(-18px);
	}
}
