/* Demo courses block: reviews pages (#study-free-demo) + homepage (.index #course) */

#study-free-demo .name_course,
.index #course .name_course {
	font-size: 40px;
	padding: 0 20px;
	box-sizing: border-box;
	max-width: 100%;
	text-align: center;
}

#study-free-demo .course_top,
.index #course .course_top {
	padding: 0 12px;
	box-sizing: border-box;
	width: 100%;
}

#study-free-demo #course .tags_course,
.index #course .tags_course {
	padding: 0 12px;
	box-sizing: border-box;
	flex-wrap: wrap;
	justify-content: center;
}

#study-free-demo #course .item,
.index #course .item {
	box-sizing: border-box;
}

#study-free-demo #course .course_wrap,
.index #course .course_wrap {
	padding: 0 4px;
	box-sizing: border-box;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Checklist vertically centered with equal space above and below */
#study-free-demo #course .course_wrap .bord_container,
#study-free-demo #course .course_wrap .course_list,
.index #course .item .course_wrap .bord_container,
.index #course .course_wrap .bord_container,
.index #course .item .course_wrap .course_list,
.index #course .course_wrap .course_list {
	flex-grow: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
}

#study-free-demo #course .course_wrap .course_btn,
.index #course .course_wrap .course_btn {
	width: 100%;
	margin-top: auto;
}

#study-free-demo #course .owl-carousel .owl-stage,
.index #course .owl-carousel .owl-stage {
	display: flex;
	align-items: stretch;
}

#study-free-demo #course .owl-carousel .owl-item,
.index #course .owl-carousel .owl-item {
	display: flex;
	height: auto;
}

/* Equal card height, button pinned to bottom */
#study-free-demo #course .owl-carousel .owl-item .item,
.index #course .owl-carousel .owl-item .item,
.index #course .item {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

#study-free-demo #course .whith_arrow .owl-nav,
.index #course .whith_arrow .owl-nav {
	margin-top: 24px;
}

@media (max-width: 1200px) {
	#study-free-demo .name_course,
	.index #course .name_course {
		font-size: 32px;
		padding: 0 16px;
	}
}

@media (max-width: 991px) {
	#study-free-demo .name_course,
	.index #course .name_course {
		font-size: 28px;
		padding: 0 14px;
	}

	#study-free-demo .course_top,
	.index #course .course_top {
		padding: 0 10px;
		gap: 10px;
	}
}

@media (max-width: 767px) {
	#study-free-demo .mw-1420 {
		margin: 0 !important;
		width: 100%;
		max-width: none;
	}

	#study-free-demo #course,
	#study-free-demo #course .owl-carousel,
	#study-free-demo #course .owl-carousel .owl-stage-outer,
	.index #course .owl-carousel,
	.index #course .owl-carousel .owl-stage-outer {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	#study-free-demo #course .owl-carousel .owl-item,
	.index #course .owl-carousel .owl-item {
		margin-right: 0 !important;
		display: flex;
	}

	#study-free-demo #course .item,
	.index #course .item {
		padding: 16px;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
	}

	#study-free-demo .name_course,
	.index #course .name_course {
		font-size: 22px;
		line-height: 120%;
		padding: 0 12px;
	}

	#study-free-demo .course_top,
	.index #course .course_top {
		padding: 0 8px;
		gap: 8px;
	}

	#study-free-demo #course .tags_course,
	.index #course .tags_course {
		padding: 0 8px;
		gap: 8px;
	}

	#study-free-demo #course .whith_arrow .owl-nav,
	.index #course .whith_arrow .owl-nav {
		margin-top: 16px;
	}

	#study-free-demo #course .text-center.mt-40,
	.index #course .text-center.mt-40 {
		margin-top: 24px;
	}
}

@media (max-width: 460px) {
	#study-free-demo .name_course,
	.index #course .name_course {
		font-size: 20px;
		padding: 0 10px;
	}
}