/* =========================================================
   السر الإلهي بنت الإمام الحسين رقية
   Global Design System
   RTL / Responsive / Accessible
========================================================= */


/* =========================================================
   01 — المتغيرات
========================================================= */

:root {

    --bg: #F3F7F4;
    --bg-soft: #F9FBF8;
    --surface: #FFFFFF;
    --surface-soft: #ECF3EE;

    --text: #172620;
    --text-soft: #4A5E56;
    --text-muted: #667972;

    --green: #0F5A48;
    --green-dark: #0A3D31;
    --green-light: #1A7560;

    --gold: #B58B2E;
    --gold-dark: #8A6718;
    --gold-light: #D9B965;
    --gold-pale: #F3E8C6;

    --border: rgba(15,90,72, 0.14);
    --border-strong: rgba(15,90,72, 0.24);

    --shadow-sm:
        0 4px 18px rgba(10,61,49, 0.06);

    --shadow:
        0 12px 40px rgba(10,61,49, 0.08);

    --shadow-lg:
        0 24px 70px rgba(8,45,36, 0.12);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --container: 1180px;
    --narrow: 820px;

    --header-height: 82px;

    --transition:
        180ms cubic-bezier(.22,.61,.36,1);

    --transition-slow:
        320ms cubic-bezier(.22,.61,.36,1);

    --font:
        "Tahoma",
        "Arial",
        sans-indexif;
}


/* =========================================================
   02 — Reset
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(217,185,101, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(15,90,72, 0.035),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family: var(--font);

    font-size: 16px;
    line-height: 1.9;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

p,
h1,
h2,
h3,
ul,
ol {
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}


/* =========================================================
   03 — الحاويات
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

.container.narrow {
    max-width: var(--narrow);
}


/* =========================================================
   04 — Header
========================================================= */

.site-header {

    position: sticky;
    top: 0;
    z-index: 1000;

    height: var(--header-height);

    background:
        rgba(255,255,255, 0.92);

    border-bottom:
        1px solid rgba(15,90,72, 0.10);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 3px 20px rgba(10,61,49, 0.035);
}

.header-inner {

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   05 — الهوية
========================================================= */

.brand {

    position: relative;

    display: inline-flex;
    flex-direction: column;

    justify-content: center;

    min-width: 190px;

    padding-inline-start: 18px;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.brand::before {

    content: "";

    position: absolute;

    inset-inline-start: 0;

    width: 4px;
    height: 42px;

    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold-dark)
        );
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-title {

    color: var(--green-dark);

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -0.4px;
}

.brand-subtitle {

    margin-top: 3px;

    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   06 — Navigation
========================================================= */

.main-nav {

    display: flex;
    align-items: center;

    gap: 4px;

    height: 100%;
}

.main-nav a {

    position: relative;

    display: flex;
    align-items: center;

    height: 100%;

    padding: 0 13px;

    color: #42564E;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition);
}

.main-nav a::after {

    content: "";

    position: absolute;

    bottom: 0;
    inset-inline: 13px;

    height: 2px;

    border-radius: 10px 10px 0 0;

    background: var(--gold);

    transform:
        scaleX(0);

    transform-origin: center;

    transition:
        transform var(--transition);
}

.main-nav a:hover {
    color: var(--green-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a.active {
    color: var(--green-dark);
}


/* =========================================================
   07 — زر القائمة
========================================================= */

.menu-button {

    display: none;

    width: 46px;
    height: 46px;

    padding: 0;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition:
        background var(--transition),
        border-color var(--transition);
}

.menu-button:hover {
    border-color: var(--gold-light);
}

.menu-button span {

    display: block;

    width: 20px;
    height: 2px;

    border-radius: 10px;

    background: var(--green-dark);

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   08 — Hero الصفحة الرئيسية
========================================================= */

.hero {

    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    isolation: isolate;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(217,185,101, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #EEF5F0 0%,
            #DCE9E1 100%
        );
}

.hero::before {

    content: "";

    position: absolute;
    inset: 0;

    z-index: -2;

    opacity: 0.34;

    background-image:
        linear-gradient(
            30deg,
            rgba(181,139,46,.12) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(181,139,46,.12) 87.5%,
            rgba(181,139,46,.12)
        ),
        linear-gradient(
            150deg,
            rgba(181,139,46,.08) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(181,139,46,.08) 87.5%,
            rgba(181,139,46,.08)
        );

    background-size: 74px 128px;
}

.hero::after {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    border:
        1px solid rgba(181,139,46,.18);

    border-radius: 50%;

    inset-inline-end: -170px;
    top: 80px;

    box-shadow:
        0 0 0 36px rgba(181,139,46,.025),
        0 0 0 72px rgba(181,139,46,.018);

    z-index: -1;
}

.hero-content {

    position: relative;

    padding-top: 75px;
    padding-bottom: 85px;

    max-width: 760px;
}

.hero-label {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: var(--gold-dark);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .4px;
}

.hero-label::before {

    content: "";

    width: 30px;
    height: 1px;

    background: var(--gold);
}

.hero h1 {

    margin: 0;

    color: var(--green-dark);

    font-size:
        clamp(48px, 7vw, 88px);

    font-weight: 900;

    line-height: 1.02;

    letter-spacing: -3px;
}

.hero h2 {

    margin: 12px 0 25px;

    color: var(--gold-dark);

    font-size:
        clamp(24px, 3vw, 38px);

    font-weight: 700;

    line-height: 1.4;

    letter-spacing: -1px;
}

.hero-text {

    max-width: 680px;

    margin-bottom: 32px;

    color: #42564E;

    font-size: 18px;

    line-height: 2.1;
}

.hero-actions {

    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 12px;
}


/* =========================================================
   09 — Hero الصفحات الداخلية
========================================================= */

.page-hero {

    position: relative;

    overflow: hidden;

    padding:
        100px 0
        95px;

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    color: #fff;
}

.page-hero::before {

    content: "";

    position: absolute;

    width: 480px;
    height: 480px;

    border:
        1px solid rgba(217,185,101,.18);

    border-radius: 50%;

    inset-inline-start: -190px;
    top: -230px;

    box-shadow:
        0 0 0 45px rgba(217,185,101,.025),
        0 0 0 90px rgba(217,185,101,.018);
}

.page-hero::after {

    content: "";

    position: absolute;

    inset: 0;

    opacity: .16;

    background-image:
        linear-gradient(
            30deg,
            rgba(217,185,101,.32) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(217,185,101,.32) 87.5%
        ),
        linear-gradient(
            150deg,
            rgba(217,185,101,.24) 12%,
            transparent 12.5%,
            transparent 87%,
            rgba(217,185,101,.24) 87.5%
        );

    background-size: 72px 124px;

    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.eyebrow {

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--gold-light);

    font-size: 13px;
    font-weight: 800;
}

.eyebrow::before {

    content: "";

    width: 32px;
    height: 1px;

    background: var(--gold-light);
}

.page-hero h1 {

    max-width: 850px;

    margin: 0 0 20px;

    color: #fff;

    font-size:
        clamp(32px, 5vw, 58px);

    line-height: 1.3;

    font-weight: 850;

    letter-spacing: -1.4px;
}

.page-hero p {

    max-width: 720px;

    margin: 0;

    color: rgba(255,255,255,.76);

    font-size: 18px;

    line-height: 2;
}

.date-line {

    display: inline-block;

    margin-top: 25px;

    padding: 9px 14px;

    border:
        1px solid rgba(217,185,101,.25);

    border-radius: 50px;

    background:
        rgba(255,255,255,.045);

    color: rgba(255,255,255,.68);

    font-size: 12px;
}


/* =========================================================
   10 — الأزرار
========================================================= */

.button {

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding:
        10px 22px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    line-height: 1.3;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button.primary {

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );

    color: #fff;

    box-shadow:
        0 8px 22px rgba(25,45,39,.18);
}

.button.primary:hover {
    box-shadow:
        0 12px 28px rgba(25,45,39,.24);
}

.button.secondary {

    border:
        1px solid rgba(128,102,49,.40);

    background:
        rgba(255,255,255,.65);

    color: var(--green-dark);
}

.button.secondary:hover {

    border-color: var(--gold);

    background: var(--surface);

    box-shadow:
        0 8px 22px rgba(10,61,49,.07);
}


/* =========================================================
   11 — الأقسام
========================================================= */

.section {

    position: relative;

    padding:
        95px 0;
}

.light-section {

    background:
        rgba(255,255,255,.55);

    border-top:
        1px solid rgba(15,90,72,.055);

    border-bottom:
        1px solid rgba(15,90,72,.055);
}

.section-heading {

    max-width: 780px;

    margin-bottom: 42px;
}

.section-heading > span {

    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 10px;

    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .3px;
}

.section-heading > span::before {

    content: "";

    width: 26px;
    height: 1px;

    background: var(--gold);
}

.section-heading h2 {

    margin: 0;

    color: var(--green-dark);

    font-size:
        clamp(28px, 4vw, 42px);

    line-height: 1.45;

    font-weight: 850;

    letter-spacing: -1px;
}


/* =========================================================
   12 — Important Box
========================================================= */

.important-box {

    position: relative;

    padding:
        32px 34px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(248,242,231,.88)
        );

    box-shadow: var(--shadow-sm);
}

.important-box::before {

    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold-dark)
        );
}

.important-box::after {

    content: "۞";

    position: absolute;

    inset-inline-end: 25px;
    top: 14px;

    color: rgba(181,139,46,.10);

    font-size: 75px;

    line-height: 1;

    pointer-events: none;
}

.important-box h2 {

    position: relative;

    margin-bottom: 15px;

    color: var(--green-dark);

    font-size: 22px;

    z-index: 1;
}

.important-box p {

    position: relative;

    color: var(--text-soft);

    line-height: 2;

    z-index: 1;
}

.important-box p:last-of-type {
    margin-bottom: 0;
}

.important-box a:not(.button) {

    position: relative;

    color: var(--gold-dark);

    font-weight: 800;

    text-decoration: underline;
    text-decoration-color: rgba(181,139,46,.35);
    text-underline-offset: 4px;

    z-index: 2;
}


/* =========================================================
   13 — Cards
========================================================= */

.cards {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.card {

    position: relative;

    min-height: 260px;

    padding: 30px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow),
        border-color var(--transition);
}

.card::before {

    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            transparent
        );

    opacity: .7;

    transition:
        opacity var(--transition);
}

.card::after {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border:
        1px solid rgba(181,139,46,.08);

    border-radius: 50%;

    inset-inline-end: -65px;
    bottom: -65px;
}

.card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(181,139,46,.28);

    box-shadow: var(--shadow);
}

.card:hover::before {
    opacity: 1;
}

.card-number {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 24px;

    border-radius: 12px;

    background:
        var(--gold-pale);

    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 900;
}

.card h3 {

    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: 21px;
}

.card p {

    margin-bottom: 0;

    color: var(--text-soft);

    line-height: 2;
}


/* =========================================================
   14 — Flow
========================================================= */

.flow {

    display: grid;

    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    align-items: stretch;

    gap: 10px;
}

.flow-item {

    min-height: 150px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 24px 20px;

    border:
        1px solid rgba(181,139,46,.16);

    border-radius: 16px;

    background:
        rgba(255,255,255,.70);

    text-align: center;
}

.flow-item strong {

    margin-bottom: 7px;

    color: var(--green-dark);

    font-size: 15px;
}

.flow-item span {

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.8;
}

.flow-arrow {

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold-dark);

    font-size: 22px;
    font-weight: 700;
}

.center-action {

    display: flex;
    justify-content: center;

    margin-top: 35px;
}


/* =========================================================
   15 — Profile
========================================================= */

.profile-card {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding: 32px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    color: #fff;

    box-shadow: var(--shadow-lg);

    overflow: hidden;
}

.profile-card::after {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border:
        1px solid rgba(217,185,101,.15);

    border-radius: 50%;

    inset-inline-end: -120px;
    top: -110px;
}

.profile-card h3 {

    position: relative;
    z-index: 1;

    margin-bottom: 7px;

    color: #fff;

    font-size: 24px;
}

.profile-card p {

    position: relative;
    z-index: 1;

    margin-bottom: 0;

    color: rgba(255,255,255,.68);
}

.profile-card .button {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    background: #fff;
    color: var(--green-dark);

    box-shadow: none;
}


/* =========================================================
   16 — Official Note
========================================================= */

.official-note {

    position: relative;

    padding: 40px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #E8F1EB
        );

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.official-note::before {

    content: "۞";

    position: absolute;

    inset-inline-end: 30px;
    top: 20px;

    color: rgba(181,139,46,.10);

    font-size: 90px;
}

.official-note h2 {

    position: relative;

    margin-bottom: 20px;

    color: var(--green-dark);

    font-size: 25px;
}

.official-note p {

    position: relative;

    color: var(--text-soft);

    line-height: 2.1;
}


/* =========================================================
   17 — Document
========================================================= */

.document {

    color: var(--text);

    font-size: 16px;
}

.document h2 {

    position: relative;

    margin:
        45px 0 17px;

    padding-inline-start: 17px;

    color: var(--green-dark);

    font-size: 26px;

    line-height: 1.5;
}

.document h2:first-child {
    margin-top: 0;
}

.document h2::before {

    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 7px;
    bottom: 7px;

    width: 3px;

    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold-dark)
        );
}

.document p {

    color: var(--text-soft);

    line-height: 2.15;
}

.document ul,
.document ol {

    margin:
        20px 0;

    padding-inline-start: 24px;

    color: var(--text-soft);
}

.document li {

    margin-bottom: 10px;

    line-height: 2;
}

.document li::marker {
    color: var(--gold-dark);
}


/* =========================================================
   18 — Notice
========================================================= */

.notice {

    position: relative;

    margin-top: 35px;

    padding: 28px 30px;

    border:
        1px solid rgba(181,139,46,.20);

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(231,220,195,.38),
            rgba(255,255,255,.70)
        );
}

.notice h2 {

    margin-top: 0;

    color: var(--green-dark);

    font-size: 21px;
}

.notice p {
    color: var(--text-soft);
}


/* =========================================================
   19 — Method Flow
========================================================= */

.method-flow {

    position: relative;

    display: grid;

    gap: 14px;

    margin-bottom: 35px;
}

.method-step {

    position: relative;

    display: grid;

    grid-template-columns: 64px 1fr;

    column-gap: 20px;

    align-items: start;

    padding: 28px 30px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.method-step:hover {

    transform: translateX(-3px);

    border-color:
        rgba(181,139,46,.26);

    box-shadow: var(--shadow);
}

.method-number {

    grid-row: span 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    border-radius: 15px;

    background:
        var(--green-dark);

    color: var(--gold-light);

    font-size: 13px;
    font-weight: 900;
}

.method-step h2 {

    margin: 0 0 7px;

    color: var(--green-dark);

    font-size: 21px;
}

.method-step p {

    margin: 0;

    color: var(--text-soft);

    line-height: 2;
}


/* =========================================================
   20 — Accounts
========================================================= */

.account-section {

    margin-top: 45px;
}

.account-title {

    margin-bottom: 20px;
}

.account-title > span {

    display: inline-block;

    margin-bottom: 7px;

    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 800;
}

.account-title h2 {

    margin: 0 0 6px;

    color: var(--green-dark);

    font-size: 28px;
}

.account-title p {

    margin: 0;

    color: var(--text-soft);
}

.account-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.account-card {

    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: center;

    min-height: 110px;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.account-card::before {

    content: "";

    position: absolute;

    inset-inline-start: 0;
    top: 18px;
    bottom: 18px;

    width: 3px;

    border-radius: 5px;

    background: var(--gold-light);

    opacity: .65;
}

.account-card:hover {

    transform: translateY(-4px);

    border-color:
        rgba(181,139,46,.30);

    box-shadow: var(--shadow);
}

.account-card strong {

    margin-bottom: 4px;

    color: var(--green-dark);

    font-size: 16px;
}

.account-card span {

    color: var(--text-muted);

    font-size: 13px;

    direction: ltr;
    text-align: right;
}

.single-card {
    max-width: 390px;
}


/* =========================================================
   21 — Book
========================================================= */

.book-cover-placeholder {

    position: relative;

    width: min(100%, 390px);

    min-height: 500px;

    margin:
        0 auto 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 4px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(217,185,101,.16),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #0A3D31,
            #0F5A48
        );

    box-shadow:
        0 30px 60px rgba(26,35,30,.20);
}

.book-cover-placeholder::before {

    content: "";

    position: absolute;

    inset: 22px;

    border:
        1px solid rgba(217,185,101,.38);
}

.book-cover-placeholder::after {

    content: "۞";

    position: absolute;

    font-size: 210px;

    color: rgba(217,185,101,.055);
}

.book-cover-placeholder > div {

    position: relative;

    z-index: 2;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: var(--gold-light);

    text-align: center;
}

.book-cover-placeholder span {

    font-size: 30px;
    font-weight: 800;
}

.book-cover-placeholder strong {

    font-size: 20px;
}


/* =========================================================
   22 — FAQ
========================================================= */

.faq-list {

    display: grid;

    gap: 10px;
}

.faq-list details {

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.faq-list details[open] {

    border-color:
        rgba(181,139,46,.30);

    box-shadow: var(--shadow);
}

.faq-list summary {

    position: relative;

    display: flex;
    align-items: center;

    min-height: 70px;

    padding:
        18px 58px 18px 24px;

    color: var(--green-dark);

    font-weight: 800;

    cursor: pointer;

    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before {

    content: "+";

    position: absolute;

    inset-inline-end: 22px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold-pale);

    color: var(--gold-dark);

    font-size: 18px;
    font-weight: 500;

    transition:
        transform var(--transition),
        background var(--transition);
}

.faq-list details[open] summary::before {

    content: "−";

    background: var(--green-dark);

    color: var(--gold-light);
}

.faq-answer {

    padding:
        0 24px 25px;

    border-top:
        1px solid rgba(15,90,72,.07);
}

.faq-answer p {

    margin-top: 20px;

    color: var(--text-soft);

    line-height: 2;
}


/* =========================================================
   23 — Source-specific helpers
========================================================= */

.source-main {
    margin-bottom: 40px;
}

.source-badge {

    display: inline-flex;
    align-items: center;

    margin-bottom: 15px;

    padding: 6px 11px;

    border-radius: 50px;

    background: var(--gold-pale);

    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 800;
}

.source-main h2 {

    margin: 0 0 12px;

    color: var(--green-dark);

    font-size: 30px;
}

.source-main p {
    font-size: 17px;
}


/* =========================================================
   24 — جداول
========================================================= */

.document table,
.source-table,
table {

    width: 100%;

    margin:
        28px 0;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.document th,
.document td,
.source-table th,
.source-table td,
th,
td {

    padding: 15px 16px;

    border-bottom:
        1px solid rgba(15,90,72,.08);

    text-align: right;

    vertical-align: top;
}

.document th,
.source-table th,
th {

    background:
        var(--surface-soft);

    color: var(--green-dark);

    font-weight: 800;
}

.document tr:last-child td,
.source-table tr:last-child td,
tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   25 — اقتباسات
========================================================= */

blockquote {

    position: relative;

    margin:
        28px 0;

    padding:
        25px 30px;

    border-inline-start:
        4px solid var(--gold);

    border-radius: 0 14px 14px 0;

    background:
        rgba(231,220,195,.30);

    color: var(--green-dark);

    font-weight: 600;
}


/* =========================================================
   26 — Footer
========================================================= */

.site-footer {

    position: relative;

    padding-top: 65px;

    background:
        linear-gradient(
            145deg,
            #0A3D31,
            #14594A
        );

    color: #fff;

    overflow: hidden;
}

.site-footer::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border:
        1px solid rgba(217,185,101,.09);

    border-radius: 50%;

    inset-inline-end: -240px;
    top: -310px;
}

.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-grid > div {

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.footer-grid strong {

    color: var(--gold-light);

    font-size: 21px;
}

.footer-grid p {

    margin:
        5px 0 0;

    color: rgba(255,255,255,.58);

    font-size: 13px;
}

.footer-grid h3 {

    margin:
        0 0 13px;

    color: #fff;

    font-size: 15px;
}

.footer-grid a {

    display: inline-flex;
    align-items: center;

    min-height: 44px;

    margin-bottom: 0;

    color: rgba(255,255,255,.62);

    font-size: 13px;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-grid a:hover {

    color: var(--gold-light);

    transform: translateX(-3px);
}

.copyright {

    padding:
        18px 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.42);

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   27 — 404
========================================================= */

.error-page {

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(217,185,101,.11),
            transparent 45%
        ),
        var(--bg);
}

.error-page main {

    width: 100%;
}

.error-box {

    width: min(
        calc(100% - 40px),
        620px
    );

    margin: auto;

    padding:
        65px 40px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-lg);

    text-align: center;
}

.error-number {

    margin-bottom: 10px;

    color: var(--gold-dark);

    font-size:
        clamp(75px, 14vw, 150px);

    font-weight: 900;

    line-height: 1;

    letter-spacing: -8px;
}

.error-box h1 {

    margin-bottom: 12px;

    color: var(--green-dark);

    font-size: 30px;
}

.error-box p {

    max-width: 470px;

    margin:
        0 auto 28px;

    color: var(--text-soft);

    line-height: 2;
}


/* =========================================================
   28 — Focus / Accessibility
========================================================= */

:focus-visible {

    outline:
        3px solid rgba(181,139,46,.45);

    outline-offset: 4px;
}

::selection {

    background: var(--gold-pale);

    color: var(--green-dark);
}


/* =========================================================
   29 — Scrollbar
========================================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #DCE9E1;
}

::-webkit-scrollbar-thumb {

    background:
        #C9AE63;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}


/* =========================================================
   30 — Tablet
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .main-nav a::after {
        inset-inline: 9px;
    }

    .cards {
        gap: 15px;
    }

    .flow {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .flow-arrow {
        display: none;
    }

    .flow-item {
        min-height: 135px;
    }

    .account-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   31 — Mobile Navigation
========================================================= */

@media (max-width: 820px) {

    :root {
        --header-height: 72px;
    }

    .container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }

    .site-header {
        height: var(--header-height);
    }

    .brand {
        min-width: 0;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .menu-button {
        display: flex;
    }

    .main-nav {

        position: fixed;

        top: calc(
            var(--header-height) + 8px
        );

        inset-inline: 15px;

        height: auto;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 9px;

        border:
            1px solid var(--border);

        border-radius: 18px;

        background:
            rgba(255,255,255,.98);

        box-shadow: var(--shadow-lg);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px)
            scale(.98);

        transform-origin: top center;

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);

        overflow: hidden;
    }

    .main-nav.is-open {

        opacity: 1;
        visibility: visible;

        transform:
            translateY(0)
            scale(1);
    }

    .main-nav a {

        height: auto;

        min-height: 49px;

        padding:
            10px 15px;

        border-radius: 10px;

        color: var(--text);

        font-size: 14px;
    }

    .main-nav a:hover,
    .main-nav a.active {

        background:
            rgba(231,220,195,.35);

        color: var(--green-dark);
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding:
            75px 0
            80px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-text {
        font-size: 16px;
    }

    .page-hero {
        padding:
            70px 0
            65px;
    }

    .section {
        padding:
            70px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .profile-card {

        flex-direction: column;

        align-items: flex-start;
    }

    .profile-card .button {
        width: 100%;
    }

    .footer-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 35px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   32 — Mobile
========================================================= */

@media (max-width: 560px) {

    body {
        font-size: 15px;
    }

    .container {
        width:
            calc(100% - 28px);
    }

    .brand::before {
        height: 35px;
    }

    .brand-title {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .hero-content {
        padding:
            60px 0
            68px;
    }

    .hero h1 {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 2;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .page-hero {
        padding:
            58px 0
            55px;
    }

    .page-hero h1 {
        font-size: 32px;
        letter-spacing: -.8px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .date-line {
        line-height: 1.8;
        border-radius: 12px;
    }

    .section {
        padding:
            58px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .important-box {
        padding:
            27px 23px;
    }

    .official-note {
        padding:
            30px 23px;
    }

    .flow {
        grid-template-columns: 1fr;
    }

    .flow-item {
        min-height: 125px;
    }

    .method-step {

        grid-template-columns:
            48px 1fr;

        column-gap: 15px;

        padding:
            22px 18px;
    }

    .method-number {

        width: 46px;
        height: 46px;

        border-radius: 12px;
    }

    .method-step h2 {
        font-size: 18px;
    }

    .method-step p {
        font-size: 14px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-title h2 {
        font-size: 23px;
    }

    .document h2 {
        font-size: 23px;
    }

    .document table,
    .source-table {
        display: block;

        overflow-x: auto;

        white-space: normal;
    }

    .book-cover-placeholder {
        min-height: 430px;
    }

    .book-cover-placeholder span {
        font-size: 27px;
    }

    .book-cover-placeholder strong {
        font-size: 18px;
    }

    .faq-list summary {
        padding:
            17px 55px 17px 18px;

        font-size: 14px;
    }

    .faq-answer {
        padding:
            0 18px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .error-box {
        padding:
            50px 24px;
    }
}


/* =========================================================
   33 — Very Small Screens
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 41px;
    }

    .hero h2 {
        font-size: 21px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .button {
        padding-inline: 18px;
    }

    .method-step {
        grid-template-columns: 1fr;
    }

    .method-number {
        margin-bottom: 15px;
    }
}


/* =========================================================
   34 — Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

        scroll-behavior: auto !important;
    }
}

/* تحسينات الوصول وتجربة الاستخدام */
html { -webkit-text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
summary { cursor: pointer; }
img { max-width: 100%; height: auto; }

/* تثبيت ألوان عنوان الموقع كما كانت (لا تتأثر بتحديث الألوان) */
div.container.header-inner > a.brand > span.brand-copy > span.brand-title { color: rgb(25, 45, 39) !important; -webkit-text-fill-color: rgb(25, 45, 39) !important; }
section.hero > div.container.hero-content > div.hero-copy > h1 { color: rgb(25, 45, 39) !important; -webkit-text-fill-color: rgb(25, 45, 39) !important; }
div.container.hero-content > div.hero-art > div.hero-art-center > span.hero-art-caption { color: rgb(37, 36, 31) !important; -webkit-text-fill-color: rgb(37, 36, 31) !important; }
header.site-header > div.container.header-inner > a.brand > span.brand-title { color: rgb(25, 45, 39) !important; -webkit-text-fill-color: rgb(25, 45, 39) !important; }
div.container.narrow > div.book-cover-placeholder > div > span { color: rgb(201, 178, 126) !important; -webkit-text-fill-color: rgb(201, 178, 126) !important; }
footer.site-footer > div.container.footer-grid > div > strong { color: rgb(201, 178, 126) !important; -webkit-text-fill-color: rgb(201, 178, 126) !important; }
footer.site-footer > div.container.footer-grid > div.footer-brand > strong { color: rgb(201, 178, 126) !important; -webkit-text-fill-color: rgb(201, 178, 126) !important; }
div.container > div.account-section > div.account-title > h2 { color: rgb(25, 45, 39) !important; -webkit-text-fill-color: rgb(25, 45, 39) !important; }

/* أهداف اللمس: 44px على الأقل دون تغيير شكل النص */
/* شرائح الهاشتاغ (نص صرف داخل الرابط) */
a[href*="google.com/search?q=%23"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
/* «قراءة بيان المصدر كاملًا»: inline-block حتى يبقى النص والسهم inline ولا يتغير النص المقروء/المنسوخ */
.text-link {
    display: inline-block;
    min-height: 44px;
    padding-block: 8px;
}
