/* ============================================================
   ALDEEN FOUNDATION — Demo stylesheet
   Brand-faithful: existing #006699 blue + clean whites + Lato.
   This is an UPGRADE of the existing visual identity, not a redesign.
   ============================================================ */

:root {
    /* -- palette ---------------------------------------------- */
    --brand:        #006699;        /* primary — pulled from live site */
    --brand-deep:   #004C73;        /* hero & footer base */
    --brand-darker: #003855;        /* deepest blue */
    --brand-mid:    #2A85B2;        /* hovers, accents */
    --brand-light:  #5BAFCC;        /* highlight */
    --brand-pale:   #E6F0F4;        /* soft surface */
    --brand-tint:   #F4F9FB;        /* lightest surface tint */

    --accent:       #D89B2D;        /* one warm secondary — donate / standout */
    --accent-soft:  #F2E0BB;        /* accent surface */
    --accent-deep:  #A87718;

    --ink:          #1F2A37;        /* body text */
    --ink-soft:     #4B5563;        /* secondary text */
    --ink-faint:    #6B7280;        /* meta text */

    --white:        #FFFFFF;
    --off-white:    #FAFBFC;
    --gray-50:      #F4F6F8;
    --gray-100:     #EAEEF2;
    --gray-200:     #D6DDE3;

    --line:         rgba(0, 102, 153, 0.16);
    --line-soft:    rgba(0, 102, 153, 0.08);
    --line-dark:    rgba(255, 255, 255, 0.14);

    /* -- type ------------------------------------------------- */
    --sans:         "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display:      "Sintony", "Lato", "Helvetica Neue", sans-serif;
    --arabic:       "Amiri", "Tahoma", serif;

    --ease:         cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
html { scroll-behavior: smooth; }

body.a-body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

::selection { background: var(--brand-pale); color: var(--brand-deep); }

/* ============================================================
   Shared atoms
   ============================================================ */

.a-eyebrow {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand);
    display: inline-block;
}

.a-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--brand-deep);
    margin: .4em 0 .35em;
}
.a-title em {
    font-style: normal;
    color: var(--brand);
}

.a-deck {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 58ch;
}

/* Section spacing baseline */
section { padding: clamp(72px, 8vw, 120px) 0; }

/* Buttons */
.a-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px 13px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all .25s var(--ease);
    white-space: nowrap;
}
.a-btn i { font-size: 11px; transition: transform .25s var(--ease); }
.a-btn:hover i { transform: translateX(3px); }

.a-btn--primary {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}
.a-btn--primary:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: var(--white);
}

.a-btn--accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.a-btn--accent:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--white);
}

.a-btn--ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}
.a-btn--ghost:hover {
    background: var(--brand);
    color: var(--white);
}

.a-btn--ghost-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.a-btn--ghost-light:hover {
    background: var(--white);
    color: var(--brand-deep);
}

/* ============================================================
   Header / navigation — white from the start (faithful to original)
   ============================================================ */

.a-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.a-nav.is-solid {
    box-shadow: 0 4px 18px rgba(0, 76, 115, .10);
    padding: 10px 0;
}

.a-nav__inner {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.a-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.a-nav__logo {
    height: 56px;
    width: auto;
    display: block;
}

.a-nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.a-nav__menu a {
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}
.a-nav__menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width .25s var(--ease), left .25s var(--ease);
}
.a-nav__menu a:hover { color: var(--brand); }
.a-nav__menu a:hover::after { width: 100%; left: 0; }

.a-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px !important;
    background: var(--brand);
    color: var(--white) !important;
    border-radius: 2px;
}
.a-nav__cta::after { display: none !important; }
.a-nav__cta:hover {
    background: var(--brand-deep);
    color: var(--white) !important;
}

.a-nav__burger {
    display: none;
    width: 44px; height: 44px;
    background: var(--white);
    border: 1.5px solid var(--brand);
    color: var(--brand);
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    border-radius: 2px;
}
.a-nav__burger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--brand);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* Mobile menu */
.a-nav__mobile {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 95;
    padding: 110px 32px 60px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform .35s var(--ease);
}
.a-nav__mobile.is-open { transform: translateY(0); }
.a-nav__mobile a {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.a-nav__mobile a.is-cta {
    color: var(--white);
    background: var(--brand);
    padding: 16px 20px;
    border-radius: 2px;
    border-bottom: 0;
    text-align: center;
}

/* ============================================================
   Hero
   ============================================================ */

.a-hero {
    position: relative;
    min-height: 92vh;
    padding: 140px 0 90px;
    background: var(--brand-deep);
    color: var(--white);
    overflow: hidden;
}
.a-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.a-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 56, 85, .25) 0%, rgba(0, 56, 85, .45) 100%);
}

.a-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1240px, 92vw);
    margin: 0 auto;
}

.a-hero__since {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255,255,255, .85);
}
.a-hero__since-line {
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.a-hero__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 26px;
    max-width: 18ch;
    color: var(--white);
}
.a-hero__title em {
    font-style: normal;
    color: var(--accent);
}
.a-hero__title-arabic {
    display: block;
    font-family: var(--arabic);
    font-weight: 400;
    font-size: clamp(.95rem, .7rem + 1vw, 1.4rem);
    color: rgba(255,255,255, .55);
    direction: rtl;
    margin-top: 18px;
    line-height: 1.4;
    letter-spacing: 0;
}

.a-hero__deck {
    font-family: var(--sans);
    font-size: clamp(1rem, .9rem + .3vw, 1.13rem);
    line-height: 1.7;
    color: rgba(255,255,255, .88);
    max-width: 52ch;
    margin: 0 0 36px;
    font-weight: 400;
}
.a-hero__deck em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

.a-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.a-hero__meta {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255, .18);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 720px;
}
.a-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.a-hero__meta-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 1.3rem + 1.3vw, 2.4rem);
    line-height: 1;
    color: var(--white);
    letter-spacing: -.01em;
}
.a-hero__meta-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255, .65);
}

/* Hero scroll cue */
.a-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255, .65);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
}
.a-hero__scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, rgba(255,255,255, .7), transparent);
    animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%,100% { transform: scaleY(1); opacity: 1; }
    50%     { transform: scaleY(.5); opacity: .4; }
}

/* ============================================================
   Pillars strip
   ============================================================ */

.a-pillars {
    background: var(--brand-tint);
    padding: clamp(64px, 6vw, 100px) 0;
    position: relative;
}

.a-pillars__inner {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.a-pillars__item {
    padding: 0 36px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.a-pillars__item:first-child { padding-left: 0; }
.a-pillars__item:last-child  { padding-right: 0; border-right: 0; }

.a-pillars__num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 36px;
    color: var(--brand);
    line-height: 1;
    opacity: .35;
}
.a-pillars__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem);
    line-height: 1.2;
    margin: 0;
    color: var(--brand-deep);
    letter-spacing: -.005em;
}
.a-pillars__title em { font-style: normal; color: var(--brand); }
.a-pillars__copy {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0;
}

/* ============================================================
   Programs grid
   ============================================================ */

.a-programs {
    background: var(--white);
    position: relative;
}
.a-programs__head {
    width: min(1240px, 92vw);
    margin: 0 auto 60px;
    text-align: center;
}
.a-programs__head .a-eyebrow { justify-content: center; display: inline-flex; }

.a-programs__grid {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.a-program {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    transition: background .3s var(--ease), border-color .3s var(--ease);
    display: flex;
    flex-direction: column;
    min-height: 440px;
}
.a-program:hover {
    background: var(--brand-tint);
}
.a-program__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-tint);
}
.a-program__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
    display: block;
}
.a-program:hover .a-program__media img {
    transform: scale(1.04);
}
.a-program__body {
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.a-program__num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--brand);
    text-transform: uppercase;
    opacity: .7;
}
.a-program__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--brand-deep);
    margin: 0;
    letter-spacing: -.005em;
}
.a-program__arabic {
    font-family: var(--arabic);
    direction: rtl;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink-faint);
    line-height: 1.3;
    margin: 0;
}
.a-program__copy {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    flex: 1;
}
.a-program__link {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    align-self: flex-start;
    transition: color .25s var(--ease), gap .25s var(--ease);
}
.a-program__link:hover {
    color: var(--brand-deep);
    gap: 14px;
}
.a-program__link i { font-size: 10px; }

/* Blue accent bar between image and body, expands on hover */
.a-program::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0;
    background: var(--brand);
    transition: height .25s var(--ease);
    z-index: 4;
    pointer-events: none;
}
.a-program:hover::after { height: 4px; }

/* ============================================================
   Workshop feature
   ============================================================ */

.a-workshop {
    background: var(--brand-pale);
    position: relative;
    overflow: hidden;
}
.a-workshop__inner {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
    align-items: center;
    position: relative;
}
.a-workshop__media {
    position: relative;
    padding: 14px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 18px 50px rgba(0, 76, 115, .18);
}
.a-workshop__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 2px;
}
.a-workshop__stamp {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    line-height: 1.3;
    box-shadow: 0 6px 20px rgba(168, 119, 24, .35);
    transform: rotate(-6deg);
}
.a-workshop__stamp strong {
    display: block;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-top: 2px;
}

.a-workshop__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--brand-deep);
    margin: 14px 0 6px;
}
.a-workshop__title em { font-style: normal; color: var(--brand); }
.a-workshop__sub {
    font-family: var(--arabic);
    direction: rtl;
    font-size: 1.1rem;
    color: var(--ink-faint);
    margin: 0 0 22px;
}

.a-workshop__meta {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 16px 0 26px;
}
.a-workshop__meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.a-workshop__meta-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand);
}
.a-workshop__meta-value {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-deep);
    line-height: 1.2;
}

.a-workshop__copy {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 28px;
    max-width: 50ch;
}

/* ============================================================
   Timeline (1991 → today)
   ============================================================ */

.a-timeline {
    background: var(--brand-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.a-timeline::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(91, 175, 204, .15), transparent 55%);
    pointer-events: none;
}
.a-timeline__head {
    width: min(1240px, 92vw);
    margin: 0 auto 70px;
    text-align: center;
    position: relative;
}
.a-timeline__head .a-eyebrow {
    color: var(--brand-light);
    justify-content: center;
    display: inline-flex;
}
.a-timeline__head .a-eyebrow::before { background: var(--brand-light); }
.a-timeline__head .a-title { color: var(--white); }
.a-timeline__head .a-title em { color: var(--accent); }
.a-timeline__head .a-deck { color: rgba(255,255,255, .75); margin: 0 auto; }

.a-timeline__rail {
    width: min(1240px, 92vw);
    margin: 0 auto;
    position: relative;
}
.a-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--brand-light) 12%, var(--brand-light) 88%, transparent);
    transform: translateX(-50%);
    opacity: .4;
}
.a-timeline__items {
    display: flex;
    flex-direction: column;
    gap: 56px;
    position: relative;
}
.a-timeline__item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    gap: 0;
}
.a-timeline__year {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.3rem + 1.3vw, 2.5rem);
    color: var(--accent);
    line-height: 1;
    letter-spacing: -.01em;
}
.a-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(216, 155, 45, .18);
    justify-self: center;
    margin-top: 10px;
    position: relative;
}
.a-timeline__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.a-timeline__body h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
    line-height: 1.25;
}
.a-timeline__body p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255, .72);
    margin: 0;
}

/* Alternating sides */
.a-timeline__item--right .a-timeline__year {
    grid-column: 1;
    text-align: right;
    padding-right: 32px;
}
.a-timeline__item--right .a-timeline__body {
    grid-column: 3;
    padding-left: 32px;
}
.a-timeline__item--left .a-timeline__body {
    grid-column: 1;
    padding-right: 32px;
    text-align: right;
    align-items: flex-end;
}
.a-timeline__item--left .a-timeline__year {
    grid-column: 3;
    text-align: left;
    padding-left: 32px;
}

/* ============================================================
   Arabic Reader Library spotlight
   ============================================================ */

.a-library {
    background: var(--off-white);
    position: relative;
}
.a-library__inner {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
}
.a-library__stack {
    position: relative;
    aspect-ratio: 4 / 5;
}
.a-library__book {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-color: var(--brand-deep);
    border: 1px solid var(--brand);
    border-radius: 2px;
    box-shadow: 0 22px 50px rgba(0, 76, 115, .22);
    transition: transform .5s var(--ease);
}
.a-library__book::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255, .07) 0%, transparent 60%);
    border-radius: 2px;
}
.a-library__book--1 {
    top: 0; right: 8%;
    width: 58%; height: 75%;
    background-image: url('../images/card-library-1.jpg');
    transform: rotate(4deg);
    z-index: 3;
}
.a-library__book--2 {
    top: 18%; left: 4%;
    width: 50%; height: 70%;
    background-image: url('../images/card-library-2.jpg');
    transform: rotate(-6deg);
    z-index: 2;
}
.a-library__book--3 {
    bottom: 0; right: 14%;
    width: 44%; height: 55%;
    background-image: url('../images/card-library-3.jpg');
    transform: rotate(2deg);
    z-index: 1;
}
.a-library__stack:hover .a-library__book--1 { transform: rotate(6deg) translateY(-6px); }
.a-library__stack:hover .a-library__book--2 { transform: rotate(-8deg) translateY(-4px); }
.a-library__stack:hover .a-library__book--3 { transform: rotate(4deg) translateY(-2px); }

.a-library__stack-tag {
    position: absolute;
    bottom: -16px;
    left: 0;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--off-white);
    padding: 4px 14px;
    z-index: 5;
}

.a-library__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
    line-height: 1.1;
    color: var(--brand-deep);
    margin: 14px 0 6px;
    letter-spacing: -.015em;
}
.a-library__title em { font-style: normal; color: var(--brand); }
.a-library__sub {
    font-family: var(--arabic);
    direction: rtl;
    font-size: 1.2rem;
    color: var(--ink-faint);
    margin: 0 0 22px;
}
.a-library__copy {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 22px;
    max-width: 50ch;
}
.a-library__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0 32px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.a-library__fact-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -.01em;
}
.a-library__fact-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 6px;
}

/* ============================================================
   Voices (testimonials)
   ============================================================ */

.a-voices {
    background: var(--brand-tint);
    position: relative;
}
.a-voices__head {
    width: min(1240px, 92vw);
    margin: 0 auto 60px;
    text-align: center;
}
.a-voices__head .a-eyebrow {
    justify-content: center;
    display: inline-flex;
}

.a-voices__grid {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.a-voice {
    padding: 0 36px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
}
.a-voice:first-child { padding-left: 0; }
.a-voice:last-child  { padding-right: 0; border-right: 0; }

.a-voice__mark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 56px;
    line-height: .6;
    color: var(--brand);
    opacity: .35;
    height: 22px;
}
.a-voice__quote {
    font-family: var(--display);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.55;
    color: var(--brand-deep);
    margin: 0;
}
.a-voice__quote em {
    font-style: normal;
    color: var(--brand);
    font-weight: 700;
}
.a-voice__byline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.a-voice__byline-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--brand-deep);
    letter-spacing: .02em;
}
.a-voice__byline-role {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--ink-faint);
    letter-spacing: .02em;
}

/* ============================================================
   Portals (login hub)
   ============================================================ */

.a-portals {
    background: var(--white);
    position: relative;
}
.a-portals__head {
    width: min(1240px, 92vw);
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 40px;
}
.a-portals__head h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.25rem + 1.3vw, 2.4rem);
    line-height: 1.15;
    color: var(--brand-deep);
    margin: .35em 0 0;
    letter-spacing: -.012em;
}
.a-portals__head h2 em { font-style: normal; color: var(--brand); }
.a-portals__head p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0;
    max-width: 44ch;
    justify-self: end;
}

.a-portals__grid {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.a-portal {
    background: var(--white);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background .3s var(--ease), color .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.a-portal__icon {
    width: 46px; height: 46px;
    background: var(--brand-pale);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 18px;
    border-radius: 2px;
    transition: all .3s var(--ease);
}
.a-portal__label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand);
    margin-top: 4px;
    opacity: .8;
}
.a-portal__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-deep);
    margin: 0;
    line-height: 1.2;
}
.a-portal__link {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-top: auto;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .25s var(--ease), gap .25s var(--ease);
}
.a-portal__link i { font-size: 10px; }
.a-portal:hover {
    background: var(--brand);
    color: var(--white);
}
.a-portal:hover .a-portal__title { color: var(--white); }
.a-portal:hover .a-portal__label { color: rgba(255,255,255,.85); }
.a-portal:hover .a-portal__link  { color: var(--white); gap: 14px; }
.a-portal:hover .a-portal__icon  {
    background: rgba(255,255,255,.18);
    color: var(--white);
}

/* ============================================================
   Footer
   ============================================================ */

.a-foot {
    background: var(--brand-darker);
    color: var(--white);
    padding: 80px 0 24px;
    position: relative;
}
.a-foot__cta {
    width: min(1240px, 92vw);
    margin: 0 auto 64px;
    padding: 50px 48px;
    background: var(--brand-deep);
    border: 1px solid rgba(255,255,255, .14);
    border-left: 4px solid var(--accent);
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.a-foot__cta-eyebrow {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 12px;
}
.a-foot__cta h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
    line-height: 1.18;
    margin: 0;
    color: var(--white);
    max-width: 24ch;
    letter-spacing: -.012em;
}
.a-foot__cta h3 em { font-style: normal; color: var(--accent); }

.a-foot__inner {
    width: min(1240px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255, .14);
}
.a-foot__brand-word {
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 4px;
    line-height: 1.1;
}
.a-foot__brand-sub {
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255, .55);
    margin: 0 0 22px;
}
.a-foot__brand-blurb {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255, .72);
    margin: 0 0 22px;
    max-width: 38ch;
}
.a-foot__partners {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.a-foot__partner {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .2em;
    color: rgba(255,255,255, .8);
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255, .25);
    text-transform: uppercase;
    border-radius: 2px;
}

.a-foot__col h4 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
}
.a-foot__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.a-foot__col a {
    font-family: var(--sans);
    font-size: 14px;
    color: rgba(255,255,255, .72);
    transition: color .2s var(--ease);
}
.a-foot__col a:hover { color: var(--white); }

.a-foot__bottom {
    width: min(1240px, 92vw);
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: rgba(255,255,255, .55);
    letter-spacing: .02em;
    flex-wrap: wrap;
}
.a-foot__bottom a { color: rgba(255,255,255, .72); }
.a-foot__bottom a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .a-hero__meta { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .a-pillars__inner { grid-template-columns: 1fr; gap: 36px; }
    .a-pillars__item {
        padding: 28px 0 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .a-pillars__item:first-child {
        padding-top: 0;
        border-top: 0;
    }
    .a-programs__grid { grid-template-columns: repeat(2, 1fr); }
    .a-workshop__inner { grid-template-columns: 1fr; gap: 50px; }
    .a-library__inner  { grid-template-columns: 1fr; gap: 60px; }
    .a-voices__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .a-voice {
        padding: 28px 0 0;
        border-right: 0;
        border-top: 1px solid var(--line);
    }
    .a-voice:first-child {
        padding-top: 0;
        border-top: 0;
    }
    .a-portals__grid { grid-template-columns: repeat(2, 1fr); }
    .a-portals__head { grid-template-columns: 1fr; }
    .a-portals__head p { justify-self: start; }
    .a-foot__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
    .a-foot__cta { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.a-body { font-size: 16px; }
    .a-nav__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    .a-nav__menu { display: none; }
    .a-nav__burger { display: flex; }
    .a-nav__cta { display: none; }
    .a-nav__logo { height: 44px; }

    .a-hero { padding: 120px 0 70px; min-height: auto; }
    .a-hero__meta { grid-template-columns: 1fr; gap: 22px; }
    .a-hero__cta { flex-direction: column; align-items: stretch; }
    .a-hero__cta .a-btn { justify-content: center; }

    .a-programs__grid { grid-template-columns: 1fr; }
    .a-program { min-height: 0; }

    .a-workshop__media { box-shadow: 0 10px 30px rgba(0, 76, 115, .15); }
    .a-workshop__stamp {
        width: 86px; height: 86px;
        font-size: 9px;
        top: -14px; right: -8px;
    }
    .a-workshop__stamp strong { font-size: 15px; }
    .a-workshop__meta { grid-template-columns: 1fr 1fr; gap: 18px; }

    .a-timeline__item {
        grid-template-columns: 30px 1fr;
        gap: 14px;
    }
    .a-timeline__line { left: 15px; transform: none; }
    .a-timeline__dot { grid-column: 1; margin-top: 8px; }
    .a-timeline__item--left .a-timeline__body,
    .a-timeline__item--right .a-timeline__body {
        grid-column: 2;
        padding: 0;
        text-align: left;
        align-items: flex-start;
    }
    .a-timeline__item--left .a-timeline__year,
    .a-timeline__item--right .a-timeline__year {
        grid-column: 2;
        text-align: left;
        padding: 0;
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .a-library__facts { grid-template-columns: 1fr; gap: 14px; }
    .a-portals__grid  { grid-template-columns: 1fr; }
    .a-foot__inner    { grid-template-columns: 1fr; gap: 32px; }
    .a-foot__cta      { padding: 32px 24px; }
    .a-foot__bottom   { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .a-hero__title-arabic { display: none; }
    .a-hero__since { font-size: 10px; }
    section { padding: 60px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Hero background OPTIONS (/option1 … /option5 review pages)
   opt0 = original classroom photo · opt1/opt2 = alternate photos
   opt3–opt5 = pure CSS treatments (photo layer hidden)
   ============================================================ */

/* opt1 — library photo: warmer, stronger left scrim for the headline */
.a-hero--opt1 .a-hero__bg::after {
    background: linear-gradient(90deg, rgba(0, 34, 51, .72) 0%, rgba(0, 34, 51, .42) 45%, rgba(0, 34, 51, .05) 78%, transparent 100%);
}

/* opt2 — calligraphy photo: already moody, keep extra scrim minimal */
.a-hero--opt2 .a-hero__bg::after {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 22, 34, .35) 100%);
}

/* CSS-treatment variants: kill the photo layer + its scrim */
.a-hero--opt3 .a-hero__bg,
.a-hero--opt4 .a-hero__bg,
.a-hero--opt5 .a-hero__bg { display: none; }

/* opt3 — "Geometric night": deep navy + faint eight-point star lattice + glows */
.a-hero--opt3 {
    background:
        radial-gradient(900px 600px at 85% 12%, rgba(216, 155, 45, .16), transparent 65%),
        radial-gradient(1100px 800px at 8% 95%, rgba(42, 133, 178, .28), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(165deg, #012A40 0%, #003855 55%, #00476B 100%);
}

/* opt4 — "Brand aurora": clean layered brand-blue gradient, no pattern, no photo */
.a-hero--opt4 {
    background:
        radial-gradient(1000px 650px at 88% 8%, rgba(216, 155, 45, .22), transparent 62%),
        radial-gradient(1200px 900px at 0% 0%, rgba(0, 42, 64, .55), transparent 55%),
        radial-gradient(1200px 900px at 0% 100%, rgba(91, 175, 204, .35), transparent 58%),
        radial-gradient(700px 500px at 55% 55%, rgba(0, 102, 153, .5), transparent 70%),
        linear-gradient(160deg, #003855 0%, #004C73 48%, #006699 100%);
}

/* opt5 — "Ivory manuscript": light paper hero, dark text, faint blue lattice */
.a-hero--opt5 {
    background:
        radial-gradient(1000px 600px at 80% 0%, rgba(255, 255, 255, .9), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='rgba(0,102,153,0.07)' stroke-width='1'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #FBF8F1 0%, #F4EEE1 100%);
    color: var(--ink);
}
.a-hero--opt5 .a-hero__since        { color: var(--brand-deep); }
.a-hero--opt5 .a-hero__title        { color: var(--brand-darker); }
.a-hero--opt5 .a-hero__title em     { color: var(--accent-deep); }
.a-hero--opt5 .a-hero__title-arabic { color: rgba(0, 76, 115, .55); }
.a-hero--opt5 .a-hero__deck         { color: var(--ink-soft); }
.a-hero--opt5 .a-hero__deck em      { color: var(--accent-deep); }
.a-hero--opt5 .a-hero__meta         { border-top-color: var(--line); }
.a-hero--opt5 .a-hero__meta-num     { color: var(--brand-deep); }
.a-hero--opt5 .a-hero__meta-label   { color: var(--ink-faint); }
.a-hero--opt5 .a-btn--ghost-light   { color: var(--brand-deep); border-color: var(--brand-deep); }
.a-hero--opt5 .a-btn--ghost-light:hover { background: var(--brand-deep); color: var(--white); }
.a-hero--opt5 .a-hero__scroll       { color: rgba(0, 76, 115, .6); }
.a-hero--opt5 .a-hero__scroll-line  { background: linear-gradient(180deg, rgba(0, 76, 115, .6), transparent); }

/* ============================================================
   Option switcher pill (review pages only)
   ============================================================ */
.a-optbar {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(0, 40, 60, .92);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 20, 30, .35);
    backdrop-filter: blur(6px);
    font-family: var(--sans);
}
.a-optbar__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-right: 8px;
}
.a-optbar__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.a-optbar__item:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.a-optbar__item.is-active { background: var(--accent); color: #1F2A37; }
