/* YouMind Featured Insight — matched to blog page .insights */

.ymct-insights {
	--ymct-content: 1560px;
	--ymct-gutter: 56px;
	--ymct-font: "Poppins", sans-serif;
	--ymct-card: rgba(250, 250, 250, 0.62);
	--ymct-line: #f2f2f2;
	--ymct-teal-2: #3fd9cf;
	--ymct-teal-3: #66fcf1;
	--ymct-ink-2: #021019;
	--ymct-ink-3: #031728;
	--ymct-ink-4: #0a0a0a;
	font-family: var(--ymct-font), sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	width: 100%;
	padding: 60px var(--ymct-gutter) 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #ffffff;
}

.ymct-insights *,
.ymct-insights *::before,
.ymct-insights *::after {
	box-sizing: border-box;
}

.ymct-insights a {
	color: inherit;
	text-decoration: none;
}

.ymct-insights button {
	font-family: inherit;
	cursor: pointer;
}

.ymct-insights-head,
.ymct-card-grid,
.ymct-pagination {
	width: 100%;
	max-width: var(--ymct-content);
}

.ymct-insights .ymct-insights-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
	position: relative;
	z-index: 40;
}

.ymct-insights .ymct-insights-head h2 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 48px;
	line-height: 1.3;
	letter-spacing: 0;
	color: #0a0a0a;
	text-transform: uppercase;
}

/* —— Filter button (1st image): solid teal circle + white lines —— */
.ymct-insights .ymct-filter-wrap {
	position: relative;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	z-index: 50;
}

.ymct-insights .ymct-filter-btn {
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	min-height: 56px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 100px !important;
	background: #3fd9cf !important;
	background: var(--ymct-teal-2, #3fd9cf) !important;
	box-shadow: inset 0 0 0 1.5px #66fcf1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	transform: none !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, filter 0.15s ease;
	color: #ffffff !important;
	overflow: visible !important;
	flex-shrink: 0 !important;
}

.ymct-insights .ymct-filter-btn svg {
	width: 14px !important;
	height: 10px !important;
	display: block !important;
	flex-shrink: 0 !important;
	overflow: visible !important;
	color: #ffffff !important;
}

.ymct-insights .ymct-filter-btn svg path {
	stroke: #ffffff !important;
}

.ymct-insights .ymct-filter-btn:hover {
	filter: brightness(0.97);
	background: #3fd9cf !important;
	box-shadow: inset 0 0 0 1.5px #66fcf1 !important;
	transform: none !important;
	color: #ffffff !important;
}

.ymct-insights .ymct-filter-btn.is-open {
	transform: scale(0.96) !important;
}

.ymct-insights .ymct-filter-chip {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 40px !important;
	height: auto !important;
	text-align: center !important;
	padding: 0 16px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	color: #031728 !important;
	border: 1px solid rgba(148, 206, 197, 0.22) !important;
	background: #ffffff !important;
	box-shadow: none !important;
	transform: none !important;
	gap: 0 !important;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	flex-shrink: 0 !important;
}

.ymct-insights .ymct-filter-chip:hover {
	background: rgba(63, 217, 207, 0.12) !important;
	border-color: rgba(102, 252, 241, 0.55) !important;
	color: #031728 !important;
	box-shadow: none !important;
	transform: none !important;
}

.ymct-insights .ymct-filter-chip.is-active {
	background: #3fd9cf !important;
	border-color: #66fcf1 !important;
	color: #ffffff !important;
}

.ymct-insights .ymct-filter-chip.is-active:hover {
	background: #3fd9cf !important;
	color: #ffffff !important;
}

.ymct-insights .ymct-pg,
.ymct-insights .ymct-pg-nav {
	background: #ffffff !important;
	color: #031728 !important;
	border: 1px solid rgba(3, 23, 40, 0.12) !important;
	box-shadow: none !important;
	transform: none !important;
	gap: 0 !important;
}

.ymct-insights .ymct-pg.is-active,
.ymct-insights .ymct-pg-nav:hover:not(:disabled),
.ymct-insights .ymct-pg:hover {
	background: #031728 !important;
	color: #ffffff !important;
	box-shadow: none !important;
	transform: none !important;
}

/* —— Filter menu (3rd image) —— */
.ymct-insights .ymct-filter-menu {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	width: 260px;
	padding: 16px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
	z-index: 60;
	overflow: hidden;
}

.ymct-insights .ymct-filter-menu[hidden] {
	display: none !important;
}

.ymct-insights .ymct-filter-menu-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 6px;
	margin-right: -2px;
	scrollbar-width: thin;
	scrollbar-color: rgba(3, 23, 40, 0.25) transparent;
}

.ymct-insights .ymct-filter-menu-inner::-webkit-scrollbar {
	width: 4px;
}

.ymct-insights .ymct-filter-menu-inner::-webkit-scrollbar-track {
	background: transparent;
}

.ymct-insights .ymct-filter-menu-inner::-webkit-scrollbar-thumb {
	background: rgba(3, 23, 40, 0.22);
	border-radius: 100px;
}

.ymct-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: stretch;
}

.ymct-blog-card {
	position: relative;
	background: var(--ymct-card);
	border: 1px solid var(--ymct-line);
	border-radius: 32px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ymct-blog-card:hover {
	border-color: rgba(25, 154, 145, 0.35);
	box-shadow: 0 10px 28px rgba(2, 16, 25, 0.06);
}

.ymct-blog-card-link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	border-radius: inherit;
}

.ymct-blog-card-img {
	width: 100%;
	height: 269px;
	border-radius: 24px;
	background-color: #dfe8ea;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

.ymct-blog-card-img.is-placeholder {
	background-image: linear-gradient(135deg, #dfe8ea 0%, #c5d4d8 100%);
}

.ymct-blog-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 0 auto;
}

.ymct-insights .ymct-blog-card-body h3 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1.15;
	color: #021019;
}

.ymct-insights .ymct-blog-card-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-insights .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-insights .ymct-link-read .ymct-icon-arrow-ne {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: block;
}

.ymct-blog-card-link:hover .ymct-link-read {
	opacity: 0.75;
}

.ymct-insights-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px;
	margin: 0;
	font-family: "Poppins", sans-serif;
	color: rgba(3, 23, 40, 0.7);
	font-size: 16px;
}

.ymct-insights.is-loading .ymct-card-grid {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* —— Pagination (5th image): gray numbers, black active circle —— */
.ymct-insights .ymct-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px;
	width: 100%;
	max-width: var(--ymct-content);
}

.ymct-insights .ymct-pagination[hidden] {
	display: none !important;
}

.ymct-insights .ymct-pg-pages {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ymct-insights .ymct-pg,
.ymct-insights .ymct-pg-nav,
.ymct-insights .ymct-pg-ellipsis {
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: #a3a3a3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	box-shadow: none;
}

.ymct-insights .ymct-pg-nav {
	color: #a3a3a3;
	background: transparent;
}

.ymct-insights .ymct-pg-nav svg {
	display: block;
}

.ymct-insights .ymct-pg:hover:not(.is-active):not(:disabled),
.ymct-insights .ymct-pg-nav:hover:not(:disabled) {
	background: #f5f5f5;
	color: #a3a3a3;
}

.ymct-insights .ymct-pg.is-active {
	background: #0a0a0a;
	color: #ffffff;
}

.ymct-insights .ymct-pg-nav:disabled {
	opacity: 0.35;
	cursor: default;
	background: transparent;
}

.ymct-insights .ymct-pg-ellipsis {
	letter-spacing: 0.08em;
	cursor: default;
	color: #a3a3a3;
}

@media (max-width: 1200px) {
	.ymct-insights {
		--ymct-gutter: 40px;
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.ymct-insights-head h2 {
		font-size: 36px;
	}

	.ymct-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ymct-blog-card-body h3 {
		font-size: 24px;
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.ymct-insights {
		--ymct-gutter: 32px;
	}
}

@media (max-width: 768px) {
	.ymct-insights {
		--ymct-gutter: 20px;
		padding-top: 56px;
		padding-bottom: 40px;
		align-items: stretch;
	}

	.ymct-insights .ymct-insights-head {
		margin-bottom: 32px;
		width: 100%;
		max-width: none;
		gap: 12px;
		padding: 0 20px;
		box-sizing: border-box;
	}

	.ymct-insights .ymct-insights-head h2 {
		font-size: 24px;
		line-height: 1.3;
		flex: 1;
		min-width: 0;
	}

	.ymct-insights .ymct-filter-wrap {
		width: 45px;
		height: 37px;
	}

	.ymct-insights .ymct-filter-btn {
		width: 45px;
		height: 37px;
		background: #3fd9cf;
		box-shadow: inset 0 0 0 1.5px #66fcf1;
	}

	.ymct-card-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		max-width: none;
	}

	.ymct-blog-card {
		padding: 20px;
		gap: 0;
		border-radius: 32px;
	}

	.ymct-blog-card-link {
		gap: 12px;
	}

	.ymct-blog-card-img {
		height: 200px;
	}

	.ymct-insights .ymct-blog-card-body h3 {
		font-size: 24px;
	}

	.ymct-insights .ymct-pagination {
		width: 100%;
		max-width: none;
		margin-top: 40px;
		gap: 8px;
		justify-content: space-between;
	}
}

.editor-styles-wrapper .ymct-insights {
	padding-top: 40px;
}
