/*
 * Almaqam Academy Ilorin: brand layer on top of Bootstrap 5.
 *
 * Palette
 *   Canvas      #FAF9F6   page background
 *   Surface     #FFFFFF   header, cards
 *   Tint        #F3F6F4   alternating sections, footer
 *   Primary     #26655D   headings, nav, primary buttons
 *   Ochre gold  #B7872F   eyebrows, numerals, hairlines
 *   Forest      #096F3B   admission status, accents, hover states
 */
/* Base */

html {
	scroll-padding-top: 100px;
}

body {
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.7;
	font-weight: 400;
	color: #4A5D59;
	background-color: #FAF9F6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Amiri", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #26655D;
	font-weight: 500;
	letter-spacing: -0.01em;
}

a {
	color: #26655D;
	text-decoration: none;
	transition: color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

a:hover {
	color: #096F3B;
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

::selection {
	background: rgba(9, 111, 59, 0.16);
	color: #1E3431;
}

:focus-visible {
	outline: 2px solid #096F3B;
	outline-offset: 3px;
	border-radius: 6px;
}

.almaqam-main:focus {
	outline: none;
}

.almaqam-skip {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 10px 18px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.2);
	color: #26655D;
	font-weight: 500;
}

.almaqam-icon {
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

.container-xl {
	padding-left: 1rem;
	padding-right: 1rem;
	max-width: 1240px;
}

/* Typography scale */

.almaqam-display {
	font-size: clamp(2.35rem, 4.6vw, 3.75rem);
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -0.025em;
	color: #26655D;
	margin: 0 0 1.5rem;
	max-width: 15ch;
}

.almaqam-h1 {
	font-size: clamp(2.1rem, 3.8vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	max-width: 20ch;
}

.almaqam-h2 {
	font-size: clamp(1.75rem, 2.8vw, 2.4rem);
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0 0 1.25rem;
	max-width: 22ch;
}

.almaqam-h3 {
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

.almaqam-h3 a {
	color: inherit;
}

.almaqam-h4 {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}

.almaqam-lead {
	font-size: 1.15rem;
	line-height: 1.75;
	color: #4A5D59;
	max-width: 36rem;
	margin: 0 0 2rem;
	font-weight: 400;
}

.almaqam-body {
	color: #4A5D59;
	margin: 0 0 1.25rem;
}

.almaqam-body-lg {
	font-size: 1.2rem;
	line-height: 1.75;
	color: #1E3431;
}

.almaqam-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8A6420;
}

.almaqam-eyebrow-sm {
	font-size: 0.72rem;
	margin-bottom: 0.6rem;
}

.almaqam-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 1.5rem;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(9, 111, 59, 0.22);
	color: #096F3B;
	font-size: 0.95rem;
	font-weight: 500;
}

.almaqam-status .almaqam-icon {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: rgba(9, 111, 59, 0.08);
	stroke-width: 2.2;
}

.almaqam-motto {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 2.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(38, 101, 93, 0.12);
	max-width: 30rem;
}

.almaqam-motto__ar {
	font-size: 1.35rem;
	color: #26655D;
	font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
	line-height: 1.4;
}

.almaqam-motto__en {
	font-size: 0.95rem;
	color: #6B7C78;
	font-style: italic;
}

/* Sections */

.almaqam-section {
	padding: 110px 0;
}

.almaqam-section-tint {
	background: #F3F6F4;
	border-top: 1px solid rgba(38, 101, 93, 0.12);
	border-bottom: 1px solid rgba(38, 101, 93, 0.12);
}

.almaqam-section-tight {
	padding: 90px 0;
}

.almaqam-section-flush-top {
	padding-top: 0;
}

.almaqam-section-head {
	margin-bottom: 3.5rem;
}

.almaqam-section-head-center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.almaqam-section-head-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 4rem;
	align-items: end;
}

.almaqam-section-head-split .almaqam-h2 {
	margin-bottom: 0;
}

.almaqam-section-head-split .almaqam-body {
	margin: 0;
	max-width: 34rem;
}

@media (min-width: 992px) {
	.almaqam-section-head-split {
		grid-template-columns: 1.1fr 1fr;
	}
}

/* Cards */

.almaqam-card {
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.12);
	border-radius: 18px;
	padding: 2.25rem;
	height: 100%;
	transition: border-color 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-pillar {
	position: relative;
	padding: 2.5rem 2.25rem;
}

.almaqam-pillar::after {
	content: "";
	position: absolute;
	left: 2.25rem;
	right: 2.25rem;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: #096F3B;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-pillar:hover {
	border-color: rgba(9, 111, 59, 0.28);
	transform: translateY(-3px);
	box-shadow: 0 10px 30px -20px rgba(30, 52, 49, 0.16);
}

.almaqam-pillar:hover::after {
	transform: scaleX(1);
}

.almaqam-pillar__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2.25rem;
}

.almaqam-pillar__num {
	display: block;
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	color: #B7872F;
	letter-spacing: -0.02em;
}

.almaqam-pillar-compact .almaqam-pillar__num {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.almaqam-pillar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(9, 111, 59, 0.08);
	color: #096F3B;
}

.almaqam-pillar .almaqam-body {
	margin-bottom: 0;
}

/* About duo composition */

.almaqam-duo {
	position: relative;
	padding: 0 70px 70px 0;
}

.almaqam-duo__main {
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 5 / 4.2;
	background: #F3F6F4;
}

.almaqam-duo__inset {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 46%;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	border: 8px solid #FAF9F6;
	background: #F3F6F4;
	box-shadow: 0 10px 30px -20px rgba(30, 52, 49, 0.16);
}

.almaqam-section-tint .almaqam-duo__inset {
	border-color: #F3F6F4;
}

.almaqam-duo-flip {
	padding: 0 0 70px 70px;
}

.almaqam-duo-flip .almaqam-duo__inset {
	right: auto;
	left: 0;
}

.almaqam-points {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 0;
	border-top: 1px solid rgba(38, 101, 93, 0.12);
}

.almaqam-points li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 1.1rem 0;
	border-bottom: 1px solid rgba(38, 101, 93, 0.12);
}

.almaqam-points strong {
	color: #26655D;
	font-weight: 500;
}

.almaqam-points__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(9, 111, 59, 0.08);
	color: #096F3B;
	flex-shrink: 0;
}

/* Founder photo strip */

.almaqam-strip {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.almaqam-strip__item .almaqam-gallery__button {
	aspect-ratio: 4 / 5;
}

.almaqam-strip__item img {
	object-position: center 25%;
}

@media (min-width: 992px) {
	.almaqam-strip {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.75rem;
	}

	.almaqam-strip__item:nth-child(even) {
		margin-top: 3rem;
	}
}

/* Leadership */

.almaqam-frame {
	position: relative;
	border-radius: 18px;
	aspect-ratio: 4 / 3.4;
	background: #F3F6F4;
}

.almaqam-frame::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid #B7872F;
	border-radius: 22px;
	pointer-events: none;
}

.almaqam-frame__img {
	position: relative;
	border-radius: 18px;
}

.almaqam-frame-portrait {
	aspect-ratio: 4 / 5;
	max-width: 460px;
}

.almaqam-frame-portrait .almaqam-frame__img {
	object-position: center 20%;
}

.almaqam-quote {
	position: relative;
	margin: 0 0 2rem;
	padding: 0 0 0 1.75rem;
	border-left: 1px solid #B7872F;
}

.almaqam-quote p {
	font-size: 1.2rem;
	line-height: 1.75;
	color: #1E3431;
	margin: 0 0 1.25rem;
}

.almaqam-quote-lg p {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	line-height: 1.7;
	color: #26655D;
}

.almaqam-quote footer {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.almaqam-quote__name {
	font-weight: 500;
	color: #26655D;
	font-size: 1.05rem;
}

.almaqam-quote__role {
	font-size: 0.92rem;
	color: #6B7C78;
}

.almaqam-faculty,
.almaqam-checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: grid;
	gap: 0.85rem;
}

.almaqam-faculty li,
.almaqam-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #1E3431;
}

.almaqam-faculty .almaqam-icon,
.almaqam-checklist .almaqam-icon {
	color: #096F3B;
}

.almaqam-checklist li {
	padding: 0.95rem 1.1rem;
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.12);
	border-radius: 12px;
}

.almaqam-message {
	padding: clamp(2rem, 5vw, 3.75rem);
}

.almaqam-side-photo {
	margin-top: 2rem;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #F3F6F4;
}

/* Inner page hero */

.almaqam-page-hero {
	padding: 70px 0 30px;
}

.almaqam-page-hero-simple {
	padding: 70px 0 60px;
}

.almaqam-page-hero .almaqam-lead {
	margin-bottom: 0;
}

.almaqam-page-hero .almaqam-frame {
	margin-right: 18px;
}

.almaqam-page-hero .almaqam-frame-portrait {
	margin-left: auto;
	margin-right: 18px;
}

.almaqam-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6B7C78;
}

.almaqam-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.almaqam-crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-top: 1.5px solid #B7872F;
	border-right: 1.5px solid #B7872F;
	transform: rotate(45deg);
}

.almaqam-crumbs li[aria-current="page"] {
	color: #26655D;
	font-weight: 600;
}

.almaqam-crumbs a {
	color: #6B7C78;
}

.almaqam-crumbs a:hover {
	color: #096F3B;
}

/* About page: purpose, vision, mission and motto */

.almaqam-purpose-frame {
	aspect-ratio: 4 / 3;
	margin-right: 18px;
}

.almaqam-purpose-frame .almaqam-frame__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.almaqam-vm-row {
	margin-top: 4.5rem;
}

.almaqam-vm {
	height: 100%;
	padding: 2.25rem 2rem;
	border-radius: 18px;
	border: 1px solid transparent;
}

.almaqam-vm__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1.4rem;
	border-radius: 14px;
}

.almaqam-vm .almaqam-h4 {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}

.almaqam-vm p {
	margin: 0;
	font-size: 0.99rem;
	line-height: 1.7;
}

.almaqam-vm p.almaqam-vm__ar {
	margin-bottom: 0.4rem;
	font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
	font-size: 1.5rem;
	line-height: 1.4;
	text-align: left;
}

.almaqam-vm-gold {
	background: #F8F1E3;
	border-color: rgba(183, 135, 47, 0.32);
}

.almaqam-vm-gold .almaqam-vm__icon {
	background: #B7872F;
	color: #FFFFFF;
}

.almaqam-vm-gold .almaqam-h4 {
	color: #26655D;
}

.almaqam-vm-gold p {
	color: #4A5D59;
}

.almaqam-vm-teal {
	background: #26655D;
}

.almaqam-vm-green {
	background: #096F3B;
}

.almaqam-vm-teal .almaqam-vm__icon,
.almaqam-vm-green .almaqam-vm__icon {
	background: rgba(255, 255, 255, 0.12);
	color: #F3E2BA;
}

.almaqam-vm-teal .almaqam-h4,
.almaqam-vm-green .almaqam-h4 {
	color: #FFFFFF;
}

.almaqam-vm-teal p,
.almaqam-vm-green p {
	color: rgba(255, 255, 255, 0.88);
}

.almaqam-vm-green p.almaqam-vm__ar {
	color: #F3E2BA;
}

/* About page: what we teach */

.almaqam-subject {
	height: 100%;
	padding: 2.25rem 2rem;
	border-radius: 18px;
	border: 1px solid transparent;
	transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-subject:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 40px -28px rgba(30, 52, 49, 0.45);
}

.almaqam-subject__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1.6rem;
	border-radius: 15px;
}

.almaqam-subject .almaqam-h3 {
	margin-bottom: 0.7rem;
}

.almaqam-subject p {
	margin: 0;
	font-size: 0.99rem;
	line-height: 1.7;
}

.almaqam-subject-teal {
	background: #26655D;
}

.almaqam-subject-green {
	background: #096F3B;
}

.almaqam-subject-teal .almaqam-subject__icon,
.almaqam-subject-green .almaqam-subject__icon {
	background: rgba(255, 255, 255, 0.12);
	color: #F3E2BA;
}

.almaqam-subject-teal .almaqam-h3,
.almaqam-subject-green .almaqam-h3 {
	color: #FFFFFF;
}

.almaqam-subject-teal p,
.almaqam-subject-green p {
	color: rgba(255, 255, 255, 0.88);
}

.almaqam-subject-gold {
	background: #F8F1E3;
	border-color: rgba(183, 135, 47, 0.32);
}

.almaqam-subject-gold .almaqam-subject__icon {
	background: #B7872F;
	color: #FFFFFF;
}

.almaqam-subject-mint {
	background: #FFFFFF;
	border-color: rgba(9, 111, 59, 0.22);
}

.almaqam-subject-mint .almaqam-subject__icon {
	background: rgba(9, 111, 59, 0.1);
	color: #096F3B;
}

.almaqam-subject-gold .almaqam-h3,
.almaqam-subject-mint .almaqam-h3 {
	color: #26655D;
}

.almaqam-subject-gold p,
.almaqam-subject-mint p {
	color: #4A5D59;
}

@media (prefers-reduced-motion: reduce) {
	.almaqam-subject,
	.almaqam-subject:hover {
		transform: none;
		transition: none;
	}
}

/* Contact page */

.almaqam-contact-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 2.5rem;
	border-top: 1px solid rgba(38, 101, 93, 0.12);
}

.almaqam-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 1.25rem 0;
	border-bottom: 1px solid rgba(38, 101, 93, 0.12);
}

.almaqam-contact-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(9, 111, 59, 0.08);
	color: #096F3B;
	flex-shrink: 0;
}

.almaqam-contact-item__label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #8A6420;
	font-weight: 500;
}

.almaqam-contact-item__value {
	display: block;
	color: #1E3431;
	font-size: 1.02rem;
}

.almaqam-contact-portals .almaqam-eyebrow {
	display: flex;
}

.almaqam-form-card {
	padding: clamp(1.75rem, 4vw, 3rem);
}

.almaqam-form .form-label {
	font-weight: 500;
	color: #26655D;
	font-size: 0.95rem;
	margin-bottom: 0.45rem;
}

.almaqam-form .form-label span {
	color: #8A6420;
}

.almaqam-form .form-control,
.almaqam-form .form-select {
	padding: 0.8rem 1rem;
	border: 1px solid rgba(38, 101, 93, 0.2);
	border-radius: 12px;
	background-color: #FAF9F6;
	color: #1E3431;
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	transition: border-color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-form .form-control:focus,
.almaqam-form .form-select:focus {
	border-color: #096F3B;
	background-color: #FFFFFF;
	box-shadow: 0 0 0 4px rgba(9, 111, 59, 0.1);
}

.almaqam-form .form-control.is-invalid {
	border-color: #B4533A;
	background-image: none;
	padding-right: 1rem;
}

.almaqam-form .form-control.is-valid {
	border-color: rgba(9, 111, 59, 0.45);
	background-image: none;
	padding-right: 1rem;
}

.almaqam-form .invalid-feedback {
	color: #A04A33;
	font-size: 0.88rem;
}

.almaqam-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding-top: 0.5rem;
}

.almaqam-form__note {
	margin: 0;
	font-size: 0.88rem;
	color: #6B7C78;
}

.almaqam-form button[disabled] {
	opacity: 0.75;
}

.almaqam-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.almaqam-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 1rem 1.25rem;
	margin: 0 0 1.75rem;
	border-radius: 12px;
	border: 1px solid rgba(38, 101, 93, 0.12);
	font-size: 0.98rem;
}

.almaqam-notice-success {
	background: rgba(9, 111, 59, 0.08);
	border-color: rgba(9, 111, 59, 0.25);
	color: #096F3B;
}

.almaqam-notice-warning {
	background: rgba(183, 135, 47, 0.12);
	border-color: rgba(183, 135, 47, 0.3);
	color: #74531A;
}

.almaqam-notice .almaqam-icon {
	margin-top: 3px;
}

.almaqam-map {
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(38, 101, 93, 0.12);
	background: #FFFFFF;
	padding: 0.6rem;
}

.almaqam-map iframe {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
	border-radius: 12px;
	filter: saturate(0.75);
}

/* Prose (editor content) */

.almaqam-prose {
	color: #4A5D59;
}

.almaqam-prose > * + * {
	margin-top: 1.25rem;
}

.almaqam-prose p {
	margin-bottom: 0;
}

.almaqam-prose h2,
.almaqam-prose h3 {
	margin-top: 2.5rem;
}

.almaqam-prose a {
	border-bottom: 1px solid #B7872F;
}

.almaqam-prose img {
	border-radius: 16px;
}

.almaqam-prose blockquote {
	padding-left: 1.5rem;
	border-left: 1px solid #B7872F;
	color: #1E3431;
	font-size: 1.15rem;
}

.almaqam-prose-compact {
	margin-top: 1.5rem;
}

.almaqam-article__media {
	margin-bottom: 3rem;
	aspect-ratio: 16 / 9;
}

.almaqam-post-card {
	display: flex;
	flex-direction: column;
}

.almaqam-post-card__media {
	display: block;
	margin: -1rem -1rem 1.5rem;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.almaqam-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.almaqam-post-card .almaqam-link {
	margin-top: auto;
	align-self: flex-start;
}

.almaqam-pagination {
	margin-top: 3rem;
}

.almaqam-pagination .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.almaqam-pagination .page-numbers {
	padding: 0.5rem 0.95rem;
	border: 1px solid rgba(38, 101, 93, 0.12);
	border-radius: 10px;
	background: #FFFFFF;
}

.almaqam-pagination .page-numbers.current {
	border-color: #26655D;
	color: #26655D;
	font-weight: 500;
}

/* Lightbox */

.almaqam-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 1.25rem;
	background: rgba(243, 246, 244, 0.96);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.almaqam-lightbox__figure {
	margin: 0;
	max-width: min(1200px, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.almaqam-lightbox__img {
	max-height: 76vh;
	width: auto;
	border-radius: 16px;
	border: 1px solid rgba(38, 101, 93, 0.12);
	background: #FFFFFF;
	transform: scale(0.985);
	transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-lightbox.is-open .almaqam-lightbox__img {
	transform: none;
}

.almaqam-lightbox__caption {
	margin-top: 1rem;
	color: #26655D;
	font-weight: 500;
	text-align: center;
}

.almaqam-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid rgba(38, 101, 93, 0.2);
	background: #FFFFFF;
	color: #26655D;
	transition: color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-lightbox__btn:hover {
	color: #096F3B;
	border-color: rgba(9, 111, 59, 0.4);
}

.almaqam-lightbox__close {
	top: 1.25rem;
	right: 1.25rem;
}

.almaqam-lightbox__prev,
.almaqam-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.almaqam-lightbox__prev {
	left: 1.25rem;
}

.almaqam-lightbox__prev .almaqam-icon {
	transform: rotate(180deg);
}

.almaqam-lightbox__next {
	right: 1.25rem;
}

@media (max-width: 767.98px) {
	.almaqam-lightbox__prev,
	.almaqam-lightbox__next {
		top: auto;
		bottom: 1.25rem;
		transform: none;
	}
}

body.almaqam-lock {
	overflow: hidden;
}

/* Reveal on scroll (only when JS is running) */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* Responsive spacing */

@media (max-width: 991.98px) {
	.almaqam-section {
		padding: 80px 0;
	}

	.almaqam-section-tight {
		padding: 70px 0;
	}

	.almaqam-cta-section {
		padding: 80px 0 90px;
	}

	.almaqam-hero {
		padding: 48px 0 0;
	}

	.almaqam-hero__media {
		padding: 0 0 70px 40px;
		margin-right: 14px;
		margin-top: 1rem;
	}

	.almaqam-hero__media::before {
		top: -14px;
		right: -14px;
	}

	.almaqam-hero__main {
		aspect-ratio: 4 / 3.4;
	}

	.almaqam-page-hero {
		padding: 48px 0 10px;
	}

	.almaqam-section-head {
		margin-bottom: 2.5rem;
	}

	.almaqam-frame-portrait {
		max-width: 420px;
	}

	.almaqam-footer {
		padding-top: 70px;
	}
}

@media (max-width: 575.98px) {
	body {
		font-size: 1rem;
	}

	.container-xl {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.almaqam-hero__media {
		padding: 0 0 56px 24px;
	}

	.almaqam-hero__note {
		display: none;
	}

	.almaqam-duo {
		padding: 0 36px 56px 0;
	}

	.almaqam-duo-flip {
		padding: 0 0 56px 36px;
	}

	.almaqam-card,
	.almaqam-pillar {
		padding: 1.75rem;
	}

	.almaqam-hero__actions .almaqam-btn {
		width: 100%;
	}

	.almaqam-frame::before {
		inset: 12px -12px -12px 12px;
	}
}

/* Header */

.almaqam-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid rgba(38, 101, 93, 0.12);
	transition: box-shadow 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.admin-bar .almaqam-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .almaqam-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .almaqam-header {
		top: 0;
	}
}

.almaqam-header.is-scrolled {
	box-shadow: 0 8px 30px -22px rgba(30, 52, 49, 0.35);
}

.almaqam-navbar {
	min-height: 84px;
	padding: 0;
}

.almaqam-brand {
	padding: 0;
	margin-right: 2rem;
	display: inline-flex;
	align-items: center;
}

.almaqam-brand__logo {
	width: auto;
	height: 50px;
}

.almaqam-brand__logo-mobile {
	height: 46px;
}

@media (min-width: 992px) and (max-width: 1299.98px) {
	.almaqam-brand__logo-desktop {
		height: 42px;
	}

	.almaqam-brand {
		margin-right: 1.25rem;
	}
}

.almaqam-toggler {
	border: 1px solid rgba(38, 101, 93, 0.2);
	border-radius: 12px;
	padding: 8px 10px;
	color: #26655D;
	background: #FFFFFF;
}

.almaqam-toggler:focus {
	box-shadow: none;
}

.almaqam-toggler:hover {
	color: #096F3B;
	border-color: rgba(9, 111, 59, 0.35);
}

.almaqam-nav {
	gap: 0.25rem;
}

.almaqam-nav .nav-link {
	color: #26655D;
	font-weight: 500;
	font-size: 1rem;
	padding: 0.55rem 0.9rem !important;
	border-radius: 10px;
	text-decoration: none;
	transition: color 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-nav .nav-link:hover,
.almaqam-nav .nav-link:focus-visible,
.almaqam-nav .nav-link.show,
.almaqam-nav .nav-link.active {
	color: #096F3B;
}

.almaqam-nav .dropdown-toggle::after {
	border: 0;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	vertical-align: 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-nav .dropdown-toggle.show::after {
	transform: rotate(225deg) translate(-2px, -2px);
}

.almaqam-actions {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

/* Dropdowns */

.almaqam-dropdown {
	min-width: 14rem;
	padding: 0.5rem;
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.12);
	border-radius: 16px;
	box-shadow: 0 18px 40px -24px rgba(30, 52, 49, 0.18);
	margin-top: 0.6rem !important;
}

.almaqam-dropdown .dropdown-item {
	border-radius: 10px;
	padding: 0.6rem 0.9rem;
	font-weight: 500;
	font-size: 0.97rem;
	color: #26655D;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.almaqam-dropdown .dropdown-item:hover,
.almaqam-dropdown .dropdown-item:focus,
.almaqam-dropdown .dropdown-item.active,
.almaqam-dropdown .dropdown-item:active {
	color: #096F3B;
	background: rgba(9, 111, 59, 0.08);
}

.almaqam-dropdown-portal {
	min-width: 18rem;
}

.almaqam-portal__item {
	display: flex !important;
	align-items: center;
	gap: 12px;
	white-space: normal;
}

.almaqam-portal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #F3F6F4;
	color: #096F3B;
	flex-shrink: 0;
}

.almaqam-portal__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.almaqam-portal__label {
	font-weight: 500;
}

.almaqam-portal__note {
	font-size: 0.82rem;
	font-weight: 400;
	color: #6B7C78;
}

/* Desktop navbar layout */

@media (min-width: 1200px) {
	.almaqam-drawer .offcanvas-body {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-grow: 1;
		gap: 1.5rem;
		overflow: visible;
	}

	.almaqam-nav {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Mobile drawer */

@media (max-width: 1199.98px) {
	/* A backdrop filter would become the containing block of the fixed drawer, so keep it off here. */
	.almaqam-header {
		background: #FFFFFF;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.almaqam-navbar {
		min-height: 74px;
	}

	.almaqam-drawer.offcanvas {
		width: min(380px, 88vw);
		background: #FAF9F6;
		border-left: 1px solid rgba(38, 101, 93, 0.12) !important;
	}

	.almaqam-drawer__header {
		padding: 1.25rem 1.5rem;
		border-bottom: 1px solid rgba(38, 101, 93, 0.12);
		background: #FFFFFF;
	}

	.almaqam-drawer__logo {
		height: 40px;
		width: auto;
	}

	.almaqam-drawer__close {
		margin-left: auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		border: 1px solid rgba(38, 101, 93, 0.2);
		background: #FFFFFF;
		color: #26655D;
	}

	.almaqam-drawer__close:hover {
		color: #096F3B;
	}

	.almaqam-drawer__body {
		display: flex;
		flex-direction: column;
		padding: 1rem 1.5rem 2rem;
	}

	.almaqam-nav {
		gap: 0;
	}

	.almaqam-nav > .nav-item {
		border-bottom: 1px solid rgba(38, 101, 93, 0.12);
	}

	.almaqam-nav .nav-link {
		padding: 1rem 0.25rem !important;
		font-size: 1.1rem;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.almaqam-nav .dropdown-menu {
		position: static !important;
		transform: none !important;
		box-shadow: none;
		border: 0;
		background: transparent;
		margin: 0 0 0.75rem !important;
		padding: 0 0 0 0.5rem;
	}

	.almaqam-actions {
		flex-direction: column;
		align-items: stretch;
		margin-top: 1.75rem;
	}

	.almaqam-actions .almaqam-btn {
		width: 100%;
	}

	.almaqam-drawer__footer {
		margin-top: auto;
		padding-top: 2rem;
	}

	.almaqam-drawer__address {
		margin: 0.75rem 0 0;
		font-size: 0.92rem;
		color: #6B7C78;
	}
}

/* Buttons and links */

.almaqam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0.72rem 1.35rem;
	border-radius: 12px;
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.005em;
	border: 1px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.almaqam-btn-lg {
	padding: 0.88rem 1.6rem;
	font-size: 1.02rem;
}

.almaqam-btn-primary {
	background: #26655D;
	border-color: #26655D;
	color: #FFFFFF;
}

.almaqam-btn-primary:hover,
.almaqam-btn-primary:focus-visible,
.almaqam-btn-primary:active {
	background: #096F3B !important;
	border-color: #096F3B !important;
	color: #FFFFFF !important;
}

.almaqam-btn-secondary {
	background: transparent;
	border-color: rgba(38, 101, 93, 0.35);
	color: #26655D;
}

.almaqam-btn-secondary:hover,
.almaqam-btn-secondary:focus-visible,
.almaqam-btn-secondary:active {
	background: rgba(9, 111, 59, 0.08) !important;
	border-color: #096F3B !important;
	color: #096F3B !important;
}

.almaqam-btn-login {
	background: transparent;
	border-color: #B7872F;
	color: #8A6420;
	font-weight: 600;
}

.almaqam-btn-login:hover,
.almaqam-btn-login:focus-visible,
.almaqam-btn-login:active {
	background: #B7872F !important;
	border-color: #B7872F !important;
	color: #FFFFFF !important;
}

.almaqam-btn-light {
	background: #FFFFFF;
	border-color: #FFFFFF;
	color: #096F3B;
}

.almaqam-btn-light:hover,
.almaqam-btn-light:focus-visible,
.almaqam-btn-light:active {
	background: #F3E2BA !important;
	border-color: #F3E2BA !important;
	color: #1E3431 !important;
}

.almaqam-btn-outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #FFFFFF;
}

.almaqam-btn-outline-light:hover,
.almaqam-btn-outline-light:focus-visible,
.almaqam-btn-outline-light:active {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: #FFFFFF !important;
	color: #FFFFFF !important;
}

.almaqam-btn-ghost {
	background: #FFFFFF;
	border-color: rgba(38, 101, 93, 0.2);
	color: #26655D;
}

.almaqam-btn-ghost:hover,
.almaqam-btn-ghost:focus-visible,
.almaqam-btn-ghost.show {
	background: rgba(9, 111, 59, 0.08) !important;
	border-color: rgba(9, 111, 59, 0.35) !important;
	color: #096F3B !important;
}

.almaqam-btn-ghost.dropdown-toggle::after {
	border: 0;
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}

.almaqam-btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
}

.almaqam-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: #26655D;
	text-decoration: none;
	border: 0;
}

.almaqam-link:hover {
	color: #096F3B;
}

.almaqam-link .almaqam-icon {
	transition: transform 0.25s ease;
}

.almaqam-link:hover .almaqam-icon {
	transform: translateX(3px);
}

.almaqam-link-muted {
	color: #6B7C78;
}

/* Shared refinements */

.almaqam-duo img,
.almaqam-frame__img,
.almaqam-side-photo img,
.almaqam-founder-photo img,
.almaqam-cta-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.almaqam-motto {
	border-top: 0;
	padding-top: 0;
	margin-top: 1.5rem;
}

.almaqam-eyebrow {
	gap: 0;
}

.almaqam-eyebrow-light {
	color: #F3E2BA;
}

.almaqam-section-white {
	background: #FFFFFF;
}

.almaqam-section-white .almaqam-duo__inset {
	border-color: #FFFFFF;
}

.almaqam-section-cream {
	background: #F8F3E8;
}

.almaqam-intro {
	max-width: 46rem;
	margin: 0 auto;
	color: #4A5D59;
}

.almaqam-ticks {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 2.25rem;
	display: grid;
	gap: 0.9rem;
}

.almaqam-ticks li {
	position: relative;
	padding-left: 1.9rem;
	color: #1E3431;
	font-size: 1.02rem;
	line-height: 1.6;
}

.almaqam-ticks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #096F3B;
	font-weight: 600;
}

/* Hero */

.almaqam-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #1E4F49;
	color: #FFFFFF;
}

.almaqam-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.almaqam-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

/* Deep shades of the primary teal: strongest behind the text, lighter toward the right so the photograph stays visible. */
.almaqam-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(17, 48, 44, 0.9) 0%, rgba(24, 66, 61, 0.76) 45%, rgba(38, 101, 93, 0.48) 100%),
		linear-gradient(to top, rgba(17, 48, 44, 0.55), rgba(17, 48, 44, 0) 45%);
}

.almaqam-hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(540px, 76vh, 700px);
	padding-top: 96px;
	padding-bottom: 132px;
}

.almaqam-hero-content {
	max-width: 640px;
}

.almaqam-hero .almaqam-eyebrow {
	color: #F3E2BA;
}

.almaqam-hero-title {
	font-size: clamp(2.2rem, 4.2vw, 3.45rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: #FFFFFF;
	margin: 0 0 1.25rem;
	max-width: 17ch;
}

.almaqam-hero-lead {
	font-size: 1.15rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	max-width: 32rem;
	margin: 0 0 2.1rem;
}

.almaqam-hero-motto {
	position: absolute;
	right: 1rem;
	bottom: 44px;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	text-align: right;
}

.almaqam-hero-motto-ar {
	font-family: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
	font-size: 2.15rem;
	line-height: 1.3;
	color: #F3E2BA;
}

.almaqam-hero-motto-en {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.86);
}

/* Pillars */

.almaqam-pillars-head {
	text-align: center;
	margin-bottom: 3.25rem;
}

.almaqam-pillars-head .almaqam-h2 {
	margin-left: auto;
	margin-right: auto;
}

.almaqam-pillar-card {
	height: 100%;
	padding: 2.5rem 2.25rem;
	border-radius: 18px;
	border: 1px solid transparent;
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-pillar-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -26px rgba(30, 52, 49, 0.4);
}

.almaqam-pillar-card-label {
	display: block;
	margin-bottom: 1.1rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.almaqam-pillar-card h3 {
	font-size: 1.4rem;
	line-height: 1.3;
	margin: 0 0 0.85rem;
}

.almaqam-pillar-card p {
	margin: 0;
	line-height: 1.7;
}

.almaqam-pillar-card-teal {
	background: #26655D;
}

.almaqam-pillar-card-teal h3 {
	color: #FFFFFF;
}

.almaqam-pillar-card-teal p {
	color: rgba(255, 255, 255, 0.86);
}

.almaqam-pillar-card-teal .almaqam-pillar-card-label,
.almaqam-pillar-card-green .almaqam-pillar-card-label {
	color: #F3E2BA;
}

.almaqam-pillar-card-gold {
	background: #F8F1E3;
	border-color: rgba(183, 135, 47, 0.4);
}

.almaqam-pillar-card-gold h3 {
	color: #26655D;
}

.almaqam-pillar-card-gold p {
	color: #4A5D59;
}

.almaqam-pillar-card-gold .almaqam-pillar-card-label {
	color: #8A6420;
}

.almaqam-pillar-card-green {
	background: #096F3B;
}

.almaqam-pillar-card-green h3 {
	color: #FFFFFF;
}

.almaqam-pillar-card-green p {
	color: rgba(255, 255, 255, 0.88);
}

/* Gallery buttons, shared with inner page strips and facilities */

.almaqam-gallery__button,
.almaqam-facility__media {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #F3F6F4;
	border-radius: 16px;
	overflow: hidden;
	cursor: zoom-in;
}

.almaqam-gallery__button img,
.almaqam-facility__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-gallery__button:hover img,
.almaqam-facility__media:hover img {
	transform: scale(1.04);
}

.almaqam-gallery__expand {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	color: #096F3B;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.almaqam-gallery__button:hover .almaqam-gallery__expand,
.almaqam-gallery__button:focus-visible .almaqam-gallery__expand {
	opacity: 1;
}

.almaqam-strip__item figcaption {
	margin-top: 0.75rem;
	font-size: 0.92rem;
	color: #6B7C78;
}

/* Founder */

.almaqam-founder-visual {
	position: relative;
	max-width: 460px;
	padding-bottom: 40px;
}

.almaqam-founder-photo {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #EFE6D3;
}

.almaqam-founder-photo img {
	object-position: 62% 30%;
}

.almaqam-founder-card {
	position: absolute;
	right: -24px;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 1rem 1.4rem;
	background: #FFFFFF;
	border: 1px solid rgba(183, 135, 47, 0.3);
	border-radius: 14px;
	box-shadow: 0 16px 36px -24px rgba(30, 52, 49, 0.4);
}

.almaqam-founder-card strong {
	color: #26655D;
	font-weight: 500;
	font-size: 1.05rem;
}

.almaqam-founder-card span {
	color: #6B7C78;
	font-size: 0.9rem;
}

.almaqam-founder-quote {
	margin: 0 0 1.75rem;
}

.almaqam-founder-quote p {
	font-size: 1.25rem;
	line-height: 1.7;
	color: #26655D;
	margin: 0;
}

.almaqam-founder-subhead {
	font-size: 1.05rem;
	color: #8A6420;
	font-weight: 500;
	margin: 0;
}

.almaqam-section-cream .almaqam-ticks {
	margin-top: 0.85rem;
}

/* Admissions callout */

.almaqam-cta-section {
	padding: 110px 0 120px;
	background: #FFFFFF;
}

.almaqam-cta-head {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem 4rem;
	align-items: end;
	margin-bottom: 3rem;
}

.almaqam-cta-head .almaqam-h2 {
	margin: 0;
	max-width: 16ch;
}

.almaqam-cta-text {
	color: #4A5D59;
	font-size: 1.05rem;
	line-height: 1.75;
	margin: 0 0 1.75rem;
	max-width: 34rem;
}

@media (min-width: 992px) {
	.almaqam-cta-head {
		grid-template-columns: 1fr 1fr;
	}
}

/* Three photographs at 50, 25 and 25 percent; fr units share out the gaps so edges align. */
.almaqam-cta-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.almaqam-cta-gallery-item {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #E4EBE8;
	height: 240px;
}

.almaqam-cta-gallery-item:first-child {
	grid-column: 1 / -1;
	height: 280px;
}

.almaqam-cta-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-cta-gallery-item:hover img {
	transform: scale(1.03);
}

@media (min-width: 992px) {
	.almaqam-cta-gallery {
		grid-template-columns: 2fr 1fr 1fr;
		gap: 22px;
	}

	.almaqam-cta-gallery-item,
	.almaqam-cta-gallery-item:first-child {
		grid-column: auto;
		height: 340px;
	}
}

/* Footer: deep primary teal, light type, gold and green accents */

.almaqam-footer {
	background: #163F3A;
	color: rgba(255, 255, 255, 0.82);
	padding: 90px 0 0;
	font-size: 0.98rem;
	border-top: 4px solid #096F3B;
}

.almaqam-footer__brand {
	display: inline-block;
}

.almaqam-footer__brand img {
	height: 46px;
	width: auto;
	max-width: 100%;
}

/* The logo set in Deskuls (often dark, like the Deskuls logo) on a white tile, so it reads on the green. */
.almaqam-footer__brand--site {
	padding: 10px 14px;
	background: #FFFFFF;
	border-radius: 6px;
}

.almaqam-footer__brand--site img {
	height: 40px;
}

.almaqam-footer__about {
	margin: 1.5rem 0 0;
	max-width: 22rem;
	color: rgba(255, 255, 255, 0.8);
}

.almaqam-footer .almaqam-motto__ar {
	color: #DDB15A;
}

.almaqam-footer .almaqam-motto__en {
	color: rgba(255, 255, 255, 0.74);
}

.almaqam-footer__heading {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #DDB15A;
	margin: 0.5rem 0 1.4rem;
}

.almaqam-footer__links,
.almaqam-footer__contact {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.8rem;
}

.almaqam-footer__links a,
.almaqam-footer__contact a {
	color: #FFFFFF;
	text-decoration: none;
	transition: color 0.2s ease;
}

.almaqam-footer__links a:hover,
.almaqam-footer__contact a:hover {
	color: #DDB15A;
}

.almaqam-footer__contact {
	gap: 1.1rem;
	margin-bottom: 1.75rem;
}

.almaqam-footer__contact li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.almaqam-footer__label {
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

.almaqam-footer__value {
	color: #FFFFFF;
}

.almaqam-footer__bottom {
	margin-top: 72px;
	background: #10302C;
	padding: 22px 0 24px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.74);
}

.almaqam-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.almaqam-footer__bottom p {
	margin: 0;
}

.almaqam-footer__bottom a {
	color: #FFFFFF;
	text-decoration: none;
}

.almaqam-footer__bottom a:hover {
	color: #DDB15A;
}

/* Landing page responsive overrides */

@media (max-width: 991.98px) {
	.almaqam-hero {
		padding: 0;
	}

	.almaqam-hero-inner {
		min-height: 0;
		padding-top: 80px;
		padding-bottom: 120px;
	}

	.almaqam-gallery-section {
		padding: 80px 0;
	}

	.almaqam-cta-section {
		padding: 80px 0 90px;
	}

	.almaqam-founder-visual {
		margin: 0 auto;
	}

	.almaqam-founder-card {
		right: 12px;
	}

	.almaqam-footer {
		padding-top: 70px;
	}
}

@media (max-width: 767.98px) {
	.almaqam-hero-inner {
		padding-top: 64px;
		padding-bottom: 56px;
	}

	.almaqam-hero-overlay {
		background: linear-gradient(180deg, rgba(17, 48, 44, 0.86) 0%, rgba(24, 66, 61, 0.8) 60%, rgba(17, 48, 44, 0.9) 100%);
	}

	.almaqam-hero-motto {
		position: static;
		align-items: flex-start;
		text-align: left;
		margin-top: 2.75rem;
	}

	.almaqam-hero-motto-ar {
		font-size: 1.75rem;
	}
}

@media (max-width: 575.98px) {
	.almaqam-hero .almaqam-btn-row .almaqam-btn {
		flex: 1 1 100%;
	}

	.almaqam-pillar-card {
		padding: 2rem 1.75rem;
	}
}

/* Typography: Cairo headings, Nunito Sans body copy */

h1,
h2,
h3,
h4,
h5,
h6,
.almaqam-display,
.almaqam-h1,
.almaqam-h2,
.almaqam-h3,
.almaqam-h4,
.almaqam-hero-title,
.almaqam-pillar-card h3 {
	font-family: "Amiri", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
}

.almaqam-display,
.almaqam-h1 {
	font-size: clamp(1.95rem, 3.4vw, 2.8rem);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.almaqam-h2 {
	font-size: clamp(1.6rem, 2.5vw, 2.15rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.almaqam-h3,
.almaqam-pillar-card h3 {
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.almaqam-h4 {
	font-size: 1.05rem;
	font-weight: 700;
}

.almaqam-footer__heading {
	font-size: 0.76rem;
	font-weight: 600;
}

/* Admissions page */

.almaqam-pillar-card-white {
	background: #FFFFFF;
	border-color: rgba(38, 101, 93, 0.16);
}

.almaqam-pillar-card-white h3 {
	color: #26655D;
}

.almaqam-pillar-card-white p {
	color: #4A5D59;
}

.almaqam-pillar-card-white .almaqam-pillar-card-label {
	color: #096F3B;
}

.almaqam-admissions-docs {
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: #F8F3E8;
	border-color: rgba(183, 135, 47, 0.3);
}

.almaqam-admissions-docs .almaqam-ticks {
	margin-bottom: 2rem;
}

/* Accent buttons */

.almaqam-btn-gold,
.almaqam-btn-gold-teal {
	background: #B7872F;
	border-color: #B7872F;
	color: #FFFFFF;
	font-weight: 600;
}

.almaqam-btn-gold:hover,
.almaqam-btn-gold:focus-visible,
.almaqam-btn-gold:active {
	background: #946B22 !important;
	border-color: #946B22 !important;
	color: #FFFFFF !important;
}

.almaqam-btn-gold-teal:hover,
.almaqam-btn-gold-teal:focus-visible,
.almaqam-btn-gold-teal:active {
	background: #26655D !important;
	border-color: #26655D !important;
	color: #FFFFFF !important;
}

.almaqam-btn-teal-gold {
	background: #26655D;
	border-color: #26655D;
	color: #FFFFFF;
	font-weight: 600;
}

.almaqam-btn-teal-gold:hover,
.almaqam-btn-teal-gold:focus-visible,
.almaqam-btn-teal-gold:active {
	background: #B7872F !important;
	border-color: #B7872F !important;
	color: #FFFFFF !important;
}

.almaqam-btn-glass {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.almaqam-btn-glass:hover,
.almaqam-btn-glass:focus-visible,
.almaqam-btn-glass:active {
	background: rgba(255, 255, 255, 0.26) !important;
	border-color: rgba(255, 255, 255, 0.26) !important;
	color: #FFFFFF !important;
}

/* Hero image cycle */

.almaqam-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: opacity, transform;
}

.almaqam-hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.almaqam-hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

@media (prefers-reduced-motion: reduce) {
	.almaqam-hero-slide {
		transform: none;
		transition: opacity 0.01ms;
	}
}

/* About the Academy, tighter pacing */

.almaqam-about {
	padding: 96px 0;
}

.almaqam-about-text {
	padding-left: 3.5rem;
}

@media (min-width: 1200px) {
	.almaqam-about-text {
		padding-left: 5rem;
	}
}

.almaqam-about-text .almaqam-eyebrow {
	margin-bottom: 0.75rem;
}

.almaqam-about-text .almaqam-h2 {
	margin-bottom: 1rem;
}

.almaqam-about-text .almaqam-body {
	margin-bottom: 0;
}

.almaqam-about-text .almaqam-ticks {
	margin: 1.25rem 0 1.75rem;
	gap: 0.65rem;
}

@media (max-width: 991.98px) {
	.almaqam-about {
		padding: 80px 0;
	}

	.almaqam-about-text {
		padding-left: 0;
	}

}

/* Spaces showcase: copy on the left, three photo cards stepping along on the right */

.almaqam-gallery-section {
	background: #26655D;
	padding: 110px 0;
	overflow: hidden;
}

.almaqam-gallery-section .almaqam-h2 {
	color: #FFFFFF;
	margin-bottom: 1rem;
}

.almaqam-showcase {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.almaqam-showcase-copy,
.almaqam-showcase-viewport {
	min-width: 0;
}

.almaqam-showcase-text {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.04rem;
	line-height: 1.75;
	margin: 0 0 2rem;
	max-width: 30rem;
}

.almaqam-showcase-arrows {
	display: flex;
	gap: 0.75rem;
}

.almaqam-showcase-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #FFFFFF;
	font-size: 1.3rem;
	line-height: 1;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.almaqam-showcase-arrow:hover,
.almaqam-showcase-arrow:focus-visible {
	background: #B7872F;
	border-color: #B7872F;
	color: #FFFFFF;
}

.almaqam-showcase-viewport {
	overflow: hidden;
	border-radius: 18px;
}

.almaqam-showcase-track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1);
	will-change: transform;
}

.almaqam-showcase-track.is-snapping {
	transition: none;
}

.almaqam-showcase-card {
	flex: 0 0 82%;
	margin: 0;
	padding: 10px 10px 4px;
	background: #FFFFFF;
	border-radius: 18px;
}

.almaqam-showcase-media {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4 / 4.9;
	background: #E4EBE8;
	cursor: zoom-in;
}

.almaqam-showcase-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-showcase-media:hover img,
.almaqam-showcase-media:focus-visible img {
	transform: scale(1.04);
}

.almaqam-showcase-name {
	margin: 0;
	padding: 0.85rem 0.4rem 0.7rem;
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	color: #26655D;
}

@media (min-width: 768px) {
	.almaqam-showcase-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (min-width: 992px) {
	.almaqam-showcase {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.almaqam-showcase-copy {
		flex: 0 0 34%;
		max-width: 34%;
		padding-right: 3rem;
	}

	.almaqam-showcase-viewport {
		flex: 0 0 66%;
		max-width: 66%;
	}

	.almaqam-showcase-card {
		flex-basis: calc((100% - 40px) / 3);
	}
}

@media (prefers-reduced-motion: reduce) {
	.almaqam-showcase-track {
		transition: none;
	}
}

@media (max-width: 991.98px) {
	.almaqam-gallery-section {
		padding: 80px 0;
	}
}

/* Showcase: quicker slide when a visitor steps with the arrows */

.almaqam-showcase-track.is-quick {
	transition-duration: 0.6s;
}

/* Knowledge, Adab and Care: icons in place of the text labels */

.almaqam-pillar-card-icon {
	display: block;
	margin-bottom: 1.25rem;
	line-height: 0;
}

.almaqam-pillar-card-icon .almaqam-icon {
	width: 40px;
	height: 40px;
	stroke-width: 1.4;
}

.almaqam-pillar-card-teal .almaqam-pillar-card-icon,
.almaqam-pillar-card-green .almaqam-pillar-card-icon {
	color: #F3E2BA;
}

.almaqam-pillar-card-gold .almaqam-pillar-card-icon {
	color: #B7872F;
}

/* Overall scale: a slightly zoomed out page, everything sized in rem follows */

html {
	font-size: 93.75%;
}

/* Hero: highlighted words in the headline */

.almaqam-hero-accent {
	color: #E2B65E;
}

/* About the Academy: heading over about three lines */

.almaqam-about-text .almaqam-h2 {
	max-width: 19ch;
}

/* Lists stay on one line where the column is wide enough.
 * main.js measures each item and adds is-oneline only when it fits. */

.almaqam-ticks {
	grid-template-columns: minmax(0, 1fr);
}

.almaqam-ticks li.is-oneline {
	white-space: nowrap;
}

/* Framed photograph used beside text on inner pages */

.almaqam-cta-photo {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #E4EBE8;
}

/* Heavier headline weight: hero and About the Academy (Cairo has a true 800) */

.almaqam-hero-title,
.almaqam-about-text .almaqam-h2 {
	font-family: "Amiri", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 800;
}

/* About the Academy on wide screens: a slightly larger image, text set further right */

@media (min-width: 1200px) {
	.almaqam-about-media {
		flex: 0 0 45%;
		max-width: 45%;
	}

	.almaqam-about .almaqam-duo {
		padding-right: 56px;
	}

	.almaqam-about-text {
		flex: 0 0 49%;
		max-width: 49%;
		margin-left: auto;
		padding-left: 3.5rem;
	}
}

/* Admissions callout paragraph sits on two lines */

.almaqam-cta-text {
	max-width: 36rem;
}

/* No horizontal bleed: the container padding matches the large row gutter */

body {
	overflow-x: hidden;
}

.container-xl {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

img,
svg,
iframe {
	max-width: 100%;
}

/* Mobile refinements */

@media (max-width: 767.98px) {
	/* Hero: compact buttons on the left, motto on the right */
	.almaqam-hero .almaqam-btn-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.almaqam-hero .almaqam-btn-row .almaqam-btn {
		flex: 0 0 auto;
		width: auto;
		min-width: 56%;
		white-space: nowrap;
	}

	.almaqam-hero-motto {
		align-items: flex-end;
		text-align: right;
		margin-left: auto;
	}

	/* About the Academy: buttons stacked */
	.almaqam-about .almaqam-btn-row {
		flex-direction: column;
		align-items: stretch;
	}

	.almaqam-about .almaqam-btn-row .almaqam-btn {
		width: 100%;
	}

	/* Footer: one clean left aligned column */
	.almaqam-footer .row > [class*="col-"] {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.almaqam-footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 1199.98px) {
	/* Restore the normal column gutter so the About text never touches the screen edge */
	.almaqam-about-text {
		padding-left: 1.5rem;
	}
}

/* Solid forest green button, gold on hover */

.almaqam-btn-green {
	background: #096F3B;
	border-color: #096F3B;
	color: #FFFFFF;
	font-weight: 600;
}

.almaqam-btn-green:hover,
.almaqam-btn-green:focus-visible,
.almaqam-btn-green:active {
	background: #B7872F !important;
	border-color: #B7872F !important;
	color: #FFFFFF !important;
}

/* Contact page: photo banner with a deep primary overlay */

.almaqam-banner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #163F3A;
	color: #FFFFFF;
}

.almaqam-banner-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.almaqam-banner-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
}

.almaqam-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(17, 48, 44, 0.88) 0%, rgba(24, 66, 61, 0.78) 55%, rgba(38, 101, 93, 0.62) 100%);
}

.almaqam-banner-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 340px;
	padding-top: 72px;
	padding-bottom: 72px;
}

.almaqam-banner-crumbs {
	display: flex;
	gap: 8px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 1.25rem;
}

.almaqam-banner-crumbs a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.almaqam-banner-crumbs a:hover {
	color: #DDB15A;
}

.almaqam-banner-crumbs span[aria-hidden] {
	color: #DDB15A;
}

.almaqam-banner-title {
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: #FFFFFF;
	margin: 0 0 1rem;
}

.almaqam-banner-text {
	max-width: 36rem;
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

/* Contact page: message section */

.almaqam-message .almaqam-h2 {
	max-width: 15ch;
}

.almaqam-message .almaqam-ticks li {
	white-space: normal;
}

.almaqam-message-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(38, 101, 93, 0.12);
	color: #4A5D59;
}

.almaqam-message-card {
	background: #F8F3E8;
	border: 1px solid rgba(183, 135, 47, 0.28);
	border-radius: 20px;
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.almaqam-message-card .form-control,
.almaqam-message-card .form-select {
	background-color: #FFFFFF;
}

/* Contact page: get in touch details and map */

.almaqam-touch-list {
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 576px) {
	.almaqam-touch-list {
		grid-template-columns: 1fr 1fr;
	}
}

.almaqam-touch-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 1.1rem 1.2rem;
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.12);
	border-top: 3px solid #26655D;
	border-radius: 14px;
	min-width: 0;
}

.almaqam-touch-card-gold {
	border-top-color: #B7872F;
}

.almaqam-touch-card-green {
	border-top-color: #096F3B;
}

.almaqam-touch-label {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8A6420;
}

.almaqam-touch-value {
	color: #1E3431;
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
	text-decoration: none;
}

a.almaqam-touch-value:hover {
	color: #096F3B;
}

.almaqam-touch-map {
	height: 100%;
	min-height: 360px;
	display: flex;
}

.almaqam-touch-map iframe {
	height: auto;
	min-height: 340px;
	flex: 1 1 auto;
}

@media (max-width: 767.98px) {
	.almaqam-banner-inner {
		min-height: 260px;
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.almaqam-message-login .almaqam-btn {
		width: auto;
	}
}

/* Header Login button: one link to the shared sign in page (students, parents and teachers) */

@media (max-width: 1199.98px) {
	.almaqam-actions .almaqam-login-menu {
		width: 100%;
	}
}

/* Signed in: the Login button becomes the person's account menu. Their initials in a green
   circle, the name over the role, a chevron; it opens Dashboard, My profile and Log out. Same
   size and corner as the Login button it replaces. */

.almaqam-account {
	position: relative;
}

.almaqam-account__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 0.4rem 0.9rem 0.4rem 0.45rem;
	color: #1E3431;
	background: #FFFFFF;
	border: 1px solid rgba(38, 101, 93, 0.18);
	border-radius: 12px;
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.almaqam-account__toggle:hover,
.almaqam-account__toggle[aria-expanded="true"] {
	background: rgba(9, 111, 59, 0.05);
	border-color: #26655D;
}

.almaqam-account__toggle:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(38, 101, 93, 0.25);
}

/* The chevron after the name: the theme's slim rotated tick, turning when the menu opens. */
.almaqam-account__toggle.dropdown-toggle::after {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	margin: 0 0 3px auto;
	border: 0;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.almaqam-account__toggle[aria-expanded="true"]::after {
	margin-bottom: -3px;
	transform: rotate(225deg);
}

.almaqam-account__avatar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #FFFFFF;
	background: #26655D;
	border-radius: 50%;
	font-family: "Amiri", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.almaqam-account__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.almaqam-account__name {
	overflow: hidden;
	color: #1E3431;
	font-size: 0.92rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.almaqam-account__role {
	color: #8A6420;
	font-size: 0.78rem;
	font-weight: 600;
}

.almaqam-account__menu {
	min-width: 15rem;
}

.almaqam-account__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0.5rem 0.9rem 0.6rem;
	line-height: 1.3;
}

.almaqam-account__head-name {
	color: #1E3431;
	font-weight: 600;
}

.almaqam-account__head-email {
	overflow: hidden;
	color: #6B7C78;
	font-size: 0.82rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.almaqam-account__item {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

.almaqam-account__item .almaqam-icon {
	flex-shrink: 0;
	color: #096F3B;
}

.almaqam-account__menu .dropdown-divider {
	margin: 0.35rem 0.4rem;
	border-color: rgba(38, 101, 93, 0.12);
}

.almaqam-account__out,
.almaqam-account__out .almaqam-icon {
	color: #A8213A;
}

.almaqam-account__out:hover,
.almaqam-account__out:focus {
	color: #A8213A !important;
	background: rgba(168, 33, 58, 0.07) !important;
}

/* Dropdowns: one look across the site (forms, admission, portals in the site frame). A slim
   rounded chevron in the school green with room for it on the right, the body font, a firmer
   border on hover and a soft green focus ring, in place of the browser's own control. */

select,
.form-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-height: 48px;
	padding: 0.75rem 2.75rem 0.75rem 1rem;
	border: 1px solid rgba(38, 101, 93, 0.25);
	border-radius: 12px;
	background-color: #FFFFFF;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2326655D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3.5 6 4.5 4.5 4.5-4.5'/%3e%3c/svg%3e");
	background-position: right 1rem center;
	background-repeat: no-repeat;
	background-size: 1rem 1rem;
	color: #1E3431;
	font-family: "Amiri", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.almaqam-form .form-select {
	padding-right: 2.75rem;
}

select:hover:not(:disabled),
.form-select:hover:not(:disabled) {
	border-color: #26655D;
}

select:focus,
.form-select:focus {
	outline: none;
	border-color: #096F3B;
	box-shadow: 0 0 0 4px rgba(9, 111, 59, 0.12);
}

select:disabled,
.form-select:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* A list box (several rows shown at once) has no chevron. */
select[multiple],
select[size]:not([size="1"]) {
	padding-right: 1rem;
	background-image: none;
}

@media (prefers-reduced-motion: reduce) {
	select,
	.form-select {
		transition: none;
	}
}
