/* ==========================================================================
   السهم — الأستاذ محمد البهنسي
   واجهة الموقع العامة: الصفحة الرئيسية، سياسة الخصوصية، الشروط والأحكام.
   ========================================================================== */

:root {
    color-scheme: light;

    --navy: #102d52;
    --navy-deep: #0a1e39;
    --navy-soft: #1c3d68;
    --gold: #c99b3a;
    --gold-light: #dfb95f;
    --gold-wash: #f3ead6;

    --paper: #f6f3ed;
    --paper-alt: #fffdf8;
    --ink: #17212f;
    --muted: #5f6b7c;
    --muted-soft: #8b95a3;
    --rule: #e4ded2;
    --rule-dark: #24476f;

    --measure: 62ch;
    --shell: 1180px;

    --step--1: 0.82rem;
    --step-0: 1rem;
    --step-1: 1.18rem;
    --step-2: 1.45rem;
    --step-3: 1.9rem;
    --step-4: 2.5rem;
    --step-5: clamp(2.15rem, 4vw, 3.3rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- تخطيط عام ---------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 22px;
}

.section {
    padding-block: 84px;
}

.section--tight {
    padding-block: 60px;
}

.section--navy {
    background: var(--navy);
    color: #eef2f7;
}

.section--paper-alt {
    background: var(--paper-alt);
}

.section--map {
    position: relative;
    overflow: hidden;
}

.section--map::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("world-map-vintage.jpg") center / cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

.section--map > .shell {
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--gold);
}

/* رأس السهم — الشعارة البصرية المتكررة، مأخوذة من اسم المنصة */
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    position: relative;
}

.section--navy .eyebrow {
    color: var(--gold-light);
}

.section-head {
    max-width: 60ch;
    margin-bottom: 44px;
}

.section-head h2 {
    font-size: var(--step-4);
}

.section-head p {
    margin-top: 14px;
    max-width: var(--measure);
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.85;
}

.section--navy .section-head p {
    color: #b9c6d6;
}

/* --- الأزرار ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-deep);
}

.btn--gold:hover {
    background: var(--gold-light);
}

.btn--navy {
    background: var(--navy);
    color: #fff;
}

.btn--navy:hover {
    background: var(--navy-soft);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn--ghost:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.btn--outline {
    border-color: var(--navy);
    color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: #fff;
}

/* --- الترويسة ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 237, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand__text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
}

.brand__text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .btn {
    padding: 9px 18px;
    font-size: 0.8rem;
}

@media (max-width: 940px) {
    .site-nav {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand__text span {
        display: none;
    }

    .header-actions .btn--outline {
        display: none;
    }
}

/* --- الواجهة الرئيسية ---------------------------------------------------- */

.hero {
    position: relative;
    background: var(--navy-deep);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* الصورة تملأ الواجهة، ويغطّيها تدرّج كحلي يثقُل ناحية النص ليبقى مقروءًا. */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 58%;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left,
            rgba(10, 30, 57, 0.97) 0%,
            rgba(10, 30, 57, 0.92) 30%,
            rgba(10, 30, 57, 0.68) 60%,
            rgba(10, 30, 57, 0.44) 100%),
        linear-gradient(to top, rgba(10, 30, 57, 0.9) 0%, transparent 42%);
}

.hero__inner {
    position: relative;
    padding-block: 92px 84px;
}

.hero__copy {
    max-width: 54ch;
}

@media (max-width: 900px) {
    .hero__scrim {
        background: linear-gradient(to top,
            rgba(10, 30, 57, 0.97) 0%,
            rgba(10, 30, 57, 0.9) 55%,
            rgba(10, 30, 57, 0.78) 100%);
    }

    .hero__inner {
        padding-block: 62px 54px;
    }
}

.hero__kicker {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(223, 185, 95, 0.45);
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-light);
}

.hero h1 {
    font-size: var(--step-5);
    line-height: 1.14;
    letter-spacing: 0;
}

.hero h1 em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    color: var(--gold);
    white-space: nowrap;
}

.hero__lede {
    margin-top: 20px;
    max-width: 46ch;
    font-size: var(--step-1);
    line-height: 1.85;
    color: #c3cfdd;
}

.hero__meta {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--rule-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a9b8ca;
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero__meta i {
    color: var(--gold);
    font-size: 0.8rem;
}

.hero__cta {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* شريط الأرقام */

.figures {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 21, 41, 0.82);
    backdrop-filter: blur(6px);
}

.figures__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.figure {
    padding: 26px 20px;
    text-align: center;
    border-inline-start: 1px solid var(--rule-dark);
}

.figure:first-child {
    border-inline-start: 0;
}

.figure dt {
    font-size: 0.74rem;
    font-weight: 600;
    color: #93a4b8;
    letter-spacing: 0.04em;
}

.figure dd {
    margin: 4px 0 0;
    font-size: var(--step-3);
    font-weight: 900;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

@media (max-width: 700px) {
    .figures__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .figure:nth-child(3) {
        border-inline-start: 0;
    }

    .figure:nth-child(n + 3) {
        border-top: 1px solid var(--rule-dark);
    }
}

/* --- المواد الدراسية ----------------------------------------------------- */

.subjects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.subject {
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--navy);
    padding: 30px 28px 28px;
}

.subject--geo {
    border-top-color: var(--gold);
}

.subject__cover {
    margin: -30px -28px 24px;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: var(--rule);
}

.subject__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subject:hover .subject__cover img {
    transform: scale(1.04);
}

.subject__stage {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--muted-soft);
}

.subject h3 {
    margin-top: 8px;
    font-size: var(--step-3);
    color: var(--navy);
}

.subject__desc {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.subject__units {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.subject__units li {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
}

.subject__units li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

.subject__units b {
    font-weight: 800;
    color: var(--muted-soft);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .subjects {
        grid-template-columns: 1fr;
    }
}

/* --- جدول المواعيد ------------------------------------------------------- */

.schedule-simple {
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--navy);
}

.schedule-simple__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--rule);
}

.schedule-simple__head .eyebrow {
    margin-bottom: 8px;
}

.schedule-simple__head h2 {
    font-size: var(--step-3);
    color: var(--navy);
}

.schedule-simple__head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}

.schedule-table-wrap {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.schedule-table th,
.schedule-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rule);
    text-align: start;
    vertical-align: middle;
}

.schedule-table th {
    background: #f1eadc;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 900;
}

.schedule-table td {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.6;
}

.schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.schedule-table tbody tr:hover td {
    background: #fbf8f2;
}

.schedule-table td strong,
.schedule-table td span {
    display: block;
}

.schedule-table td strong {
    color: var(--ink);
    font-weight: 900;
}

.schedule-table td span {
    margin-top: 2px;
    color: var(--muted-soft);
    font-size: 0.78rem;
}

.schedule-table__time {
    color: var(--navy) !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.schedule-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 0 !important;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem !important;
    font-weight: 900;
    white-space: nowrap;
}

.schedule-pill--center {
    background: var(--gold-wash);
    color: #8a6414 !important;
}

.schedule-pill--online {
    background: #e3edf8;
    color: #1d4d80 !important;
}

.schedule-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .schedule-simple__head {
        display: block;
        padding: 22px 20px;
    }

    .schedule-simple__head .btn {
        margin-top: 16px;
        width: 100%;
    }

    .schedule-table {
        min-width: 0;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--rule);
    }

    .schedule-table tr:last-child {
        border-bottom: 0;
    }

    .schedule-table td {
        display: grid;
        grid-template-columns: 104px 1fr;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 0;
    }

    .schedule-table td::before {
        content: attr(data-label);
        color: var(--muted-soft);
        font-size: 0.76rem;
        font-weight: 900;
    }

    .schedule-table tbody tr:hover td {
        background: transparent;
    }
}

.section-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
}

/* --- تطبيق الطالب -------------------------------------------------------- */

.section--app {
    background:
        linear-gradient(180deg, #fffdf8 0%, #edf5f2 100%);
}

.app-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 42px 46px;
    background: #fff;
    border: 1px solid var(--rule);
    border-inline-start: 4px solid var(--gold);
    box-shadow: 0 22px 60px rgba(16, 45, 82, 0.08);
}

.app-band__text h2 {
    max-width: 16ch;
    font-size: var(--step-4);
    color: var(--navy);
}

.app-band__text > p {
    margin-top: 14px;
    max-width: 54ch;
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.85;
}

.app-benefits {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f2f6fa;
    border: 1px solid #dce5ee;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.app-benefits i {
    color: #2870a8;
    font-size: 0.85rem;
}

.stores {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 22px 10px 20px;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.store:hover {
    background: var(--navy-soft);
    transform: translateY(-1px);
}

.store i {
    font-size: 1.55rem;
    color: var(--gold-light);
}

.store small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.4;
    color: #b3c1d2;
}

.store strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.store--light {
    background: #111827;
    border-color: #111827;
}

.store--soon {
    background: transparent;
    border-color: #cfd7df;
    border-style: dashed;
    color: var(--muted);
    cursor: default;
}

.store--soon i {
    color: var(--muted-soft);
}

.store--soon small {
    color: var(--muted-soft);
}

.app-band__note {
    margin-top: 16px;
    font-size: 0.83rem;
    color: var(--muted-soft);
}

.app-preview {
    display: flex;
    justify-content: center;
}

.app-preview__phone {
    position: relative;
    width: min(100%, 286px);
    aspect-ratio: 9 / 18.4;
    padding: 13px;
    border-radius: 32px;
    background: #0a1e39;
    box-shadow: 0 26px 54px rgba(10, 30, 57, 0.28);
}

.app-preview__phone::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    pointer-events: none;
}

.app-preview__notch {
    position: absolute;
    top: 13px;
    left: 50%;
    z-index: 2;
    width: 86px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background: #0a1e39;
}

.app-preview__screen {
    height: 100%;
    overflow: hidden;
    border-radius: 23px;
    background: #f7fafc;
    padding: 34px 18px 18px;
}

.app-preview__top {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 900;
}

.app-preview__top img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.app-preview__lesson {
    margin-top: 28px;
    padding: 18px;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
}

.app-preview__lesson small,
.app-preview__lesson span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b8c8db;
}

.app-preview__lesson strong {
    display: block;
    margin-top: 5px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.app-preview__lesson span {
    width: fit-content;
    margin-top: 14px;
    padding: 3px 9px;
    background: var(--gold);
    color: var(--navy-deep);
    border-radius: 999px;
    font-size: 0.68rem;
}

.app-preview__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.app-preview__stats span {
    padding: 13px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.app-preview__stats b,
.app-preview__stats small {
    display: block;
}

.app-preview__stats b {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
}

.app-preview__stats small {
    margin-top: 3px;
    color: var(--muted-soft);
    font-size: 0.68rem;
    font-weight: 700;
}

.app-preview__actions {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.app-preview__actions span {
    height: 11px;
    border-radius: 999px;
    background: #dce5ee;
}

.app-preview__actions span:first-child {
    width: 100%;
}

.app-preview__actions span:nth-child(2) {
    width: 76%;
}

.app-preview__actions span:nth-child(3) {
    width: 58%;
}

@media (max-width: 860px) {
    .app-band {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .app-band__text h2 {
        max-width: none;
        font-size: var(--step-3);
    }

    .app-preview {
        justify-content: flex-start;
    }

    .app-preview__phone {
        width: 220px;
    }
}

/* --- خدمات المنصة -------------------------------------------------------- */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule-dark);
    border: 1px solid var(--rule-dark);
}

.feature {
    background: var(--navy);
    padding: 28px 24px;
}

.feature i {
    font-size: 1.05rem;
    color: var(--gold);
}

.feature h3 {
    margin-top: 14px;
    font-size: var(--step-1);
    letter-spacing: 0;
}

.feature p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: #a9b8ca;
}

@media (max-width: 860px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* --- معرض الصور ---------------------------------------------------------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 168px;
    gap: 12px;
}

.gallery figure {
    margin: 0;
    overflow: hidden;
    background: var(--rule);
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery figure:hover img {
    transform: scale(1.04);
}

.gallery .span-2 {
    grid-column: span 2;
}

.gallery .row-2 {
    grid-row: span 2;
}

@media (max-width: 860px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
}

/* --- عن المدرس ----------------------------------------------------------- */

.about {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.about__photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 3px;
}

.about__body p {
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.9;
    max-width: var(--measure);
}

.about__body p + p {
    margin-top: 16px;
}

.quote {
    margin: 28px 0 0;
    padding: 22px 24px;
    background: var(--gold-wash);
    border-inline-start: 3px solid var(--gold);
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.8;
}

.quote footer {
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8a6414;
}

@media (max-width: 820px) {
    .about {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about__photo {
        max-width: 300px;
    }
}

/* --- تواصل --------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.contact a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 20px;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.contact a:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.contact i {
    font-size: 1.1rem;
    color: var(--navy);
}

.contact strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink);
}

.contact span {
    font-size: 0.8rem;
    color: var(--muted);
    direction: ltr;
    text-align: start;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
    .contact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- شريط الدعوة النهائي -------------------------------------------------- */

.closing {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.closing__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

.closing__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
        rgba(10, 30, 57, 0.96) 0%,
        rgba(10, 30, 57, 0.88) 42%,
        rgba(10, 30, 57, 0.58) 100%);
}

.closing__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
    padding-block: 52px;
}

.closing h2 {
    font-size: var(--step-3);
}

.closing p {
    margin-top: 8px;
    color: #b0bfd0;
    font-size: 0.95rem;
    max-width: 48ch;
}

.closing__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- التذييل ------------------------------------------------------------- */

.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #93a4b8;
    font-size: 0.85rem;
    border-top: 4px solid var(--gold);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-block: 48px;
    border-bottom: 1px solid var(--rule-dark);
}

.site-footer h4 {
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold-light);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer a {
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer a:hover {
    color: var(--gold-light);
}

.site-footer__brand p {
    margin-top: 18px;
    max-width: 40ch;
    line-height: 1.85;
    color: #afbdcd;
}

.brand--footer {
    width: fit-content;
    gap: 18px;
    padding: 12px 16px;
    background: #fffdf8;
    border: 1px solid rgba(223, 185, 95, 0.45);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.site-footer .brand--footer img {
    height: 82px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.site-footer .brand--footer .brand__text strong {
    color: var(--navy);
    font-size: 1.28rem;
}

.site-footer .brand--footer .brand__text span {
    color: #8a6414;
    font-size: 0.86rem;
    font-weight: 800;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 20px;
    font-size: 0.8rem;
}

.site-footer__bottom a {
    font-weight: 700;
    color: #b9c6d6;
}

.site-footer__dev {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    transition: opacity 0.18s ease;
}

.dev-credit:hover {
    opacity: 0.8;
}

.dev-credit img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.site-footer__dev .dot {
    color: #4a5f77;
}

.dev-phone {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.whatsapp-float {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 17px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(20, 125, 62, 0.28);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.whatsapp-float:hover {
    background: #1fbd5a;
    color: #fff;
    transform: translateY(-2px);
}

.whatsapp-float i {
    font-size: 1.24rem;
}

@media (max-width: 780px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* --- الصفحات النصية (الخصوصية والشروط) ------------------------------------ */

.page-head {
    background: var(--navy);
    color: #fff;
    padding-block: 58px;
}

.page-head h1 {
    font-size: var(--step-4);
}

.page-head p {
    margin-top: 12px;
    max-width: var(--measure);
    color: #b0bfd0;
}

.page-head__updated {
    margin-top: 18px;
    display: inline-block;
    padding: 5px 13px;
    border: 1px solid var(--rule-dark);
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-light);
}

.legal {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 56px;
    align-items: start;
    padding-block: 64px;
}

.toc {
    position: sticky;
    top: 92px;
    padding: 22px;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
}

.toc h2 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--muted-soft);
    margin-bottom: 14px;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toc li {
    counter-increment: toc;
}

.toc a {
    display: flex;
    gap: 9px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.18s ease;
}

.toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: none;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.toc a:hover {
    color: var(--navy);
}

.legal__body {
    max-width: 68ch;
}

.legal__body section {
    padding-bottom: 34px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--rule);
}

.legal__body section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.legal__body h2 {
    scroll-margin-top: 92px;
    font-size: var(--step-2);
    color: var(--navy);
    margin-bottom: 14px;
}

.legal__body h3 {
    font-size: var(--step-0);
    color: var(--ink);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal__body p {
    color: #3c4757;
    line-height: 1.95;
}

.legal__body p + p {
    margin-top: 12px;
}

.legal__body ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal__body ul li {
    display: flex;
    gap: 11px;
    color: #3c4757;
    line-height: 1.85;
}

.legal__body ul li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 11px;
    background: var(--gold);
    transform: rotate(45deg);
}

.callout {
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--gold-wash);
    border-inline-start: 3px solid var(--gold);
    font-size: 0.92rem;
    line-height: 1.85;
    color: #4a3a12;
}

@media (max-width: 900px) {
    .legal {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 44px;
    }

    .toc {
        position: static;
    }
}

/* --- المدونة ------------------------------------------------------------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-alt);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.chip:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.chip b {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted-soft);
    font-variant-numeric: tabular-nums;
}

.chip.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.chip.is-active b {
    color: var(--gold-light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--navy);
}

.card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--rule);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.card__cat {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    color: var(--gold);
}

.card__title {
    margin-top: 9px;
    font-size: var(--step-1);
    line-height: 1.55;
}

.card__title a {
    color: var(--navy);
    text-decoration: none;
}

.card__title a:hover {
    color: var(--gold);
}

.card__excerpt {
    margin-top: 11px;
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--muted);
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted-soft);
}

.card__meta i {
    margin-inline-end: 5px;
}

@media (max-width: 940px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.empty {
    padding: 70px 26px;
    background: var(--paper-alt);
    border: 1px dashed var(--rule-dark);
    text-align: center;
}

.empty i {
    font-size: 2.6rem;
    color: var(--gold);
    opacity: 0.55;
}

.empty h2 {
    margin-top: 18px;
    font-size: var(--step-2);
    color: var(--navy);
}

.empty p {
    margin: 10px auto 24px;
    max-width: 44ch;
    color: var(--muted);
    line-height: 1.85;
}

/* --- ترقيم الصفحات ------------------------------------------------------- */

.pager {
    margin-top: 40px;
}

.pager__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pager__pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pager__step,
.pager__page,
.pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    height: 38px;
    padding-inline: 14px;
    border: 1px solid var(--rule);
    background: var(--paper-alt);
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.pager__page {
    padding-inline: 8px;
}

a.pager__step:hover,
a.pager__page:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.pager__page.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.pager__step.is-disabled,
.pager__gap {
    opacity: 0.45;
    border-style: dashed;
}

/* --- صفحة المقال --------------------------------------------------------- */

.post__head {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.post__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(10, 30, 57, 0.96) 0%, rgba(10, 30, 57, 0.9) 45%, rgba(10, 30, 57, 0.7) 100%),
        linear-gradient(to top, rgba(10, 30, 57, 0.92) 0%, transparent 60%);
}

.post__intro {
    position: relative;
    padding-block: 62px 56px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    font-size: 0.79rem;
    font-weight: 700;
    color: #90a3b8;
}

.crumbs a {
    color: var(--gold-light);
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.post__intro h1 {
    font-size: var(--step-4);
    line-height: 1.4;
    max-width: 22ch;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b0bfd0;
}

.post__meta i {
    margin-inline-end: 6px;
    color: var(--gold-light);
}

.post__wrap {
    padding-block: 58px 64px;
    max-width: 82ch;
}

/* متن المقال يصل من محرّر لوحة التحكم بوسوم HTML عامة، فنضبط شكلها هنا. */
.prose {
    color: var(--ink);
    font-size: var(--step-1);
    line-height: 1.95;
}

.prose > * + * {
    margin-top: 20px;
}

.prose h2 {
    margin-top: 40px;
    font-size: var(--step-3);
    color: var(--navy);
}

.prose h3 {
    margin-top: 32px;
    font-size: var(--step-2);
    color: var(--navy);
}

.prose p {
    max-width: var(--measure);
}

.prose a {
    color: var(--navy);
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-inline-start: 22px;
    max-width: var(--measure);
}

.prose li + li {
    margin-top: 8px;
}

.prose img {
    display: block;
    height: auto;
    border: 1px solid var(--rule);
}

.prose blockquote {
    margin-inline: 0;
    padding: 20px 24px;
    background: var(--gold-wash);
    border-inline-start: 3px solid var(--gold);
    font-weight: 600;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.prose th,
.prose td {
    padding: 11px 14px;
    border: 1px solid var(--rule);
    text-align: start;
}

.prose th {
    background: var(--gold-wash);
    font-weight: 800;
    color: var(--navy);
}

.post__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-size: 0.82rem;
    color: var(--muted-soft);
    font-weight: 700;
}

.post__tags b {
    padding: 4px 12px;
    background: var(--gold-wash);
    color: #8a6414;
    font-size: 0.76rem;
    font-weight: 800;
}

.post__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

@media (max-width: 700px) {
    .post__intro {
        padding-block: 44px 40px;
    }

    .post__wrap {
        padding-block: 40px 46px;
    }
}
