:root {
	--amh-green-950: #0d3028;
	--amh-green-900: #123e33;
	--amh-green-800: #174b3e;
	--amh-green-700: #236454;
	--amh-gold-600: #a97d39;
	--amh-gold-500: #b9914f;
	--amh-gold-200: #ead9b9;
	--amh-cream-100: #f7f3eb;
	--amh-cream-50: #fcfaf6;
	--amh-white: #fff;
	--amh-ink: #1d2925;
	--amh-muted: #67746f;
	--amh-border: #e6e0d5;
	--amh-shadow: 0 12px 36px rgba(18, 62, 51, .09);
}

html { scroll-behavior: smooth; }
body.amh-official-site {
	margin: 0;
	background: #fbfaf7;
	color: var(--amh-ink);
	font-family: "Cairo", Tahoma, Arial, sans-serif;
	line-height: 1.8;
}
body.amh-official-site * { box-sizing: border-box; }
body.amh-official-site a { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.amh-container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.amh-site-body { min-height: 55vh; overflow: hidden; }
.amh-skip-link { position: fixed; top: -100px; right: 20px; z-index: 99999; padding: 10px 16px; background: #fff; color: var(--amh-green-900); }
.amh-skip-link:focus { top: 12px; }

/* Header */
.amh-site-header { position: relative; z-index: 1000; background: #fff; box-shadow: 0 6px 28px rgba(13,48,40,.08); }
.amh-topbar { background: var(--amh-green-950); color: rgba(255,255,255,.82); font-size: 12px; }
.amh-topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.amh-topbar p { margin: 0; }
.amh-topbar__links { display: flex; align-items: center; gap: 17px; }
.amh-topbar a { color: rgba(255,255,255,.88); text-decoration: none; }
.amh-topbar a:hover { color: var(--amh-gold-200); }
.amh-brandbar { background: #fff; }
.amh-brandbar__inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.amh-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.amh-brand__logo img { width: auto; max-height: 76px; }
.amh-brand__mark { width: 68px; height: 68px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--amh-gold-200); border-radius: 50%; background: linear-gradient(145deg,var(--amh-green-900),var(--amh-green-700)); color: var(--amh-gold-200) !important; font-size: 38px; text-decoration: none !important; box-shadow: inset 0 0 0 8px rgba(255,255,255,.05); }
.amh-brand__text { display: flex; flex-direction: column; min-width: 0; }
.amh-brand__text > a { color: var(--amh-green-950); font-family: "Noto Kufi Arabic","Cairo",sans-serif; font-size: clamp(17px,2vw,27px); font-weight: 700; line-height: 1.55; text-decoration: none; }
.amh-brand__text span { color: var(--amh-muted); font-size: 12px; }
.amh-header-actions { display: flex; align-items: center; gap: 12px; }
.amh-header-search { display: flex; align-items: center; border: 1px solid var(--amh-border); border-radius: 10px; background: var(--amh-cream-50); overflow: hidden; }
.amh-header-search label { margin: 0; }
.amh-header-search input { width: 230px; height: 45px; padding: 0 15px; border: 0 !important; outline: 0; background: transparent !important; font-family: inherit; }
.amh-header-search button { width: 45px; height: 45px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--amh-green-800) !important; font-size: 24px !important; }
.amh-live-link { display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 8px 16px; border-radius: 9px; background: var(--amh-green-800); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.amh-live-link span { width: 9px; height: 9px; border-radius: 50%; background: #f15b5b; box-shadow: 0 0 0 5px rgba(241,91,91,.14); }
.amh-menu-toggle { display: none; width: 44px; height: 44px; padding: 10px !important; border: 1px solid var(--amh-border) !important; border-radius: 8px !important; background: #fff !important; }
.amh-menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--amh-green-900); }
.amh-navbar { border-top: 1px solid var(--amh-border); background: #fff; }
.amh-main-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.amh-main-menu > li { position: relative; }
.amh-main-menu > li > a { display: flex; align-items: center; min-height: 55px; padding: 0 13px; color: var(--amh-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.amh-main-menu > li:hover > a, .amh-main-menu > .current-menu-item > a, .amh-main-menu > .current-menu-ancestor > a { color: var(--amh-gold-600); }
.amh-main-menu .sub-menu { position: absolute; top: 100%; right: 0; z-index: 30; min-width: 235px; margin: 0; padding: 10px 0; list-style: none; background: var(--amh-green-950); border-radius: 0 0 10px 10px; box-shadow: 0 18px 38px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.amh-main-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.amh-main-menu .sub-menu a { display: block; padding: 8px 18px; color: rgba(255,255,255,.86); font-size: 13px; text-decoration: none; }
.amh-main-menu .sub-menu a:hover { color: var(--amh-gold-200); background: rgba(255,255,255,.06); }

/* Page shell and XTRA cleanup */
.amh-official-site #layout, .amh-official-site .page_content, .amh-official-site .content { max-width: none; }
.amh-official-site .page_title { display: none !important; }
.amh-front-page, .amh-page-main, .amh-page-content { width: 100%; }
.amh-front-page > .vc_row, .amh-page-content > .vc_row { margin-left: 0; margin-right: 0; }
.amh-native-page-title { padding: 55px 0; background: linear-gradient(135deg,var(--amh-green-950),var(--amh-green-700)); color: #fff; }
.amh-native-page-title h1 { margin: 0; color: #fff; font-family: "Noto Kufi Arabic","Cairo",sans-serif; }
.amh-article-single, .amh-search-page { padding-top: 60px; padding-bottom: 80px; }
.amh-article-single__card { max-width: 920px; margin: auto; padding: clamp(24px,5vw,55px); border: 1px solid var(--amh-border); border-radius: 18px; background: #fff; box-shadow: var(--amh-shadow); }
.amh-article-single__card h1 { margin: 15px 0; color: var(--amh-green-950); font-family: "Noto Kufi Arabic","Cairo",sans-serif; line-height: 1.7; }
.amh-article-single__cover { margin: 28px 0; overflow: hidden; border-radius: 14px; }
.amh-article-single__cover img { width: 100%; height: auto; }
.amh-article-single__content { font-size: 17px; line-height: 2.15; }
.amh-search-page > header { margin-bottom: 25px; }
.amh-search-results { display: grid; gap: 15px; }
.amh-search-results article { padding: 22px; border: 1px solid var(--amh-border); border-radius: 12px; background: #fff; }
.amh-search-results article > span { color: var(--amh-gold-600); font-size: 12px; font-weight: 700; }
.amh-search-results h2 { margin: 6px 0; font-size: 20px; }
.amh-search-results h2 a { color: var(--amh-green-950); text-decoration: none; }

/* Footer */
.amh-site-footer { margin-top: 70px; color: rgba(255,255,255,.78); background: var(--amh-green-950); }
.amh-footer-grid { display: grid; grid-template-columns: 1.25fr .8fr .9fr; gap: 55px; padding-top: 65px; padding-bottom: 55px; }
.amh-site-footer h2 { margin: 0 0 18px; color: var(--amh-gold-200); font-family: "Noto Kufi Arabic","Cairo",sans-serif; font-size: 17px; }
.amh-site-footer p { color: rgba(255,255,255,.72); }
.amh-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #fff; font-family: "Noto Kufi Arabic","Cairo",sans-serif; }
.amh-footer-brand span { color: var(--amh-gold-200); font-size: 30px; }
.amh-footer-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 18px; margin: 0; padding: 0; list-style: none; }
.amh-footer-menu a, .amh-footer-social a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 13px; }
.amh-footer-menu a:hover, .amh-footer-social a:hover { color: var(--amh-gold-200); }
.amh-footer-social { display: flex; flex-wrap: wrap; gap: 9px; }
.amh-footer-social a { padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.amh-footer-note { font-size: 12px; }
.amh-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.1); }
.amh-footer-bottom .amh-container { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.amh-footer-bottom p { margin: 0; font-size: 12px; }
.amh-footer-bottom a { color: var(--amh-gold-200); text-decoration: none; font-size: 12px; }

@media (max-width: 1100px) {
	.amh-header-search { display: none; }
	.amh-main-menu > li > a { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 980px) {
	.amh-container { width: min(100% - 28px, 1240px); }
	.amh-topbar__links { display: none; }
	.amh-brandbar__inner { min-height: 92px; }
	.amh-brand__text span { display: none; }
	.amh-menu-toggle { display: block; }
	.amh-live-link { display: none; }
	.amh-navbar { display: none; }
	.amh-navbar.is-open { display: block; }
	.amh-main-menu { display: block; padding: 10px 0 18px; }
	.amh-main-menu > li > a { min-height: 44px; padding: 0 8px; }
	.amh-main-menu .sub-menu { position: static; display: none; min-width: 0; padding: 5px 13px; border-radius: 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
	.amh-main-menu li.is-open > .sub-menu { display: block; }
	.amh-footer-grid { grid-template-columns: 1fr 1fr; }
	.amh-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.amh-brand__mark { width: 52px; height: 52px; font-size: 28px; }
	.amh-brand__text > a { font-size: 15px; }
	.amh-footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 45px; }
	.amh-footer-about { grid-column: auto; }
	.amh-footer-bottom .amh-container { padding: 14px 0; flex-direction: column; text-align: center; }
}

/* Official mosque emblem v1.4 */
.amh-brand__logo {
	display: block;
	flex: 0 0 auto;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	text-decoration: none !important;
	filter: drop-shadow(0 7px 14px rgba(13, 48, 40, .16));
}
.amh-brand__logo-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
}
.amh-footer-brand__logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 50%;
	filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .18));
}
@media (max-width: 640px) {
	.amh-brand__logo { width: 58px; height: 58px; }
	.amh-footer-brand__logo { width: 42px; height: 42px; }
}

/* v1.5 footer important link */
.amh-footer-important-title {
	margin: 20px 0 9px;
	color: var(--amh-gold-200);
	font-size: 14px;
}
.amh-footer-important-link {
	display: inline-flex;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 8px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}
.amh-footer-important-link:hover { border-color: var(--amh-gold-200); color: var(--amh-gold-200) !important; }


/* v1.6 mobile refinement and compact official header */
@media (max-width: 760px) {
	.amh-topbar { display: none; }
	.amh-brandbar__inner { min-height: 76px; gap: 10px; }
	.amh-brand { gap: 10px; flex: 1 1 auto; }
	.amh-brand__logo { width: 50px; height: 50px; }
	.amh-brand__text > a {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 13px;
		line-height: 1.65;
	}
	.amh-menu-toggle { flex: 0 0 auto; width: 40px; height: 40px; padding: 8px !important; }
	.amh-site-footer { margin-top: 40px; }
	.amh-site-body { overflow-x: hidden; }
}
@media (max-width: 380px) {
	.amh-container { width: calc(100% - 20px); }
	.amh-brand__logo { width: 44px; height: 44px; }
	.amh-brand__text > a { font-size: 12px; }
}
