/* Tutor frontend dashboard: bold the "My Tarbiyyah" text logo in the sidebar */
.tutor-dashboard-sidebar-logo .site-title {
	font-weight: 700;
}

/* Site-wide guard against horizontal scroll on mobile: several full-width
   teal sections use position:relative/overflow:visible headers plus
   absolutely positioned decorative elements so things like the header's
   logo badge and account-menu dropdown can intentionally hang outside
   their own box. If any one of those (or a future addition) ever extends
   past the viewport edge, it silently widens the whole page's scrollable
   area, showing as a stray white strip beside the header — visually a
   header bug, but actually a page-level overflow bug. Scoped to <html>
   only (not body) so position:sticky sidebars elsewhere on the site keep
   working; overflow-y is left untouched so this can't create a second
   scrollbar. */
html {
	overflow-x: hidden;
}

/* Tutor's front-end Course Builder header hardcodes top:32px, assuming the
   WP admin bar is always above it — but the front-end admin bar is hidden
   site-wide (see show_admin_bar filter below), so this left a permanent
   32px gap above the builder header regardless of scroll position. The
   backend builder (wp-admin/admin.php?page=create-course) has its own
   matching fix in functions.php, since custom.css never loads in wp-admin. */
.css-zq90nh {
	top: 0 !important;
}

/* Site-wide: no focus/click outline box on links, buttons, or the logo */
a:focus,
a:active,
button:focus,
button:active,
.wp-element-button:focus,
.wp-element-button:active,
.custom-logo-link:focus,
.custom-logo-link:active {
	outline: none !important;
	box-shadow: none !important;
}

/* Header navigation: sliding underline on hover only, no native underline in any state */
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:link,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:visited,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:focus,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:active,
.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content * {
	position: relative;
	text-decoration: none !important;
}

.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content {
	padding-bottom: 4px;
}

.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

/* Header: shield-shaped gold logo badge that hangs below the header edge.
   The badge is positioned relative to .mt-header-inner (not the full-width
   header) so its left edge lines up with the same 1340px content column
   the footer uses, instead of floating against the full viewport width. */
.mt-main-header {
	position: relative;
	overflow: visible;
	z-index: 100;
}

.mt-header-inner {
	position: relative;
	overflow: visible;
	width: 100%;
	padding-left: 220px;
	align-items: stretch;
	box-sizing: border-box;
}

/* Menu item spacing: the Navigation block ignores its blockGap style
   attribute in this WP version, so set the gap directly. */
.mt-main-header .mt-header-mainrow .wp-block-navigation.is-layout-flex {
	gap: 25px;
}

/* The logo badge sits before .mt-header-inner in the header, so WP's
   constrained-layout blockGap rule no longer treats it as a first-child
   and adds unwanted top margin. Zero it out, scoped to the header only. */
.mt-main-header.is-layout-constrained > .alignwide {
	margin-top: 0;
}

.mt-header-mainrow {
	width: 100%;
	padding-top: 13px;
	padding-bottom: 13px;
}

.tq-logo-badge {
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	z-index: 20;
}

.tq-logo-badge__shape {
	display: block;
	width: 167px;
	height: auto;
	margin: 0 auto;
	fill: var(--wp--preset--color--accent);
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.tq-logo-badge__link {
	position: absolute;
	top: 2%;
	left: 50%;
	width: 65%;
	transform: translateX(-50%);
	display: block;
}

.tq-logo-badge__img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 782px) {
	.tq-logo-badge {
		width: 90px;
	}

	.tq-logo-badge__shape {
		width: 110px;
	}

	.tq-logo-badge__link {
		position: absolute;
		top: 0%;
		left: 60%;
		width: 100%;
		transform: translateX(-50%);
		display: block;
	}

	.mt-header-inner {
		padding-left: 130px;
	}

	/* The Login/Register buttons at full desktop size leave no room for the
	   hamburger toggle in a nowrap row, so it gets crushed to 0 width and
	   disappears. Shrink the buttons so everything fits. */
	.mt-header-mainrow .wp-block-buttons {
		gap: 10px !important;
	}

	.mt-header-mainrow .wp-block-button .wp-block-button__link {
		padding: 6px 12px !important;
		font-size: 13px;
	}

	/* No .has-global-padding override here on purpose: WordPress's own
	   root-padding-aware-alignment system (theme.json's
	   useRootPaddingAwareAlignments) already cancels an alignfull section's
	   parent padding via margin: calc(var(--wp--style--root--padding-*) * -1)
	   and re-applies fresh padding from that same --wp--style--root--padding-*
	   variable. Overriding just the .has-global-padding padding property
	   (as this rule used to) desyncs it from that variable — the negative
	   margin still cancels the *original*, larger value, while the padding
	   uses the smaller override, producing asymmetric left/right spacing
	   (confirmed via live DevTools: removing the override fixed it). If
	   tighter mobile padding is wanted, it has to be done by overriding
	   --wp--style--root--padding-left/right itself, not this class. */
}

/* Mobile menu: stylish hamburger toggle (custom staggered-width icon is
   swapped in via mobile-menu.js) and a full-width slide-in overlay.
   Scoped to WP's own 600px nav-toggle breakpoint so the button/icon
   styling never fights with WP's default display:none above 600px. */
@media (max-width: 599px) {
	/* The row's own is-content-justification-space-between class spreads its
	   two children (button group, nav/hamburger) to opposite ends — override
	   so both sit together at the right edge instead. */
	.mt-header-mainrow {
		justify-content: flex-end !important;
	}

	/* Reorder the row: Login/Register buttons first, hamburger last. */
	.mt-header-mainrow > .wp-block-navigation {
		order: 2;
	}

	.mt-header-mainrow > .wp-block-group {
		order: 1;
		flex-wrap: nowrap;
		justify-content: flex-end;
		align-items: center;
		gap: 8px;
	}

	.mt-header-mainrow .wp-block-navigation__responsive-container-open {
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		color: var(--wp--preset--color--base);
	}

	.mt-header-mainrow .wp-block-navigation__responsive-container-open svg {
		width: 24px;
		height: 16px;
	}

	.mt-header-mainrow .wp-block-navigation__responsive-container-open svg rect {
		fill: currentColor;
		transition: width 0.2s ease;
	}
}

.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--primary) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 6px !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	text-align: center;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 15%, transparent);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
	border-bottom: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 16px 0;
	font-size: 1.35rem;
	font-weight: 600;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--base);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Footer top bar: "Join our community" email signup */
.mt-join-bar {
	display: flex;
	align-items: center;
	gap: 20px;
}
.mt-join-bar__eyebrow {
	display: block;
	font: 600 13px var(--wp--preset--font-family--inter);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 6px;
}
.mt-join-bar__heading {
	margin: 0;
	font: 500 clamp(22px, 2.6vw, 32px) var(--wp--preset--font-family--poppins);
	color: var(--wp--preset--color--base);
}
.mt-join-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.mt-join-form__input {
	min-width: 280px;
	border: none;
	border-radius: 999px;
	padding: 19px 26px;
	font: 400 15px var(--wp--preset--font-family--inter);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}
.mt-join-form__input:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.mt-join-form__submit {
	cursor: pointer;
	border: none;
	border-radius: 999px;
	padding: 19px 34px;
	font: 700 15px var(--wp--preset--font-family--inter);
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--accent);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.mt-join-form__submit:hover {
	background: var(--wp--preset--color--accent-dark);
	transform: translateY(-2px);
}
@media (max-width: 599px) {
	.mt-join-form__input,
	.mt-join-form__submit {
		width: 100%;
		padding: 13px 20px;
		font-size: 14px;
	}
}

footer.wp-block-template-part {
	margin-top: 0px !important;
}
