/* UAEFT Elementor -> FSE release corrections. Loaded after the converter CSS. */

/* A hidden template title means the whole generated post header is redundant. */
.growthcore-hide-template-title .growthcore-post-header {
	display: none !important;
}

/* Comments are not used anywhere on the association site. */
.wp-block-comments,
.wp-block-post-comments-form,
.comments-area {
	display: none !important;
}

.uaeft-video__poster {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: grid;
	width: 100%;
	height: 100%;
	padding: 0;
	place-items: center;
	border: 0;
	background-position: center;
	background-size: cover;
	cursor: pointer;
}
.uaeft-video__poster::before {
	position: absolute;
	inset: 0;
	content: "";
	background: rgb(0 0 0 / 12%);
}
.uaeft-video__play {
	position: relative;
	display: block;
	width: 76px;
	height: 54px;
	border-radius: 15px;
	background: #f03;
}
.uaeft-video__play::after {
	position: absolute;
	top: 14px;
	left: 31px;
	content: "";
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
	border-left: 21px solid #fff;
}

/* Homepage: Elementor had a real 20px gap; the conversion had absorbed that
   gap into the width of the first button. */
.uaeft-fse-preview.page-id-213 .uaeft-el-e86086d {
	width: 164px !important;
	margin-right: 20px !important;
}
.uaeft-fse-preview.page-id-213 .uaeft-el-e86086d .wp-block-button__link {
	width: 164px !important;
	height: 52px !important;
	padding-block: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Articles by therapists: the original page uses one wrapping Elementor
   column as a three-column card grid. Preserve equal card heights and keep
   every CTA at the bottom of its card. */
@media (min-width: 768px) {
	.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
	.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 > * {
		width: auto !important;
		margin: 0 !important;
	}
	/* WordPress' nowrap layout keeps the former Elementor CTA as the next
	   horizontal flex item even though the card itself is vertical. Pull the
	   CTA back into the card's content column on desktop. */
	.uaeft-fse-preview.page-id-746 :is(
		.uaeft-el-45769ec, .uaeft-el-a52ad8b, .uaeft-el-854fb59,
		.uaeft-el-e1ab59c, .uaeft-el-1bbbfb1, .uaeft-el-72886ec
	) {
		transform: translateX(-100%) !important;
	}
}
.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 > * {
	display: flex !important;
	height: 100%;
	min-width: 0;
	flex-direction: column !important;
}
.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 > * > .wp-block-group,
.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 > * > .uaeft-elementor-column-inner {
	display: flex;
	height: 100%;
	flex-direction: column;
}
.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 .wp-block-buttons:last-child {
	margin-top: auto !important;
}
.uaeft-fse-preview.page-id-746 :is(
	.uaeft-el-45769ec, .uaeft-el-a52ad8b, .uaeft-el-854fb59,
	.uaeft-el-e1ab59c, .uaeft-el-1bbbfb1, .uaeft-el-72886ec
) {
	width: 100% !important;
	height: 51px !important;
	margin: auto 0 0 !important;
	align-self: stretch !important;
	justify-content: center !important;
}
.uaeft-fse-preview.page-id-746 .uaeft-el-bb291e1 .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Course trainers: restore the restrained live-site caption scale instead of
   inheriting global H2/H3 sizes from the block theme. */
.uaeft-fse-preview.postid-4387 :is(
	.uaeft-el-a3c7120, .uaeft-el-6432b17, .uaeft-el-7e078d5,
	.uaeft-el-5cd1872, .uaeft-el-6472387
) {
	font-size: 22px !important;
	line-height: 1.35 !important;
}
.uaeft-fse-preview.postid-4387 :is(
	.uaeft-el-153852c, .uaeft-el-bf638c8, .uaeft-el-b9e522a,
	.uaeft-el-787a581, .uaeft-el-091e194
) {
	font-size: 19px !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
}
.uaeft-fse-preview.page-id-4420 :is(
	.uaeft-el-a0c75d2, .uaeft-el-beea0fb, .uaeft-el-22b77f5,
	.uaeft-el-1d4ac22, .uaeft-el-e83c9cf
) {
	font-size: 22px !important;
	line-height: 1.3 !important;
}
.uaeft-fse-preview.page-id-4420 :is(
	.uaeft-el-46ced05, .uaeft-el-b1ac3da, .uaeft-el-1a97fe2,
	.uaeft-el-74d438c, .uaeft-el-5df6b37
) {
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
}
.uaeft-fse-preview:is(.postid-4387, .page-id-4420) :is(
	.uaeft-el-a3c7120, .uaeft-el-6432b17, .uaeft-el-7e078d5,
	.uaeft-el-5cd1872, .uaeft-el-6472387, .uaeft-el-a0c75d2,
	.uaeft-el-beea0fb, .uaeft-el-22b77f5, .uaeft-el-1d4ac22,
	.uaeft-el-e83c9cf
) {
	margin-bottom: 0 !important;
}

/* Image-led split sections must fill their half exactly, as in Elementor. */
.uaeft-fse-preview.page-id-671 :is(.uaeft-el-42e8876, .uaeft-el-a0c1acd) img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Center icon/image widgets whose Elementor wrapper alignment disappeared. */
.uaeft-fse-preview.page-id-214 .wp-block-image img,
.uaeft-fse-preview.page-id-454 .wp-block-image img {
	display: block;
	margin-inline: auto;
}

@media (max-width: 767px) {
	.uaeft-fse-preview.page-id-753 .uaeft-fse-preview-content :is(.wp-block-image, figure) {
		margin-inline: auto;
		text-align: center;
	}
	.uaeft-fse-preview.page-id-753 .uaeft-fse-preview-content :is(h2, h3, h4, p) {
		text-align: center !important;
	}
	.uaeft-fse-preview.page-id-753 .uaeft-fse-preview-content p {
		font-size: 16px !important;
		line-height: 1.5 !important;
	}
	.uaeft-fse-preview.page-id-454 .uaeft-fse-preview-content .wp-block-column {
		text-align: center;
	}
}
