/*
Theme Name: Madrasa Darul Khair Raiyam
Theme URI: https://madrasa.darulkhairngo.in/
Author: Darul Khair
Description: Purpose-built WordPress theme for Madarsa Darul Khair admissions, student sponsorship, donor, staff, and parent pages.
Version: 1.0.12
Text Domain: mdk-theme
*/

:root {
	--theme-green: #073b30;
	--theme-green-light: #0b6b3a;
	--theme-gold: #c98b17;
	--theme-ink: #17211c;
	--theme-muted: #5c6b63;
	--theme-border: #d9e2dc;
	--theme-bg: #f7f8f4;
}

* {
	box-sizing: border-box;
}

body {
	background: var(--theme-bg);
	color: var(--theme-ink);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
}

a {
	color: var(--theme-green-light);
}

img {
	height: auto;
	max-width: 100%;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.mdk-theme-header {
	background: #fff;
	border-bottom: 1px solid var(--theme-border);
	position: sticky;
	top: 0;
	z-index: 20;
}

.mdk-theme-header__inner,
.mdk-theme-footer__inner,
.mdk-theme-main {
	margin: 0 auto;
	width: min(1160px, calc(100% - 32px));
}

.mdk-theme-header__inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 76px;
}

.mdk-theme-brand {
	align-items: center;
	color: var(--theme-green);
	display: inline-flex;
	font-size: 1.05rem;
	font-weight: 900;
	gap: 12px;
	line-height: 1.15;
	text-decoration: none;
}

.mdk-theme-brand img {
	display: block;
	max-height: 56px;
	max-width: min(360px, 52vw);
	object-fit: contain;
	width: auto;
}

.mdk-theme-brand--image-only {
	gap: 0;
}

.mdk-theme-nav ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mdk-theme-nav li {
	position: relative;
}

.mdk-theme-nav a {
	border-radius: 8px;
	color: var(--theme-ink);
	display: inline-flex;
	font-size: .95rem;
	font-weight: 760;
	padding: 10px 12px;
	text-decoration: none;
}

.mdk-theme-nav .sub-menu {
	background: #fff;
	border: 1px solid var(--theme-border);
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(25, 47, 36, .12);
	display: none;
	left: 0;
	min-width: 190px;
	padding: 8px;
	position: absolute;
	top: calc(100% + 4px);
	z-index: 50;
}

.mdk-theme-nav .sub-menu a {
	display: flex;
	width: 100%;
}

.mdk-theme-nav li:hover > .sub-menu,
.mdk-theme-nav li:focus-within > .sub-menu {
	display: block;
}

.mdk-theme-nav a:hover,
.mdk-theme-nav a:focus {
	background: #edf7f1;
	color: var(--theme-green);
}

.mdk-theme-menu-toggle {
	align-items: center;
	background: #fff;
	border: 1px solid var(--theme-border);
	border-radius: 8px;
	cursor: pointer;
	display: none;
	flex-direction: column;
	gap: 4px;
	height: 42px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.mdk-theme-menu-toggle span:not(.screen-reader-text) {
	background: var(--theme-green);
	border-radius: 99px;
	display: block;
	height: 2px;
	width: 20px;
}

.mdk-theme-main {
	padding: 48px 0;
}

.mdk-theme-main--wide {
	padding: 0;
	width: 100%;
}

.mdk-theme-page {
	background: #fff;
	border: 1px solid var(--theme-border);
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(25, 47, 36, .08);
	padding: 32px;
}

.mdk-theme-page h1,
.mdk-theme-entry h2 {
	color: var(--theme-green);
	font-size: 2.3rem;
	line-height: 1.1;
	margin: 0 0 18px;
}

.mdk-theme-entry {
	color: var(--theme-muted);
	line-height: 1.7;
}

.mdk-theme-entry > *:first-child {
	margin-top: 0;
}

.mdk-theme-footer {
	background: var(--theme-green);
	color: #fff;
	margin-top: 0;
	padding: 32px 0;
}

.mdk-theme-footer__inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: space-between;
}

.mdk-theme-footer p {
	margin: 0;
}

.mdk-theme-footer a {
	color: #fff;
	font-weight: 800;
}

.mdk-theme-plugin-warning {
	background: #fff8e1;
	border: 1px solid #e2bf63;
	border-radius: 8px;
	color: #5b4313;
	margin: 48px auto;
	padding: 24px;
	width: min(760px, calc(100% - 32px));
}

@media (max-width: 760px) {
	.mdk-theme-header__inner,
	.mdk-theme-footer__inner {
		align-items: center;
		flex-direction: row;
		padding: 14px 0;
	}

	.mdk-theme-header__inner {
		flex-wrap: wrap;
		gap: 12px;
		width: min(1160px, calc(100% - 20px));
	}

	.mdk-theme-brand {
		flex: 1;
		min-width: 0;
	}

	.mdk-theme-brand img {
		max-height: 48px;
		max-width: calc(100vw - 92px);
	}

	.mdk-theme-menu-toggle {
		display: inline-flex;
	}

	.mdk-theme-nav {
		display: none;
		order: 3;
		width: 100%;
	}

	.mdk-theme-header--menu-open .mdk-theme-nav,
	.mdk-theme-nav--open,
	body.mdk-theme-menu-open .mdk-theme-nav {
		display: block;
	}

	.mdk-theme-nav > ul {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.mdk-theme-nav,
	.mdk-theme-nav li,
	.mdk-theme-nav a {
		width: 100%;
	}

	.mdk-theme-nav .sub-menu {
		border: 0;
		box-shadow: none;
		display: block;
		margin: 2px 0 0;
		padding: 0 0 0 14px;
		position: static;
	}

	.mdk-theme-nav .sub-menu a {
		background: #f6faf7;
	}

	.mdk-theme-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.mdk-theme-page {
		padding: 22px;
	}

	.mdk-theme-page h1,
	.mdk-theme-entry h2 {
		font-size: 1.8rem;
	}
}
