/* YouMind Featured Posts — matched to blog page .featured */

.ymct-featured {
	--ymct-content: 1560px;
	--ymct-gutter: 56px;
	--ymct-font: "Poppins", sans-serif;
	--ymct-card: rgba(250, 250, 250, 0.62);
	--ymct-line: #f2f2f2;
	font-family: var(--ymct-font), sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	width: 100%;
	padding: 60px var(--ymct-gutter) 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	background: #ffffff;
}

.ymct-featured *,
.ymct-featured *::before,
.ymct-featured *::after {
	box-sizing: border-box;
}

.ymct-featured a {
	color: inherit;
	text-decoration: none;
}

.ymct-featured-empty {
	width: 100%;
	max-width: var(--ymct-content);
	padding: 40px 24px;
	text-align: center;
	border: 1px dashed var(--ymct-line);
	border-radius: 24px;
	color: #031728;
	opacity: 0.7;
}

.ymct-featured-carousel {
	width: 100%;
	max-width: var(--ymct-content);
}

.ymct-featured-slides {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
}

.ymct-feature-hero.ymct-featured-slide {
	grid-column: 1 / -1;
}

.ymct-featured-dots {
	display: none;
}

.ymct-feature-hero {
	position: relative;
	background: var(--ymct-card);
	border: 1px solid var(--ymct-line);
	border-radius: 32px;
	padding: 24px;
}

.ymct-feature-hero-link {
	display: block;
	border-radius: 24px;
}

.ymct-feature-hero-media {
	position: relative;
	height: 524px;
	border-radius: 24px;
	overflow: hidden;
	background-color: #0a2e2c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.ymct-feature-hero-media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.1) 39.73%,
		rgba(0, 0, 0, 0.85) 74.47%
	);
	pointer-events: none;
	z-index: 1;
}

.ymct-feature-hero-media.is-placeholder {
	background-image: linear-gradient(135deg, #0a2e2c 0%, #1a5c57 100%);
}

.ymct-feature-hero-bottom {
	position: absolute;
	left: 42px;
	right: 42px;
	bottom: 32px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	z-index: 2;
}

.ymct-feature-hero-bottom h2 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.4;
	color: #ecf7f9;
}

.ymct-feature-hero-bottom p {
	margin: 8px 0 0;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: #ecf7f9;
}

.ymct-feature-side {
	position: relative;
	background: var(--ymct-card);
	border: 1px solid var(--ymct-line);
	border-radius: 32px;
	padding: 24px;
	min-height: 303px;
	box-sizing: border-box;
}

.ymct-feature-side-link {
	display: flex;
	gap: 24px;
	align-items: center;
	height: 100%;
	min-height: 255px;
}

.ymct-feature-side-img {
	flex: 0 0 269px;
	width: 269px;
	height: 255px;
	border-radius: 24px;
	background-color: #dfe8ea;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.ymct-feature-side-img.is-placeholder {
	background-image: linear-gradient(135deg, #dfe8ea 0%, #c5d4d8 100%);
}

.ymct-feature-side-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding-right: 8px;
}

.ymct-feature-side-body h3 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1.2;
	color: #021019;
}

.ymct-feature-side-body p {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: #031728;
	opacity: 0.8;
}

.ymct-link-read {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 8px;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #031728;
	width: fit-content;
}

.ymct-link-read .ymct-icon-arrow-ne {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: block;
}

.ymct-feature-side-link:hover .ymct-link-read,
.ymct-feature-hero-link:hover .ymct-link-read {
	opacity: 0.75;
}

.ymct-link-read--on-dark {
	margin-top: 0;
	color: #ecf7f9;
	flex-shrink: 0;
}

@media (max-width: 1200px) {
	.ymct-featured {
		--ymct-gutter: 40px;
		padding-top: 40px;
	}

	.ymct-feature-hero-media {
		height: 420px;
	}

	.ymct-feature-hero-bottom {
		left: 28px;
		right: 28px;
		bottom: 24px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.ymct-featured-slides {
		gap: 16px;
	}

	.ymct-feature-side {
		min-height: 0;
		padding: 16px;
	}

	.ymct-feature-side-link {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		gap: 16px;
	}

	.ymct-feature-side-img {
		flex: none;
		width: 100%;
		height: 200px;
	}

	.ymct-feature-side-body {
		padding-right: 0;
	}

	.ymct-feature-side-body h3 {
		font-size: 22px;
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.ymct-featured {
		--ymct-gutter: 32px;
	}
}

@media (max-width: 768px) {
	.ymct-featured {
		--ymct-gutter: 20px;
		padding-top: 32px;
		padding-bottom: 0;
		gap: 16px;
		align-items: stretch;
	}

	.ymct-featured-carousel {
		overflow: hidden;
		max-width: none;
	}

	.ymct-featured-slides {
		display: flex;
		gap: 0;
		width: 100%;
		transition: transform 0.45s ease;
		cursor: grab;
		touch-action: pan-y;
		user-select: none;
		-webkit-user-select: none;
	}

	.ymct-featured-slides.is-dragging {
		cursor: grabbing;
		transition: none;
	}

	.ymct-featured-slides a {
		-webkit-user-drag: none;
	}

	.ymct-featured-slide {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
	}

	.ymct-feature-hero.ymct-featured-slide {
		grid-column: auto;
	}

	.ymct-featured-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 16px;
	}

	.ymct-featured-dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: rgba(3, 23, 40, 0.2);
		padding: 0;
		border: 0;
		cursor: pointer;
	}

	.ymct-featured-dot.is-active {
		background: #0a0a0a;
		width: 22px;
		border-radius: 100px;
	}

	.ymct-feature-hero {
		padding: 12px;
		border-radius: 24px;
	}

	.ymct-feature-hero-media {
		height: 378px;
		border-radius: 20px;
	}

	.ymct-feature-hero-bottom {
		left: 24px;
		right: 24px;
		bottom: 24px;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.ymct-feature-hero-bottom h2 {
		font-size: 20px;
	}

	.ymct-feature-hero-bottom p {
		font-size: 14px;
	}

	.ymct-feature-side {
		padding: 12px;
		border-radius: 24px;
		min-height: 0;
	}

	.ymct-feature-side-link {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		min-height: 0;
	}

	.ymct-feature-side-img {
		flex: none;
		width: 100%;
		height: 220px;
		border-radius: 20px;
	}

	.ymct-feature-side-body {
		padding: 4px 8px 8px;
		gap: 10px;
	}

	.ymct-feature-side-body h3 {
		font-size: 20px;
		line-height: 1.35;
	}

	.ymct-feature-side-body p {
		font-size: 14px;
		line-height: 1.45;
	}

	.ymct-link-read {
		font-size: 16px;
		margin-top: 4px;
	}
}

.editor-styles-wrapper .ymct-featured {
	padding-top: 40px;
}
