/* YouMind Header block — matched to blog page nav */

.ymct-header {
	--ymct-ink: #1e1f2b;
	--ymct-ink-5: #1c1c1c;
	--ymct-content: 1560px;
	--ymct-gutter: 56px;
	--ymct-font: "Poppins", sans-serif;
	--ymct-nav-color: rgba(28, 28, 28, 0.54);
	--ymct-nav-hover: #000000;
	font-family: var(--ymct-font);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	width: 100%;
	padding: 20px var(--ymct-gutter) 0;
	position: relative;
	z-index: 30;
}

.ymct-header *,
.ymct-header *::before,
.ymct-header *::after {
	box-sizing: border-box;
}

.ymct-header img {
	display: block;
	max-width: 100%;
}

.ymct-header a {
	text-decoration: none;
}

.ymct-header button {
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

/*
 * MindScale theme styles ALL bare <button>s as teal pills and forces
 * display:inline-flex — which breaks mega toggles, hamburger, and close.
 * Reset hard, then re-apply intended header styles.
 */
.ymct-header button.ymct-nav-link--btn,
.ymct-header button.ymct-nav-menu-btn,
.ymct-header button.ymct-mobile-drawer-close,
.ymct-header button.ymct-mobile-drawer-link,
.ymct-header button.ymct-mobile-acc-toggle {
	background: none !important;
	background-color: transparent !important;
	color: inherit !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0.02em !important;
	font-family: "Poppins", sans-serif !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

.ymct-header button.ymct-nav-link--btn:hover,
.ymct-header button.ymct-nav-menu-btn:hover,
.ymct-header button.ymct-mobile-drawer-close:hover,
.ymct-header button.ymct-mobile-drawer-link:hover,
.ymct-header button.ymct-mobile-acc-toggle:hover {
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	color: inherit !important;
}

.ymct-header button.ymct-nav-link--btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 0 !important;
	font-size: 16px !important;
	color: var(--ymct-nav-color, rgba(28, 28, 28, 0.54)) !important;
}

.ymct-header button.ymct-nav-link--btn:hover,
.ymct-header button.ymct-nav-link--btn.is-open,
.ymct-header .ymct-nav-item.is-open > button.ymct-nav-link--btn {
	color: var(--ymct-nav-hover, #000000) !important;
}

.ymct-header button.ymct-nav-menu-btn {
	display: none !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	margin-left: auto !important;
	padding: 0 !important;
	border-radius: 100px !important;
	background: #ffffff !important;
	color: #1c1c1c !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: none !important;
	flex-shrink: 0 !important;
	overflow: visible !important;
}

.ymct-header button.ymct-nav-menu-btn svg {
	display: block !important;
	width: 18px !important;
	height: 14px !important;
	flex-shrink: 0 !important;
	color: #1c1c1c !important;
	overflow: visible !important;
}

.ymct-header button.ymct-nav-menu-btn svg path {
	stroke: currentColor !important;
}

.ymct-header button.ymct-mobile-drawer-close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border-radius: 100px !important;
	background: #ffffff !important;
	color: #1c1c1c !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: none !important;
	flex-shrink: 0 !important;
}

.ymct-header button.ymct-mobile-drawer-close:hover {
	background: #f4f7f8 !important;
	color: #1c1c1c !important;
}

.ymct-header button.ymct-mobile-drawer-close svg {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	color: #1c1c1c !important;
}

.ymct-header button.ymct-mobile-drawer-close svg path {
	stroke: currentColor !important;
}

.ymct-header button.ymct-mobile-drawer-link,
.ymct-header button.ymct-mobile-acc-toggle {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	gap: 12px !important;
	padding: 16px 8px !important;
	border-radius: 12px !important;
	color: #031728 !important;
	font-size: 16px !important;
	text-align: left !important;
	background: none !important;
}

.ymct-header button.ymct-mobile-drawer-link:hover,
.ymct-header button.ymct-mobile-acc-toggle:hover {
	background: #f4f7f8 !important;
	color: #031728 !important;
}

@media (min-width: 769px) and (max-width: 900px) {
	.ymct-header button.ymct-nav-menu-btn {
		display: inline-flex !important;
	}
}

@media (max-width: 768px) {
	.ymct-header button.ymct-nav-menu-btn {
		display: inline-flex !important;
	}
}

@media (max-width: 430px) {
	.ymct-header button.ymct-nav-menu-btn {
		display: inline-flex !important;
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		min-height: 48px !important;
	}
}

/* Editor preview spacing */
.editor-styles-wrapper .ymct-header {
	pointer-events: none;
}


.ymct-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ymct-nav-wrap {
	position: relative;
	z-index: 30;
}

.ymct-nav {
	position: relative;
	width: 100%;
	max-width: var(--ymct-content);
	margin: 0 auto;
	height: 79px;
	padding: 12px 20px 12px 40px;
	border-radius: 100px;
	background: var(--ymct-header-bg, #fff);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.ymct-nav-logo {
	width: 78px;
	height: 64px;
	flex-shrink: 0;
	overflow: hidden;
}

.ymct-nav-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: invert(1);
}

.ymct-nav-menu-btn {
	display: none;
}

.ymct-nav-links {
	display: flex;
	align-items: center;
	gap: 44px;
}

.ymct-nav-item {
	position: relative;
	display: flex;
	align-items: center;
}

.ymct-header .ymct-nav-link,
.ymct-header .ymct-nav-link--btn,
.ymct-header a.ymct-nav-link,
.ymct-header button.ymct-nav-link--btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: rgba(28, 28, 28, 0.54);
	color: var(--ymct-nav-color, #1c1c1c8a);
	transition: color 0.2s ease;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.ymct-header .ymct-nav-link:hover,
.ymct-header .ymct-nav-link.is-open,
.ymct-header .ymct-nav-item.is-open > .ymct-nav-link,
.ymct-header a.ymct-nav-link:hover,
.ymct-header button.ymct-nav-link--btn:hover,
.ymct-header button.ymct-nav-link--btn.is-open {
	color: #000000;
	color: var(--ymct-nav-hover, #000000);
}

.ymct-nav-chevron {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.ymct-nav-item.is-open .ymct-nav-chevron {
	transform: rotate(180deg);
}

.ymct-mega-menu--science {
	width: 420px;
	grid-template-columns: 1fr;
}

.ymct-mega-menu {
	position: absolute;
	top: calc(100% + 44px);
	left: 50%;
	width: 660px;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
	padding: 32px 40px;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 32px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	pointer-events: none;
}

.ymct-mega-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -48px;
	height: 48px;
}

.ymct-mega-menu.is-open,
.ymct-nav-item.is-open .ymct-mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.ymct-mega-menu[hidden] {
	display: grid;
}

.ymct-mega-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	color: var(--ymct-mega-color, rgb(2, 16, 25));
	font-family: var(--ymct-font), sans-serif;
}

.ymct-mega-item:hover .ymct-mega-title {
	opacity: 0.75;
}

.ymct-mega-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	color: var(--ymct-mega-color, rgb(2, 16, 25));
}

.ymct-mega-icon .ymct-mega-icon-img,
.ymct-mobile-sub-ico .ymct-mega-icon-img {
	display: block;
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.ymct-mega-title {
	display: block;
	font-family: var(--ymct-font), sans-serif;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 0.02em;
	line-height: 1.4;
	color: var(--ymct-mega-color, rgb(2, 16, 25));
}

.ymct-mega-desc {
	display: block;
	margin-top: 4px;
	font-family: var(--ymct-font), sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--ymct-mega-color, rgb(2, 16, 25));
	opacity: 0.7;
}

.ymct-header .ymct-btn-contact,
.ymct-header a.ymct-btn-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: auto;
	padding: 10px 10px 10px 20px;
	border-radius: 100px;
	background: var(--ymct-btn-bg, #fff);
	color: var(--ymct-btn-text, #1c1c1c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ymct-header .ymct-btn-contact span:first-child {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	line-height: 1;
}

.ymct-btn-contact-icon {
	width: 30px;
	height: 30px;
	border-radius: 100px;
	background: var(--ymct-btn-icon-bg, #1c1c1c);
	color: var(--ymct-btn-icon-stroke, #fff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ymct-btn-contact-icon svg {
	width: 16px;
	height: 16px;
	display: block;
	color: inherit;
}

/* Mobile drawer */
.ymct-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(2, 16, 25, 0.22);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	z-index: 100000;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.ymct-drawer-backdrop:not([hidden]) {
	pointer-events: auto;
	opacity: 1;
}

.ymct-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	left: auto;
	bottom: 0;
	width: min(360px, 88vw);
	z-index: 100001;
	background: #ffffff;
	color: #1e1f2b;
	font-family: "Poppins", sans-serif;
	transform: translateX(105%);
	transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	box-shadow: -16px 0 48px rgba(2, 16, 25, 0.12);
}

body.admin-bar .ymct-mobile-drawer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .ymct-mobile-drawer {
		top: 46px;
	}
}

.ymct-mobile-drawer.is-open {
	transform: translateX(0);
}

.ymct-mobile-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 20px 16px;
	flex-shrink: 0;
}

.ymct-mobile-drawer-logo {
	width: 72px;
	height: 58px;
	display: block;
}

.ymct-mobile-drawer-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: invert(1);
}

.ymct-header .ymct-mobile-drawer-close {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 100px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1c1c1c;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: none;
	cursor: pointer;
}

.ymct-mobile-drawer-body {
	padding: 12px 20px 16px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ymct-header .ymct-mobile-drawer-link,
.ymct-header a.ymct-mobile-drawer-link,
.ymct-header button.ymct-mobile-drawer-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
	padding: 16px 8px;
	border-radius: 12px;
	color: #031728;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.02em;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}

.ymct-header .ymct-mobile-drawer-link:hover {
	background: #f4f7f8;
	color: #031728;
}

.ymct-mobile-acc {
	display: flex;
	flex-direction: column;
}

.ymct-mobile-acc-toggle .ymct-nav-chevron,
.ymct-mobile-acc-toggle .ymct-mobile-acc-chevron {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	transition: transform 0.25s ease;
	color: #031728;
}

.ymct-mobile-acc.is-open .ymct-nav-chevron {
	transform: rotate(180deg);
}

.ymct-mobile-acc-panel {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 0 8px 4px;
}

.ymct-mobile-acc-panel[hidden] {
	display: none;
}

.ymct-header .ymct-mobile-sub {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 8px;
	border-radius: 12px;
	color: rgb(2, 16, 25);
	text-decoration: none;
}

.ymct-header .ymct-mobile-sub:hover {
	background: #f4f7f8;
}

.ymct-mobile-sub-ico {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(2, 16, 25);
	background: none;
	border: 0;
}

.ymct-mobile-drawer-foot {
	padding: 16px 20px 28px;
	border-top: 1px solid #f2f2f2;
	flex-shrink: 0;
}

.ymct-header .ymct-mobile-drawer-foot .ymct-btn-contact,
.ymct-header .ymct-mobile-drawer-foot a.ymct-btn-contact {
	display: inline-flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	height: auto;
	padding: 10px 10px 10px 20px;
	border-radius: 100px;
	background: #ffffff;
	color: #1c1c1c;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.ymct-header .ymct-mobile-drawer-foot .ymct-btn-contact span:first-child {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #1c1c1c;
}

body.ymct-drawer-open {
	overflow: hidden;
}

@media (min-width: 901px) {
	.ymct-mobile-drawer,
	.ymct-drawer-backdrop {
		display: none !important;
	}
}

@media (max-width: 1200px) {
	.ymct-header {
		--ymct-gutter: 40px;
	}
}

@media (min-width: 769px) and (max-width: 1200px) {
	.ymct-header {
		--ymct-gutter: 32px;
	}

	.ymct-nav {
		height: 64px;
		max-width: 100%;
		padding: 8px 10px 8px 16px;
		gap: 10px;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	.ymct-nav-logo {
		width: 56px;
		height: 46px;
		flex-shrink: 0;
	}

	.ymct-nav-links {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
		margin: 0;
		padding: 0;
	}

	.ymct-nav-item {
		flex-shrink: 0;
	}

	.ymct-nav-link,
	.ymct-nav-link--btn {
		font-size: 13px;
		line-height: 1;
		letter-spacing: 0;
		white-space: nowrap;
		gap: 4px;
	}

	.ymct-nav-chevron {
		width: 9px;
		height: 5px;
		flex-shrink: 0;
	}

	.ymct-btn-contact {
		flex-shrink: 0;
		align-items: center;
		gap: 6px;
		padding: 6px 6px 6px 12px;
		height: 40px;
	}

	.ymct-btn-contact span:first-child {
		font-size: 13px;
		line-height: 1;
	}

	.ymct-btn-contact-icon {
		width: 26px;
		height: 26px;
	}
}

@media (min-width: 769px) and (max-width: 900px) {
	.ymct-header .ymct-btn-contact {
		display: none;
	}

	.ymct-nav-menu-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		border-radius: 100px;
		background: #ffffff;
		color: #1c1c1c;
		border: 1px solid rgba(0, 0, 0, 0.04);
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
		flex-shrink: 0;
	}

	.ymct-nav-links {
		display: none !important;
	}

	.ymct-mega-menu,
	.ymct-mega-menu[hidden] {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.ymct-header {
		--ymct-gutter: 20px;
		padding-top: 16px;
	}

	.ymct-nav {
		height: auto;
		padding: 12px 16px;
		border-radius: 24px;
		flex-wrap: wrap;
		gap: 12px;
	}

	.ymct-nav-links {
		display: none !important;
	}

	.ymct-header > .ymct-nav-wrap .ymct-btn-contact,
	.ymct-nav > .ymct-btn-contact {
		display: none;
	}

	.ymct-nav-menu-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		border-radius: 100px;
		background: #ffffff;
		color: #1c1c1c;
		border: 1px solid rgba(0, 0, 0, 0.04);
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
		flex-shrink: 0;
	}

	.ymct-mega-menu,
	.ymct-mega-menu[hidden] {
		display: none !important;
	}
}

@media (max-width: 430px) {
	.ymct-header {
		padding-top: 20px;
	}

	.ymct-nav {
		height: 69px;
		width: 100%;
		max-width: none;
		padding: 4px 8px;
		border-radius: 100px;
		flex-wrap: nowrap;
		gap: 0;
	}

	.ymct-nav-logo {
		width: 60px;
		height: 49px;
	}

	.ymct-nav > .ymct-btn-contact {
		display: none;
	}

	.ymct-nav-menu-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-left: auto;
		border-radius: 100px;
		background: #ffffff;
		color: #1c1c1c;
		border: 1px solid rgba(0, 0, 0, 0.04);
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
		flex-shrink: 0;
	}

	.ymct-nav-menu-btn svg {
		display: block;
	}

	.ymct-nav-links,
	.ymct-mega-menu,
	.ymct-mega-menu[hidden] {
		display: none !important;
	}
}

/* Editor preview spacing */
.editor-styles-wrapper .ymct-header {
	pointer-events: none;
}
