/* Catalog: instant AJAX filters — hide manual “Show Results” */
.asem-filter-instant .stm_lms_courses__filter_actions > input[type="submit"] {
	display: none !important;
}

/* ========== Formatori archive ========== */
.asem-formatori {
	margin: 0 0 60px;
}

.asem-formatori-hero {
	background: linear-gradient(135deg, #052453 0%, #0a3a6e 55%, #163f7a 100%);
	color: #fff;
	padding: 48px 24px 44px;
	margin: 0 0 28px;
}

.asem-formatori-hero__inner {
	max-width: 1120px;
	margin: 0 auto;
}

.asem-formatori-hero__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.asem-formatori-hero__title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.asem-formatori-hero__lead {
	margin: 0;
	max-width: 42rem;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.88;
}

.asem-formatori-toolbar {
	max-width: 1120px;
	margin: 0 auto 20px;
	padding: 0 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
}

.asem-formatori-toolbar__search {
	flex: 1 1 240px;
	max-width: 360px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
	font-size: 15px;
}

.asem-formatori-toolbar__count {
	margin: 0;
	font-size: 14px;
	color: #5b6b8c;
}

.asem-formatori-grid {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.asem-formatori-card--hidden,
.asem-formatori-card[hidden],
.asem-formatori-grid[hidden],
.asem-formatori-empty[hidden] {
	display: none !important;
}

.asem-formatori-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e1e2e4;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asem-formatori-card:hover {
	transform: translateY(-3px);
	border-color: #052453;
	box-shadow: 0 10px 24px rgba(5, 36, 83, 0.1);
}

.asem-formatori-card__media {
	display: block;
	aspect-ratio: 3 / 4;
	background: #052453;
	overflow: hidden;
}

.asem-formatori-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.35s ease;
}

.asem-formatori-card:hover .asem-formatori-card__img {
	transform: scale(1.04);
}

.asem-formatori-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 42px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.04em;
}

.asem-formatori-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 14px 16px;
	min-height: 88px;
}

.asem-formatori-card__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #052453;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asem-formatori-card__role {
	font-size: 13px;
	line-height: 1.4;
	color: #5b6b8c;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.asem-formatori-empty {
	padding: 40px 24px;
	text-align: center;
	color: #6c757d;
}

@media (max-width: 1100px) {
	.asem-formatori-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.asem-formatori-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.asem-formatori-grid {
		grid-template-columns: 1fr;
	}
}

/* ========== Formator profile ========== */
.asem-formator-profile {
	color: #273044;
	padding-bottom: 64px;
}

.asem-formator-profile__container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
}

.asem-formator-profile__breadcrumb {
	padding: 14px 0;
	font-size: 13px;
	background: #f5f7fa;
	border-bottom: 1px solid #e8eaed;
}

.asem-formator-profile__breadcrumb a {
	color: #385bce;
	text-decoration: none;
}

.asem-formator-profile__breadcrumb span[aria-hidden] {
	margin: 0 8px;
	color: #9aa3b2;
}

.asem-formator-profile__hero {
	background: linear-gradient(135deg, #052453 0%, #0a3a6e 60%, #163f7a 100%);
	color: #fff;
	padding: 40px 0 44px;
}

.asem-formator-profile__hero-inner {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.asem-formator-profile__avatar {
	flex: 0 0 200px;
	width: 200px;
	aspect-ratio: 3 / 4;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.asem-formator-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.asem-formator-profile__avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 48px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
}

.asem-formator-profile__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.7;
}

.asem-formator-profile__name {
	margin: 0 0 10px;
	font-size: clamp(28px, 3.5vw, 38px);
	line-height: 1.15;
	color: #fff;
}

.asem-formator-profile__title {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.5;
	opacity: 0.88;
	max-width: 36rem;
}

.asem-formator-profile__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	margin-bottom: 16px;
}

.asem-formator-profile__count {
	font-weight: 600;
	font-size: 15px;
}

.asem-formator-profile__cta {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 3px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.asem-formator-profile__cta:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.asem-formator-profile__contacts-inline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.asem-formator-profile__contact-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.2;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.asem-formator-profile__contact-chip:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.asem-formator-profile__contact-icon {
	display: inline-flex;
	color: #fff;
}

.asem-formator-profile__contact-icon .asem-icon {
	width: 16px;
	height: 16px;
}

.asem-formator-profile__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.asem-formator-profile__social:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
	color: #fff;
	transform: translateY(-1px);
}

.asem-formator-profile__social .asem-icon {
	width: 16px;
	height: 16px;
}

.asem-formator-profile__social .asem-icon path:not([fill="none"]),
.asem-formator-profile__contact-icon .asem-icon path:not([fill="none"]) {
	fill: currentColor;
}

.asem-formator-profile__social .asem-icon path[fill="none"],
.asem-formator-profile__contact-icon .asem-icon path[fill="none"],
.asem-formator-profile__social .asem-icon circle[fill="none"],
.asem-formator-profile__contact-icon .asem-icon circle[fill="none"] {
	stroke: currentColor;
}

.asem-formator-profile__body {
	padding-top: 36px;
}

.asem-formator-profile__section-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #052453;
	padding-bottom: 8px;
	border-bottom: 3px solid #385bce;
	display: inline-block;
}

.asem-formator-profile__bio {
	margin-bottom: 40px;
}

.asem-formator-profile__bio-text {
	font-size: 15px;
	line-height: 1.7;
}

.asem-formator-profile__bio[data-collapsed="1"] .asem-formator-profile__bio-text {
	max-height: 9.5em;
	overflow: hidden;
	mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.asem-formator-profile__bio-toggle {
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: #385bce;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.asem-formator-profile__courses {
	margin-bottom: 20px;
}

.asem-formator-profile__courses-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 18px;
}

.asem-formator-profile__courses-head .asem-formator-profile__section-title {
	margin-bottom: 0;
}

.asem-formator-profile__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.asem-formator-profile__tab {
	appearance: none;
	border: 1px solid var(--asem-border, #e1e2e4);
	background: #fff;
	color: var(--asem-text, #273044);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.asem-formator-profile__tab:hover {
	border-color: var(--asem-navy, #052453);
	color: var(--asem-navy, #052453);
}

.asem-formator-profile__tab.is-active {
	background: var(--asem-navy, #052453);
	border-color: var(--asem-navy, #052453);
	color: #fff;
}

.asem-formator-profile__tab-count {
	display: inline-flex;
	min-width: 1.4em;
	justify-content: center;
	padding: 0.1em 0.4em;
	border-radius: 999px;
	font-size: 0.78em;
	font-weight: 700;
	background: rgba(5, 36, 83, 0.08);
	color: inherit;
}

.asem-formator-profile__tab.is-active .asem-formator-profile__tab-count {
	background: rgba(255, 255, 255, 0.18);
}

.asem-formator-profile__courses-panel {
	position: relative;
	min-height: 4rem;
}

.asem-formator-profile__courses-panel.is-loading .asem-related__list,
.asem-formator-profile__courses-panel.is-loading .asem-formator-profile__empty {
	opacity: 0.35;
	pointer-events: none;
}

.asem-formator-profile__loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.asem-formator-profile__loader[hidden] {
	display: none !important;
}

.asem-formator-profile__loader-spin {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(5, 36, 83, 0.15);
	border-top-color: var(--asem-navy, #052453);
	border-radius: 50%;
	animation: asem-formator-spin 0.7s linear infinite;
}

@keyframes asem-formator-spin {
	to {
		transform: rotate(360deg);
	}
}

.asem-formator-profile__empty {
	color: #6c757d;
}

@media (max-width: 720px) {
	.asem-formator-profile__hero-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.asem-formator-profile__avatar {
		flex-basis: 160px;
		width: 160px;
	}

	.asem-formator-profile__meta-row,
	.asem-formator-profile__contacts-inline {
		justify-content: center;
	}

	.asem-formator-profile__title {
		margin-left: auto;
		margin-right: auto;
	}
}

/* =========================================================
   ASEM single course — pixel-closer to coursecatalog.ase.md
   Key Old tricks: .stm_lms_udemy_bar:before full-bleed #052453
   ========================================================= */

:root {
	--asem-navy: #052453;
	--asem-red: #ff301d;
	--asem-blue: #385bce;
	--asem-green: #2fbe5b;
	--asem-text: #273044;
	--asem-muted: #6c757d;
	--asem-line: rgba(163, 163, 163, 0.3);
	--asem-meta-bg: #f0f2f5;
	--asem-border: #e1e2e4;
}

/* Modern content width (Old udemy used 1280) */
body.single-stm-courses .container {
	max-width: 1280px;
	width: 100%;
	padding-left: 24px;
	padding-right: 24px;
}

.asem-single-course {
	margin: 0 auto 70px;
	color: var(--asem-text);
	padding-top: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	max-width: 1280px;
}

.asem-single-course .asem-course-body,
.asem-single-course .masterstudy-single-course-tabs__content,
.asem-single-course .masterstudy-single-course-tabs__container {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--asem-text);
}

.asem-single-course .asem-course-body p,
.asem-single-course .asem-course-body li {
	font-weight: 400;
}

/* ~70 / 30 on 1280 → ~880 / 360 */
.asem-single-course__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin: 0 -12px;
}

.asem-single-course__left {
	width: 68%;
	padding: 0 12px;
	box-sizing: border-box;
}

.asem-single-course__sidebar {
	width: 32%;
	padding: 16px 12px 20px;
	box-sizing: border-box;
	position: relative;
	z-index: 100;
}

/* ----- Hero: full-bleed navy via ::before (Old .stm_lms_udemy_bar) ----- */
.asem-course-hero {
	position: relative;
	z-index: 100;
	padding: 19px 0 48px;
	margin: 0 0 35px;
}

.asem-course-hero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -9999px;
	right: -9999px;
	background: var(--asem-navy);
	z-index: 10;
}

.asem-course-hero__inner,
.asem-course-hero__inner > * {
	position: relative;
	z-index: 100;
}

.asem-course-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.asem-course-hero__formator {
	display: flex;
	align-items: center;
	gap: 12px;
}

.asem-course-hero__avatar img,
.asem-course-hero__avatar .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.asem-course-hero__formator-label {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 2px;
}

.asem-course-hero__formator-name {
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.asem-course-hero__views {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
}

.asem-course-hero__views-icon {
	display: inline-flex;
	color: #7ea0ff;
}

.asem-course-hero__views-label {
	opacity: 0.85;
}

.asem-course-hero__views-value {
	font-weight: 700;
}

.asem-course-hero__title {
	margin: 16px 0 28px !important;
	color: #fff !important;
	font-size: 30px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
}

.asem-course-hero__bottom {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: stretch;
}

/* Row 1: Domeniul */
.asem-course-hero__row--domain {
	display: flex;
	justify-content: flex-start;
}

/* Row 2: Durata + Credite (left) | CTA (right) */
.asem-course-hero__row--meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.asem-course-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	align-items: flex-start;
	justify-content: flex-start;
	flex: 1;
	min-width: 200px;
}

.asem-course-hero__cta {
	flex: 0 0 auto;
	margin-left: auto;
}

.asem-course-hero__fact {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #fff;
}

.asem-course-hero__fact-icon {
	display: inline-flex;
	color: #7ea0ff;
	margin-top: 2px;
	flex: 0 0 auto;
}

.asem-course-hero__fact-icon .asem-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.asem-course-hero__fact-label {
	display: block;
	font-size: 12px;
	opacity: 0.75;
	margin-bottom: 2px;
}

.asem-course-hero__fact-value,
.asem-course-hero__fact-value a {
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
}

.asem-course-hero__fact-value a.asem-course-hero__cat-link {
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.asem-course-hero__fact-value a.asem-course-hero__cat-link:hover,
.asem-course-hero__fact-value a.asem-course-hero__cat-link:focus {
	color: #ffd166 !important;
	border-bottom-color: rgba(255, 209, 102, 0.85);
	opacity: 1;
}

/* Neutralize MasterStudy category chips inside hero */
.asem-course-hero__fact-value .masterstudy-single-course-categories,
.asem-course-hero__fact-value .masterstudy-single-course-categories__item,
.asem-course-hero__fact-value a {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	display: inline !important;
}

.asem-course-hero__fact-value a.asem-course-hero__cat-link {
	border-bottom: 1px solid transparent !important;
}

.asem-course-hero__fact-value a.asem-course-hero__cat-link:hover,
.asem-course-hero__fact-value a.asem-course-hero__cat-link:focus {
	color: #ffd166 !important;
	border-bottom-color: rgba(255, 209, 102, 0.85) !important;
}

/* Green CTA — scroll to Înregistrare form */
.asem-course-hero__enroll,
.asem-course-hero__cta .masterstudy-buy-button,
.asem-course-hero__cta .masterstudy-buy-button__container,
.asem-course-hero__cta a,
.asem-course-hero__cta .btn {
	background: var(--asem-green) !important;
	border: 0 !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	border-radius: 6px !important;
	padding: 8px 14px !important;
	min-height: 0 !important;
	height: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: none !important;
	text-decoration: none !important;
}

.asem-course-hero__cta .masterstudy-buy-button span,
.asem-course-hero__cta .masterstudy-buy-button__price,
.asem-course-hero__cta .btn span {
	font-size: 13px !important;
	line-height: 1.2 !important;
}

.asem-course-hero__enroll:hover,
.asem-course-hero__cta .masterstudy-buy-button:hover,
.asem-course-hero__cta a:hover {
	filter: brightness(0.96);
	color: #fff !important;
}

/* Hide certificate / extra lines under buy if present */
.asem-course-hero__cta .masterstudy-buy-button__price-description,
.asem-course-hero__cta .masterstudy-buy-button + * {
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 13px;
}

/* ----- Tabs ----- */
.asem-course-body {
	padding: 0 0 10px;
}

.asem-single-course .masterstudy-single-course-tabs {
	margin-bottom: 18px;
	border-bottom: 1px solid #e8eaed;
}

.asem-single-course .masterstudy-single-course-tabs__item {
	font-weight: 600;
	color: var(--asem-text);
	padding: 12px 18px;
}

.asem-single-course .masterstudy-single-course-tabs__item_active {
	color: var(--asem-red) !important;
}

.asem-single-course .masterstudy-single-course-tabs_style-underline .masterstudy-single-course-tabs__item_active,
.asem-single-course .masterstudy-single-course-tabs__item_active {
	border-bottom: 2px solid var(--asem-red) !important;
	box-shadow: none !important;
}

.asem-single-course .masterstudy-single-course-tabs__item_active::after,
.asem-single-course .masterstudy-single-course-tabs__item_active::before {
	background: var(--asem-red) !important;
	border-color: var(--asem-red) !important;
}

/* ----- Sidebar card ----- */
.asem-sidebar-card {
	position: relative;
	z-index: 100;
	background: #fff;
	border: 1px solid var(--asem-border);
	border-radius: 5px;
	overflow: hidden;
}

.asem-sidebar-card__image img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.asem-sidebar-card__image .masterstudy-single-course-thumbnail {
	margin: 0 !important;
	border-radius: 0 !important;
}

.asem-sidebar-card__details {
	background: var(--asem-meta-bg);
	padding: 10px;
}

/* Academic meta — icon LEFT like Old classic_course.css */
.asem-academic-details {
	margin: 0;
	padding: 0;
	background: transparent;
}

.asem-academic-details__item {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 10px 10px 10px 12px;
	border-bottom: 1px solid var(--asem-line);
}

.asem-academic-details__item:last-child {
	border-bottom: 0;
}

.asem-academic-details__icon {
	order: 0;
	flex: 0 0 24px;
	width: 24px;
	margin: 4px 16px 0 0;
	color: var(--asem-blue);
	line-height: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.asem-academic-details__icon .asem-icon {
	width: 20px;
	height: 20px;
	display: block;
	color: inherit;
}

.asem-academic-details__icon .asem-icon path:not([fill]),
.asem-academic-details__icon .asem-icon circle:not([fill]),
.asem-course-hero__fact-icon .asem-icon path:not([fill]),
.asem-course-hero__fact-icon .asem-icon circle:not([fill]) {
	fill: currentColor;
}

.asem-academic-details__info {
	flex: 1;
	min-width: 0;
}

.asem-academic-details__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--asem-red) !important;
	margin-bottom: 2px;
	line-height: 1.3;
}

/* Match content weight (400) — was 600 and looked heavier than description */
.asem-academic-details__value {
	display: block;
	font-size: 15px;
	font-weight: 400;
	color: var(--asem-text);
	line-height: 1.5;
}

.asem-academic-details__value p,
.asem-academic-details__value strong,
.asem-academic-details__value b {
	margin: 0 0 0.25em;
	font-weight: 400;
}

.asem-academic-details__value p:last-child {
	margin-bottom: 0;
}

/* Formator card (course sidebar) — compact */
.asem-formator-card {
	padding: 18px 16px 16px;
	background: #fff;
	border-top: 1px solid var(--asem-border);
}

.asem-formator-card__block + .asem-formator-card__block {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--asem-border);
}

.asem-formator-card__heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--asem-navy);
	padding-bottom: 8px;
	margin: 0 0 12px;
	border-bottom: 3px solid var(--asem-blue);
	display: inline-block;
	line-height: 1.2;
}

.asem-formator-card__link {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.asem-formator-card__link:hover {
	opacity: 0.92;
}

.asem-formator-card__link:hover .asem-formator-card__name {
	color: var(--asem-navy);
	text-decoration: underline;
}

.asem-formator-card__avatar {
	flex: 0 0 64px;
}

.asem-formator-card__avatar img,
.asem-formator-card__avatar .avatar,
.asem-formator-card__img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	object-position: top center;
	border-radius: 3px;
	display: block;
}

.asem-formator-card__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 3px;
	background: var(--asem-navy);
	color: #fff;
	font-weight: 700;
	font-size: 18px;
}

.asem-formator-card__meta {
	min-width: 0;
	flex: 1;
}

.asem-formator-card__name {
	display: block;
	font-weight: 600;
	color: var(--asem-blue);
	font-size: 15px;
	margin-bottom: 4px;
	line-height: 1.3;
}

.asem-formator-card__role {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	font-weight: 400;
	color: #5b6b8c;
	line-height: 1.4;
}

.asem-formator-card__more {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--asem-navy);
}

/* Formular */
.asem-lms-formular h3 {
	font-weight: 300;
	margin-bottom: 8px;
}

/* Related / shared course cards */
.asem-single-course__related {
	margin-top: 40px;
	padding: 0 7.5px;
}

.asem-related__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--asem-navy);
	padding-bottom: 8px;
	border-bottom: 3px solid var(--asem-blue);
	display: inline-block;
	line-height: 1.2;
}

.asem-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.asem-related__card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--asem-border);
	background: #fff;
	overflow: hidden;
	height: 100%;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asem-related__card:hover {
	transform: translateY(-2px);
	border-color: #052453;
	box-shadow: 0 8px 20px rgba(5, 36, 83, 0.08);
}

.asem-related__image-wrap {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}

.asem-related__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.asem-related__card:hover .asem-related__image {
	transform: scale(1.04);
}

.asem-related__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 8px;
	color: #fff;
	background: var(--asem-red);
}

.asem-related__body {
	display: block;
	padding: 12px 14px 16px;
}

.asem-related__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	margin-bottom: 8px;
	color: var(--asem-navy);
}

.asem-related__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	font-size: 12px;
	color: var(--asem-muted);
	margin-bottom: 0;
}

.asem-related__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
}

.asem-related__meta-icon {
	display: inline-flex;
	color: var(--asem-blue);
	flex: 0 0 auto;
}

.asem-related__meta-icon .asem-icon {
	width: 14px;
	height: 14px;
}

.asem-related__meta-icon .asem-icon path:not([fill="none"]),
.asem-related__meta-icon .asem-icon circle:not([fill="none"]) {
	fill: currentColor;
}

.asem-related__meta-icon .asem-icon path[fill="none"],
.asem-related__meta-icon .asem-icon circle[fill="none"] {
	stroke: currentColor;
}

.asem-related__meta .asem-related__price {
	font-weight: 700;
	color: var(--asem-navy);
}

.asem-single-course .masterstudy-single-course__buttons {
	display: none !important;
}

@media (max-width: 991px) {
	.asem-single-course__left,
	.asem-single-course__sidebar {
		width: 100%;
	}

	.asem-course-hero {
		margin-bottom: 20px;
	}

	.asem-course-hero::before {
		left: -24px;
		right: -24px;
	}

	.asem-related__list,
	.asem-formator-profile__course-grid {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.asem-related__item {
		flex: 0 0 min(78vw, 280px);
		scroll-snap-align: start;
	}

	body.single-stm-courses .container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ========== Enrollment form (Înregistrare tab) ========== */
.asem-enrollment {
	max-width: 520px;
	margin: 8px 0 24px;
}

.asem-enrollment__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: var(--asem-navy, #052453);
}

.asem-enrollment__lead {
	margin: 0 0 18px;
	color: var(--asem-muted, #6c757d);
	font-size: 0.95rem;
}

.asem-enrollment__field {
	margin: 0 0 14px;
}

.asem-enrollment__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--asem-text, #273044);
}

.asem-enrollment__field input,
.asem-enrollment__field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--asem-border, #e1e2e4);
	border-radius: 4px;
	font: inherit;
	box-sizing: border-box;
}

.asem-enrollment__field input:focus,
.asem-enrollment__field textarea:focus {
	outline: 2px solid rgba(5, 36, 83, 0.25);
	border-color: var(--asem-navy, #052453);
}

.asem-enrollment__honeypot {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	overflow: hidden !important;
}

.asem-enrollment__turnstile {
	margin: 0 0 16px;
}

.asem-enrollment__submit {
	appearance: none;
	border: 0;
	background: var(--asem-navy, #052453);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0.7rem 1.25rem;
	border-radius: 4px;
	cursor: pointer;
}

.asem-enrollment__submit:hover {
	background: #0a3a6e;
}

.asem-enrollment__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.asem-enrollment__feedback {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 0.92rem;
}

.asem-enrollment__feedback--ok {
	background: #e8f8ef;
	color: #1b6b3a;
}

.asem-enrollment__feedback--err {
	background: #fdecea;
	color: #a1271d;
}

.asem-enrollment__feedback--pending {
	background: #f0f2f5;
	color: #6c757d;
}

.asem-enrollment__feedback[hidden] {
	display: none !important;
}
