/* ==========================================================================
   Al Noor Institute — components.css
   Header · Footer · Buttons · Cards · Forms · Badges · Sections
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .97rem;
    line-height: 1.2;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), background-color .18s var(--ease),
                color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { inline-size: 18px; block-size: 18px; flex: none; }

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--primary-700); box-shadow: var(--shadow-md); }

.btn--secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn--secondary:hover { background: var(--secondary-700); }

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}
.btn--outline:hover { border-color: var(--primary); background: var(--white); }

.btn--ghost {
    background: transparent;
    color: var(--primary);
    padding-inline: var(--space-3);
}
.btn--ghost:hover { color: var(--secondary); }

.btn--accent {
    background: var(--accent);
    color: var(--primary-700);
}
.btn--accent:hover { background: #C9942F; }

.btn--light {
    background: var(--white);
    color: var(--primary);
}
.btn--light:hover { background: var(--accent-100); }

.btn--onDark-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .45);
}
.btn--onDark-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--secondary);
    font-size: .95rem;
}
.link-arrow svg { inline-size: 16px; block-size: 16px; transition: transform .2s var(--ease); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   SITE CONFIG PLACEHOLDERS  (see assets/js/site-config.js)
   Makes unset client data impossible to miss during review. Remove nothing —
   these styles simply stop applying once real values are filled in.
   ========================================================================== */
.is-unconfigured {
    opacity: .4;
    pointer-events: none;
    cursor: default;
}
.is-placeholder {
    background: repeating-linear-gradient(45deg, var(--danger-bg), var(--danger-bg) 6px, transparent 6px, transparent 12px);
    outline: 1px dashed var(--danger);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 700;
    background: var(--secondary-100);
    color: var(--secondary);
    line-height: 1.6;
}
.badge--accent { background: var(--accent-100); color: #8A6416; }
.badge--muted { background: #EEF2EF; color: var(--muted); }
.badge--primary { background: var(--primary-100); color: var(--primary); }
.badge--onDark { background: rgba(255, 255, 255, .14); color: var(--white); }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    height: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #CFE8DC;
}
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: .96rem; }

/* Icon tile used inside feature cards */
.icon-tile {
    display: grid;
    place-items: center;
    inline-size: 54px;
    block-size: 54px;
    border-radius: 16px;
    background: var(--primary-100);
    color: var(--primary);
    margin-bottom: var(--space-4);
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.icon-tile svg { inline-size: 26px; block-size: 26px; }
.card:hover .icon-tile { background: var(--primary); color: var(--white); }
.icon-tile--accent { background: var(--accent-100); color: #8A6416; }
.card:hover .icon-tile--accent { background: var(--accent); color: var(--primary-700); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 24px rgba(18, 59, 93, .06);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-block-size: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    flex: none;
}
.brand img { inline-size: 42px; block-size: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.brand__sub { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-2); }
.nav__link {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--primary); background: var(--primary-100); }
.nav__link[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav__link[aria-current="page"]::after {
    content: "";
    display: block;
    inline-size: 18px;
    block-size: 2px;
    border-radius: 2px;
    background: var(--accent);
    margin: 4px auto 0;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: none;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
}
.lang-switch__btn {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch__btn:hover { color: var(--primary); }
.lang-switch__btn.is-active { background: var(--primary); color: var(--white); }

/* Hamburger */
.hamburger {
    display: none;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    place-items: center;
}
.hamburger span {
    display: block;
    inline-size: 20px;
    block-size: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hamburger span + span { margin-top: 5px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile navigation drawer */
.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    background: var(--white);
    padding: var(--space-6) var(--space-5) var(--space-8);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav__list { display: grid; gap: var(--space-1); margin-bottom: var(--space-6); }
.mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px var(--space-4);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    border: 1px solid transparent;
}
.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] {
    background: var(--background);
    border-color: var(--border);
    color: var(--primary);
}
body.nav-open { overflow: hidden; }

/* ==========================================================================
   HERO — home
   ========================================================================== */
.hero {
    position: relative;
    padding-block: var(--space-9) var(--space-8);
    background:
        radial-gradient(900px 420px at var(--hero-glow-x, 85%) -10%, var(--secondary-100), transparent 65%),
        url("../images/general/geo-pattern.svg") repeat,
        var(--background);
    background-size: auto, 110px 110px, auto;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--background) 0%, rgba(248, 250, 249, .55) 40%, var(--background) 100%);
    pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; }
[dir="ltr"] .hero { --hero-glow-x: 15%; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--space-8);
    align-items: center;
}
.hero__title { margin-block: var(--space-4) var(--space-5); }
.hero__title em {
    font-style: normal;
    color: var(--secondary);
    position: relative;
}
.hero__lead {
    font-size: 1.12rem;
    max-width: 56ch;
    margin-bottom: var(--space-6);
}
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}
.hero__trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
}
.hero__trust-item svg { inline-size: 18px; block-size: 18px; color: var(--accent); flex: none; }

.hero__media { position: relative; }
.hero__media img {
    inline-size: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero__badge {
    position: absolute;
    inset-block-end: -22px;
    inset-inline-start: -22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-inline-size: 260px;
}
.hero__badge-icon {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: 12px;
    background: var(--accent-100);
    color: #8A6416;
    flex: none;
}
.hero__badge-icon svg { inline-size: 22px; block-size: 22px; }
.hero__badge-title { font-weight: 800; color: var(--primary); font-size: .98rem; }
.hero__badge-text { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   PAGE HERO — inner pages
   ========================================================================== */
.page-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 60%, #03130C 100%);
    color: var(--white);
    padding-block: var(--space-6) var(--space-7);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/general/geo-pattern.svg");
    background-size: 110px 110px;
    background-repeat: repeat;
    opacity: .35;
    pointer-events: none;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset-block-start: -140px;
    inset-inline-end: -120px;
    inline-size: 420px;
    block-size: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 164, 65, .22), transparent 62%);
    pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-block: var(--space-3) var(--space-4); max-inline-size: 900px; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-inline-size: 640px; }
.page-hero .eyebrow { color: var(--accent); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: var(--space-4);
}
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .55; }

/* ==========================================================================
   STATISTICS
   ========================================================================== */
.stats {
    background: var(--white);
    border-block: 1px solid var(--border);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: var(--space-7) var(--space-5);
    text-align: center;
    border-inline-start: 1px solid var(--border);
}
.stat:first-child { border-inline-start: 0; }
.stat__value {
    font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
/* Opt-in decorative "+" — add .stat--plus only where the figure is a minimum. */
.stat--plus .stat__value > .stat__plus { color: var(--accent); font-size: .7em; }
.stat__label { color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: var(--space-2); }

/* ==========================================================================
   SPLIT / FEATURE SECTION
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
    inline-size: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.split__media { position: relative; }

.pill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}
.pill-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 13px var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    color: var(--primary);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pill-list li:hover { border-color: var(--secondary); transform: translateY(-2px); }
.pill-list svg { inline-size: 20px; block-size: 20px; color: var(--secondary); flex: none; }

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--muted);
    font-size: .98rem;
}
.check-list li + li { margin-top: var(--space-3); }
.check-list svg { inline-size: 20px; block-size: 20px; color: var(--secondary); flex: none; margin-top: 4px; }

/* ==========================================================================
   EVENT CARDS
   ========================================================================== */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--primary-100); }
.event-card__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.event-card__cat {
    position: absolute;
    inset-block-start: var(--space-3);
    inset-inline-start: var(--space-3);
    background: rgba(255, 255, 255, .94);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: .76rem;
    font-weight: 700;
}
.event-card__body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}
.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: .84rem;
    color: var(--muted);
    font-weight: 600;
}
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__meta svg { inline-size: 15px; block-size: 15px; color: var(--secondary); }
.event-card__body h3 { font-size: 1.14rem; }
.event-card__body p { font-size: .94rem; flex: 1; }
.event-card__foot { margin-top: auto; padding-top: var(--space-2); }

/* ==========================================================================
   STAGE CARDS (programs)
   ========================================================================== */
.stage-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    block-size: 100%;
}
.stage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #CFE8DC;
}
.stage-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.stage-card__head .icon-tile { margin-bottom: 0; }
.stage-card:hover .icon-tile { background: var(--primary); color: var(--white); }
.stage-card:hover .icon-tile--accent { background: var(--accent); color: var(--primary-700); }
.stage-card h3 { margin-bottom: 2px; }
.stage-card__age {
    font-size: .86rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-3);
}
.stage-card > p { font-size: .95rem; }
.stage-card__list {
    margin-top: auto;
    padding-top: var(--space-5);
}
.stage-card__list li { font-size: .92rem; }

/* ==========================================================================
   EVENT DETAIL DIALOG
   Native <dialog> — the focus trap, backdrop and Escape handling come free.
   ========================================================================== */
.event-detail {
    inline-size: min(760px, calc(100vw - 2 * var(--space-5)));
    max-block-size: min(88vh, 900px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overflow: hidden auto;
    overscroll-behavior: contain;
}
.event-detail::backdrop {
    background: rgba(10, 34, 55, .55);
    backdrop-filter: blur(3px);
}
.event-detail[open] { animation: dialog-in .28s var(--ease); }
@keyframes dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .event-detail[open] { animation: none; }
}

.event-detail__close {
    position: absolute;
    inset-block-start: var(--space-4);
    inset-inline-end: var(--space-4);
    z-index: 2;
    display: grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.event-detail__close:hover { background: var(--white); transform: scale(1.06); }
.event-detail__close svg { inline-size: 20px; block-size: 20px; }

.event-detail__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--primary-100);
}
.event-detail__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.event-detail__body { padding: var(--space-6); }
.event-detail__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.event-detail__lead {
    margin-top: var(--space-3);
    font-size: 1.04rem;
    color: var(--muted);
}

.event-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-block: var(--space-5);
    padding: var(--space-5);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.event-detail__meta-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.event-detail__meta-icon {
    display: grid;
    place-items: center;
    inline-size: 36px;
    block-size: 36px;
    border-radius: 11px;
    background: var(--secondary-100);
    color: var(--secondary);
    flex: none;
}
.event-detail__meta-icon svg { inline-size: 18px; block-size: 18px; }
.event-detail__meta-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .03em;
}
.event-detail__meta-value {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
}

.event-detail__text p + p { margin-top: var(--space-4); }
.event-detail__body h3 { margin-block: var(--space-6) var(--space-4); }

.event-detail__foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

/* Upcoming / past scope tabs */
.scope-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: var(--space-5);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    max-inline-size: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.scope-tabs::-webkit-scrollbar { display: none; }
.scope-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .93rem;
    color: var(--muted);
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.scope-tab:hover { color: var(--primary); }
.scope-tab.is-active { background: var(--primary); color: var(--white); }
.scope-tab__count {
    display: inline-grid;
    place-items: center;
    min-inline-size: 22px;
    padding-inline: 6px;
    block-size: 22px;
    border-radius: var(--radius-pill);
    background: var(--primary-100);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
}
.scope-tab.is-active .scope-tab__count { background: rgba(255, 255, 255, .22); color: var(--white); }

/* Past events stay legible but visibly de-emphasised. */
.event-card.is-past .event-card__media img { filter: grayscale(.55); opacity: .85; }
.event-card__ended {
    position: absolute;
    inset-block-start: var(--space-3);
    inset-inline-end: var(--space-3);
    background: rgba(23, 33, 43, .82);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: .74rem;
    font-weight: 700;
}

/* Events toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}
.search-field { position: relative; flex: 1 1 320px; max-inline-size: 420px; }
.search-field svg {
    position: absolute;
    inset-inline-start: 16px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: 19px;
    block-size: 19px;
    color: var(--muted);
    pointer-events: none;
}
.search-field input { padding-inline-start: 46px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 600;
    font-size: .9rem;
    color: var(--muted);
    transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--secondary); color: var(--secondary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.results-count { font-size: .92rem; color: var(--muted); margin-bottom: var(--space-5); font-weight: 600; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-8) var(--space-5);
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.empty-state svg { inline-size: 46px; block-size: 46px; color: var(--muted); margin: 0 auto var(--space-4); }

/* ==========================================================================
   JOB CARDS
   ========================================================================== */
.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-xs);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.job-card:hover { border-color: #CFE8DC; box-shadow: var(--shadow-sm); }
.job-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: flex-start;
    justify-content: space-between;
}
.job-card__title { margin-bottom: var(--space-3); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.job-card__desc { margin-top: var(--space-4); font-size: .96rem; }

.job-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-weight: 700;
    color: var(--secondary);
    font-size: .93rem;
}
.job-card__toggle svg { inline-size: 16px; block-size: 16px; transition: transform .25s var(--ease); }
.job-card__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.job-card__details {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px dashed var(--border);
}
.job-card__details[hidden] { display: none; }
.job-card__details h4 { margin-bottom: var(--space-3); color: var(--primary); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
    font-weight: 600;
    font-size: .92rem;
    color: var(--text);
}
.field .req { color: var(--danger); margin-inline-start: 2px; }
.field .hint { font-size: .82rem; color: var(--muted); }

.input,
.select,
.textarea,
.file-input {
    inline-size: 100%;
    padding: 13px var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: .97rem;
    color: var(--text);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: #93A399; }
.input:focus,
.select:focus,
.textarea:focus,
.file-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(30, 106, 141, .12);
}
.textarea { min-block-size: 140px; resize: vertical; line-height: 1.7; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left 16px center;
    padding-inline-end: 46px;
}
[dir="ltr"] .select { background-position: right 16px center; padding-inline-end: 46px; }

.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea,
.field--invalid .file-input { border-color: var(--danger); }

.error-msg {
    font-size: .84rem;
    color: var(--danger);
    font-weight: 600;
    min-block-size: 0;
}
.error-msg:empty { display: none; }

/* Radio group */
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.radio-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 11px var(--space-5);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: .94rem;
    transition: all .2s var(--ease);
}
.radio-pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.radio-pill:hover { border-color: var(--secondary); }
.radio-pill:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-100);
    color: var(--primary);
}
.radio-pill:has(input:focus-visible) { outline: 3px solid var(--secondary); outline-offset: 3px; }

/* File input */
.file-drop {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--background);
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.file-drop:hover { border-color: var(--secondary); background: var(--secondary-100); }
.file-drop svg { inline-size: 26px; block-size: 26px; color: var(--secondary); flex: none; }
.file-drop input[type="file"] { position: absolute; opacity: 0; inline-size: .1px; block-size: .1px; }
.file-drop__title { font-weight: 700; color: var(--primary); font-size: .95rem; }
.file-drop__hint { font-size: .82rem; color: var(--muted); }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    font-size: .94rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.alert svg { inline-size: 20px; block-size: 20px; flex: none; margin-top: 2px; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: #BFE5CC; }
.alert--error { background: var(--danger-bg); color: var(--danger); border-color: #F3C7C2; }
.alert--info { background: var(--secondary-100); color: var(--secondary); border-color: #C7E4D4; }
.alert[hidden] { display: none; }

/* ==========================================================================
   ACHIEVEMENT CARDS
   ========================================================================== */
.achievement-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.achievement-card__icon {
    display: grid;
    place-items: center;
    inline-size: 64px;
    block-size: 64px;
    border-radius: 50%;
    background: var(--islamic-green-light);
    color: var(--islamic-green);
    margin: 0 auto var(--space-4);
}
.achievement-card__icon svg { inline-size: 32px; block-size: 32px; }
.achievement-card h3 { margin-bottom: var(--space-3); color: var(--primary); }
.achievement-card p { font-size: .95rem; margin-bottom: var(--space-4); }
.achievement-card__stat {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-100);
    color: #8A6416;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .85rem;
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.testimonial-card__content {
    margin-bottom: var(--space-5);
    position: relative;
}
.testimonial-card__content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    font-style: italic;
}
.testimonial-card__content::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    inset-block-start: -16px;
    inset-inline-start: -8px;
    font-family: Georgia, serif;
}
.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.testimonial-card__name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}
.testimonial-card__role {
    font-size: .85rem;
    color: var(--muted);
}

/* ==========================================================================
   PRINCIPAL MESSAGE
   ========================================================================== */
.principal-message {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-8);
    align-items: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}
.principal-message__media {
    display: flex;
    justify-content: center;
}
.principal-message__avatar {
    display: grid;
    place-items: center;
    inline-size: 120px;
    block-size: 120px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}
.principal-message__avatar svg { inline-size: 60px; block-size: 60px; }
.principal-message__content h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--primary);
}
.principal-message__role {
    font-size: .95rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--space-5);
}
.principal-message__text p {
    margin-bottom: var(--space-4);
    line-height: 1.9;
    color: var(--muted);
}
.principal-message__signature {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.principal-message__signature span:first-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.principal-message__signature span:last-child {
    font-size: .9rem;
    color: var(--muted);
}

/* ==========================================================================
   TEAM CARDS
   ========================================================================== */
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    height: 100%;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.team-card__avatar {
    display: grid;
    place-items: center;
    inline-size: 80px;
    block-size: 80px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    margin: 0 auto var(--space-4);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.team-card__avatar svg { inline-size: 40px; block-size: 40px; }
.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.team-card__role {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}

/* ==========================================================================
   MAP CONTAINER
   ========================================================================== */
.map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}
.map-info {
    padding: var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: center;
}
.map-info__label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: .95rem;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    overflow: hidden;
    background: var(--white);
    transition: border-color .25s var(--ease);
}
.faq-item:hover {
    border-color: var(--secondary);
}
.faq-question {
    width: 100%;
    padding: var(--space-5);
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: start;
    cursor: pointer;
    transition: background-color .2s var(--ease);
}
.faq-question:hover {
    background-color: var(--background);
}
.faq-question svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform .3s var(--ease);
}
.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--background);
}
.faq-answer p {
    margin: var(--space-4) 0;
    line-height: 1.8;
    color: var(--muted);
}
.faq-answer[hidden] {
    display: none;
}

/* Success panel (forms) */
.success-panel {
    text-align: center;
    padding: var(--space-8) var(--space-5);
}
.success-panel__icon {
    display: grid;
    place-items: center;
    inline-size: 84px;
    block-size: 84px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    margin: 0 auto var(--space-5);
}
.success-panel__icon svg { inline-size: 42px; block-size: 42px; }
.success-panel h2 { margin-bottom: var(--space-3); }
.success-panel p { max-inline-size: 46ch; margin-inline: auto; }
.success-panel .btn-row { justify-content: center; margin-top: var(--space-6); }
.success-panel[hidden] { display: none; }

/* ==========================================================================
   MULTI-STEP FORM (admission)
   ========================================================================== */
.steps {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-7);
}
.step {
    flex: 1;
    text-align: center;
    position: relative;
    color: var(--muted);
}
.step__dot {
    inline-size: 42px;
    block-size: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    font-weight: 800;
    margin: 0 auto var(--space-2);
    position: relative;
    z-index: 1;
    transition: all .25s var(--ease);
}
.step__dot svg { inline-size: 20px; block-size: 20px; }
.step__label { font-size: .84rem; font-weight: 600; }
.step::before {
    content: "";
    position: absolute;
    inset-block-start: 21px;
    inset-inline-start: -50%;
    inline-size: 100%;
    block-size: 2px;
    background: var(--border);
    z-index: 0;
}
.step:first-child::before { display: none; }
.step.is-active { color: var(--primary); }
.step.is-active .step__dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.step.is-done { color: var(--secondary); }
.step.is-done .step__dot { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.step.is-done::before { background: var(--secondary); }

.progress-track {
    block-size: 6px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: var(--space-6);
}
.progress-bar {
    block-size: 100%;
    inline-size: 20%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: var(--radius-pill);
    transition: inline-size .35s var(--ease);
}

.fieldset { border: 0; }
.fieldset[hidden] { display: none; }
.fieldset__title { margin-bottom: var(--space-2); }
.fieldset__desc { margin-bottom: var(--space-6); font-size: .96rem; }

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

/* Review summary */
.summary-group + .summary-group { margin-top: var(--space-5); }
.summary-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.summary-group__head h4 { color: var(--primary); }
.summary-list {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.summary-list div {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: space-between;
    padding: 12px var(--space-4);
    font-size: .93rem;
}
.summary-list div + div { border-top: 1px solid var(--border); }
.summary-list dt { color: var(--muted); font-weight: 600; }
.summary-list dd { color: var(--text); font-weight: 700; text-align: end; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-7);
    align-items: start;
}
.info-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.info-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.info-card__icon {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 13px;
    background: var(--secondary-100);
    color: var(--secondary);
    flex: none;
}
.info-card__icon svg { inline-size: 22px; block-size: 22px; }
.info-card__title { font-weight: 700; color: var(--primary); font-size: .96rem; margin-bottom: 2px; }
.info-card__value { color: var(--muted); font-size: .93rem; direction: ltr; text-align: start; }
[dir="rtl"] .info-card__value--rtl { direction: rtl; }

.map-placeholder {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
}
.map-placeholder img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.map-placeholder__label {
    position: absolute;
    inset-block-end: var(--space-4);
    inset-inline-start: var(--space-4);
    background: rgba(255, 255, 255, .94);
    padding: 10px var(--space-4);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .88rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-8) var(--space-7);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-band::before {
    inline-size: 300px; block-size: 300px;
    inset-block-start: -120px; inset-inline-start: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
}
.cta-band::after {
    inline-size: 340px; block-size: 340px;
    inset-block-end: -160px; inset-inline-end: -90px;
    background: radial-gradient(circle, rgba(217, 164, 65, .3), transparent 65%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .85); max-inline-size: 56ch; margin: var(--space-4) auto var(--space-6); }
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   VALUES / TIMELINE (about)
   ========================================================================== */
.value-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.value-card__icon {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 13px;
    background: var(--accent-100);
    color: #8A6416;
    flex: none;
}
.value-card__icon svg { inline-size: 21px; block-size: 21px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.value-card p { font-size: .92rem; }

.timeline { position: relative; padding-inline-start: var(--space-6); }
.timeline::before {
    content: "";
    position: absolute;
    inset-block: 6px;
    inset-inline-start: 5px;
    inline-size: 2px;
    background: linear-gradient(var(--secondary), var(--primary-100));
}
.timeline li { position: relative; padding-bottom: var(--space-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    inset-block-start: 8px;
    inset-inline-start: calc(-1 * var(--space-6) + 0px);
    inline-size: 12px;
    block-size: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--secondary);
}
.timeline__year { font-weight: 800; color: var(--accent); font-size: .9rem; }
.timeline h3 { font-size: 1.08rem; margin-block: 2px var(--space-2); }
.timeline p { font-size: .95rem; }

/* Vision / mission tiles */
.vm-card {
    padding: var(--space-7);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.vm-card--dark {
    background: linear-gradient(150deg, var(--primary), var(--primary-700));
    border-color: transparent;
    color: var(--white);
}
.vm-card--dark h3,
.vm-card--dark h2 { color: var(--white); }
.vm-card--dark p { color: rgba(255, 255, 255, .84); }
.vm-card--dark .icon-tile { background: rgba(255, 255, 255, .12); color: var(--accent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--primary-700);
    color: rgba(255, 255, 255, .78);
    padding-block: var(--space-8) var(--space-5);
    margin-top: var(--space-9);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/general/geo-pattern.svg");
    background-size: 180px 180px;
    background-repeat: repeat;
    opacity: .06;
    pointer-events: none;
}
.footer > .container {
    position: relative;
    z-index: 1;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: var(--space-7);
    padding-bottom: var(--space-7);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer .brand__name { color: var(--white); }
.footer .brand__sub { color: rgba(255, 255, 255, .6); }
.footer__about { margin-top: var(--space-4); font-size: .94rem; color: rgba(255, 255, 255, .72); max-inline-size: 42ch; }
.footer h4 {
    color: var(--white);
    font-size: .98rem;
    margin-bottom: var(--space-4);
}
.footer__links li + li { margin-top: 10px; }
.footer__links a { font-size: .94rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__contact li {
    display: flex;
    gap: var(--space-3);
    font-size: .94rem;
    align-items: flex-start;
}
.footer__contact li + li { margin-top: var(--space-3); }
.footer__contact svg { inline-size: 18px; block-size: 18px; color: var(--accent); flex: none; margin-top: 4px; }

.socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.socials a {
    display: grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
    color: var(--white);
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--accent); color: var(--primary-700); transform: translateY(-2px); }
.socials svg { inline-size: 19px; block-size: 19px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-5);
    font-size: .88rem;
}
.footer .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .2); }
.footer .lang-switch__btn { color: rgba(255, 255, 255, .7); }
.footer .lang-switch__btn.is-active { background: var(--accent); color: var(--primary-700); }

/* Back to top */
.to-top {
    position: fixed;
    inset-block-end: var(--space-5);
    inset-inline-end: var(--space-5);
    z-index: 90;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--secondary); }
.to-top svg { inline-size: 20px; block-size: 20px; }

/* ==========================================================================
   TOP ANNOUNCEMENT BAR (AZHARI SECTOR & ADMISSIONS)
   ========================================================================== */
.topbar {
    background: var(--primary-800);
    color: rgba(255, 255, 255, .9);
    font-size: .84rem;
    padding-block: 7px;
    border-bottom: 1px solid rgba(197, 154, 39, .25);
    position: relative;
    z-index: 101;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.topbar__announcement {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
}
.topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 154, 39, .18);
    color: var(--accent-light);
    border: 1px solid rgba(197, 154, 39, .35);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .78rem;
}
.topbar__link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 700;
    transition: color .2s var(--ease);
}
.topbar__link:hover { color: var(--white); }
.topbar__quick {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.topbar__quick-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
    transition: color .2s var(--ease);
}
.topbar__quick-item:hover { color: var(--accent); }
.topbar__quick-item svg {
    inline-size: 14px;
    block-size: 14px;
    color: var(--accent);
}

/* ==========================================================================
   QURAN MEMORIZATION & TAJWEED ACADEMY (KUTTAB AL-NOOR)
   ========================================================================== */
.quran-band {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary) 50%, #083E26 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(197, 154, 39, .3);
}
.quran-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(197, 154, 39, .18) 0%, transparent 60%),
                      radial-gradient(circle at 10% 90%, rgba(13, 92, 58, .3) 0%, transparent 60%),
                      url("../images/general/geo-pattern.svg");
    background-size: auto, auto, 110px 110px;
    background-repeat: no-repeat, no-repeat, repeat;
    opacity: .5;
    pointer-events: none;
}
.quran-band__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-7);
    align-items: center;
    position: relative;
    z-index: 1;
}
.quran-band h2 {
    color: var(--white);
    margin-bottom: var(--space-3);
}
.quran-band p {
    color: rgba(255, 255, 255, .84);
    font-size: 1.05rem;
    margin-bottom: var(--space-5);
}
.quran-quote {
    background: rgba(255, 255, 255, .08);
    border-inline-start: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent-light);
}
[dir="rtl"] .quran-quote {
    border-inline-start: 4px solid var(--accent);
    border-inline-end: 0;
}
.quran-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.quran-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: rgba(255, 255, 255, .06);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .1);
}
.quran-feature-item svg {
    inline-size: 20px;
    block-size: 20px;
    color: var(--accent);
    flex: none;
    margin-top: 3px;
}
.quran-feature-item strong {
    display: block;
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 2px;
}
.quran-feature-item span {
    font-size: .84rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
}
.quran-badge-card {
    background: rgba(255, 255, 255, .98);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    border: 2px solid var(--accent);
    text-align: center;
}
.quran-badge-card__icon {
    inline-size: 64px;
    block-size: 64px;
    border-radius: 50%;
    background: var(--accent-100);
    color: var(--accent-dark);
    display: grid;
    place-items: center;
    margin: 0 auto var(--space-4);
}
.quran-badge-card__icon svg {
    inline-size: 32px;
    block-size: 32px;
}
.quran-badge-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-2);
}
.quran-badge-card p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: var(--space-5);
}

/* ==========================================================================
   AZHAR ADMISSION AGE CALCULATOR
   ========================================================================== */
.azhar-calc {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.azhar-calc::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
}
.azhar-calc__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-7);
    align-items: center;
}
.azhar-calc__head h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-2);
}
.azhar-calc__head p {
    font-size: .96rem;
    margin-bottom: var(--space-4);
}
.azhar-calc__rules {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.azhar-calc__rule-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .88rem;
    color: var(--muted);
}
.azhar-calc__rule-item svg {
    inline-size: 16px;
    block-size: 16px;
    color: var(--secondary);
    flex: none;
}
.azhar-calc__form {
    background: var(--background);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.azhar-calc__inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.azhar-calc__result {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius);
    background: var(--white);
    border: 1.5px solid var(--border);
    display: none;
}
.azhar-calc__result.is-active {
    display: block;
}
.azhar-calc__result--eligible {
    border-color: var(--secondary);
    background: var(--secondary-50);
}
.azhar-calc__result--notice {
    border-color: var(--accent);
    background: var(--accent-50);
}
.azhar-calc__result-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}
.azhar-calc__result-text {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ==========================================================================
   CAIRO BUS TRANSPORT NETWORK
   ========================================================================== */
.bus-routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.bus-route-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bus-route-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.bus-route-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}
.bus-route-card__number {
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bus-route-card__number svg {
    inline-size: 20px;
    block-size: 20px;
}
.bus-route-card h4 {
    color: var(--primary);
    font-size: 1.08rem;
    margin-bottom: var(--space-2);
}
.bus-route-card__stops {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}
.bus-route-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bus-route-card__features span {
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--primary-100);
    color: var(--primary);
}

/* ==========================================================================
   FLOATING WHATSAPP SUPPORT WIDGET (CAIRO QUICK SERVICE)
   ========================================================================== */
.wa-widget {
    position: fixed;
    inset-block-end: calc(var(--space-5) + 60px);
    inset-inline-end: var(--space-5);
    z-index: 95;
}
.wa-widget__btn {
    inline-size: 52px;
    block-size: 52px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    border: none;
}
.wa-widget__btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, .55);
}
.wa-widget__btn svg {
    inline-size: 28px;
    block-size: 28px;
}
.wa-widget__card {
    position: absolute;
    inset-block-end: 64px;
    inset-inline-end: 0;
    inline-size: 320px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: none;
    z-index: 100;
}
.wa-widget__card.is-open {
    display: block;
}
.wa-widget__header {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: var(--white);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wa-widget__header h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}
.wa-widget__header p {
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    margin: 2px 0 0;
}
.wa-widget__close {
    color: var(--white);
    opacity: .8;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.wa-widget__close:hover { opacity: 1; }
.wa-widget__body {
    padding: var(--space-4);
    background: #ECE5DD;
}
.wa-widget__msg {
    background: var(--white);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--text);
    margin-bottom: var(--space-3);
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.wa-widget__quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wa-widget__action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .84rem;
    font-weight: 700;
    color: var(--primary);
    transition: all .18s var(--ease);
    text-align: start;
    cursor: pointer;
}
.wa-widget__action-btn:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
