:root {
	--atyaf-badge-start: #005bea;
	--atyaf-badge-end: #00c6fb;
	--atyaf-title-color: #12263f;
	--atyaf-card-radius: 24px;
	--atyaf-card-gap: 24px;
	--atyaf-card-shadow: 0 12px 35px rgba(15, 35, 56, 0.09);
	--atyaf-card-shadow-hover: 0 22px 50px rgba(15, 35, 56, 0.16);
}

.atyaf-program-price {
	display: inline-flex;
	align-items: center;
	min-block-size: 38px;
}

.atyaf-diploma-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-inline-size: 100%;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--atyaf-badge-start), var(--atyaf-badge-end));
	box-shadow: 0 7px 18px rgba(0, 91, 234, 0.22);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	white-space: normal;
}

body.atyaf-card-styles-enabled ul.learn-press-courses,
body.atyaf-card-styles-enabled .atyaf-course-grid ul.learn-press-courses,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--atyaf-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.atyaf-card-styles-enabled .learn-press-courses > li.course,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container > .e-loop-item,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner > .thim-ekits-course__item {
	min-inline-size: 0;
	margin: 0;
}

body.atyaf-card-styles-enabled .learn-press-courses > li.course > .course-item,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container > .e-loop-item,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner > .thim-ekits-course__item {
	position: relative;
	display: flex;
	flex-direction: column;
	block-size: 100%;
	overflow: hidden;
	border: 1px solid rgba(18, 38, 63, 0.06);
	border-radius: var(--atyaf-card-radius);
	background: #fff;
	box-shadow: var(--atyaf-card-shadow);
	transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

body.atyaf-card-styles-enabled .learn-press-courses > li.course > .course-item:hover,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container > .e-loop-item:hover,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner > .thim-ekits-course__item:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 91, 234, 0.14);
	box-shadow: var(--atyaf-card-shadow-hover);
}

body.atyaf-card-styles-enabled .learn-press-courses .course-thumbnail,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-theme-post-featured-image,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__thumbnail,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-thim-loop-item-featured-image .elementor-widget-container {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eef4f8;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-thumbnail img,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-theme-post-featured-image img,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__thumbnail img,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-thim-loop-item-featured-image img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.45s ease;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-item:hover .course-thumbnail img,
body.atyaf-card-styles-enabled .atyaf-course-grid .e-loop-item:hover .elementor-widget-theme-post-featured-image img,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__item:hover .thim-ekits-course__thumbnail img,
body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__item:hover .elementor-widget-thim-loop-item-featured-image img {
	transform: scale(1.035);
}

body.atyaf-card-styles-enabled .learn-press-courses .course-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

body.atyaf-card-styles-enabled .learn-press-courses .wap-course-title,
body.atyaf-card-styles-enabled .learn-press-courses .course-title,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-heading-title {
	margin-block: 0 12px;
	color: var(--atyaf-title-color);
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 800;
	line-height: 1.45;
}

body.atyaf-card-styles-enabled .learn-press-courses .wap-course-title a,
body.atyaf-card-styles-enabled .learn-press-courses .course-title a,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: auto;
	padding-block-start: 16px;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-price,
body.atyaf-card-styles-enabled .atyaf-course-grid .course-price {
	color: #008f5a;
	font-size: 20px;
	font-weight: 800;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-readmore a,
body.atyaf-card-styles-enabled .learn-press-courses .lp-button,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-button,
body.atyaf-card-styles-enabled .atyaf-course-grid .learn-press-course-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 44px;
	padding: 11px 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--atyaf-badge-start), var(--atyaf-badge-end));
	box-shadow: 0 6px 16px rgba(0, 91, 234, 0.18);
	color: #fff;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

body.atyaf-card-styles-enabled .learn-press-courses .course-readmore a:hover,
body.atyaf-card-styles-enabled .learn-press-courses .lp-button:hover,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-button:hover,
body.atyaf-card-styles-enabled .atyaf-course-grid .learn-press-course-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 91, 234, 0.25);
	filter: saturate(1.08);
}

body.atyaf-card-styles-enabled .learn-press-courses .course-readmore a:focus-visible,
body.atyaf-card-styles-enabled .learn-press-courses .lp-button:focus-visible,
body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-button:focus-visible,
body.atyaf-card-styles-enabled .atyaf-course-grid .learn-press-course-button:focus-visible {
	outline: 3px solid rgba(0, 91, 234, 0.35);
	outline-offset: 3px;
}

/* Hide an accidentally retained Elementor price widget only inside diploma listing cards. */
body.atyaf-card-styles-enabled .learn-press-courses .atyaf-program--diploma .course-price,
body.atyaf-card-styles-enabled .atyaf-course-grid .atyaf-program--diploma .course-price {
	display: none !important;
}

@media (max-width: 1024px) {
	body.atyaf-card-styles-enabled ul.learn-press-courses,
	body.atyaf-card-styles-enabled .atyaf-course-grid ul.learn-press-courses,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container,
	body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.atyaf-card-styles-enabled ul.learn-press-courses,
	body.atyaf-card-styles-enabled .atyaf-course-grid ul.learn-press-courses,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container,
	body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	body.atyaf-card-styles-enabled .learn-press-courses .course-content {
		padding: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.atyaf-card-styles-enabled .learn-press-courses > li.course > .course-item,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-loop-container > .e-loop-item,
	body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__inner > .thim-ekits-course__item,
	body.atyaf-card-styles-enabled .learn-press-courses .course-thumbnail img,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-theme-post-featured-image img,
	body.atyaf-card-styles-enabled .atyaf-course-grid .thim-ekits-course__thumbnail img,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-widget-thim-loop-item-featured-image img,
	body.atyaf-card-styles-enabled .learn-press-courses .course-readmore a,
	body.atyaf-card-styles-enabled .learn-press-courses .lp-button,
	body.atyaf-card-styles-enabled .atyaf-course-grid .elementor-button,
	body.atyaf-card-styles-enabled .atyaf-course-grid .learn-press-course-button {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}
