@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;600;700&family=Noto+Naskh+Arabic:wght@400;700&display=swap');

/* ----------------------------------------------------------------
	Aluswa Islamic Academy - modern site header & footer
	Shared by every public page (scoped to body.site-modern).
-----------------------------------------------------------------*/

body.site-modern {
	--hm-ink: #0f2a3d;
	--hm-text: #4a5b69;
	--hm-primary: #0a7ea4;
	--hm-primary-dark: #0b4f6c;
	--hm-navy: #0a2a3c;
	--hm-accent: #d4a24c;
	--hm-accent-dark: #b8872f;
	--hm-bg: #f5f9fb;
	--hm-line: #e3ecf1;
	--hm-shadow-lg: 0 18px 44px rgba(15, 42, 61, .16);
}

body.site-modern,
body.site-modern h1, body.site-modern h2, body.site-modern h3, body.site-modern h4, body.site-modern h5, body.site-modern h6 {
	font-family: 'Poppins', 'Noto Sans Malayalam', 'Noto Naskh Arabic', 'Segoe UI', sans-serif;
}

/* ================= Top bar ================= */
body.site-modern #top-bar {
	background: linear-gradient(90deg, #072232, var(--hm-navy) 55%, #0b3b52) !important;
	border: 0;
	height: auto;
}
body.site-modern #top-bar .container { padding-top: 3px; padding-bottom: 3px; }
body.site-modern #top-social { border: 0 !important; }
body.site-modern #top-social li { border: 0; }
body.site-modern #top-social li a { color: #cfe3ee; font-size: 13px; transition: color .2s; }
body.site-modern #top-social li a:hover { background: transparent; color: var(--hm-accent); }
body.site-modern #top-social .ts-icon { color: var(--hm-accent); }
body.site-modern #top-bar .top-links-item > a { color: #fff; }

/* ================= Header ================= */
body.site-modern #header {
	background: #fff;
	border-bottom: 1px solid var(--hm-line);
	box-shadow: 0 6px 24px rgba(15, 42, 61, .06);
}
body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item .nav-link {
	position: relative;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--hm-ink);
	border-radius: 50px;
	padding: 9px 17px;
	margin: 0 2px;
	transition: color .2s, background .2s;
}
body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item:not(.active) .nav-link { color: var(--hm-ink); }
body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item .nav-link:hover {
	color: var(--hm-primary);
	background: rgba(10, 126, 164, .08);
}
body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
	color: #fff;
	background: var(--hm-primary);
	box-shadow: 0 6px 16px rgba(10, 126, 164, .28);
}
body.site-modern #header .dropdown-menu {
	border: 0;
	border-top: 3px solid var(--hm-accent);
	border-radius: 0 0 14px 14px;
	box-shadow: var(--hm-shadow-lg);
	padding: 8px;
	margin-top: 8px;
}
body.site-modern #header .dropdown-item { border-radius: 8px; font-size: 13px; font-weight: 500; padding: 9px 14px; }
body.site-modern #header .dropdown-item:hover { background: rgba(10, 126, 164, .09); color: var(--hm-primary); }
body.site-modern #header .navbar-toggler { color: var(--hm-ink); font-size: 22px; }

/* Secondary bar (All Courses + buttons) */
body.site-modern #header-wrap { background: var(--hm-bg) !important; border-top: 1px solid var(--hm-line); }
body.site-modern #header-wrap .menu-link { color: var(--hm-ink); font-weight: 600; font-size: 13.5px; }
body.site-modern #header-wrap .menu-link:hover { color: var(--hm-primary); }
body.site-modern #header-wrap .sub-menu-container { border: 0; border-radius: 12px; box-shadow: var(--hm-shadow-lg); }
body.site-modern #header-wrap .button {
	border-radius: 50px;
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: none;
	font-size: 13px;
	transition: transform .2s, background .2s, box-shadow .2s;
}
body.site-modern #header-wrap .button:not(.button-border) {
	background: var(--hm-primary);
	box-shadow: 0 6px 16px rgba(10, 126, 164, .3);
}
body.site-modern #header-wrap .button:not(.button-border):hover { background: var(--hm-primary-dark); transform: translateY(-1px); }
body.site-modern #header-wrap .button.button-border { border-color: var(--hm-primary); color: var(--hm-primary); }
body.site-modern #header-wrap .button.button-border:hover { background: var(--hm-primary); color: #fff; }

/* ================= Footer ================= */
body.site-modern #footer {
	position: relative;
	background:
		radial-gradient(circle at 12% 0%, rgba(212, 162, 76, .10), transparent 40%),
		linear-gradient(180deg, #0a2a3c 0%, #08202f 100%) !important;
	color: #b9ccd8;
	border: 0;
	margin-top: 0;
}
body.site-modern #footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--hm-accent), #f0cf8a 50%, var(--hm-primary));
}
body.site-modern #footer .footer-widgets-wrap { padding: 72px 0 36px; }
body.site-modern #footer h4,
body.site-modern #footer h3 { color: #fff; font-weight: 700; letter-spacing: 1.2px; }
body.site-modern #footer h4 { font-size: 15px; position: relative; padding-bottom: 14px; }
body.site-modern #footer h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 3px;
	background: var(--hm-accent);
}
body.site-modern #footer h4.mbvdesk::after,
body.site-modern #footer h3.mbvwss::after { display: none; }
body.site-modern #footer h4.mbvdesk,
body.site-modern #footer h3.mbvwss { padding-bottom: 0; }

body.site-modern #footer a,
body.site-modern #footer .text-dark { color: #b9ccd8 !important; font-size: 14px; }
body.site-modern #footer a:hover { color: var(--hm-accent) !important; }
body.site-modern #footer .iconlist li { margin-bottom: 9px; }
body.site-modern #footer .iconlist li a { display: inline-block; transition: color .2s, transform .2s; }
body.site-modern #footer .iconlist li a:hover { transform: translateX(5px); }
body.site-modern #footer .mb-2.d-block { color: #fff !important; font-weight: 600; font-size: 15px; }
body.site-modern #footer img { border-radius: 10px; }
body.site-modern #footer img[src*="logo-al"] {
	background: #fff;
	padding: 8px 14px;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
	margin-bottom: 14px;
}
body.site-modern #footer img[src*="payment_footer"] { background: #fff; padding: 6px 10px; margin: 6px 0; }
body.site-modern #footer img[src*="donate_us"] { transition: transform .2s; }
body.site-modern #footer img[src*="donate_us"]:hover { transform: translateY(-3px); }

body.site-modern #copyrights {
	background: #061a26 !important;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, .06);
	color: #8aa3b3;
}
body.site-modern #copyrights .text-black-50 { color: #8aa3b3 !important; font-size: 13px; }

body.site-modern #gotoTop {
	background: var(--hm-primary);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	line-height: 44px;
	box-shadow: 0 8px 20px rgba(10, 126, 164, .35);
	transition: background .2s, color .2s;
}
body.site-modern #gotoTop:hover { background: var(--hm-accent); color: var(--hm-navy); }

@media (max-width: 767px) {
	body.site-modern #footer .footer-widgets-wrap { padding: 52px 0 20px; }
}

/* ================= Main menu v2 (courses menu + account buttons inside the main bar) ================= */
body.site-modern #header-wrap { display: none !important; }
body.site-modern #header .header-row { min-height: 84px; }
body.site-modern #header #logo img { max-height: 64px; width: auto; }
body.site-modern #header .navbar-collapse { justify-content: flex-end; }

/* Courses: link + caret button */
body.site-modern .hm-courses-menu { position: relative; display: flex; align-items: center; }
body.site-modern .hm-courses-menu .hm-split-link { padding-right: 6px !important; margin-right: 0 !important; }
body.site-modern .hm-caret {
	border: 0;
	background: transparent;
	color: var(--hm-ink);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	margin-left: -4px;
	padding: 0;
	font-size: 13px;
	cursor: pointer;
	transition: background .2s, color .2s, transform .25s;
}
body.site-modern .hm-caret:hover { background: rgba(10, 126, 164, .12); color: var(--hm-primary); }
body.site-modern .hm-courses-menu.show .hm-caret { transform: rotate(180deg); color: var(--hm-primary); }
body.site-modern .hm-courses-menu.active .hm-caret { color: #fff; }
body.site-modern .hm-courses-menu.active > .nav-link { padding-right: 6px; }
body.site-modern .hm-courses-menu.active { background: var(--hm-primary); border-radius: 50px; box-shadow: 0 6px 16px rgba(10, 126, 164, .28); }
body.site-modern .hm-courses-menu.active > .nav-link { background: transparent !important; box-shadow: none !important; }
body.site-modern .hm-courses-menu.active .hm-caret:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Mega dropdown panel */
body.site-modern .hm-mega {
	min-width: 400px;
	max-width: 460px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-top: 3px solid var(--hm-accent);
	border-radius: 0 0 16px 16px;
	box-shadow: var(--hm-shadow-lg);
	margin-top: 10px;
	left: auto;
	right: 0;
}
body.site-modern .hm-mega-all {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	background: linear-gradient(120deg, var(--hm-navy), #0b4f6c);
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .6px;
	text-transform: uppercase;
}
body.site-modern .hm-mega-all i:last-child { margin-left: auto; color: var(--hm-accent); transition: transform .2s; }
body.site-modern .hm-mega-all:hover i:last-child { transform: translateX(4px); }
body.site-modern .hm-mega-list { max-height: 56vh; overflow-y: auto; padding: 8px; }
body.site-modern .hm-mega .dropdown-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	white-space: normal;
	line-height: 1.45;
	padding: 11px 12px;
	border-radius: 10px;
	color: var(--hm-ink);
	font-size: 13.5px;
	font-weight: 500;
}
body.site-modern .hm-mega .dropdown-item i {
	flex: 0 0 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	border-radius: 10px;
	background: rgba(10, 126, 164, .1);
	color: var(--hm-primary);
	font-size: 15px;
	transition: background .2s, color .2s;
}
body.site-modern .hm-mega .dropdown-item span { padding-top: 6px; }
body.site-modern .hm-mega .dropdown-item:hover { background: var(--hm-bg); color: var(--hm-primary); }
body.site-modern .hm-mega .dropdown-item:hover i { background: var(--hm-primary); color: #fff; }

/* Account buttons */
body.site-modern .hm-header-buttons { display: flex; align-items: center; gap: 8px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--hm-line); }
body.site-modern .hm-header-buttons .button { margin: 0 !important; white-space: nowrap; border-radius: 50px; font-weight: 600; letter-spacing: .3px; text-transform: none; font-size: 13px; }
body.site-modern .hm-header-buttons .button:not(.button-border) { background: var(--hm-primary); box-shadow: 0 6px 16px rgba(10, 126, 164, .3); }
body.site-modern .hm-header-buttons .button:not(.button-border):hover { background: var(--hm-primary-dark); }
body.site-modern .hm-header-buttons .button.button-border { border-color: var(--hm-primary); color: var(--hm-primary); }
body.site-modern .hm-header-buttons .button.button-border:hover { background: var(--hm-primary); color: #fff; }

/* Desktop: open dropdowns on hover */
@media (min-width: 992px) {
	body.site-modern #header .navbar-nav > .dropdown:hover > .dropdown-menu { display: block; }
	body.site-modern .hm-mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
	body.site-modern #header .navbar-nav > .dropdown > .dropdown-menu { margin-top: 0; }
}

/* Tablet/mobile: stacked menu */
@media (max-width: 991px) {
	body.site-modern #header .header-row { min-height: 70px; }
	body.site-modern #header .navbar-collapse { padding: 10px 0 18px; border-top: 1px solid var(--hm-line); margin-top: 6px; }
	body.site-modern #header .navbar-nav .nav-item { border-bottom: 1px solid var(--hm-line); }
	body.site-modern #header .navbar-nav .nav-item:last-child { border-bottom: 0; }
	body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item .nav-link { padding: 12px 14px; margin: 4px 0; }
	body.site-modern .hm-courses-menu { flex-wrap: wrap; }
	body.site-modern .hm-courses-menu .hm-split-link { flex: 1; }
	body.site-modern .hm-caret { width: 40px; height: 40px; margin: 0 4px 0 0; font-size: 16px; background: var(--hm-bg); }
	body.site-modern .hm-mega { position: static !important; transform: none !important; flex: 1 0 100%; min-width: 0; max-width: none; margin: 6px 0 10px; box-shadow: none; border: 1px solid var(--hm-line); border-top: 3px solid var(--hm-accent); }
	body.site-modern .hm-mega-list { max-height: 50vh; }
	body.site-modern .hm-header-buttons { margin: 14px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--hm-line); flex-wrap: wrap; }
	body.site-modern .hm-header-buttons .button { flex: 1 1 auto; text-align: center; }
}

/* Keep the single-row desktop menu tidy */
body.site-modern #header #logo { flex: 0 0 auto; margin-right: 18px; }
body.site-modern #header .navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) {
	body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item .nav-link { padding: 9px 12px; margin: 0 1px; font-size: 13px; letter-spacing: .3px; }
	body.site-modern .hm-courses-menu .hm-split-link { padding-right: 4px !important; }
	body.site-modern .hm-header-buttons { margin-left: 12px; padding-left: 14px; gap: 6px; }
	body.site-modern .hm-header-buttons .button { padding: 0 14px; font-size: 12.5px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
	body.site-modern #header #logo { margin-right: 8px; }
	body.site-modern #header #logo img { max-height: 52px; }
	body.site-modern #header .navbar-expand-lg .navbar-nav .nav-item .nav-link { padding: 8px 8px; font-size: 12px; letter-spacing: 0; }
	body.site-modern .hm-header-buttons { margin-left: 8px; padding-left: 10px; }
	body.site-modern .hm-header-buttons .button { padding: 0 10px; font-size: 12px; }
}
@media (min-width: 992px) {
	body.site-modern .hm-mega { left: -40px; right: auto; }
}
