:root {
  --wine-950: #32101d;
  --wine-900: #461326;
  --wine-800: #651c35;
  --wine-700: #7a2542;
  --wine-100: #f6eaf0;
  --gold-600: #b68a3e;
  --gold-500: #c9a45f;
  --gold-200: #ead7ae;
  --gold-100: #f5ead3;
  --paper: #fffdf9;
  --sand: #f5f0e8;
  --sand-2: #ebe3d8;
  --ink: #241b1e;
  --muted: #736a6d;
  --line: rgba(74, 43, 53, .13);
  --green: #276a59;
  --shadow-sm: 0 14px 35px rgba(67, 30, 43, .08);
  --shadow-lg: 0 28px 70px rgba(67, 30, 43, .16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 10px; right: 10px; padding: 10px 14px; border-radius: 9px; color: #fff; background: var(--wine-800); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.announcement { min-height: 38px; color: rgba(255,255,255,.82); background: var(--wine-950); font-size: 1.2rem; }
.announcement__inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.announcement__prayer { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; font-size: .92rem; }
.announcement__prayer b { color: var(--gold-200); font-weight: 700; }
.announcement__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid transparent; background: rgba(255,253,249,.92); backdrop-filter: blur(18px); transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(55,30,39,.06); }
.header__inner { min-height: 84px; display: flex; align-items: center; gap: 32px; }
.brand { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 52px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50% 50% 12px 12px; background: #fff; box-shadow: var(--shadow-sm); }
.brand__mark img { width: 44px; height: 49px; object-fit: contain; }
.brand__copy { display: grid; }
.brand__copy strong { color: var(--wine-900); font-size: .93rem; }
.brand__copy small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { position: relative; padding: 31px 0 29px; color: #62585b; font-size: 1rem; font-weight: 600; }
.main-nav a::after { position: absolute; right: 0; bottom: 22px; width: 0; height: 2px; border-radius: 10px; background: var(--gold-600); content: ""; transition: width .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--wine-800); }
.main-nav .main-nav__login, .main-nav .main-nav__register { display: none; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header__actions { display: flex; gap: 9px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 4px; background: var(--wine-800); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.button { min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); background: none; font-size: 1.2rem; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--wine-800); box-shadow: 0 10px 25px rgba(101,28,53,.2); }
.button--primary:hover { background: var(--wine-700); box-shadow: 0 14px 30px rgba(101,28,53,.25); }
.button--ghost { border-color: var(--line); color: var(--wine-800); background: rgba(255,255,255,.55); }
.button--soft { color: var(--wine-800); background: var(--wine-100); }
.button--large { min-height: 52px; padding-inline: 23px; font-size: .82rem; }
.button--gold { color: var(--wine-950); background: var(--gold-500); box-shadow: 0 13px 30px rgba(201,164,95,.2); }
.button--outline-light { border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.06); }

.hero { position: relative; overflow: hidden; padding: 75px 0 0; background: linear-gradient(135deg, #fffdf9 0%, #f8f1e8 56%, #f1e6dc 100%); }
.hero::before { position: absolute; top: -200px; right: -180px; width: 540px; height: 540px; border: 1px solid rgba(101,28,53,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(101,28,53,.025), 0 0 0 140px rgba(101,28,53,.018); content: ""; }
.hero__pattern { position: absolute; left: 5%; bottom: 11%; width: 120px; height: 120px; opacity: .17; background-image: radial-gradient(var(--wine-800) 1.2px, transparent 1.2px); background-size: 12px 12px; }
.hero__grid { min-height: 545px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 75px; }
.hero__content { position: relative; z-index: 2; padding-bottom: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--wine-700); font-size: .72rem; font-weight: 700; }
.eyebrow > span { width: 25px; height: 2px; background: var(--gold-600); }
.eyebrow--light { color: var(--gold-200); }
.hero h1, .section-heading h2, .about__content h2, .journey__intro h2, .registration h2 { margin: 15px 0 18px; color: var(--wine-950); font-family: "Markazi Text", serif; font-size: clamp(3.8rem, 6vw, 6.7rem); font-weight: 600; line-height: .78; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(2.25rem, 3.2vw, 3.75rem); }
.hero h1 em, .section-heading h2 em, .about__content h2 em, .journey__intro h2 em { color: var(--gold-600); font-style: normal; }
.hero__lead { max-width: 630px; margin: 0; color: var(--muted); font-size: .96rem; line-height: 2; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .material-symbols-rounded { font-size: 20px; }
.hero__trust { margin: 29px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; list-style: none; color: #625d5e; font-size: .71rem; }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust .material-symbols-rounded { color: var(--green); font-size: 17px; font-variation-settings: "FILL" 1; }
.hero__visual { position: relative; min-height: 510px; }
.hero__arch { position: absolute; left: 33px; top: 2px; width: 76%; height: 430px; border: 1px solid rgba(101,28,53,.16); border-radius: 230px 230px 28px 28px; transform: rotate(-5deg); }
.hero__photo { position: absolute; inset: 25px 18px 28px 54px; overflow: hidden; margin: 0; border-radius: 230px 230px 28px 28px; box-shadow: var(--shadow-lg); }
.hero__photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(50,16,29,.42)); content: ""; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.verse-card { position: absolute; z-index: 3; right: -30px; top: 72px; width: 190px; padding: 17px; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(255,253,249,.9); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.verse-card__icon { color: var(--gold-600); font-size: 21px; }
.verse-card p { margin: 7px 0 4px; color: var(--wine-900); font-family: "Markazi Text", serif; font-size: 1.25rem; line-height: 1.3; }
.verse-card small { color: var(--muted); font-size: .61rem; }
.experience-seal { position: absolute; z-index: 3; bottom: 18px; left: -9px; width: 132px; height: 132px; padding: 14px; border: 7px solid #f7efe6; border-radius: 50%; display: grid; place-content: center; color: #fff; text-align: center; background: var(--wine-800); box-shadow: var(--shadow-lg); transform: rotate(6deg); }
.experience-seal::before { position: absolute; inset: 8px; border: 1px dashed rgba(234,215,174,.52); border-radius: 50%; content: ""; }
.experience-seal strong { color: var(--gold-200); font-family: "Markazi Text", serif; font-size: 2.15rem; line-height: 1; }
.experience-seal span { margin-top: 3px; font-size: .61rem; }
.stats-wrap { position: relative; z-index: 5; transform: translateY(45px); }
.stats { min-height: 126px; padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,253,249,.95); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.stat { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; }
.stat + .stat::after { position: absolute; right: 0; top: 25%; width: 1px; height: 50%; background: var(--line); content: ""; }
.stat__icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; color: var(--wine-700); background: var(--wine-100); font-size: 23px; }
.stat div { display: grid; }
.stat strong { color: var(--wine-900); font-family: "Markazi Text", serif; font-size: 2.25rem; line-height: 1; }
.stat small { margin-top: 6px; color: var(--muted); font-size: .65rem; }
.stats-note { margin: 8px 18px 0; color: var(--muted); font-size: .58rem; }

.section { padding: 135px 0 105px; }
.section-heading { margin-bottom: 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 55px; }
.section-heading h2, .about__content h2, .journey__intro h2 { font-size: clamp(3.1rem, 4.6vw, 5rem); }
.section-heading p { max-width: 520px; margin: 0 0 5px; color: var(--muted); font-size: .84rem; line-height: 2; }
.programs { background: var(--paper); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.program-card { position: relative; min-height: 350px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .25s, box-shadow .25s, border-color .25s; }
.program-card:hover { border-color: rgba(101,28,53,.25); box-shadow: var(--shadow-sm); transform: translateY(-7px); }
.program-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.program-card__icon { width: 51px; height: 51px; border-radius: 15px; display: grid; place-items: center; color: var(--wine-700); background: var(--wine-100); font-size: 26px; }
.program-card__number { color: #ece3e4; font-family: "Markazi Text", serif; font-size: 3rem; line-height: 1; }
.program-card__meta { margin-top: 52px; color: var(--gold-600); font-size: .62rem; font-weight: 700; }
.program-card h3 { margin: 8px 0 10px; color: var(--wine-900); font-size: 1rem; }
.program-card p { margin: 0 0 24px; color: var(--muted); font-size: .71rem; line-height: 1.9; }
.program-link { margin-top: auto; padding: 0; border: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: var(--wine-700); background: none; font-size: 1rem; font-weight: 700; }
.program-link span { transition: transform .2s; }
.program-link:hover span { transform: translateX(-4px); }

.about { position: relative; overflow: hidden; color: #fff; background: var(--wine-950); }
.about::after { position: absolute; left: -160px; bottom: -180px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.018), 0 0 0 130px rgba(255,255,255,.012); content: ""; }
.about__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.about__media { position: relative; min-height: 500px; }
.about__photo { position: absolute; overflow: hidden; margin: 0; border-radius: var(--radius-md); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { inset: 0 0 55px 95px; }
.about__photo--main::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(50,16,29,.35)); content: ""; }
.about__photo--small { left: 0; bottom: 0; width: 190px; height: 230px; border: 8px solid var(--wine-950); }
.about__quote { position: absolute; right: -25px; bottom: 18px; min-width: 190px; padding: 17px 21px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.about__quote > span { position: absolute; left: 15px; top: 0; color: var(--gold-500); font-family: Georgia, serif; font-size: 3rem; opacity: .5; }
.about__quote p { margin: 0; color: #fff; font-family: "Markazi Text", serif; font-size: 1.55rem; }
.about__quote small { color: rgba(255,255,255,.55); font-size: .59rem; }
.about__content h2 { color: #fff; }
.about__content > p { max-width: 590px; margin: 0 0 28px; color: rgba(255,255,255,.65); font-size: .84rem; line-height: 2.05; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.value-card { min-height: 82px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.045); }
.value-card > .material-symbols-rounded { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; color: var(--gold-200); background: rgba(201,164,95,.12); font-size: 21px; }
.value-card div { display: grid; }
.value-card strong { font-size: .73rem; }
.value-card small { margin-top: 4px; color: rgba(255,255,255,.5); font-size: .59rem; }
.text-link { margin-top: 26px; display: inline-flex; gap: 8px; color: var(--gold-200); font-size: .72rem; font-weight: 700; }

.journey { background: var(--sand); }
.journey__intro { max-width: 680px; margin: 0 auto 45px; text-align: center; }
.journey__intro .eyebrow { justify-content: center; }
.journey__intro p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: .82rem; line-height: 2; }
.journey__steps { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; }
.journey__steps::before { position: absolute; top: 39px; right: 16%; left: 16%; height: 1px; background: var(--gold-200); content: ""; }
.journey-step { position: relative; min-height: 250px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; background: var(--paper); box-shadow: var(--shadow-sm); }
.journey-step__number { position: absolute; top: 18px; left: 20px; color: #dfd5cd; font-family: "Markazi Text", serif; font-size: 2rem; }
.journey-step__icon { position: relative; z-index: 2; width: 72px; height: 72px; margin: -2px auto 22px; border: 8px solid var(--sand); border-radius: 50%; display: grid; place-items: center; color: var(--wine-700); background: var(--gold-100); font-size: 28px; }
.journey-step h3 { margin: 0 0 9px; color: var(--wine-900); font-size: .93rem; }
.journey-step p { max-width: 270px; margin: auto; color: var(--muted); font-size: 1rem; line-height: 1.9; }

.registration { padding: 90px 0; background: var(--paper); }

/* ---- قسم التوظيف (بيظهر من script.js بس لما التقديم يكون مفتوح) ---- */
.careers { padding: 105px 0; background: var(--sand); }
.careers__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.careers__intro h2 { margin: 15px 0 18px; color: var(--wine-950); font-family: "Markazi Text", serif; font-size: clamp(3.1rem, 4.6vw, 5rem); font-weight: 600; line-height: .78; letter-spacing: -.025em; }
.careers__intro h2 em { color: var(--gold-600); font-style: normal; }
.careers__intro p { margin: 0 0 14px; color: var(--muted); font-size: .84rem; line-height: 2; }
.careers__note { display: flex; align-items: center; gap: 7px; font-size: .7rem !important; }
.careers__note .material-symbols-rounded { color: var(--gold-600); font-size: 18px; }
.careers__action { padding: 38px 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; justify-items: center; text-align: center; gap: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.careers__action small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .66rem; }
.careers__action small .material-symbols-rounded { font-size: 16px; color: var(--gold-600); }
.registration__card { position: relative; min-height: 320px; padding: 55px 60px; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; overflow: hidden; color: #fff; background: linear-gradient(145deg, var(--wine-700), var(--wine-950)); box-shadow: var(--shadow-lg); }
.registration__pattern { position: absolute; top: -140px; left: -100px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.023), 0 0 0 110px rgba(255,255,255,.017); }
.registration__copy, .registration__actions { position: relative; z-index: 2; }
.registration h2 { color: #fff; font-size: clamp(2.4rem, 3.2vw, 3.75rem); }
.registration__copy p { max-width: 570px; margin: 0; color: rgba(255,255,255,.64); font-size: .79rem; line-height: 2; }
.registration__actions { display: grid; gap: 10px; }
.registration__actions small { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255,255,255,.48); font-size: .58rem; }
.registration__actions small span { font-size: 15px; }

/* ---- البيانات الرسمية (الاسم + رقم الترخيص) بالعربي والإنجليزي ---- */
.official { padding: 70px 0; background: var(--paper); }
.official__card { border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.official__col { padding: 38px 42px; }
.official__col h2 { margin: 12px 0 22px; color: var(--wine-900); font-family: "Markazi Text", serif; font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 600; line-height: 1.15; }
.official__doc { margin: 0; padding: 34px 42px 40px; border-inline-start: 1px solid var(--line); align-content: center; display: grid; justify-items: center; gap: 18px; background: var(--paper); }
.official__doc-link { display: block; width: min(100%, 360px); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.official__doc-link:hover, .official__doc-link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.official__doc-link img { display: block; width: 100%; height: auto; }
.official__doc figcaption { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: .74rem; text-align: center; }
.official__doc figcaption strong { color: var(--wine-900); font-size: .9rem; }
.official__list { margin: 0; display: grid; gap: 16px; }
.official__list > div { display: grid; gap: 4px; }
.official__list dt { color: var(--gold-600); font-size: .78rem; font-weight: 700; }
.official__list dd { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.8; }
.official__license { color: var(--wine-800); font-family: "Markazi Text", serif; font-size: 2.3rem !important; line-height: 1.1; letter-spacing: .04em; }
.footer { position: relative; isolation: isolate; overflow: hidden; padding: 70px 0 24px; color: rgba(255,255,255,.68); background: #261017; }
.footer::before { position: absolute; z-index: 0; inset: 0; background: url(assets/000.png) repeat-x center 30% / 70px auto; content: ""; opacity: .07; pointer-events: none; }
.footer > .container { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.35fr .65fr .9fr; gap: 75px; }
.brand--light .brand__mark { border-color: rgba(255,255,255,.12); background: #fff; }
.brand--light .brand__copy strong { color: #fff; }
.brand--light .brand__copy small { color: rgba(255,255,255,.5); }
.footer__brand > p { max-width: 400px; margin: 20px 0; font-size: .72rem; line-height: 1.9; }
.footer h3 { margin: 11px 0 18px; color: var(--gold-200); font-size: 1.2rem; }
.footer__links, .footer__contact { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; font-size: .68rem; }
.footer__links a:hover { color: var(--gold-200); }
.footer__contact li { display: flex; align-items: center; gap: 8px; }
.footer__contact .material-symbols-rounded { color: var(--gold-500); font-size: 18px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; display: grid; place-items: center; color: var(--gold-200); transition: border-color .2s, background .2s, color .2s; }
.social-links a svg { width: 19px; height: 19px; }
.social-links a:hover { border-color: var(--gold-500); background: rgba(201,164,95,.14); color: #fff; }
.footer__bottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.38); font-size: .59rem; }
.footer__bottom p { margin: 0; }

.dialog { width: min(560px, calc(100% - 30px)); max-height: calc(100dvh - 36px); overflow-y: auto; padding: 33px; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(42,16,25,.35); }
.dialog::backdrop { background: rgba(34, 13, 20, .68); backdrop-filter: blur(7px); }
.dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dialog__close { position: absolute; top: 18px; left: 18px; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: #fff; }
.dialog__close span { font-size: 19px; }
.dialog__icon { width: 55px; height: 55px; margin-bottom: 20px; border-radius: 16px; display: grid; place-items: center; color: var(--wine-700); background: var(--wine-100); font-size: 27px; }
.dialog h2 { margin: 12px 0 9px; color: var(--wine-900); font-family: "Markazi Text", serif; font-size: 2.3rem; line-height: 1; }
.dialog > p { margin: 0 0 20px; color: var(--muted); font-size: 1.2rem; line-height: 1.9; }
.dialog__features { margin: 0 0 23px; padding: 0; display: grid; gap: 9px; list-style: none; color: #5f5659; font-size: 1rem; }
.dialog__features li { display: flex; align-items: center; gap: 8px; }
.dialog__features li::before { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #e5f1ed; font-size: .65rem; content: "✓"; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal--delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .careers__grid { gap: 40px; }
  .announcement { display: none; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 1rem; }
  .header__actions .button--ghost { display: none; }
  .main-nav .main-nav__login { display: block; }
  .hero__grid { gap: 40px; }
  .verse-card { right: -5px; }
  .program-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .about__grid { gap: 45px; }
}

@media (max-width: 820px) {
  .official { padding: 48px 0; }
  .official__card { grid-template-columns: 1fr; }
  .official__col { padding: 28px 22px; }
  .official__doc { padding: 26px 22px 30px; }
  .careers { padding: 70px 0; }
  .careers__grid { grid-template-columns: 1fr; gap: 30px; }
  .careers__intro { text-align: center; }
  .careers__intro .eyebrow, .careers__note { justify-content: center; }
  .container { width: min(100% - 28px, 1180px); }
  .header__inner { min-height: 72px; gap: 10px; }
  .brand { margin-left: auto; }
  .brand__mark { width: 45px; height: 48px; }
  .brand__mark img { width: 38px; height: 42px; }
  .brand__copy strong { font-size: 1rem; }
  .brand__copy small { font-size: .57rem; }
  .menu-toggle { display: block; order: 3; }
  .main-nav { position: absolute; top: calc(100% + 7px); right: 14px; left: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; display: none; background: var(--paper); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px; border-radius: 9px; }
  .main-nav a:hover { background: var(--wine-100); }
  .main-nav a::after { display: none; }
  .main-nav .main-nav__login, .main-nav .main-nav__register { margin-top: 6px; border: 1px solid var(--wine-800); text-align: center; font-weight: 700; }
  .main-nav .main-nav__login { color: var(--wine-800); background: #fff; }
  .main-nav .main-nav__register { color: #fff; background: var(--wine-800); }
  .main-nav .main-nav__register:hover { color: #fff; background: var(--wine-700); }
  .header__actions .button--primary { min-height: 40px; padding-inline: 13px; font-size: .68rem; }
  .hero { padding-top: 50px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: 0; text-align: center; }
  .hero__content .eyebrow { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { width: min(560px, 100%); min-height: 480px; margin: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 100px; }
  .stat:nth-child(3)::after { display: none; }
  .stats-wrap { transform: translateY(35px); }
  .section { padding: 105px 0 80px; }
  .section-heading { display: block; text-align: center; }
  .section-heading .eyebrow { justify-content: center; }
  .section-heading p { margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { width: min(550px, 100%); min-height: 470px; margin: auto; }
  .about__content { text-align: center; }
  .about__content > p { margin-inline: auto; }
  .value-card { text-align: right; }
  .journey__steps { grid-template-columns: 1fr; }
  .journey__steps::before { top: 10%; bottom: 10%; right: 50%; left: auto; width: 1px; height: auto; }
  .journey-step { max-width: 500px; width: 100%; margin-inline: auto; }
  .registration__card { grid-template-columns: 1fr; gap: 30px; padding: 45px; text-align: center; }
  .registration__copy .eyebrow { justify-content: center; }
  .registration__copy p { margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .careers__intro h2 { font-size: 3.15rem; }
  .careers__action { padding: 26px 20px; justify-items: stretch; text-align: center; }
  .careers__action .button { width: 100%; }
  .careers__action small { justify-content: center; }
  .header__actions { display: none; }
  .main-nav .main-nav__register { display: block; }
  .hero h1 { font-size: 2.3rem; }
  .hero__lead { font-size: .82rem; }
  .hero__actions { display: grid; }
  .hero__trust { display: grid; justify-content: start; max-width: 260px; margin-inline: auto; text-align: right; }
  .hero__visual { min-height: 370px; }
  .hero__photo { inset: 20px 22px 20px 38px; }
  .hero__arch { width: 80%; height: 325px; }
  .verse-card { top: 48px; right: 0; width: 155px; padding: 13px; }
  .verse-card p { font-size: 1rem; }
  .experience-seal { width: 105px; height: 105px; border-width: 5px; }
  .experience-seal strong { font-size: 1.75rem; }
  .experience-seal span { font-size: .52rem; }
  .stats { padding: 8px; }
  .stat { min-height: 105px; gap: 9px; }
  .stat__icon { width: 38px; height: 38px; font-size: 20px; }
  .stat strong { font-size: 1.7rem; }
  .stat small { font-size: .57rem; }
  .section-heading h2, .about__content h2, .journey__intro h2 { font-size: 3.15rem; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 300px; }
  .program-card__meta { margin-top: 35px; }
  .about__media { min-height: 390px; }
  .about__photo--main { inset: 0 0 50px 45px; }
  .about__photo--small { width: 135px; height: 170px; border-width: 5px; }
  .about__quote { right: -3px; bottom: 8px; min-width: 160px; padding: 13px 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .registration { padding: 60px 0; }
  .registration__card { padding: 38px 22px; border-radius: 24px; }
  .registration h2 { font-size: 2.25rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 35px; }
  .footer__brand { grid-column: auto; }
  .footer::before { opacity: .055; }
  .footer__bottom { display: grid; line-height: 1.8; }
  .dialog { padding: 27px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* مؤشر تحميل فوري عند الانتقال لصفحة تانية (تسجيل/توظيف/دخول النظام) */
.nav-loading { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(255,253,249,.92); color: var(--wine-900); font-size: .95rem; font-weight: 700; backdrop-filter: blur(2px); }
.nav-loading[hidden] { display: none; }
.nav-loading__spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(101,28,53,.14); border-top-color: var(--wine-800); animation: nav-spin .8s linear infinite; }
@keyframes nav-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nav-loading__spinner { animation-duration: 2.4s; } }

/* بطاقات/نافذة البرامج المقروءة من شيت studyProgs */
.program-card p { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dialog__sections { margin: 0 0 22px; display: grid; gap: 16px; }
.dialog__section-title { margin: 0 0 8px; color: var(--wine-800); font-size: .92rem; font-weight: 700; }
.dialog__sections ul { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; color: #5f5659; font-size: .95rem; line-height: 1.8; }
.dialog__sections li { position: relative; padding-right: 18px; }
.dialog__sections li::before { position: absolute; right: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-600); content: ""; }

/* ========== موقع متعدد الصفحات (عن المركز / الوثائق / اتصل بنا) — عربي + English ========== */
.brand--light { margin-left: 0; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 64px; color: #fff; background: linear-gradient(135deg, var(--wine-950), var(--wine-800)); }
.page-hero::before { position: absolute; z-index: -1; inset: 0; background: url(assets/000.png) repeat-x center 40% / 90px auto; content: ""; opacity: .08; }
.page-hero .eyebrow { color: var(--gold-200); }
.page-hero h1 { margin: 14px 0 6px; font-family: "Markazi Text", serif; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: 1.15; }
.page-hero p.lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 2; }

.page-section { padding: 72px 0; }
.page-section--alt { background: var(--sand); }
.page-title { margin: 12px 0 28px; color: var(--wine-900); font-family: "Markazi Text", serif; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; line-height: 1.2; }


.fact-grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.fact dt { color: var(--gold-600); font-size: .85rem; font-weight: 700; }
.fact dd { margin: 6px 0 0; color: var(--ink); font-size: 1.05rem; font-weight: 600; line-height: 1.8; }
.fact dd.fact__number { color: var(--wine-800); font-family: "Markazi Text", serif; font-size: 2.3rem; line-height: 1.1; letter-spacing: .04em; }

.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.timeline li { padding: 20px 24px; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold-500); border-radius: var(--radius-sm); background: #fff; }
.timeline strong { display: block; color: var(--wine-900); font-size: 1.05rem; }
.timeline span { color: #4b4246; font-size: .98rem; line-height: 1.9; }

.pill-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li { padding: 8px 16px; border-radius: 999px; color: var(--wine-800); background: var(--wine-100); font-size: .95rem; font-weight: 600; }

.cert-feature { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 44px; align-items: start; }
.cert-feature__img { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); transition: transform .25s; }
.cert-feature__img:hover, .cert-feature__img:focus-visible { transform: translateY(-4px); }
.cert-feature__img img { width: 100%; height: auto; }
.cert-statement { padding: 26px 28px; border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: var(--radius-sm); background: #fff; }
.cert-statement p { margin: 0 0 10px; color: #3d3438; font-size: 1.05rem; line-height: 2; }
.cert-statement p:last-child { margin-bottom: 0; }
.cert-statement strong { color: var(--wine-800); }
.cert-feature .fact-grid { margin-top: 18px; }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.doc-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #fff; box-shadow: var(--shadow-sm); }
.doc-card__img { display: block; padding: 22px; background: var(--sand); }
.doc-card__img img { width: min(100%, 300px); height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }
.doc-card__body { padding: 22px 26px 26px; }
.doc-card__body h3 { margin: 0 0 4px; color: var(--wine-900); font-size: 1.1rem; }
.doc-card__body p { margin: 0 0 8px; color: #4b4246; font-size: .95rem; line-height: 1.9; }
.doc-card__body .doc-no { color: var(--wine-800); font-weight: 700; }
.doc-note { margin: 28px 0 0; padding: 16px 20px; border-radius: var(--radius-sm); color: #5a4a2c; background: var(--gold-100); font-size: .92rem; line-height: 1.9; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; gap: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-card > .material-symbols-rounded { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--wine-700); background: var(--wine-100); font-size: 24px; }
.contact-card h3 { margin: 0 0 6px; color: var(--wine-900); font-size: 1.02rem; }
.contact-card p { margin: 0; color: #4b4246; font-size: .98rem; line-height: 1.9; }
.contact-card a { color: var(--wine-800); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.contact-form h2 { margin: 0 0 4px; color: var(--wine-900); font-family: "Markazi Text", serif; font-size: 2.1rem; font-weight: 600; }
.contact-form .sub { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 16px; display: grid; gap: 6px; }
.field label { color: var(--ink); font-size: .93rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(74,43,53,.22); border-radius: 11px; color: var(--ink); background: var(--paper); font: inherit; font-size: 1rem; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { border-color: var(--wine-700); outline: 3px solid rgba(122,37,66,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: .95rem; font-weight: 600; line-height: 1.8; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: #b3261e; }
.contact-form .button { width: 100%; font-size: 1rem; }
.contact-form .button[disabled] { opacity: .6; cursor: progress; transform: none; }

.footer__legal { margin: 22px 0 18px; }
.footer__legal p { margin: 0; }
.footer__legal-ar { color: #fff; font-size: 1.02rem; font-weight: 700; line-height: 1.8; }
.footer__legal-en { color: var(--gold-200); font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
.footer__ids { margin: 12px 0 10px; padding: 0; display: grid; gap: 6px; list-style: none; font-size: .85rem; }
.footer__ids li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.footer__ids li span { color: rgba(255,255,255,.62); }
.footer__ids bdi { color: var(--gold-200); font-weight: 700; letter-spacing: .04em; }
.footer__authority { color: rgba(255,255,255,.5); font-size: .8rem; line-height: 1.7; }
.footer__links, .footer__contact { font-size: .9rem; }
.footer__links a, .footer__contact a { color: inherit; }
.footer__contact a:hover { color: var(--gold-200); }
.footer__contact li { align-items: flex-start; line-height: 1.8; }
.footer__contact li > .material-symbols-rounded { margin-top: 3px; }
.footer__bottom { font-size: .78rem; }

@media (max-width: 820px) {
  .page-hero { padding: 52px 0 46px; }
  .page-section { padding: 52px 0; }
  .fact-grid, .doc-grid, .contact-grid, .cert-feature, .field-row { grid-template-columns: 1fr; }
  .cert-feature { gap: 28px; }
  .cert-feature__img { max-width: 420px; margin-inline: auto; }
  .contact-form { padding: 24px 20px; }
}



/* ========== مفتاح اللغة (عربي / English) + عكس الاتجاه عند LTR ========== */
html.i18n-pending body { visibility: hidden; }
.lang-toggle { min-height: 43px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--wine-800); background: rgba(255,255,255,.7); font-size: .95rem; font-weight: 700; white-space: nowrap; transition: border-color .2s, background .2s; }
.lang-toggle:hover { border-color: var(--gold-600); background: #fff; }
.lang-toggle .material-symbols-rounded { font-size: 19px; color: var(--gold-600); }
@media (max-width: 820px) { .lang-toggle { min-height: 40px; padding: 0 12px; } }

/* الإنجليزي: الخط والتباعد (الأسطر الضيقة بتاعة العناوين العربية بتتداخل مع اللاتيني) */
html[lang="en"] body { font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif; }
html[lang="en"] .hero h1, html[lang="en"] .section-heading h2, html[lang="en"] .about__content h2, html[lang="en"] .journey__intro h2, html[lang="en"] .registration h2, html[lang="en"] .careers__intro h2 { line-height: 1.08; letter-spacing: 0; }
html[lang="en"] .hero h1 { font-size: clamp(2.4rem, 3.6vw, 4.1rem); }
html[lang="en"] .section-heading h2, html[lang="en"] .about__content h2, html[lang="en"] .journey__intro h2, html[lang="en"] .careers__intro h2 { font-size: clamp(2.5rem, 3.8vw, 4rem); }
html[lang="en"] .registration h2 { font-size: clamp(2.2rem, 3vw, 3.3rem); }
html[lang="en"] .page-hero h1 { line-height: 1.12; }
html[lang="en"] .eyebrow, html[lang="en"] .program-card__meta { letter-spacing: .01em; }

/* عكس العناصر الموضوعة بإحداثيات يمين/شمال عند الاتجاه LTR */
html[dir="ltr"] .skip-link { right: auto; left: 10px; }
html[dir="ltr"] .brand { margin-left: 0; margin-right: auto; }
html[dir="ltr"] .main-nav a::after { right: auto; left: 0; }
html[dir="ltr"] .hero::before { right: auto; left: -180px; }
html[dir="ltr"] .hero__pattern { left: auto; right: 5%; }
html[dir="ltr"] .hero__arch { left: auto; right: 33px; transform: rotate(5deg); }
html[dir="ltr"] .hero__photo { inset: 25px 54px 28px 18px; }
html[dir="ltr"] .verse-card { right: auto; left: -30px; }
html[dir="ltr"] .experience-seal { left: auto; right: -9px; transform: rotate(-6deg); }
html[dir="ltr"] .stat + .stat::after { right: auto; left: 0; }
html[dir="ltr"] .program-link:hover span { transform: translateX(4px); }
html[dir="ltr"] .about::after { left: auto; right: -160px; }
html[dir="ltr"] .about__photo--main { inset: 0 95px 55px 0; }
html[dir="ltr"] .about__photo--small { left: auto; right: 0; }
html[dir="ltr"] .about__quote { right: auto; left: -25px; }
html[dir="ltr"] .about__quote > span { left: auto; right: 15px; }
html[dir="ltr"] .journey-step__number { left: auto; right: 20px; }
html[dir="ltr"] .registration__pattern { left: auto; right: -100px; }
html[dir="ltr"] .dialog__close { left: auto; right: 18px; }

@media (max-width: 820px) {
  .official__doc { border-inline-start: 0; border-top: 1px solid var(--line); }
  html[dir="ltr"] .brand { margin-left: 0; margin-right: auto; }
  html[dir="ltr"] .journey__steps::before { right: auto; left: 50%; }
}
@media (max-width: 560px) {
  html[dir="ltr"] .hero__photo { inset: 20px 38px 20px 22px; }
  html[dir="ltr"] .verse-card { right: auto; left: 0; }
  html[dir="ltr"] .about__photo--main { inset: 0 45px 50px 0; }
  html[dir="ltr"] .about__quote { right: auto; left: -3px; }
}

.page-hero__legal { margin: 0 0 14px; color: var(--gold-200); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: .02em; }
.page-link { margin: 22px 0 0; }
.page-link .text-link { margin-top: 0; color: var(--wine-800); font-size: 1rem; }
.page-link .text-link:hover { text-decoration: underline; }
.prose { max-width: 820px; }
.prose p { margin: 0 0 14px; color: #3d3438; font-size: 1.05rem; line-height: 2.1; }
.page-cta { text-align: center; }
.page-cta__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
html[dir="ltr"] .page-hero .lead, html[dir="ltr"] .prose p { line-height: 1.85; }
.text-link--dark { margin-top: 22px; color: var(--wine-800); font-size: 1rem; }
.text-link--dark:hover { text-decoration: underline; }
.doc-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 440px)); justify-content: center; }

/* قائمة البرامج بتتبني من الشيت (عدد متغيّر): صفوف متمركزة بدل شبكة 4 أعمدة ثابتة */
.program-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.program-card { flex: 0 0 calc(25% - 10.5px); }
@media (max-width: 1050px) { .program-card { flex-basis: calc(50% - 7px); } }
@media (max-width: 560px) { .program-card { flex-basis: 100%; } }

.fact-grid--single { grid-template-columns: 1fr; margin: 6px 0 14px; }
.doc-card__body .fact { box-shadow: none; padding: 14px 18px; }
.doc-card__body .fact__number { font-size: 1.9rem; }
