/* =====================================================================
   Markaz Frontend — Islamic-institute, modern, light, professional.
   Palette:
       Saffron   #FA961C   primary CTA / energy
       Lilac     #DD7AD5   secondary accent
       Teal      #1FC3B9   knowledge / accent
       Indigo    #24215C   authority / text / hero
   Pure CSS only.
   ===================================================================== */

:root {
    --saffron:      #FA961C;
    --saffron-soft: #FFE3BD;
    --saffron-deep: #C77410;
    --gold:         #B8862B;
    --gold-soft:    #F0DEB0;
    --lilac:        #DD7AD5;
    --lilac-soft:   #FBE2F8;
    --lilac-deep:   #A14C9A;
    --teal:         #1FC3B9;
    --teal-soft:    #C7F1ED;
    --teal-deep:    #11756E;
    --indigo:       #24215C;
    --indigo-soft:  #E6E5F3;
    --indigo-deep:  #16143A;

    --bg:        #FFFFFF;
    --bg-soft:   #FCFBF7;
    --bg-tint:   #F5F2E9;
    --bg-card:   #FFFFFF;
    --border:    #ECEAE0;
    --border-strong: #D9D5C5;

    --text:      #1B1A3C;
    --text-soft: #4A4870;
    --muted:     #8B8A9F;

    --primary:   var(--indigo);
    --accent:    var(--saffron);

    --radius:    18px;
    --radius-sm: 10px;
    --shadow:    0 30px 60px rgba(36, 33, 92, .08);
    --shadow-sm: 0 10px 26px rgba(36, 33, 92, .06);
    --font:      "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Naskh Arabic", Roboto, Arial, sans-serif;
    --serif:     "Cormorant Garamond", "Cormorant Fallback", "Georgia", "Times New Roman", serif;
    --arabic:    "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Amiri", serif;
    --maxw:      1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    background: var(--bg); color: var(--text);
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--indigo); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--indigo);
}
h1 {
    font-size: clamp(26px, 4vw, 44px); font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    text-transform: capitalize;
    letter-spacing: -.01em;
    line-height: 1.18;
    word-break: break-word;
    overflow-wrap: anywhere;
}
h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 700; font-family: var(--font); letter-spacing: -.01em; }

/* ---------- Top announcement bar ---------- */
.top-strip {
    background: var(--indigo-deep);
    color: rgba(255,255,255,.85);
    font-size: 12.5px;
    padding: 10px 0;
    letter-spacing: .04em;
    border-bottom: 1px solid rgba(184,134,43,.25);
}
.top-strip .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px; align-items: center;
}
.top-strip .arabic {
    font-family: var(--arabic);
    font-size: 16px;
    color: var(--gold-soft);
    justify-self: start;
    letter-spacing: 0;
}
.top-strip .datetime {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.07);
    padding: 5px 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    justify-self: center;
    white-space: nowrap;
}
.top-strip .datetime .sep { color: rgba(255,255,255,.35); }
.top-strip .datetime .hijri { color: var(--gold-soft); font-weight: 600; }
.top-strip .datetime .gregorian { color: #fff; }
.top-strip .datetime .time { color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-strip .contact-mini { justify-self: end; color: rgba(255,255,255,.78); }
.top-strip a { color: rgba(255,255,255,.85); }
.top-strip a:hover { color: var(--gold-soft); }
@media (max-width: 760px) {
    .top-strip .container { grid-template-columns: 1fr; text-align: center; gap: 6px; }
    .top-strip .arabic, .top-strip .datetime, .top-strip .contact-mini {
        justify-self: center;
    }
    .top-strip .contact-mini { display: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.brand {
    display: inline-flex; align-items: center; gap: 14px;
    color: var(--indigo);
    font-family: var(--serif);
    font-weight: 700; letter-spacing: -.005em;
    font-size: 19px;
    line-height: 1.1;
}
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(36,33,92,.18), inset 0 0 0 1px rgba(255,255,255,.08);
    font-size: 18px;
    overflow: hidden;
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(184,134,43,.22), transparent 60%);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
    padding: 10px 18px; border-radius: 10px;
    color: var(--text-soft); font-weight: 500; font-size: 14.5px;
    letter-spacing: .01em;
    position: relative;
    transition: all .2s;
}
.nav a:not(.cta)::after {
    content: ""; position: absolute;
    left: 18px; right: 18px; bottom: 4px;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: center;
    transition: transform .25s ease;
}
.nav a:not(.cta):hover { color: var(--indigo); background: transparent; }
.nav a:not(.cta):hover::after { transform: scaleX(1); }
.nav a.cta {
    background: var(--indigo);
    color: #fff;
    margin-left: 8px;
    padding: 10px 22px;
    letter-spacing: .04em;
    box-shadow: 0 6px 18px rgba(36,33,92,.18);
}
.nav a.cta:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(36,33,92,.28); }
.nav-toggle {
    display: none;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    width: 40px; height: 40px; border-radius: 10px;
    font-size: 18px; cursor: pointer; color: var(--indigo);
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1100px 600px at 100% 0%, rgba(184,134,43,.07) 0%, transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(36,33,92,.04) 0%, transparent 60%),
        var(--bg);
    padding: 96px 0 120px;
    overflow: hidden;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23B8862B' stroke-width='.6' opacity='.08'><path d='M40 4 L62 40 L40 76 L18 40 Z'/><circle cx='40' cy='40' r='14'/></g></svg>");
    background-size: 220px 220px;
    background-position: 92% 50%;
    background-repeat: no-repeat;
    opacity: .6;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 64px;
    align-items: center;
    position: relative;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--gold);
    padding: 0;
    font-family: var(--font);
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em;
    margin-bottom: 26px;
    border: 0;
    box-shadow: none;
}
.hero .eyebrow::before {
    content: ""; display: inline-block;
    width: 36px; height: 1px; background: var(--gold);
}
.hero h1 { margin-bottom: 22px; line-height: 1.15; font-size: clamp(28px, 4.4vw, 48px); }
.hero h1 .accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}
.hero .lead { font-size: 18px; color: var(--text-soft); margin: 0 0 18px; max-width: 540px; line-height: 1.75; }
.hero .arabic-line {
    font-family: var(--arabic);
    font-size: 26px;
    color: var(--gold);
    margin: 8px 0 22px;
    line-height: 1.7;
    direction: rtl;
    font-weight: 400;
}
.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Hero artwork — Dr. Jalali portrait in an arched, gold-ringed frame */
.hero-art {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    display: block;
}
.hero-art .frame {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-soft), var(--bg-tint));
    border: 1px solid var(--gold-soft);
    border-radius: 50% 50% 16px 16px / 38% 38% 16px 16px;
    overflow: hidden;
    box-shadow:
        0 32px 70px rgba(36,33,92,.16),
        inset 0 0 0 6px rgba(255,255,255,.85),
        inset 0 0 0 7px var(--gold-soft);
    z-index: 2;
}
.hero-art .frame::before {
    content: ""; position: absolute; inset: 14px;
    border: 1px solid rgba(184,134,43,.4);
    border-radius: 50% 50% 12px 12px / 36% 36% 12px 12px;
    pointer-events: none;
    z-index: 1;
}
.hero-art .ring {
    position: absolute;
    inset: -18px;
    border: 1px dashed var(--gold);
    border-radius: 50% 50% 22px 22px / 38% 38% 22px 22px;
    opacity: .35;
    z-index: 1;
}
.hero-art .portrait {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    top: 4%;
    width: 100%;
    height: 96%;
    object-fit: contain;
    object-position: bottom center;
    z-index: 3;
    filter: drop-shadow(0 20px 32px rgba(36,33,92,.32));
    pointer-events: none;
}
.hero-art .name-tag {
    position: absolute;
    left: 50%; bottom: -24px;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--indigo);
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 15px; font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 14px 30px rgba(36,33,92,.14);
    border: 1px solid var(--gold-soft);
    white-space: nowrap;
    z-index: 4;
    display: inline-flex; align-items: center; gap: 10px;
}
.hero-art .name-tag::before {
    content: ""; width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
}
.hero-art .name-tag::after {
    content: ""; width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 30px; border-radius: 10px;
    border: 1px solid transparent;
    background: var(--bg-soft); color: var(--text);
    cursor: pointer; font-weight: 600; font-size: 14.5px;
    letter-spacing: .04em;
    transition: all .2s ease;
    font-family: inherit;
    line-height: 1.2;
}
.btn:hover { background: var(--bg-tint); }
.btn.primary {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 10px 24px rgba(36,33,92,.18);
    position: relative;
    overflow: hidden;
}
.btn.primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(184,134,43,.25), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.btn.primary:hover::after { transform: translateX(100%); }
.btn.primary:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36,33,92,.28); }
.btn.indigo {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 10px 24px rgba(36,33,92,.18);
}
.btn.indigo:hover { background: var(--indigo-deep); color: #fff; transform: translateY(-2px); }
.btn.ghost {
    background: transparent;
    border-color: var(--gold);
    color: var(--indigo);
}
.btn.ghost:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Stats strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: -60px auto 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    max-width: calc(var(--maxw) - 56px);
    position: relative; z-index: 2;
    overflow: hidden;
}
.stat {
    text-align: center; padding: 36px 20px;
    border-right: 1px solid var(--border);
    position: relative;
    transition: background .2s;
}
.stat:hover { background: var(--bg-soft); }
.stat:last-child { border-right: 0; }
.stat::before {
    content: ""; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 2px;
    background: var(--gold);
}
.stat .num {
    font-family: var(--serif);
    font-size: 44px; font-weight: 600; color: var(--indigo);
    letter-spacing: -.015em; line-height: 1;
}
.stat .lbl {
    color: var(--muted); font-size: 11.5px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .18em;
    margin-top: 10px;
}
@media (max-width: 760px) {
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
    .stat { border-right: 0; border-bottom: 1px solid var(--border); }
    .stat:nth-child(odd) { border-right: 1px solid var(--border); }
    .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--gold);
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em;
    margin-bottom: 18px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
    content: ""; width: 28px; height: 1px; background: var(--gold);
    opacity: .6;
}
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.section-head h2 em { color: var(--gold); font-style: italic; font-weight: 500; }
.section-head p { color: var(--text-soft); margin: 14px auto 0; max-width: 620px; font-size: 17px; line-height: 1.75; }

/* ---------- Features ---------- */
.features { padding: 80px 28px 100px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: ""; position: absolute; left: 50%; top: 0;
    transform: translateX(-50%) scaleX(0);
    width: 60%; height: 2px;
    background: var(--gold);
    transition: transform .3s ease;
    transform-origin: center;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold-soft);
}
.feature:hover::before { transform: translateX(-50%) scaleX(1); }
.feature .ico {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 22px; font-weight: 500;
    transition: background .25s, color .25s;
}
.feature:hover .ico { background: var(--gold); color: #fff; }
.feature h3 {
    font-family: var(--serif);
    color: var(--indigo);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.005em;
    margin-bottom: 10px;
}
.feature p { color: var(--text-soft); margin: 6px 0 0; line-height: 1.7; }

/* ---------- Programs / pillars ---------- */
.pillars {
    padding: 100px 28px;
    background: var(--bg-soft);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pillars::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23B8862B' stroke-width='.5' opacity='.06'><polygon points='60,10 110,40 110,80 60,110 10,80 10,40'/><polygon points='60,30 90,45 90,75 60,90 30,75 30,45'/></g></svg>");
    background-position: center;
    background-size: 240px;
    pointer-events: none;
}
.pillars > .container { position: relative; }
.pillars-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px;
}
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 44px 32px 36px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.pillar .num {
    position: absolute; top: -22px; left: 32px;
    width: 56px; height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--serif);
    font-weight: 600; font-size: 22px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    letter-spacing: 0;
}
.pillar h3 {
    color: var(--indigo);
    font-family: var(--serif);
    font-size: 24px; font-weight: 600;
    margin: 14px 0 12px;
}
.pillar p { color: var(--text-soft); line-height: 1.75; }

/* ---------- Founder / Subscribe section ---------- */
.founder-section {
    padding: 120px 28px;
    background:
        radial-gradient(1200px 600px at 50% 0%, rgba(184,134,43,.06) 0%, transparent 65%),
        var(--bg);
    position: relative;
    overflow: hidden;
}
.founder-section::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%2324215C' stroke-width='.5' opacity='.05'><circle cx='80' cy='80' r='40'/><circle cx='80' cy='80' r='60'/><path d='M80 20 L140 80 L80 140 L20 80 Z'/></g></svg>");
    background-position: 95% 8%, 5% 95%;
    background-size: 320px;
    background-repeat: no-repeat;
    pointer-events: none;
}
.founder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}
.founder-inner .founder-media { order: 1; }
.founder-inner .founder-text  { order: 2; width: 100%; }

/* ---- Text column ---- */
.founder-text .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    background: transparent; color: var(--gold);
    padding: 0;
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em;
    margin-bottom: 20px;
    border: 0;
    box-shadow: none;
}
.founder-text .eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6;
}
.founder-text .eyebrow::after {
    content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .6;
}

.founder-text h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4.8vw, 52px);
    margin: 0 0 12px;
    color: var(--indigo); line-height: 1.12;
    letter-spacing: -.01em;
    font-weight: 600;
}
.founder-text .title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px; font-weight: 500;
    color: var(--gold);
    margin: 0 auto 32px;
    letter-spacing: 0;
    line-height: 1.5;
    max-width: 720px;
    padding-bottom: 22px;
    position: relative;
}
.founder-text .title::after {
    content: "";
    position: absolute; left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 48px; height: 1px;
    background: var(--gold);
}
.founder-text .bio {
    font-size: 17px;
    color: var(--text-soft);
    line-height: 1.9;
    margin: 0 auto 32px;
    text-align: left;
    max-width: 760px;
}
.founder-text .bio strong { color: var(--indigo); font-weight: 600; }
.founder-text .bio em     { color: var(--gold); font-style: italic; font-weight: 500; }

/* ---- YouTube subscribe button — refined elegant ---- */
.btn-youtube {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 32px;
    border-radius: 10px;
    background: var(--indigo);
    color: #fff;
    font-weight: 500; font-size: 14.5px;
    letter-spacing: .06em;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(36,33,92,.2);
    transition: all .25s ease;
    border: 1px solid rgba(255,255,255,.08);
    line-height: 1;
    position: relative;
    overflow: hidden;
}
.btn-youtube::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(184,134,43,.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .7s ease;
}
.btn-youtube:hover::after { transform: translateX(100%); }
.btn-youtube:hover {
    color: #fff;
    transform: translateY(-2px);
    background: var(--indigo-deep);
    box-shadow: 0 16px 36px rgba(36,33,92,.32);
}
.btn-youtube svg { width: 20px; height: 20px; fill: #FF0000; flex-shrink: 0; }

/* ---- Media (centered above text) ---- */
.founder-media {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.founder-media .frame {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 50% 50% 22px 22px / 38% 38% 22px 22px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow:
        0 30px 60px rgba(36, 33, 92, .14),
        inset 0 0 0 8px rgba(255,255,255,.95),
        inset 0 0 0 9px var(--gold-soft);
    border: 1px solid var(--gold-soft);
    z-index: 1;
    transition: transform .4s ease, box-shadow .4s ease;
}
.founder-media:hover .frame {
    transform: translateY(-4px);
    box-shadow:
        0 40px 72px rgba(36, 33, 92, .18),
        inset 0 0 0 8px rgba(255,255,255,.95),
        inset 0 0 0 9px var(--gold);
}
.founder-media .frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}
.founder-media:hover .frame img { transform: scale(1.04); }

/* Refined dashed gold ring behind the frame */
.founder-media::before {
    content: ""; position: absolute;
    inset: -18px;
    border: 1px dashed var(--gold);
    border-radius: 50% 50% 28px 28px / 38% 38% 28px 28px;
    opacity: .4;
    z-index: 0;
}

/* YouTube "watch" chip — refined, calmer */
.founder-media .yt-chip {
    position: absolute; top: 18px; right: 6px;
    background: rgba(36,33,92,.95);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(36,33,92,.3);
    z-index: 3;
    display: inline-flex; align-items: center; gap: 7px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
}
.founder-media .yt-chip svg { width: 12px; height: 12px; fill: var(--gold-soft); }

/* Floating gold ornament — corner accent */
.founder-media .corner-accent {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 6px 14px rgba(36,33,92,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 18px;
}

/* Name badge — refined, hidden on default for cleaner look */
.founder-media .name-badge { display: none; }

@media (max-width: 1000px) {
    .founder-inner { gap: 44px; }
}
@media (max-width: 900px) {
    .founder-section { padding: 60px 22px; }
    .founder-inner { grid-template-columns: 1fr; gap: 50px; }
    .founder-media { max-width: 460px; margin: 0 auto; }
    .founder-media .frame { transform: rotate(0); }
}
@media (max-width: 560px) {
    .founder-media .name-badge { right: 14px; padding: 12px 14px; }
    .founder-media .name-badge .nm { font-size: 14.5px; }
    .founder-media .yt-chip { top: 16px; right: 12px; padding: 6px 12px; font-size: 10.5px; }
    .founder-media .corner-accent { width: 46px; height: 46px; font-size: 18px; }
}

/* ---------- Our Impact section ---------- */
.impact-section {
    padding: 110px 28px;
    background:
        radial-gradient(1000px 500px at 50% 0%, rgba(184,134,43,.05) 0%, transparent 65%),
        var(--bg);
    position: relative;
    overflow: hidden;
}
.impact-section::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%2324215C' stroke-width='.4' opacity='.04'><circle cx='50' cy='50' r='30'/><polygon points='50,15 85,50 50,85 15,50'/></g></svg>");
    background-size: 280px;
    background-position: center;
    pointer-events: none;
}
.impact-section .container { position: relative; }
.impact-section .section-head { max-width: 760px; margin: 0 auto 44px; }
.impact-section .section-head h2 { line-height: 1.15; }
.impact-section .section-head p {
    font-size: 17px; line-height: 1.7; color: var(--text-soft);
}
.impact-section .section-head p strong { color: var(--indigo); }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}
.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 32px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.impact-card::before {
    content: ""; position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: var(--gold);
}
.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold-soft);
}

.impact-card .ico {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 22px;
    position: relative; z-index: 1;
    line-height: 1;
    transition: background .3s, color .3s;
}
.impact-card:hover .ico { background: var(--gold); color: #fff; }
.impact-card .value {
    font-family: var(--serif);
    font-size: clamp(40px, 4.6vw, 54px);
    font-weight: 600;
    color: var(--indigo);
    letter-spacing: -.015em;
    line-height: 1;
    margin: 6px 0 12px;
    position: relative; z-index: 1;
}
.impact-card .label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .22em;
    position: relative; z-index: 1;
}

@media (max-width: 900px) {
    .impact-grid { grid-template-columns: 1fr; gap: 16px; max-width: 460px; }
    .impact-section { padding: 60px 22px; }
    .impact-card { padding: 30px 22px 26px; }
    .impact-card .ico { width: 64px; height: 64px; font-size: 28px; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: var(--indigo-deep);
    color: #fff;
    padding: 110px 0;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%23B8862B' stroke-width='.5' opacity='.12'><polygon points='70,15 125,50 125,90 70,125 15,90 15,50'/><polygon points='70,35 105,55 105,85 70,105 35,85 35,55'/></g></svg>");
    background-size: 280px;
    background-position: center;
    opacity: .6;
    pointer-events: none;
}
.cta-strip::after {
    content: ""; position: absolute; left: 50%; top: 40px;
    transform: translateX(-50%);
    width: 80px; height: 1px; background: var(--gold);
}
.cta-strip .container { position: relative; }
.cta-strip h2 {
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(32px, 4.4vw, 50px);
    font-weight: 500;
    letter-spacing: -.005em;
    margin-bottom: 18px;
}
.cta-strip h2 em { color: var(--gold); font-style: italic; }
.cta-strip p { color: rgba(255,255,255,.78); margin: 0 auto 32px; font-size: 17px; max-width: 600px; line-height: 1.75; }
.cta-strip .btn.primary {
    background: transparent;
    border: 1px solid var(--gold);
    color: #fff;
    box-shadow: none;
    padding: 16px 38px;
}
.cta-strip .btn.primary:hover { background: var(--gold); color: var(--indigo-deep); border-color: var(--gold); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
    background:
        radial-gradient(900px 400px at 50% 0%, rgba(184,134,43,.06) 0%, transparent 65%),
        var(--bg-soft);
    padding: 96px 0 70px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: ""; position: absolute; left: 50%; bottom: -1px;
    transform: translateX(-50%);
    width: 60px; height: 1px; background: var(--gold);
}
.page-hero h1 {
    margin: 0;
    font-size: clamp(24px, 3.6vw, 40px);
    color: var(--indigo);
}
.page-hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.page-hero .crumb {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold); font-size: 11.5px; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .28em; font-weight: 600;
}
.page-hero .crumb::before,
.page-hero .crumb::after { content: ""; width: 24px; height: 1px; background: var(--gold); opacity: .6; }

.content-block { padding: 80px 28px 100px; }
.prose { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 17px; line-height: 1.85; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin-top: 1.6em; color: var(--indigo); font-family: var(--serif); }
.prose h3 { margin-top: 1.4em; color: var(--indigo); }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.prose a:hover { border-bottom-color: var(--gold); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > span {
    font-size: 11.5px; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
}
.field input, .field textarea, .field select {
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 10px;
    padding: 14px 18px; font: inherit; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184,134,43,.12);
    background: #fff;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; line-height: 2.2; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 38px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.contact-form::before {
    content: ""; position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: var(--gold);
}

.alert {
    padding: 12px 16px; border-radius: 10px; margin-bottom: 14px;
    border: 1px solid transparent; font-size: 14px; font-weight: 500;
}
.alert.success { background: var(--teal-soft); color: var(--teal-deep); border-color: rgba(31,195,185,.4); }
.alert.error   { background: #FBE0E4;         color: #962833;          border-color: #F6C7CD; }

/* ---------- Contact info tiles ---------- */
.info-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: -48px auto 60px;
    max-width: calc(var(--maxw) - 56px);
    position: relative; z-index: 3;
}
.info-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(36,33,92,.12); border-color: var(--gold-soft); }
.info-tile::before {
    content: ""; position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--gold);
}
.info-tile .ico {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px; font-weight: 500;
    transition: background .25s, color .25s;
}
.info-tile:hover .ico { background: var(--gold); color: #fff; }
.info-tile h3 {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .22em;
    margin: 0 0 10px; color: var(--muted); font-weight: 600;
    font-family: var(--font);
}
.info-tile .v {
    font-family: var(--serif);
    font-size: 19px; font-weight: 600; color: var(--indigo);
    margin: 0 0 6px; line-height: 1.4; word-break: break-word;
    letter-spacing: -.005em;
}
.info-tile .v a { color: var(--indigo); }
.info-tile .v a:hover { color: var(--gold); }
.info-tile .sub { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Contact main grid */
.contact-main {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    align-items: stretch;
}
.contact-main .contact-form {
    padding: 40px 36px;
}
.contact-main .contact-form h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--indigo);
}
.contact-main .contact-form .lead {
    color: var(--text-soft); margin: 0 0 18px;
}
.contact-main .map-wrap {
    min-height: 380px;
    height: 100%;
}
.contact-main .map-wrap iframe {
    height: 100%;
    min-height: 380px;
}

@media (max-width: 900px) {
    .info-tiles { grid-template-columns: 1fr; margin-top: -28px; gap: 14px; }
    .contact-main { grid-template-columns: 1fr; }
    .contact-main .map-wrap { min-height: 320px; }
    .contact-main .map-wrap iframe { min-height: 320px; }
}

/* ---------- Verify page ---------- */
.page-hero-lead {
    max-width: 620px; margin: 16px auto 0;
    color: var(--muted); font-size: 15.5px; line-height: 1.7;
}
.verify-wrap { padding: 56px 28px 96px; }

/* Search panel */
.verify-panel {
    max-width: 720px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 34px 36px 28px;
    position: relative;
}
.verify-panel::before {
    content: ""; position: absolute; left: 50%; top: 0;
    transform: translateX(-50%);
    width: 60px; height: 2px; background: var(--gold);
}
.verify-panel__head {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px;
}
.verify-panel__icon {
    flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-soft), #fff);
    color: var(--gold);
    border: 1px solid var(--gold-soft);
}
.verify-panel__head h2 {
    margin: 0 0 4px; font-family: var(--serif);
    color: var(--indigo); font-size: 22px; font-weight: 600;
}
.verify-panel__head p { margin: 0; color: var(--muted); font-size: 14px; }

.verify-form {
    display: grid; grid-template-columns: 1fr auto; gap: 14px;
    align-items: end;
    margin: 0;
}
.verify-input { display: flex; flex-direction: column; gap: 8px; }
.verify-input__label {
    font-size: 11.5px; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
}
.verify-input__field {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.verify-input__field svg { color: var(--muted); flex: 0 0 auto; }
.verify-input__field input {
    flex: 1; border: 0; outline: 0; background: transparent;
    padding: 14px 0; font: inherit; font-size: 15px;
    color: var(--text);
    letter-spacing: .04em;
}
.verify-input__field input::placeholder { color: #a89f86; letter-spacing: .08em; }
.verify-input__field:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(184,134,43,.12);
    background: #fff;
}
.verify-input__field:focus-within svg { color: var(--gold); }

.verify-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    white-space: nowrap;
}
.verify-hint {
    margin: 14px 0 0; font-size: 12.5px; color: var(--muted);
}
.verify-hint code {
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 6px;
    font-size: 12px; color: var(--indigo);
}

/* Assurance tiles (initial state) */
.verify-assure {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 22px; max-width: 960px; margin: 48px auto 0;
}
.verify-assure__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.verify-assure__item:hover {
    transform: translateY(-3px);
    border-color: var(--gold-soft);
    box-shadow: 0 24px 50px rgba(36,33,92,.08);
}
.verify-assure__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), #fff);
    color: var(--gold-deep, var(--gold));
    border: 1px solid var(--gold-soft);
    margin-bottom: 14px;
}
.verify-assure__item h4 {
    margin: 0 0 6px; font-family: var(--serif);
    color: var(--indigo); font-size: 17px; font-weight: 600;
}
.verify-assure__item p {
    margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6;
}

/* Empty / not-found */
.verify-empty {
    max-width: 620px; margin: 40px auto 0;
    background: var(--bg-card);
    border: 1px solid #F6C7CD;
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.verify-empty__seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: #FBE0E4; color: #962833;
    margin-bottom: 16px;
}
.verify-empty h3 {
    margin: 0 0 6px; font-family: var(--serif);
    color: var(--indigo); font-size: 22px; font-weight: 600;
}
.verify-empty > p {
    margin: 0 0 18px; color: var(--text); font-size: 15px;
}
.verify-empty code {
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 6px;
    font-size: 13px; color: var(--indigo);
}
.verify-empty__hints {
    list-style: none; padding: 16px 0 0;
    margin: 16px 0 0; border-top: 1px dashed var(--border);
    text-align: left; max-width: 440px; margin-inline: auto;
}
.verify-empty__hints li {
    padding: 6px 0; font-size: 14px; color: var(--muted);
    padding-left: 22px; position: relative;
}
.verify-empty__hints li::before {
    content: "›"; position: absolute; left: 6px; top: 4px;
    color: var(--gold); font-weight: 700;
}
.verify-empty__hints a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.verify-empty__hints a:hover { border-bottom-color: var(--gold); }

/* Verified certificate */
.verify-cert {
    max-width: 820px; margin: 44px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.verify-cert::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--saffron) 50%, var(--gold) 100%);
}
.verify-cert::after {
    content: ""; position: absolute; inset: 14px;
    border: 1px solid var(--gold-soft);
    border-radius: calc(var(--radius) - 8px);
    pointer-events: none;
}
.verify-cert__seal {
    position: absolute; top: 22px; right: 22px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 8px;
    background: linear-gradient(135deg, var(--teal-soft), #fff);
    border: 1px solid rgba(31,195,185,.5);
    border-radius: 999px;
    color: var(--teal-deep);
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .18em;
    z-index: 2;
}
.verify-cert__seal-inner {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--teal); color: #fff;
}
.verify-cert__head {
    text-align: center; padding: 44px 32px 18px;
    position: relative; z-index: 1;
}
.verify-cert__eyebrow {
    display: inline-block;
    color: var(--gold); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3em;
    margin-bottom: 10px;
}
.verify-cert__head h2 {
    margin: 0 0 8px; font-family: var(--serif);
    color: var(--indigo); font-size: clamp(26px, 3.4vw, 32px);
    font-weight: 600;
}
.verify-cert__head p {
    margin: 0 auto; color: var(--muted); font-size: 14.5px;
    max-width: 460px;
}
.verify-cert__body {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 36px; align-items: center;
    padding: 12px 44px 28px;
    position: relative; z-index: 1;
}
.verify-cert__photo { display: flex; justify-content: center; }
.verify-cert__photo img,
.verify-cert__photo-ph {
    width: 168px; height: 168px; border-radius: 50%;
    object-fit: cover;
    background: var(--bg-soft);
    border: 2px solid var(--gold);
    box-shadow:
        0 0 0 6px var(--bg-card),
        0 0 0 7px var(--gold-soft),
        0 18px 40px rgba(36,33,92,.12);
}
.verify-cert__photo-ph {
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
}
.verify-cert__info h3 {
    margin: 0 0 4px;
    color: var(--indigo); font-family: var(--serif);
    font-size: clamp(22px, 2.6vw, 26px); font-weight: 600;
    line-height: 1.2;
}
.verify-cert__sub {
    margin: 0 0 18px; color: var(--muted); font-size: 14px;
    padding-bottom: 18px; border-bottom: 1px dashed var(--border);
}
.verify-cert__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 18px 28px; margin: 0;
}
.verify-cert__grid > div { min-width: 0; }
.verify-cert__grid dt {
    font-size: 10.5px; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em;
    margin-bottom: 4px;
}
.verify-cert__grid dd {
    margin: 0; color: var(--indigo); font-size: 15.5px; font-weight: 500;
}
.verify-cert__grid dd.mono {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 14px; letter-spacing: .03em;
}

.verify-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    background: var(--bg-soft); color: var(--muted);
    border: 1px solid var(--border);
}
.verify-status::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: currentColor;
}
.verify-status.is-active   { background: rgba(31,195,185,.10); color: var(--teal-deep); border-color: rgba(31,195,185,.35); }
.verify-status.is-alumni   { background: rgba(184,134,43,.10);  color: var(--gold);      border-color: var(--gold-soft); }
.verify-status.is-inactive { background: #FBE0E4;               color: #962833;          border-color: #F6C7CD; }

.verify-cert__foot {
    display: flex; flex-wrap: wrap; gap: 14px;
    align-items: center; justify-content: space-between;
    padding: 18px 44px 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    position: relative; z-index: 1;
}
.verify-cert__issuer {
    font-size: 13px; color: var(--muted);
}
.verify-cert__issuer strong { color: var(--indigo); font-weight: 600; }
.btn.ghost.verify-print {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); color: var(--indigo);
    border: 1px solid var(--border-strong);
    padding: 10px 18px; border-radius: 10px;
    font-weight: 600; font-size: 13.5px;
    transition: border-color .2s, color .2s, transform .2s;
}
.btn.ghost.verify-print:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

/* Print styling for the certificate */
@media print {
    body * { visibility: hidden !important; }
    #verifyResult, #verifyResult * { visibility: visible !important; }
    #verifyResult {
        position: absolute; inset: 0; margin: 0;
        box-shadow: none; border: 1px solid #999;
    }
    .verify-print, .verify-cert__seal { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--indigo-deep);
    color: rgba(255,255,255,.65);
    margin-top: 0;
    position: relative;
}
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 1px;
    background: var(--gold);
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .26em;
    margin-bottom: 22px;
    font-weight: 600;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(184,134,43,.25);
}
.site-footer ul { list-style: none; padding: 0; line-height: 2.3; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.65); transition: color .2s, padding-left .2s; }
.site-footer a:hover { color: var(--gold); padding-left: 4px; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px;
    padding: 80px 28px 50px;
}
.footer-arabic {
    font-family: var(--arabic);
    font-size: 20px;
    color: var(--gold);
    margin: 16px 0;
    direction: rtl;
    line-height: 1.7;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
    padding: 24px 28px;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom .muted { color: rgba(255,255,255,.42); font-size: 12.5px; letter-spacing: .04em; }

/* =====================================================================
   WHATSAPP FLOATING BUTTON (bottom-left, on every public page)
   ===================================================================== */
.whatsapp-fab {
    position: fixed;
    left: 24px; bottom: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .45), 0 4px 10px rgba(0,0,0,.15);
    z-index: 100;
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 16px 36px rgba(37, 211, 102, .55), 0 6px 14px rgba(0,0,0,.18);
}
.whatsapp-fab svg { position: relative; z-index: 2; }
.whatsapp-pulse {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: .6;
    z-index: 1;
    animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
    .whatsapp-fab { left: 18px; bottom: 18px; width: 54px; height: 54px; }
    .whatsapp-fab svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-pulse { animation: none; } }

/* Embedded Google Map */
.map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

/* =====================================================================
   PRO SLIDER — fade-cross with Ken Burns zoom, captions, arrows, dots, swipe
   ===================================================================== */
.slider-section { padding: 80px 28px 40px; background: var(--bg); }
.slider-section .container { max-width: var(--maxw); margin: 0 auto; }

.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--indigo-deep);
    box-shadow: var(--shadow);
    isolation: isolate;
    border: 1px solid var(--gold-soft);
}
@media (max-width: 760px) {
    .slider { aspect-ratio: 4 / 5; border-radius: 18px; }
}

.slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
    z-index: 1;
}
.slide.active {
    opacity: 1; visibility: visible;
    transition: opacity .9s ease, visibility 0s linear 0s;
    z-index: 2;
}
.slide picture, .slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Ken-Burns slow zoom on the active slide */
.slide img {
    transform: scale(1);
    transition: transform 6s ease-out;
}
.slide.active img { transform: scale(1.08); }

/* Gradient overlay for caption legibility */
.slide::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(20,20,40,.55) 100%),
        linear-gradient(120deg, rgba(36,33,92,.55) 0%, transparent 55%);
    pointer-events: none;
}

/* Caption */
.slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 36px 56px 36px;
    color: #fff;
    z-index: 3;
    max-width: 760px;
    transform: translateY(20px); opacity: 0;
    transition: transform .8s .2s ease, opacity .8s .2s ease;
}
.slide.active .slide-caption { transform: translateY(0); opacity: 1; }
.slide-caption .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--gold-soft);
    padding: 0;
    font-size: 11px; letter-spacing: .28em; font-weight: 600; text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: none;
}
.slide-caption .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-soft); }
.slide-caption h2 {
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -.005em;
    text-shadow: 0 4px 22px rgba(0,0,0,.45);
}
.slide-caption p {
    font-size: clamp(15px, 1.7vw, 18px);
    color: rgba(255,255,255,.88);
    margin: 0 0 22px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    max-width: 560px;
    line-height: 1.7;
}
.slide-caption .btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: #fff;
    padding: 14px 28px;
    box-shadow: none;
}
.slide-caption .btn:hover { background: var(--gold); color: var(--indigo-deep); border-color: var(--gold); }

/* Arrows */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.18); color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(10px);
    cursor: pointer; font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 4;
    transition: background .2s, transform .2s;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
@media (max-width: 760px) {
    .slider-arrow { width: 40px; height: 40px; }
    .slide-caption { padding: 22px 22px; }
}

/* Dots */
.slider-dots {
    position: absolute; left: 50%; bottom: 18px;
    transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 4;
}
.slider-dot {
    width: 28px; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.4); border: 0; cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s, width .35s;
    overflow: hidden; position: relative;
}
.slider-dot::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: var(--gold);
    transition: width 0s;
}
.slider-dot.active { background: rgba(255,255,255,.7); width: 44px; }
.slider-dot.active.timing::before { width: 100%; transition: width 6s linear; }

@media (max-width: 760px) {
    .slide-caption { max-width: none; padding-bottom: 50px; }
}

/* Scroll reveal (works with JS adding .visible) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Laptop (≤ 1100px) */
@media (max-width: 1100px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner { gap: 36px; }
}

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero .eyebrow { justify-content: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero .cta-row { justify-content: center; }
    .hero .arabic-line { text-align: center; }
    .hero-art {
        max-width: 280px;
        margin: 12px auto 42px;
    }
    .features { padding: 30px 24px 60px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { padding: 24px 22px; }
    .pillar .num { font-size: 44px; right: 18px; top: 14px; }
    .stat { padding: 22px 12px; }
    .stat .num { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤ 880px) — full nav drawer */
@media (max-width: 880px) {
    .nav {
        display: none;
        position: absolute; top: calc(100% + 6px); right: 14px; left: 14px;
        background: var(--bg-card); padding: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        flex-direction: column; align-items: stretch;
        box-shadow: var(--shadow);
        gap: 4px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 14px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-row { padding: 12px 18px; position: relative; }
}

/* Phone (≤ 640px) */
@media (max-width: 640px) {
    body { font-size: 15.5px; line-height: 1.6; }
    .container { padding: 0 18px; }
    .hero { padding: 40px 0 60px; }
    .hero .eyebrow { font-size: 11px; padding: 6px 12px; }
    .hero .arabic-line { font-size: 19px; }
    .hero .lead { font-size: 16px; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-row .btn { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; margin-top: -24px; padding: 0; }
    .stat { padding: 18px 10px; }
    .stat .num { font-size: 26px; }
    .stat .lbl { font-size: 11.5px; }
    .features { padding: 24px 18px 50px; }
    .feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .feature { padding: 22px 20px; }
    .pillars { padding: 36px 18px; }
    .section-head { margin-bottom: 24px; }
    .section-head p { font-size: 14.5px; }
    .cta-strip { padding: 50px 0; }
    .cta-strip p { font-size: 15px; }
    .contact-grid { grid-template-columns: 1fr; gap: 22px; }
    .contact-form { padding: 22px 20px; border-radius: 12px; }
    .verify-wrap { padding: 36px 18px 64px; }
    .verify-panel { padding: 26px 22px 22px; }
    .verify-panel__head { gap: 12px; margin-bottom: 18px; }
    .verify-panel__head h2 { font-size: 19px; }
    .verify-form { grid-template-columns: 1fr; gap: 12px; }
    .verify-submit { width: 100%; justify-content: center; }
    .verify-assure { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
    .verify-cert__seal {
        top: 14px; right: 14px;
        padding: 5px 11px 5px 6px; font-size: 10px;
    }
    .verify-cert__seal-inner { width: 20px; height: 20px; }
    .verify-cert__head { padding: 56px 22px 14px; }
    .verify-cert__body {
        grid-template-columns: 1fr;
        gap: 22px; padding: 8px 22px 24px;
        text-align: center;
    }
    .verify-cert__photo img,
    .verify-cert__photo-ph { width: 140px; height: 140px; }
    .verify-cert__sub { text-align: center; }
    .verify-cert__grid { grid-template-columns: 1fr; text-align: left; gap: 14px; }
    .verify-cert__foot {
        flex-direction: column; align-items: stretch; text-align: center;
        padding: 18px 22px 22px;
    }
    .btn.ghost.verify-print { justify-content: center; }
    .verify-cert::after { inset: 8px; }
    .verify-empty { padding: 28px 22px; }
    .page-hero { padding: 48px 0 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 40px 22px 24px; }
}

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
    .stats { grid-template-columns: 1fr; }
    .stat { border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: 0; }
    .btn { padding: 12px 18px; font-size: 14px; }
}

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