:root {
    --sirah-layout-width: 1240px;
    --sirah-layout-gutter: 36px;

    --sirah-brand-oud: #8b4654;
    --sirah-brand-oud-dark: #67313d;
    --sirah-brand-oud-deep: #4b252d;
    --sirah-brand-oud-soft: #a76470;
    --sirah-brand-gold: #c69a58;
    --sirah-brand-gold-light: #e1c38a;
    --sirah-brand-paper: #fffaf5;
    --sirah-brand-paper-deep: #f3e7df;
    --sirah-brand-ink: #342329;
    --sirah-brand-muted: #75656a;

    /* تسلسل خلفيات الصفحة الرئيسية */
    --sirah-bg-about-top: #f3e7d8;
    --sirah-bg-about-bottom: #ead8c4;

    --sirah-bg-videos-top: #fffdf9;
    --sirah-bg-videos-middle: #fcf8f2;
    --sirah-bg-videos-bottom: #f8f1e8;

    --sirah-bg-quran-top: #f4e8e8;
    --sirah-bg-quran-middle: #ead6d9;
    --sirah-bg-quran-bottom: #dfc5ca;

    /*
     * المسافة الرأسية الموحدة لأقسام الصفحة الرئيسية.
     * تتغير مرة واحدة حسب حجم الجهاز ثم تستخدمها كل الأقسام.
     */
    --sirah-section-space-y: clamp(44px, 4.2vw, 56px);
}

/* لابتوب */
@media (max-width: 1199.98px) {
    :root {
        --sirah-section-space-y: 44px;
    }
}

/* تابلت */
@media (max-width: 991.98px) {
    :root {
        --sirah-section-space-y: 40px;
    }
}

/* جوال */
@media (max-width: 767.98px) {
    :root {
        --sirah-section-space-y: 30px;
    }
}

/* جوال صغير */
@media (max-width: 390px) {
    :root {
        --sirah-section-space-y: 26px;
    }
}


html,
body {
    width: 100%;
    min-width: 0;
    margin: 0;
}

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    background: #ffffff;
}

@supports not (overflow: clip) {

    html,
    body {
        overflow-x: hidden;
    }
}

.hero-header {
    display: none !important;
}

/* =========================================================
   2) غلاف القسم
========================================================= */
.sirah-home-hero {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: none;

    margin: 0 0 clamp(16px, 2vw, 28px);
    overflow: hidden;

    background: #e9ddd0;
}

@media (min-width: 1600px) {
    .sirah-home-hero {
        width: min(100%, 1600px);
        max-width: 1600px;
        margin-inline: auto;
    }
}

.sirah-home-hero-media {
    position: relative;
    width: 100%;

    /* نفس نسبة الصورة الأصلية 2400 × 900 */
    aspect-ratio: 8 / 3;
    min-height: 360px;
    max-height: 510px;

    overflow: hidden;
    background: #e9ddd0;
}

.sirah-home-hero-image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.sirah-home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(90deg,
            rgba(38, 22, 17, .01) 0%,
            rgba(38, 22, 17, 0) 48%,
            rgba(255, 248, 240, .07) 100%);
}

/* =========================================================
   3) بطاقة النص
========================================================= */
.sirah-home-hero-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    z-index: 2;

    width: min(calc(100% - var(--sirah-layout-gutter)),
            var(--sirah-layout-width));
    max-width: var(--sirah-layout-width) !important;
    height: 100%;

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

    margin: 0;
    padding-block: clamp(18px, 3vw, 42px);
    padding-inline: 0;

    direction: rtl;
    transform: translateX(-50%);

    pointer-events: none;
}

.sirah-home-hero-card {
    width: min(42%, 520px);
    max-width: 520px;

    margin: 0;
    padding: clamp(19px, 2.2vw, 31px);

    text-align: right;

    /* شفافية أعلى ليظهر منظر الصورة من خلال المربع */
    background: linear-gradient(145deg,
            rgba(255, 255, 255, .68),
            rgba(255, 248, 240, .51));

    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: clamp(17px, 1.7vw, 23px);

    box-shadow:
        0 18px 42px rgba(60, 35, 25, .13),
        inset 0 1px 0 rgba(255, 255, 255, .70);

    -webkit-backdrop-filter: blur(7px) saturate(108%);
    backdrop-filter: blur(7px) saturate(108%);

    pointer-events: auto;
}

.sirah-home-hero-kicker {
    margin: 0 0 clamp(6px, .7vw, 9px);
    color: var(--sirah-brand-oud-soft);
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 700;
    line-height: 1.55;
}

.sirah-home-hero-title {
    margin: 0 0 clamp(13px, 1.4vw, 20px);
    color: var(--sirah-brand-oud-deep);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.sirah-home-hero-button {
    min-width: 180px;
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 19px;

    color: #ffffff !important;
    background: linear-gradient(135deg, var(--sirah-brand-oud-dark), var(--sirah-brand-oud));
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 11px;

    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;

    box-shadow: 0 10px 23px rgba(139, 70, 84, .20);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.sirah-home-hero-button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 29px rgba(139, 70, 84, .25);
}

/* =========================================================
   4) لابتوب صغير
========================================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .sirah-home-hero-media {
        min-height: 350px;
        max-height: 450px;
    }

    .sirah-home-hero-card {
        width: min(45%, 480px);
        max-width: 480px;
        padding: 21px 24px;
    }

    .sirah-home-hero-title {
        font-size: clamp(35px, 4.4vw, 50px);
    }
}

/* =========================================================
   5) التابلت العمودي
========================================================= */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {
    .sirah-home-hero-media {
        aspect-ratio: 16 / 8.2;
        min-height: 350px;
        max-height: 440px;
    }

    .sirah-home-hero-image {
        object-position: 40% center;
    }

    .sirah-home-hero-content {
        width: calc(100% - 28px);
        max-width: var(--sirah-layout-width) !important;

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

        padding: 24px 0;
    }

    .sirah-home-hero-card {
        width: min(54%, 410px);
        max-width: 410px;
        margin-right: 0;
        margin-left: auto;
        padding: 20px 22px;
        text-align: right;
    }

    .sirah-home-hero-title {
        font-size: clamp(34px, 5.5vw, 47px);
    }
}

/* =========================================================
   6) الجوال العمودي
========================================================= */
@media (max-width: 767.98px) and (orientation: portrait) {
    .sirah-home-hero {
        width: 100%;
        margin-bottom: 15px;
    }

    .sirah-home-hero-media {
        aspect-ratio: auto;
        min-height: 0;
        height: clamp(270px, 72vw, 330px);
        max-height: none;
    }

    /* تحريك نقطة القص قليلاً لإظهار القبة والمنارة بشكل أفضل */
    .sirah-home-hero-image {
        object-position: 34% center;
    }

    .sirah-home-hero-overlay {
        background: linear-gradient(180deg,
                rgba(35, 20, 14, 0) 0%,
                rgba(35, 20, 14, .01) 54%,
                rgba(255, 248, 240, .08) 100%);
    }

    .sirah-home-hero-content {
        width: calc(100% - 18px);
        max-width: var(--sirah-layout-width) !important;

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

        padding: 10px 0 13px;
    }

    .sirah-home-hero-card {
        width: min(100%, 350px);
        max-width: 350px;
        margin: 0 auto;
        padding: 13px 14px;
        text-align: center;
        border-radius: 15px;

        background: linear-gradient(145deg,
                rgba(255, 255, 255, .66),
                rgba(255, 248, 240, .48));

        -webkit-backdrop-filter: blur(6px) saturate(106%);
        backdrop-filter: blur(6px) saturate(106%);
    }

    .sirah-home-hero-kicker {
        margin-bottom: 4px;
        font-size: 10.5px;
        line-height: 1.4;
    }

    .sirah-home-hero-title {
        margin-bottom: 9px;
        font-size: clamp(27px, 8.5vw, 35px);
        line-height: 1.03;
    }

    .sirah-home-hero-button {
        width: min(100%, 190px);
        min-width: 0;
        min-height: 38px;
        padding: 7px 13px;
        font-size: 10.5px;
        border-radius: 9px;
    }
}

/* =========================================================
   7) الجوال الصغير جداً
========================================================= */
@media (max-width: 420px) and (orientation: portrait) {
    .sirah-home-hero-media {
        height: clamp(255px, 75vw, 285px);
    }

    .sirah-home-hero-content {
        width: calc(100% - 14px);

        padding: 8px 0 10px;
    }

    .sirah-home-hero-card {
        width: 100%;
        padding: 11px 10px;
        border-radius: 13px;
    }

    .sirah-home-hero-kicker {
        font-size: 9.5px;
    }

    .sirah-home-hero-title {
        margin-bottom: 8px;
        font-size: clamp(25px, 8.4vw, 31px);
    }

    .sirah-home-hero-button {
        width: min(100%, 175px);
        min-height: 35px;
        font-size: 9.8px;
    }
}

/* =========================================================
   8) الوضع الأفقي للجوال والتابلت
   صورة قصيرة متناسقة، والنص في الجهة اليمنى دون تغطية المشهد
========================================================= */
@media (max-width: 991.98px) and (orientation: landscape),
(max-height: 520px) and (min-width: 560px) {
    .sirah-home-hero {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .sirah-home-hero-media {
        aspect-ratio: auto;
        min-height: 230px;
        height: min(280px, calc(100svh - 56px));
        max-height: 280px;
    }

    .sirah-home-hero-image {
        object-position: center 47%;
    }

    .sirah-home-hero-content {
        width: calc(100% - 28px);
        max-width: var(--sirah-layout-width) !important;

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

        padding: 12px 0;
    }

    .sirah-home-hero-card {
        width: min(39%, 345px);
        max-width: 345px;
        margin-right: 0;
        margin-left: auto;
        padding: 14px 17px;
        text-align: right;
        border-radius: 14px;
    }

    .sirah-home-hero-kicker {
        margin-bottom: 3px;
        font-size: 9.5px;
    }

    .sirah-home-hero-title {
        margin-bottom: 8px;
        font-size: clamp(26px, 4.2vw, 36px);
        line-height: 1.02;
    }

    .sirah-home-hero-button {
        min-width: 145px;
        min-height: 35px;
        padding: 6px 12px;
        font-size: 9.8px;
    }
}

/* تثبيت مساحة صورة Hero قبل تحميلها لمنع CLS */
.sirah-home-hero-media {
    position: relative !important;
    width: 100% !important;

    min-height: 0 !important;
    max-height: 620px !important;

    /* ارتفاع أكبر ومتوازن للصورة */
    aspect-ratio: 16 / 6.5 !important;

    overflow: hidden !important;
}

.sirah-home-hero-media picture {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.sirah-home-hero-media .sirah-home-hero-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/* التابلت */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sirah-home-hero-media {
        aspect-ratio: 8 / 5 !important;
    }
}

/* الجوال */
@media (max-width: 767.98px) {
    .sirah-home-hero-media {
        aspect-ratio: 3 / 4 !important;
    }
}

/* =========================================================
   9) قسم: في مثل هذا اليوم
   تصميم مريح ومتجاوب مع ثبات نسبة الصورة
========================================================= */

.on-this-day-section {
    --otd-oud: var(--sirah-brand-oud);
    --otd-oud-dark: var(--sirah-brand-oud-dark);
    --otd-oud-soft: var(--sirah-brand-oud-soft);
    --otd-gold: var(--sirah-brand-gold);
    --otd-gold-light: var(--sirah-brand-gold-light);
    --otd-ink: var(--sirah-brand-ink);
    --otd-muted: var(--sirah-brand-muted);
    --otd-paper: var(--sirah-brand-paper);
    --otd-paper-dark: var(--sirah-brand-paper-deep);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    max-width: none;
    margin-inline: 0;

    /* مسافة مريحة ومتساوية من الأعلى والأسفل */
    padding-block: var(--sirah-section-space-y);

    background:
        radial-gradient(circle at 12% 18%,
            rgba(184, 139, 67, .11),
            transparent 27%),
        radial-gradient(circle at 88% 82%,
            rgba(99, 57, 47, .08),
            transparent 30%),
        linear-gradient(180deg,
            #fbf5ec 0%,
            #f4e9db 100%);
}

/* عند تصغير Zoom كثيرًا تتوقف الخلفية عند عرض القسم */
@media (min-width: 1600px) {
    .on-this-day-section {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }
}

.on-this-day-section::before,
.on-this-day-section::after {
    content: "";
    position: absolute;
    z-index: -1;

    border: 1px solid rgba(184, 139, 67, .14);
    border-radius: 50%;

    pointer-events: none;
}

.on-this-day-section::before {
    width: clamp(240px, 25vw, 390px);
    height: clamp(240px, 25vw, 390px);

    top: clamp(-230px, -15vw, -150px);
    right: clamp(-125px, -7vw, -70px);
}

.on-this-day-section::after {
    width: clamp(210px, 21vw, 320px);
    height: clamp(210px, 21vw, 320px);

    bottom: clamp(-195px, -13vw, -125px);
    left: clamp(-105px, -7vw, -60px);
}

.on-this-day-section__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;

    opacity: .028;
    pointer-events: none;
}

.on-this-day-section__container {
    position: relative;
    z-index: 1;

    width: min(calc(100% - var(--sirah-layout-gutter)),
            var(--sirah-layout-width));
    max-width: var(--sirah-layout-width);

    margin-inline: auto;
    padding-inline: 0;
}

/* البطاقتان بنفس الارتفاع على الكمبيوتر */
.on-this-day-section .row {
    --bs-gutter-x: 22px;
    --bs-gutter-y: 22px;
}

.on-this-day-section .row>[class*="col-"] {
    display: flex;
    min-width: 0;
}

.on-this-day-section .row>[class*="col-"]>* {
    width: 100%;
}

/* =========================================================
   عنوان القسم
========================================================= */

.on-this-day-heading {
    width: min(100%, 720px);

    margin: 0 auto clamp(26px, 3.2vw, 38px);

    text-align: center;
}

.on-this-day-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 6px;

    color: var(--otd-oud-soft);
    font-size: clamp(11px, 1.05vw, 14px);
    font-weight: 800;
    letter-spacing: .02em;
}

.on-this-day-heading__eyebrow i {
    color: var(--otd-gold);
    font-size: .9em;
}

.on-this-day-heading__title {
    position: relative;
    display: inline-block;

    margin: 0 0 11px;

    color: var(--otd-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(33px, 4vw, 51px);
    font-weight: 700 !important;
    line-height: 1.1;
}

.on-this-day-heading__title::after {
    content: "";
    position: absolute;

    right: 50%;
    bottom: -7px;

    width: 52px;
    height: 2px;

    transform: translateX(50%);
    border-radius: 999px;

    background:
        linear-gradient(90deg,
            transparent,
            var(--otd-gold),
            transparent);
}

.on-this-day-heading__description {
    width: min(100%, 640px);
    margin: 12px auto 0;

    color: var(--otd-muted);

    font-size: clamp(12px, 1.15vw, 15px);
    line-height: 1.8;
}

/* =========================================================
   الأحجام المشتركة للبطاقات
========================================================= */

.otd-calendar,
.otd-event-card,
.otd-empty {
    width: 100%;
    height: 100%;
    min-height: 410px;

    border-radius: 21px;
}

/* =========================================================
   بطاقة تاريخ اليوم
========================================================= */

.otd-calendar {
    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding: clamp(22px, 2.6vw, 31px);

    color: #fff;

    background:
        radial-gradient(circle at 20% 0%,
            rgba(212, 176, 106, .18),
            transparent 34%),
        linear-gradient(145deg,
            #914e5c 0%,
            #6f3542 55%,
            #4f292f 100%);

    border: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 18px 42px rgba(62, 36, 31, .17);
}

.otd-calendar::before {
    content: "";
    position: absolute;
    inset: 9px;

    border: 1px solid rgba(212, 176, 106, .26);
    border-radius: 15px;

    pointer-events: none;
}

.otd-calendar__ornament {
    position: absolute;

    width: 86px;
    height: 86px;

    opacity: .22;
    pointer-events: none;
}

.otd-calendar__ornament::before,
.otd-calendar__ornament::after {
    content: "";
    position: absolute;

    border: 1px solid var(--otd-gold-light);

    transform: rotate(45deg);
}

.otd-calendar__ornament::before {
    inset: 10px;
}

.otd-calendar__ornament::after {
    inset: 24px;
}

.otd-calendar__ornament--top {
    top: -37px;
    left: -37px;
}

.otd-calendar__ornament--bottom {
    right: -37px;
    bottom: -37px;
}

.otd-calendar__top {
    position: relative;
    z-index: 1;

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

    margin-bottom: clamp(16px, 2vw, 22px);
}

.otd-calendar__icon {
    display: inline-flex;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;
    flex: 0 0 38px;

    color: #fff6e7;
    font-size: 14px;

    border: 1px solid rgba(212, 176, 106, .40);
    border-radius: 11px;

    background: rgba(255, 255, 255, .07);
}

.otd-calendar__label {
    color: #ead9c3;

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

.otd-calendar__day {
    position: relative;
    z-index: 1;

    margin-bottom: clamp(18px, 2.2vw, 25px);

    text-align: center;
}

.otd-calendar__day-label {
    display: block;

    margin-bottom: 1px;

    color: #d9c1a5;
    font-size: 10px;
}

.otd-calendar__day strong {
    display: block;

    color: #fff9ef;

    font-family: "Amiri", "Cairo", serif;
    font-size: clamp(40px, 4.7vw, 58px);
    font-weight: 700;
    line-height: 1.05;

    text-shadow:
        0 4px 17px rgba(0, 0, 0, .16);
}

.otd-calendar__dates {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 9px;
}

.otd-date {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 65px;

    padding: 10px 12px;

    border-radius: 13px;
}

.otd-date--hijri {
    color: #fffaf1;

    border: 1px solid rgba(212, 176, 106, .30);

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

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.otd-date--gregorian {
    color: #4a3029;

    background:
        linear-gradient(135deg,
            #f5e7d1,
            #e7cfaa);

    box-shadow:
        0 8px 19px rgba(31, 18, 15, .14);
}

.otd-date__icon {
    display: inline-flex;

    width: 35px;
    height: 35px;

    align-items: center;
    justify-content: center;
    flex: 0 0 35px;

    border-radius: 10px;

    font-size: 12px;
}

.otd-date--hijri .otd-date__icon {
    color: #f0d299;
    background: rgba(0, 0, 0, .13);
}

.otd-date--gregorian .otd-date__icon {
    color: #74483b;
    background: rgba(255, 255, 255, .45);
}

.otd-date__content {
    min-width: 0;
}

.otd-date__label {
    display: block;

    margin-bottom: 1px;

    opacity: .77;

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

.otd-date__value {
    display: block;

    font-size: clamp(13px, 1.45vw, 17px);
    line-height: 1.4;
}

.otd-calendar__footer {
    position: relative;
    z-index: 1;

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

    margin-top: auto;
    padding-top: 15px;
}

.otd-calendar__line {
    height: 1px;
    flex: 1;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(212, 176, 106, .45));
}

.otd-calendar__line:last-child {
    background:
        linear-gradient(90deg,
            rgba(212, 176, 106, .45),
            transparent);
}

.otd-calendar__footer-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #d9c2a4;

    font-size: 9px;
    white-space: nowrap;
}

/* =========================================================
   حاوية السلايدر
========================================================= */

.otd-carousel {
    position: relative;

    display: flex;
    flex-direction: column;

    height: 100%;
}

.otd-carousel__inner {
    flex: 1;
    height: 100%;
}

.otd-carousel__inner .carousel-item {
    height: 100%;
}

/* =========================================================
   بطاقة الحدث
========================================================= */

.otd-event-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: rgba(255, 252, 247, .97);

    border: 1px solid rgba(99, 57, 47, .10);

    box-shadow:
        0 18px 42px rgba(74, 50, 40, .13);
}

/* =========================================================
   صورة الحدث
   إطار ثابت بنسبة وتناسب ولا يتأثر بحجم الصورة الأصلية
========================================================= */

.otd-event-card__media {
    position: relative;

    width: 100%;
    height: auto;

    /* نسبة ثابتة مناسبة للبطاقة على الكمبيوتر */
    aspect-ratio: 16 / 6.4;

    min-height: 0;

    overflow: hidden;

    background: #49342d;
}

.otd-event-card__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /* إظهار المنطقة الوسطى والعلوية من الصورة */
    object-position: center 42%;

    transform: none;

    transition: transform .6s ease;
}

.otd-event-card:hover .otd-event-card__image {
    transform: scale(1.018);
}

.otd-event-card__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(28, 16, 13, .02) 0%,
            rgba(28, 16, 13, .12) 40%,
            rgba(28, 16, 13, .88) 100%),
        linear-gradient(90deg,
            rgba(99, 57, 47, .10),
            transparent 56%);
}

.otd-event-card__media-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;

    padding: clamp(16px, 2vw, 23px);
}

.otd-event-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 8px;
}

.otd-badge {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 4px 9px;

    color: #fff;

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

    border-radius: 999px;

    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.otd-badge--primary {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(99, 57, 47, .84);
}

.otd-badge--secondary {
    color: #3d2922;

    border: 1px solid rgba(255, 255, 255, .27);
    background: rgba(229, 201, 150, .93);
}

.otd-event-card__title {
    max-width: 680px;
    margin: 0;

    color: #fffaf5;

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(21px, 2.4vw, 30px);
    font-weight: 700 !important;
    line-height: 1.28;

    text-shadow:
        0 3px 13px rgba(0, 0, 0, .35);
}

/* =========================================================
   محتوى الحدث
========================================================= */

.otd-event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: clamp(14px, 1.8vw, 20px);
}

.otd-event-card__dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    margin-bottom: 11px;
}

.otd-event-date {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;

    padding: 8px 9px;

    border: 1px solid rgba(99, 57, 47, .08);
    border-radius: 11px;

    background: #f8f0e5;
}

.otd-event-date__icon {
    display: inline-flex;

    width: 30px;
    height: 30px;

    align-items: center;
    justify-content: center;
    flex: 0 0 30px;

    color: var(--otd-oud);

    font-size: 10px;

    border-radius: 8px;

    background: #ead9c4;
}

.otd-event-date>div {
    min-width: 0;
}

.otd-event-date__label {
    display: block;

    margin-bottom: 0;

    color: #907f76;

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

.otd-event-date strong {
    display: block;
    overflow: hidden;

    color: #4b3730;

    font-size: 10.5px;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.otd-event-card__description {
    display: -webkit-box;
    overflow: hidden;

    margin: 0 0 12px;

    color: #6d5e57;

    font-size: clamp(11px, 1.05vw, 13px);
    line-height: 1.75;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.otd-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid rgba(99, 57, 47, .08);
}

.otd-event-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;

    padding: 7px 14px;

    color: #fff !important;

    background:
        linear-gradient(135deg,
            #914e5c,
            #60313a);

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;

    box-shadow:
        0 7px 16px rgba(83, 48, 40, .18);

    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.otd-event-card__button:hover {
    color: #fff !important;

    transform: translateY(-2px);

    background:
        linear-gradient(135deg,
            #a35b68,
            #6f3542);

    box-shadow:
        0 10px 21px rgba(83, 48, 40, .23);
}

.otd-event-card__button i {
    font-size: 8px;

    transition: transform .22s ease;
}

.otd-event-card__button:hover i {
    transform: translateX(-3px);
}

.otd-event-card__number {
    color: #9a8980;

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

/* =========================================================
   أزرار ومؤشرات السلايدر
========================================================= */

.otd-carousel__navigation {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-height: 32px;
    margin-top: 11px;
}

.otd-carousel__arrow {
    display: inline-flex;

    width: 31px;
    height: 31px;

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

    padding: 0;

    color: var(--otd-oud);

    border: 1px solid rgba(99, 57, 47, .16);
    border-radius: 50%;

    background: rgba(255, 250, 242, .82);

    box-shadow:
        0 4px 11px rgba(80, 54, 44, .08);

    font-size: 9px;

    transition: .22s ease;
}

.otd-carousel__arrow:hover {
    color: #fff;

    border-color: var(--otd-oud);
    background: var(--otd-oud);

    transform: translateY(-2px);
}

#todayEventsCarousel .otd-carousel__indicators {
    position: static;

    display: flex;
    align-items: center;
    gap: 5px;

    width: auto;

    margin: 0;
}

#todayEventsCarousel .otd-carousel__indicators [data-bs-target] {
    width: 6px;
    height: 6px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(99, 57, 47, .26);

    opacity: 1;

    transition:
        width .22s ease,
        background .22s ease;
}

#todayEventsCarousel .otd-carousel__indicators .active {
    width: 20px;

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

/* =========================================================
   حالة عدم وجود أحداث
========================================================= */

.otd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 32px;

    text-align: center;

    background: rgba(255, 252, 247, .95);

    border: 1px solid rgba(99, 57, 47, .10);

    box-shadow:
        0 18px 42px rgba(74, 50, 40, .11);
}

.otd-empty__icon {
    display: inline-flex;

    width: 62px;
    height: 62px;

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

    margin-bottom: 14px;

    color: var(--otd-gold);

    font-size: 24px;

    border: 1px solid rgba(184, 139, 67, .23);
    border-radius: 50%;

    background: #f5e9d9;
}

.otd-empty h3 {
    margin: 0 0 7px;

    color: var(--otd-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(22px, 2.5vw, 29px);
}

.otd-empty p {
    max-width: 430px;
    margin: 0;

    color: var(--otd-muted);

    font-size: 12px;
    line-height: 1.75;
}

/* =========================================================
   التابلت
========================================================= */

@media (max-width: 991.98px) {
    .on-this-day-section {
        padding-block: var(--sirah-section-space-y);
    }

    .on-this-day-heading {
        margin-bottom: 28px;
    }

    .otd-calendar,
    .otd-event-card,
    .otd-empty {
        height: auto;
        min-height: 0;
    }

    .otd-calendar {
        min-height: 370px;
    }

    .otd-event-card__media {
        aspect-ratio: 16 / 6.7;
    }

    .otd-event-card__image {
        object-position: center 42%;
    }
}

/* =========================================================
   الجوال
========================================================= */

@media (max-width: 767.98px) {
    .on-this-day-section {
        width: 100%;
        max-width: none;
        margin: 0;

        /* نفس المسافة الرأسية المعتمدة في بقية الأقسام */
        padding-block: var(--sirah-section-space-y);

        border-radius: 0;
    }

    .on-this-day-section__container {
        width: min(calc(100% - 22px), var(--sirah-layout-width));
    }

    .on-this-day-section .row {
        --bs-gutter-y: 17px;
    }

    .on-this-day-section .row>[class*="col-"] {
        display: block;
    }

    .on-this-day-heading {
        margin-bottom: 24px;
    }

    .on-this-day-heading__eyebrow {
        margin-bottom: 5px;

        font-size: 10px;
    }

    .on-this-day-heading__title {
        margin-bottom: 10px;

        font-size: clamp(30px, 9.2vw, 39px);
    }

    .on-this-day-heading__description {
        max-width: 470px;

        font-size: 11.5px;
        line-height: 1.7;
    }

    .otd-calendar {
        min-height: 340px;

        padding: 21px 17px;

        border-radius: 18px;
    }

    .otd-calendar::before {
        inset: 7px;

        border-radius: 13px;
    }

    .otd-calendar__top {
        margin-bottom: 14px;
    }

    .otd-calendar__day {
        margin-bottom: 17px;
    }

    .otd-calendar__day strong {
        font-size: clamp(38px, 12vw, 50px);
    }

    .otd-date {
        min-height: 59px;

        padding: 9px 10px;
    }

    .otd-date__value {
        font-size: clamp(12px, 4vw, 15px);
    }

    .otd-calendar__footer {
        padding-top: 11px;
    }

    .otd-event-card {
        min-height: 0;

        border-radius: 18px;
    }

    /*
       الجوال يحتاج صورة أطول قليلًا لإظهار تفاصيل أكثر،
       مع بقاء ارتفاعها ثابتًا حسب عرض البطاقة.
    */
    .otd-event-card__media {
        aspect-ratio: 16 / 8;
    }

    .otd-event-card__image {
        object-position: center 41%;
    }

    .otd-event-card__media-content {
        padding: 15px 14px;
    }

    .otd-event-card__title {
        font-size: clamp(19px, 6.2vw, 25px);
    }

    .otd-event-card__body {
        padding: 13px 14px 14px;
    }

    .otd-event-card__dates {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 6px;
        margin-bottom: 9px;
    }

    .otd-event-date {
        gap: 6px;

        padding: 7px;
    }

    .otd-event-date__icon {
        width: 27px;
        height: 27px;

        flex-basis: 27px;

        font-size: 9px;
    }

    .otd-event-date strong {
        font-size: 9px;
    }

    .otd-event-card__description {
        margin-bottom: 10px;

        font-size: 11px;
        line-height: 1.65;

        -webkit-line-clamp: 3;
    }

    .otd-event-card__footer {
        padding-top: 9px;
    }

    .otd-event-card__button {
        min-height: 34px;

        padding: 6px 11px;

        font-size: 9.5px;
    }

    .otd-carousel__navigation {
        margin-top: 10px;
    }
}

/* =========================================================
   الجوال الصغير
========================================================= */

@media (max-width: 480px) {
    .on-this-day-section {
        padding-block: var(--sirah-section-space-y);
    }

    .on-this-day-section__container {
        width: min(calc(100% - 18px), var(--sirah-layout-width));
    }

    .on-this-day-heading {
        margin-bottom: 22px;
    }

    .on-this-day-heading__title {
        font-size: clamp(28px, 9.5vw, 35px);
    }

    .otd-calendar {
        min-height: 325px;

        padding: 19px 14px;
    }

    .otd-calendar__day strong {
        font-size: clamp(36px, 12.5vw, 46px);
    }

    .otd-date {
        min-height: 56px;
    }

    .otd-event-card__media {
        aspect-ratio: 16 / 8.3;
    }

    .otd-event-card__image {
        object-position: center 40%;
    }

    .otd-event-card__dates {
        grid-template-columns: 1fr;
    }

    .otd-event-card__button {
        flex: 1;
    }
}

/* =========================================================
   الجوال والتابلت في الوضع الأفقي
========================================================= */

@media (max-width: 991.98px) and (orientation: landscape) {
    .on-this-day-section {
        padding-block: var(--sirah-section-space-y);
    }

    .otd-event-card__media {
        aspect-ratio: 16 / 6.2;
    }

    .otd-event-card__image {
        object-position: center 42%;
    }
}

/* =========================================================
   إلغاء الحركات عند طلب تقليل الحركة
========================================================= */

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

    .otd-event-card__image,
    .otd-event-card__button,
    .otd-event-card__button i,
    .otd-carousel__arrow,
    #todayEventsCarousel .otd-carousel__indicators [data-bs-target] {
        transition: none !important;
    }
}


/* =========================================================
   SIRAH EVENT DENSITY — FINAL UNIFORM NO-GAPS VERSION
   قسم كثافة الأحداث مستقل فوق الخط الزمني — عرض سنوات ثابت وموحّد بدون أي انكماش
========================================================= */

.sirah-density {
    position: relative;
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 8px 0 7px;

    direction: rtl;

    background: #fff9f1;

    overflow: hidden;
}

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


/* =========================================================
   الحاوية الخارجية
   بنفس عرض حاوية الخط الزمني
========================================================= */

.sirah-density .container {
    width: min(
        calc(100% - 36px),
        var(--sirah-layout-width, 1240px)
    ) !important;

    max-width: var(--sirah-layout-width, 1240px) !important;

    margin-inline: auto !important;

    padding-inline: 0 !important;
}


/* =========================================================
   البطاقة الرئيسية
========================================================= */

.sirah-density__compact {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        112px;

    align-items: center;

    gap: 7px;

    width: 100%;
    min-width: 0;
    min-height: 65px;

    margin: 0;

    padding: 6px 8px;

    border: 1px solid rgba(165, 111, 56, .17);

    border-radius: 13px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 249, .98),
            rgba(255, 248, 239, .98)
        );

    box-shadow:
        0 4px 13px rgba(93, 55, 26, .06);
}


/* =========================================================
   منطقة الخريطة
========================================================= */

.sirah-density__map {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 1px 22px;
}


/* =========================================================
   منطقة التمرير
========================================================= */

.sirah-density__timeline {
    width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;

    overscroll-behavior-inline: contain;
}

.sirah-density__timeline::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   صف السنوات
========================================================= */

.sirah-density__years {
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    justify-content: flex-start;

    width: max-content;
    min-width: 100%;

    height: 42px;

    gap: 0;

    padding: 1px 0 0;
}


/* =========================================================
   السنة
========================================================= */

.density-year {
    position: relative;

    display: grid;

    grid-template-rows:
        30px
        9px;

    align-items: end;

    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    max-width: 24px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    color: inherit;
    background: transparent;

    text-align: center;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   عمود الكثافة
   ارتفاعه حسب عدد الأحداث
   يملأ مساحة السنة تقريبًا حتى تكون الأعمدة متلاصقة بصريًا،
   مع إبقاء مساحة نص السنة أوسع للقراءة.
========================================================= */

.density-year__cell {
    display: block;

    align-self: end;

    width: 100%;
    justify-self: stretch;

    height: var(--density-height, 3px);

    min-height: 3px;
    max-height: 29px;

    margin: 0;

    border-radius:
        0
        0
        0
        0;

    transform-origin: bottom;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}


/* =========================================================
   مستويات الألوان
========================================================= */

.density-year--level-0 .density-year__cell {
    background: #eee5da;
}

.density-year--level-1 .density-year__cell {
    background:
        linear-gradient(
            180deg,
            #ffe09b,
            #ffc665
        );
}

.density-year--level-2 .density-year__cell {
    background:
        linear-gradient(
            180deg,
            #ffc15a,
            #f49a38
        );
}

.density-year--level-3 .density-year__cell {
    background:
        linear-gradient(
            180deg,
            #fa8c39,
            #e86531
        );
}

.density-year--level-4 .density-year__cell {
    background:
        linear-gradient(
            180deg,
            #ed5933,
            #c93634
        );
}

.density-year--level-5 .density-year__cell {
    background:
        linear-gradient(
            180deg,
            #d23939,
            #8e2637
        );
}


/* =========================================================
   اسم السنة
========================================================= */

.density-year__label {
    display: block;

    width: 100%;

    margin-top: 2px;

    margin-inline: 0;

    overflow: visible;

    color: #887466;

    font-size: 6.4px;
    font-weight: 700;
    line-height: 1;

    text-align: center;

    white-space: nowrap;
}


/* =========================================================
   Hover / Focus / Active
========================================================= */

.density-year:hover .density-year__cell,
.density-year:focus-visible .density-year__cell {
    transform:
        translateY(-1px)
        scaleY(1.04);

    filter:
        brightness(1.03)
        saturate(1.08);
}

.density-year:focus-visible {
    outline: none;
}

.density-year.is-active .density-year__cell {
    transform:
        translateY(-2px)
        scaleY(1.06);

    box-shadow:
        0 0 0 1px #fff,
        0 0 0 2px rgba(139, 70, 84, .30),
        0 3px 7px rgba(98, 42, 45, .13);
}

.density-year.is-active .density-year__label {
    color: #793846;

    font-weight: 900;
}


/* =========================================================
   بطاقة إجمالي الأحداث
   تظهر في اليسار
========================================================= */

.sirah-density__total {
    display: flex;

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

    gap: 6px;

    width: 100%;
    min-width: 0;

    min-height: 50px;

    padding: 5px 6px;

    border: 1px solid rgba(190, 137, 63, .25);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #fffaf1,
            #fff3df
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .90),
        0 2px 7px rgba(115, 71, 31, .05);
}


/* =========================================================
   أيقونة الإجمالي
========================================================= */

.sirah-density__total-icon {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border: 1px solid rgba(185, 128, 52, .23);

    border-radius: 50%;

    color: #a66d27;

    background: #fff9ed;

    font-size: 11px;
}


/* =========================================================
   نص الإجمالي
========================================================= */

.sirah-density__total-content {
    min-width: 0;

    text-align: center;
}

.sirah-density__total-content strong {
    display: block;

    margin: 0;

    color: #783735;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.sirah-density__total-content span {
    display: block;

    margin-top: 3px;

    color: #92745d;

    font-size: 7px;
    font-weight: 700;
    line-height: 1.15;

    white-space: nowrap;
}


/* =========================================================
   الأسهم
========================================================= */

.density-scroll-btn {
    position: absolute;

    top: 50%;

    z-index: 5;

    display: grid;
    place-items: center;

    width: 19px;
    height: 19px;

    padding: 0;

    border: 1px solid rgba(148, 94, 49, .15);

    border-radius: 50%;

    color: #914553;

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

    box-shadow:
        0 2px 6px rgba(75, 46, 27, .08);

    transform: translateY(-50%);

    font-size: 6px;

    cursor: pointer;

    transition:
        background .17s ease,
        color .17s ease,
        transform .17s ease;
}

.density-scroll-btn:hover {
    color: #fff;

    background: #914553;

    transform:
        translateY(-50%)
        scale(1.05);
}

.density-scroll-btn--right {
    right: 0;
}

.density-scroll-btn--left {
    left: 0;
}


/* =========================================================
   شاشة متوسطة
========================================================= */

@media (max-width: 1199.98px) {

    .sirah-density .container {
        width: calc(100% - 28px) !important;
    }

    .sirah-density__compact {
        grid-template-columns:
            minmax(0, 1fr)
            105px;
    }

    .density-year {
        flex-basis: 23px;
        width: 23px;
        min-width: 23px;
        max-width: 23px;
    }

    .density-year__cell {
        width: 100%;
        justify-self: stretch;
    }

    .density-year__label {
        width: 100%;
        margin-inline: 0;
        font-size: 6px;
    }
}


/* =========================================================
   التابلت
========================================================= */

@media (max-width: 991.98px) {

    .sirah-density {
        padding:
            7px
            0
            6px;
    }

    .sirah-density .container {
        width: calc(100% - 22px) !important;
    }

    .sirah-density__compact {
        grid-template-columns:
            minmax(0, 1fr)
            98px;

        gap: 5px;

        min-height: 60px;

        padding: 5px 6px;
    }

    .sirah-density__map {
        padding-inline: 19px;
    }

    .sirah-density__years {
        height: 39px;
    }

    .density-year {
        grid-template-rows:
            28px
            8px;

        flex-basis: 22px;
        width: 22px;
        min-width: 22px;
        max-width: 22px;
    }

    .density-year__cell {
        max-height: 27px;
        width: 100%;
        justify-self: stretch;
    }

    .sirah-density__total {
        min-height: 47px;
    }

    .sirah-density__total-content strong {
        font-size: 13px;
    }

      .density-year__label {
        width: 100%;
        margin-inline: 0;
        font-size: 5.8px;
    }
}


/* =========================================================
   الجوال
========================================================= */

@media (max-width: 767.98px) {

    .sirah-density {
        padding:
            5px
            0
            4px;
    }

    .sirah-density .container {
        width: calc(100% - 14px) !important;

        max-width: none !important;

        margin-inline: auto !important;

        padding: 0 !important;
    }

    .sirah-density__compact {
        grid-template-columns:
            minmax(0, 1fr)
            82px;

        gap: 4px;

        min-height: 54px;

        padding: 4px;

        border-radius: 10px;
    }

    .sirah-density__map {
        padding-inline: 15px;
    }

    .sirah-density__years {
        height: 33px;

        gap: 0;

        padding-top: 0;
    }

    .density-year {
        grid-template-rows:
            24px
            7px;

        flex-basis: 20px;
        width: 20px;
        min-width: 20px;
        max-width: 20px;
    }

    .density-year__cell {
        min-height: 2px;
        max-height: 23px;
        width: 100%;
        justify-self: stretch;
        border-radius:
            0
            0
            0
            0;
    }

    .density-year__label {
        width: 100%;

        margin-top: 1px;

        margin-inline: 0;

        font-size: 5.4px;
    }

    .sirah-density__total {
        gap: 3px;

        min-height: 43px;

        padding: 4px;

        border-radius: 8px;
    }

    .sirah-density__total-icon {
        width: 21px;
        height: 21px;

        flex-basis: 21px;

        font-size: 8px;
    }

    .sirah-density__total-content strong {
        font-size: 10.5px;
    }

    .sirah-density__total-content span {
        margin-top: 2px;

        font-size: 5.8px;
    }

    .density-scroll-btn {
        width: 16px;
        height: 16px;

        font-size: 5.1px;
    }
}


/* =========================================================
   الجوال الصغير
========================================================= */

@media (max-width: 575.98px) {

    .sirah-density .container {
        width: calc(100% - 10px) !important;
    }

    .sirah-density__compact {
        grid-template-columns:
            minmax(0, 1fr)
            76px;

        gap: 3px;
    }

    .sirah-density__map {
        padding-inline: 14px;
    }

    .density-year {
        flex-basis: 19px;
        width: 19px;
        min-width: 19px;
        max-width: 19px;
    }

    .density-year__label {
        width: 100%;
        margin-inline: 0;
        font-size: 5.1px;
    }

    .sirah-density__total {
        min-height: 41px;
    }
}


/* =========================================================
   الشاشات العريضة
========================================================= */

@media (min-width: 1600px) {

    .sirah-density .container {
        width: min(
            calc(100% - 36px),
            var(--sirah-layout-width, 1240px)
        ) !important;

        max-width:
            var(--sirah-layout-width, 1240px) !important;

        margin-inline: auto !important;
    }
}


/* =========================================================
   تقليل الحركة
========================================================= */

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

    .sirah-density *,
    .sirah-density *::before,
    .sirah-density *::after {
        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   SIRAH — ABOUT SECTION
   احذف كتلة قسم .about القديمة من Blade، ثم أضف هذا الملف
   إلى نهاية public/portal/css/ui-refresh.css
========================================================= */

.sirah-about {
    --sa-oud: var(--sirah-brand-oud, #8b4654);
    --sa-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --sa-oud-deep: var(--sirah-brand-oud-deep, #4b252d);
    --sa-oud-soft: var(--sirah-brand-oud-soft, #a76470);
    --sa-gold: var(--sirah-brand-gold, #c69a58);
    --sa-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --sa-paper: var(--sirah-brand-paper, #fffaf5);
    --sa-paper-deep: var(--sirah-brand-paper-deep, #f3e7df);
    --sa-ink: var(--sirah-brand-ink, #342329);
    --sa-muted: var(--sirah-brand-muted, #75656a);

    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    overflow: hidden;
    padding-block: var(--sirah-section-space-y);

    background:
        radial-gradient(circle at 10% 15%, rgba(198, 154, 88, .11), transparent 28%),
        radial-gradient(circle at 90% 82%, rgba(139, 70, 84, .055), transparent 30%),
        linear-gradient(180deg,
            var(--sirah-bg-about-top) 0%,
            var(--sirah-bg-about-bottom) 100%);
}

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

.sirah-about::before,
.sirah-about::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(250px, 28vw, 440px);
    aspect-ratio: 1;
    border: 1px solid rgba(198, 154, 88, .15);
    border-radius: 50%;
    pointer-events: none;
}

.sirah-about::before {
    top: clamp(-270px, -16vw, -170px);
    right: clamp(-155px, -8vw, -85px);
}

.sirah-about::after {
    bottom: clamp(-275px, -18vw, -175px);
    left: clamp(-160px, -9vw, -92px);
}

.sirah-about__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .026;
    pointer-events: none;

    background-image:
        repeating-conic-gradient(from 22.5deg at 50% 50%,
            var(--sa-oud-dark) 0 5deg,
            transparent 5deg 22.5deg);
    background-size: 170px 170px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 32%, transparent 68%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0, transparent 32%, transparent 68%, #000 100%);
}

.sirah-about__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - var(--sirah-layout-gutter, 36px)), var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    margin-inline: auto;
}

.sirah-about__main {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
    align-items: center;
    gap: clamp(34px, 4.2vw, 58px);
}

/* =========================================================
   المحتوى
========================================================= */

.sirah-about__content {
    min-width: 0;
}

.sirah-about__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--sa-oud-soft);
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 850;
}

.sirah-about__eyebrow i {
    color: var(--sa-gold);
}

.sirah-about__title {
    max-width: 680px;
    margin: 0 0 14px;
    color: var(--sa-oud-deep);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.14;
    text-wrap: balance;
}

.sirah-about__lead {
    max-width: 710px;
    margin: 0 0 clamp(20px, 2.4vw, 30px);
    color: var(--sa-muted);
    font-size: clamp(13px, 1.1vw, 15.5px);
    line-height: 2;
}

.sirah-about__pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 15px;
}

.sirah-about__pillar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 16px;
    background: rgba(255, 253, 249, .76);
    box-shadow: 0 10px 24px rgba(73, 42, 28, .06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.sirah-about__pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 154, 88, .30);
    box-shadow: 0 15px 30px rgba(73, 42, 28, .10);
}

.sirah-about__pillar-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: var(--sa-oud);
    border: 1px solid rgba(198, 154, 88, .26);
    border-radius: 13px;
    background: linear-gradient(145deg, #fff8ed, #f1dfc4);
    font-size: 15px;
}

.sirah-about__pillar h3 {
    margin: 0 0 4px;
    color: var(--sa-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 21px;
    line-height: 1.3;
}

.sirah-about__pillar p {
    margin: 0;
    color: var(--sa-muted);
    font-size: 11.5px;
    line-height: 1.75;
}

.sirah-about__trust {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 13px 15px;
    overflow: hidden;
    border: 1px solid rgba(198, 154, 88, .22);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(198, 154, 88, .13), transparent 28%),
        rgba(255, 250, 243, .88);
}

.sirah-about__trust-image {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(61, 36, 25, .13);
}

.sirah-about__trust p {
    margin: 0;
    color: #675650;
    font-size: 11.5px;
    line-height: 1.8;
}

.sirah-about__stat {
    min-width: 112px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid rgba(139, 70, 84, .10);
    text-align: center;
}

.sirah-about__stat strong,
.sirah-about__stat span {
    display: block;
}

.sirah-about__stat strong {
    color: var(--sa-oud);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 27px;
    line-height: 1;
}

.sirah-about__stat span {
    margin-top: 5px;
    color: var(--sa-muted);
    font-size: 10.5px;
    font-weight: 800;
}

.sirah-about__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sirah-about__features li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #594740;
    font-size: 12px;
    font-weight: 750;
}

.sirah-about__features i {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sa-gold), #9d6c22);
    font-size: 8px;
    box-shadow: 0 4px 10px rgba(157, 108, 34, .18);
}

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

.sirah-about__visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(150px, .86fr);
    gap: 14px;
    min-width: 0;
    height: clamp(430px, 40vw, 540px);
    padding: 13px;
    border: 1px solid rgba(198, 154, 88, .22);
    border-radius: 28px;
    background: rgba(255, 252, 247, .65);
    box-shadow: 0 24px 54px rgba(66, 39, 27, .14);
}

.sirah-about__visual::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 21px;
    pointer-events: none;
}

.sirah-about__image,
.sirah-about__image-stack {
    min-width: 0;
    min-height: 0;
}

.sirah-about__image {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #e8dacb;
}

.sirah-about__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .4s ease;
}

.sirah-about__image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(56, 30, 23, .16));
}

.sirah-about__image:hover img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
}

.sirah-about__image--main {
    border-radius: 150px 150px 20px 20px;
}

.sirah-about__image-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sirah-about__image--small:first-child {
    border-radius: 22px 90px 22px 22px;
}

.sirah-about__image--small:last-child {
    border-radius: 22px 22px 90px 22px;
}

.sirah-about__seal {
    position: absolute;
    right: 50%;
    bottom: 28px;
    z-index: 4;
    width: 116px;
    height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #fffaf0;
    border: 5px solid rgba(255, 250, 240, .88);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(198, 154, 88, .35), transparent 32%),
        linear-gradient(145deg, #8b4654, #67313d);
    box-shadow: 0 13px 28px rgba(59, 20, 27, .25);
    text-align: center;
    transform: translateX(50%);
}

.sirah-about__seal i {
    margin-bottom: 5px;
    color: var(--sa-gold-light);
    font-size: 18px;
}

.sirah-about__seal span,
.sirah-about__seal small {
    display: block;
}

.sirah-about__seal span {
    font-size: 12px;
    font-weight: 900;
}

.sirah-about__seal small {
    margin-top: 2px;
    color: rgba(255, 250, 240, .72);
    font-size: 8.5px;
}

/* =========================================================
   شريط الدعوة للإجراء
========================================================= */

.sirah-about__cta {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: clamp(28px, 3.5vw, 44px);
    padding: clamp(20px, 2.3vw, 28px) clamp(22px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 25%, rgba(225, 195, 138, .19), transparent 26%),
        linear-gradient(135deg, var(--sa-oud-deep), var(--sa-oud) 58%, #8c2840);
    box-shadow: 0 20px 40px rgba(103, 49, 61, .20);
}

.sirah-about__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .055;
    pointer-events: none;
    background-image: repeating-conic-gradient(from 22.5deg, #fff 0 4deg, transparent 4deg 22.5deg);
    background-size: 80px 80px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.sirah-about__cta>* {
    position: relative;
    z-index: 1;
}

.sirah-about__cta-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--sa-gold-light);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    font-size: 25px;
}

.sirah-about__cta-copy span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 248, 235, .72);
    font-size: 10.5px;
    font-weight: 800;
}

.sirah-about__cta-copy h3 {
    max-width: 700px;
    margin: 0;
    color: #fffaf2;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.3;
    text-wrap: balance;
}

.sirah-about__cta-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--sa-oud-dark) !important;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 12px;
    background: linear-gradient(145deg, #fffdf8, #eed9ba);
    box-shadow: 0 10px 22px rgba(33, 7, 13, .18);
    font-size: 11.5px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.sirah-about__cta-button:hover {
    color: var(--sa-oud-dark) !important;
    transform: translateY(-2px);
    filter: brightness(1.035);
    box-shadow: 0 14px 28px rgba(33, 7, 13, .24);
}

/* =========================================================
   التابلت
========================================================= */

@media (max-width: 1199.98px) {
    .sirah-about__main {
        grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
        gap: 30px;
    }

    .sirah-about__visual {
        height: 460px;
    }
}

@media (max-width: 991.98px) {
    .sirah-about__main {
        grid-template-columns: 1fr;
    }

    .sirah-about__content {
        order: 1;
    }

    .sirah-about__visual {
        order: 2;
        width: min(100%, 760px);
        height: 440px;
        margin-inline: auto;
    }

    .sirah-about__cta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sirah-about__cta-button {
        grid-column: 1 / -1;
        width: min(100%, 240px);
        justify-self: center;
    }
}

/* =========================================================
   الجوال
========================================================= */

@media (max-width: 767.98px) {
    .sirah-about {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-block: var(--sirah-section-space-y);
        border-radius: 0;
    }

    .sirah-about__container {
        width: min(calc(100% - 22px), var(--sirah-layout-width, 1240px));
    }

    .sirah-about__title {
        font-size: clamp(30px, 9vw, 40px);
    }

    .sirah-about__lead {
        font-size: 12px;
        line-height: 1.9;
    }

    .sirah-about__pillars {
        grid-template-columns: 1fr;
    }

    .sirah-about__pillar {
        padding: 13px;
    }

    .sirah-about__trust {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 11px;
    }

    .sirah-about__trust-image {
        width: 54px;
        height: 54px;
    }

    .sirah-about__stat {
        grid-column: 1 / -1;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        padding: 10px 0 0;
        border-inline-start: 0;
        border-top: 1px solid rgba(139, 70, 84, .09);
    }

    .sirah-about__stat strong {
        font-size: 25px;
    }

    .sirah-about__features {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .sirah-about__visual {
        grid-template-columns: minmax(0, 1.08fr) minmax(105px, .92fr);
        gap: 8px;
        height: 330px;
        padding: 8px;
        border-radius: 20px;
    }

    .sirah-about__image-stack {
        gap: 8px;
    }

    .sirah-about__image--main {
        border-radius: 90px 90px 14px 14px;
    }

    .sirah-about__image--small:first-child {
        border-radius: 14px 52px 14px 14px;
    }

    .sirah-about__image--small:last-child {
        border-radius: 14px 14px 52px 14px;
    }

    .sirah-about__seal {
        right: 48%;
        bottom: 17px;
        width: 82px;
        height: 82px;
        border-width: 4px;
    }

    .sirah-about__seal i {
        margin-bottom: 3px;
        font-size: 13px;
    }

    .sirah-about__seal span {
        font-size: 9px;
    }

    .sirah-about__seal small {
        font-size: 7px;
    }

    .sirah-about__cta {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 16px;
        text-align: center;
    }

    .sirah-about__cta-icon {
        width: 54px;
        height: 54px;
        margin-inline: auto;
        font-size: 21px;
    }

    .sirah-about__cta-copy h3 {
        font-size: clamp(22px, 7vw, 29px);
    }

    .sirah-about__cta-button {
        grid-column: auto;
        width: min(100%, 220px);
    }
}

@media (max-width: 390px) {
    .sirah-about__visual {
        height: 292px;
    }

    .sirah-about__seal {
        width: 74px;
        height: 74px;
    }
}

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

    .sirah-about *,
    .sirah-about *::before,
    .sirah-about *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   SIRAH FOOTER — CONSOLIDATED FINAL CSS
   استبدل به جميع تنسيقات الفوتر السابقة كاملة
========================================================= */

.sirah-footer {
    --sf-oud: var(--sirah-brand-oud, #8b4654);
    --sf-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --sf-gold: var(--sirah-brand-gold, #c69a58);
    --sf-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --sf-paper: #fff8ef;
    --sf-ink: #f8eee5;
    --sf-muted: rgba(248, 238, 229, .68);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--sirah-section-space-y) 0 0;
    color: var(--sf-ink);
    background: radial-gradient(circle at 12% 16%, rgba(198, 154, 88, .12), transparent 27%),
        radial-gradient(circle at 90% 76%, rgba(139, 70, 84, .14), transparent 30%),
        linear-gradient(145deg, #170f12 0%, #241519 46%, #120b0e 100%);
}

.sirah-footer::before,
.sirah-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(230px, 24vw, 390px);
    aspect-ratio: 1;
    opacity: .07;
    pointer-events: none;
    background: repeating-conic-gradient(from 22.5deg,
            rgba(225, 195, 138, .95) 0 7deg,
            transparent 7deg 22.5deg);
    -webkit-mask: radial-gradient(circle, #000 0 57%, transparent 58%);
    mask: radial-gradient(circle, #000 0 57%, transparent 58%);
}

.sirah-footer::before {
    top: 70px;
    right: -150px;
}

.sirah-footer::after {
    bottom: -170px;
    left: -145px;
    transform: rotate(18deg);
}

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

.sirah-footer .container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 32px), var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    padding-inline: 0;
}

.sirah-footer__newsletter {
    position: relative;
    width: 100%;
    min-height: 170px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    align-items: center;
    gap: clamp(24px, 4vw, 58px);
    margin-bottom: clamp(48px, 6vw, 72px);
    padding: clamp(26px, 3.5vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: radial-gradient(circle at 100% 0, rgba(198, 154, 88, .16), transparent 31%),
        linear-gradient(135deg, rgba(255, 252, 247, .98), rgba(248, 235, 222, .97));
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .88);
}

.sirah-footer__newsletter::after {
    content: "";
    position: absolute;
    top: -52px;
    left: -48px;
    width: 138px;
    height: 138px;
    border: 1px solid rgba(198, 154, 88, .25);
    border-radius: 32px;
    transform: rotate(45deg);
    box-shadow: 0 0 0 10px rgba(198, 154, 88, .05),
        0 0 0 20px rgba(198, 154, 88, .025);
}

.sirah-footer__newsletter-copy {
    position: relative;
    z-index: 1;
}

.sirah-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--sf-oud);
    font-size: 11px;
    font-weight: 900;
}

.sirah-footer__newsletter h2 {
    margin: 0 0 7px;
    color: var(--sf-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.sirah-footer__newsletter p {
    margin: 0;
    color: #75656a;
    font-size: 13px;
    line-height: 1.8;
}

.sirah-footer__newsletter-form {
    position: relative;
    z-index: 1;
}

.sirah-footer__input-wrap {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 10px;
    border: 1px solid rgba(139, 70, 84, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 25px rgba(73, 35, 35, .08);
}

.sirah-footer__input-wrap>i {
    width: 38px;
    flex: 0 0 38px;
    color: var(--sf-gold);
    font-size: 17px;
    text-align: center;
}

.sirah-footer__input-wrap input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    color: #3b282d;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.sirah-footer__input-wrap input::placeholder {
    color: #9a8c90;
}

.sirah-footer__input-wrap button {
    min-width: 126px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sf-oud-dark), var(--sf-oud));
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(139, 70, 84, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.sirah-footer__input-wrap button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 13px 27px rgba(139, 70, 84, .27);
}

.sirah-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr .8fr 1fr 1.1fr;
    gap: clamp(28px, 4vw, 54px);
    padding-bottom: clamp(48px, 6vw, 72px);
}

.sirah-footer__column {
    min-width: 0;
}

.sirah-footer__column>h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: #fff;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 22px;
    font-weight: 700;
}

.sirah-footer__column>h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sf-gold), transparent);
}

.sirah-footer__brand h3 {
    margin: 0 0 10px;
    color: #fff;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 23px;
}

.sirah-footer__brand>p {
    max-width: 330px;
    margin: 0 0 19px;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 2;
}

.sirah-footer__login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 8px 15px;
    color: #fff !important;
    border: 1px solid rgba(198, 154, 88, .28);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(139, 70, 84, .86), rgba(103, 49, 61, .92));
    font-size: 10.5px;
    font-weight: 900;
    text-decoration: none !important;
}

.sirah-footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sirah-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--sf-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.sirah-footer__links a i {
    color: var(--sf-gold);
    font-size: 8px;
}

.sirah-footer__links a:hover {
    color: #fff;
    transform: translateX(-4px);
}

.sirah-footer__contact {
    display: grid;
    gap: 16px;
    margin: 0;
    font-style: normal;
}

.sirah-footer__contact-item div {
    min-width: 0;
}

.sirah-footer__contact-item strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 11px;
}

.sirah-footer__contact-item span,
.sirah-footer__contact-item a {
    display: block;
    overflow-wrap: anywhere;
    color: var(--sf-muted);
    font-size: 11.5px;
    line-height: 1.7;
    text-decoration: none;
}

.sirah-footer__articles {
    display: grid;
    gap: 13px;
}
.sirah-footer__article-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: #d6a552;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(214, 165, 82, .25);

    font-size: 22px;
}
.sirah-footer__article {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.sirah-footer__article:hover {
    border-color: rgba(198, 154, 88, .22);
    background: rgba(198, 154, 88, .07);
    transform: translateY(-2px);
}

.sirah-footer__article img {
    width: 70px;
    height: 58px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.sirah-footer__article-copy {
    min-width: 0;
}

.sirah-footer__article small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: rgba(225, 195, 138, .76);
    font-size: 9px;
}

.sirah-footer__article strong {
    display: block;
    color: rgba(255, 255, 255, .84);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.7;
}

.sirah-footer__bottom {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sirah-footer__bottom p {
    margin: 0;
    color: rgba(248, 238, 229, .58);
    font-size: 10.5px;
    line-height: 1.8;
}

.sirah-footer__bottom strong,
.sirah-footer__bottom a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .sirah-footer {
        padding-top: var(--sirah-section-space-y);
    }

    .sirah-footer__newsletter {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 27px;
    }

    .sirah-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }
}

@media (max-width: 390px) {
    .sirah-footer__input-wrap button span {
        display: none;
    }

    .sirah-footer__input-wrap button {
        min-width: 46px;
        width: 46px;
        padding: 0;
    }
}

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

    .sirah-footer *,
    .sirah-footer *::before,
    .sirah-footer *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.sirah-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 205px;
    min-height: 92px;
    margin-bottom: 16px;
    overflow: visible;
}

.sirah-footer__logo img {
    display: block;
    width: 100%;
    max-width: 205px;
    height: 92px;
    max-height: 92px;
    object-fit: contain;
    object-position: right center;
    transform: scale(1.08);
    transform-origin: right center;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.sirah-footer__social {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}

.sirah-footer__social a {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    border-color: rgba(225, 195, 138, .22);
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08),
        0 7px 16px rgba(0, 0, 0, .16);
}

.sirah-footer__social a i {
    display: block;
    font-size: 15px;
    line-height: 1;
}

.sirah-footer__social a:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: rgba(225, 195, 138, .5);
    background: linear-gradient(145deg, rgba(198, 154, 88, .26), rgba(139, 70, 84, .28));
}

.sirah-footer__social .is-youtube:hover {
    background: linear-gradient(145deg, rgba(190, 30, 45, .9), rgba(118, 12, 24, .92));
}

.sirah-footer__social .is-twitter:hover {
    background: linear-gradient(145deg, rgba(45, 156, 219, .9), rgba(25, 103, 151, .92));
}

.sirah-footer__social .is-facebook:hover {
    background: linear-gradient(145deg, rgba(58, 88, 158, .92), rgba(34, 54, 111, .94));
}

.sirah-footer__social .is-instagram:hover {
    background: linear-gradient(145deg, rgba(180, 48, 129, .92), rgba(112, 38, 154, .94));
}

.sirah-footer__contact-icon i {
    font-size: 15px;
    line-height: 1;
}

#footer-contact {
    scroll-margin-top: 110px;
}

#calendarExplorerTitle {
    scroll-margin-top: 110px;
}

.sirah-footer__contact-icon {
    border: 1px solid rgba(198, 154, 88, .2);
    color: #fff4d9;
    border-color: rgba(225, 195, 138, .28);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(198, 154, 88, .16), rgba(139, 70, 84, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06),
        0 7px 16px rgba(0, 0, 0, .14);
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.sirah-footer__contact-icon i,
.sirah-footer__contact-icon svg {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: none !important;
}

.sirah-footer__contact-item {
    gap: 13px;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
}

.sirah-footer__contact-item>div {
    align-self: center !important;
}

.sirah-footer__contact-item>div {
    align-self: center !important;
    width: 100%;
    text-align: right !important;
}

.sirah-footer__contact-item a[href^="tel:"] {
    width: 100%;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: right !important;
    white-space: nowrap;
    overflow-wrap: normal;
}

@media (min-width: 1600px) {
    .sirah-footer {
        width: 100% !important;
        max-width: none !important;
        margin-inline: 0 !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .sirah-footer .container {
        width: calc(100% - 22px);
    }

    .sirah-footer__newsletter {
        min-height: 0;
        margin-bottom: 36px;
        padding: 21px 15px;
        border-radius: 19px;
    }

    .sirah-footer__newsletter h2 {
        font-size: clamp(25px, 8vw, 32px);
    }

    .sirah-footer__newsletter p {
        font-size: 10.5px;
    }

    .sirah-footer__input-wrap {
        min-height: 52px;
        padding: 6px;
    }

    .sirah-footer__input-wrap>i {
        display: none;
    }

    .sirah-footer__input-wrap input {
        height: 40px;
        padding-inline: 8px;
        font-size: 10.5px;
    }

    .sirah-footer__input-wrap button {
        min-width: 96px;
        height: 40px;
        padding-inline: 12px;
        font-size: 9.5px;
    }

    .sirah-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 38px;
    }

    .sirah-footer__column {
        padding-bottom: 26px;
        border-bottom: 1px solid rgba(255, 255, 255, .065);
    }

    .sirah-footer__column:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .sirah-footer__brand>p {
        max-width: none;
    }

    .sirah-footer__bottom {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px 0 21px;
    }

    .sirah-footer__bottom p {
        font-size: 9.5px;
    }

    .sirah-footer__logo {
        width: 178px;
        min-height: 80px;
    }

    .sirah-footer__logo img {
        max-width: 178px;
        height: 80px;
        max-height: 80px;
        transform: scale(1.05);
    }

    .sirah-footer__social a {
        width: 38px;
        height: 38px;
    }

    .sirah-footer {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding-top: var(--sirah-section-space-y);
        border-radius: 0 !important;
    }

    .sirah-footer__contact-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        flex-basis: 40px !important;
    }

    .sirah-footer__contact-item {
        grid-template-columns: 40px minmax(0, 1fr) !important;
    }
}

/* =========================================================
   زر العودة إلى أعلى الصفحة
========================================================= */

.back-to-top {
    position: fixed;
    right: clamp(15px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    z-index: 999;

    width: 48px;
    height: 48px;

    display: grid !important;
    place-items: center;

    margin: 0;
    padding: 0;

    color: #fff !important;
    background:
        linear-gradient(145deg,
            var(--sirah-brand-oud, #8b4654),
            var(--sirah-brand-oud-dark, #67313d));

    border: 1px solid rgba(225, 195, 138, .75);
    border-radius: 14px;

    box-shadow:
        0 12px 28px rgba(55, 12, 23, .28),
        inset 0 1px 0 rgba(255, 255, 255, .18);

    text-decoration: none !important;

    /* مخفي افتراضيًا في أول الصفحة */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(14px) scale(.88);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.back-to-top::before {
    content: "";
    position: absolute;
    inset: 5px;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;

    pointer-events: none;
}

.back-to-top i {
    position: relative;
    z-index: 1;

    display: block;

    margin: 0;
    padding: 0;

    color: inherit;
    font-size: 15px;
    line-height: 1;

    transform: none;
}

/* يظهر بعد تجاوز القسم الأول */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

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

.back-to-top:hover {
    color: #fff !important;

    background:
        linear-gradient(145deg,
            var(--sirah-brand-gold, #c69a58),
            #9a681e);

    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 16px 34px rgba(55, 12, 23, .34),
        inset 0 1px 0 rgba(255, 255, 255, .24);
}

.back-to-top:focus-visible {
    outline: 3px solid rgba(198, 154, 88, .35);
    outline-offset: 4px;
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));

        width: 43px;
        height: 43px;

        border-radius: 12px;
    }

    .back-to-top::before {
        inset: 4px;
        border-radius: 8px;
    }

    .back-to-top i {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* =========================================================
   METHODOLOGY PAGE — COMPACT HERO + ORIGINAL CONTENT
   احذف تنسيقات صفحة المنهجية السابقة، ثم ضع هذا الجزء مكانها
========================================================= */

.methodology-page {
    --method-oud: var(--sirah-brand-oud, #8b4654);
    --method-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --method-oud-soft: var(--sirah-brand-oud-soft, #a76470);
    --method-gold: var(--sirah-brand-gold, #c69a58);
    --method-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --method-paper: var(--sirah-brand-paper, #fffaf5);
    --method-paper-deep: var(--sirah-brand-paper-deep, #f3e7df);
    --method-ink: var(--sirah-brand-ink, #342329);
    --method-muted: var(--sirah-brand-muted, #75656a);

    width: 100%;
    min-width: 0;
    overflow: clip;
    background: #fff;
}

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

.methodology-hero__container,
.methodology-content__container {
    width: min(calc(100% - var(--sirah-layout-gutter, 36px)),
            var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    margin-inline: auto;
    padding-inline: 0;
}

/* =========================================================
   رأس الصفحة المختصر
========================================================= */

.methodology-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 225px;
    display: flex;
    align-items: center;

    color: #fff;

    background:
        radial-gradient(circle at 88% 20%,
            rgba(225, 195, 138, .20),
            transparent 29%),
        linear-gradient(118deg,
            #4b0c1b 0%,
            #7b1830 48%,
            #b57a2f 100%);
}

.methodology-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;

    height: 42px;

    background:
        linear-gradient(180deg,
            transparent,
            rgba(255, 255, 255, .07));
}

.methodology-hero__pattern {
    position: absolute;
    top: -118px;
    left: -76px;
    z-index: -1;

    width: 300px;
    aspect-ratio: 1;

    opacity: .08;
    pointer-events: none;

    background:
        repeating-conic-gradient(from 22.5deg,
            rgba(255, 248, 227, .95) 0 8deg,
            transparent 8deg 22.5deg);

    -webkit-mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    mask: radial-gradient(circle, #000 0 59%, transparent 60%);

    transform: rotate(18deg);
}

.methodology-hero__container {
    position: relative;
    z-index: 1;

    padding-block: 27px 31px;
}

.methodology-breadcrumb {
    margin-bottom: 20px;
}

.methodology-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.methodology-breadcrumb li {
    display: inline-flex;
    align-items: center;

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

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

.methodology-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #fff;
    text-decoration: none;

    transition: color .2s ease;
}

.methodology-breadcrumb a:hover {
    color: var(--method-gold-light);
}

.methodology-breadcrumb li[aria-hidden="true"] {
    color: rgba(225, 195, 138, .70);
    font-size: 8px;
}

.methodology-hero__content {
    width: min(100%, 780px);
    margin-inline: auto;
    text-align: center;
}

.methodology-hero__icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin: 0 auto 8px;

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

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;

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

    font-size: 16px;

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.methodology-hero__eyebrow {
    margin: 0 0 3px;

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

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

.methodology-hero h1 {
    margin: 0;

    color: #fffdf8;

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(35px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.1;

    text-wrap: balance;
    text-shadow: 0 7px 22px rgba(29, 4, 12, .22);
}

/* =========================================================
   محتوى الصفحة
========================================================= */

.methodology-content {
    position: relative;
    isolation: isolate;

    padding-block: clamp(40px, 5vw, 68px);

    /* background:
        radial-gradient(
            circle at 8% 10%,
            rgba(198, 154, 88, .075),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #fffdfa,
            #f8eee4
        ); */
}

.methodology-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    opacity: .022;
    pointer-events: none;

    background:
        linear-gradient(30deg,
            transparent 24%,
            rgba(139, 70, 84, .72) 25%,
            rgba(139, 70, 84, .72) 26%,
            transparent 27%,
            transparent 74%,
            rgba(139, 70, 84, .72) 75%,
            rgba(139, 70, 84, .72) 76%,
            transparent 77%),
        linear-gradient(150deg,
            transparent 24%,
            rgba(198, 154, 88, .75) 25%,
            rgba(198, 154, 88, .75) 26%,
            transparent 27%,
            transparent 74%,
            rgba(198, 154, 88, .75) 75%,
            rgba(198, 154, 88, .75) 76%,
            transparent 77%);

    background-size: 72px 126px;
}

/* =========================================================
   بطاقات المحتوى
========================================================= */

.methodology-block {
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: clamp(30px, 5vw, 66px);

    margin-bottom: clamp(30px, 4vw, 48px);
    padding: clamp(18px, 2.4vw, 28px);

    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 25px;

    background: rgba(255, 253, 249, .92);

    box-shadow:
        0 18px 44px rgba(74, 43, 31, .09),
        inset 0 1px 0 rgba(255, 255, 255, .88);
}

.methodology-block:last-child {
    margin-bottom: 0;
}

.methodology-block--reverse .methodology-block__media {
    order: 2;
}

.methodology-block--reverse .methodology-block__content {
    order: 1;
}

.methodology-block__media {
    position: relative;

    min-width: 0;
    margin: 0;
    padding: 8px;

    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 22px;

    background: #fff;

    box-shadow: 0 15px 32px rgba(67, 38, 28, .11);
}

.methodology-block__media img {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;

    border-radius: 15px;
}

.methodology-block__number {
    position: absolute;
    right: 20px;
    bottom: 20px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: #fff;

    border: 4px solid #f5e8d6;
    border-radius: 50%;

    background:
        linear-gradient(145deg,
            var(--method-oud),
            var(--method-oud-dark));

    font-family: "Amiri", serif;
    font-size: 17px;
    font-weight: 700;

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

.methodology-block__content {
    min-width: 0;
}

.methodology-block__eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 5px;

    color: var(--method-gold);

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

.methodology-block__content h3 {
    margin: 0 0 12px;

    color: var(--method-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 700;
    line-height: 1.2;
}

.methodology-block__content>p {
    margin: 0 0 13px;

    color: var(--method-muted);

    font-size: clamp(11.5px, 1.05vw, 14px);
    line-height: 1.95;
}

.methodology-block__content>p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   القوائم
========================================================= */

.methodology-list {
    display: grid;
    gap: 9px;

    margin: 14px 0;
    padding: 0;

    list-style: none;
}

.methodology-list li {
    position: relative;

    min-height: 41px;

    display: flex;
    align-items: center;

    padding: 8px 42px 8px 12px;

    color: #5e4e52;

    border: 1px solid rgba(139, 70, 84, .07);
    border-radius: 12px;

    background: #fbf5ed;

    font-size: 11px;
    line-height: 1.65;
}

.methodology-list li::before {
    content: "\f00c";

    position: absolute;
    right: 11px;

    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    color: #fff;

    border-radius: 50%;

    background:
        linear-gradient(145deg,
            var(--method-gold),
            #95651f);

    font-family: "Font Awesome 5 Free";
    font-size: 8px;
    font-weight: 900;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {
    .methodology-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* في التابلت والجوال: الصورة أولًا ثم النص تحتها */
    .methodology-block__media,
    .methodology-block--reverse .methodology-block__media {
        order: 1;
    }

    .methodology-block__content,
    .methodology-block--reverse .methodology-block__content {
        order: 2;
    }

    .methodology-block__media {
        width: min(100%, 620px);
        margin-inline: auto;
    }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767.98px) {
    .methodology-hero {
        min-height: 175px;
    }

    .methodology-hero__container,
    .methodology-content__container {
        width: min(calc(100% - 22px),
                var(--sirah-layout-width, 1240px));
    }

    .methodology-hero__container {
        padding-block: 18px 23px;
    }

    .methodology-breadcrumb {
        margin-bottom: 15px;
    }

    .methodology-breadcrumb li {
        font-size: 9.5px;
    }

    .methodology-hero__icon {
        width: 39px;
        height: 39px;
        margin-bottom: 6px;
        border-radius: 11px;
        font-size: 13px;
    }

    .methodology-hero__eyebrow {
        margin-bottom: 2px;
        font-size: 9.5px;
    }

    .methodology-hero h1 {
        font-size: clamp(29px, 8.5vw, 39px);
        line-height: 1.12;
    }

    .methodology-hero__pattern {
        top: -86px;
        left: -62px;
        width: 210px;
    }

    .methodology-content {
        padding-block: 34px 43px;
    }

    .methodology-block {
        gap: 19px;

        margin-bottom: 18px;
        padding: 13px;

        border-radius: 19px;
    }

    .methodology-block__media {
        padding: 6px;
        border-radius: 17px;
    }

    .methodology-block__media img {
        border-radius: 12px;
    }

    .methodology-block__number {
        right: 14px;
        bottom: 14px;

        width: 36px;
        height: 36px;

        border-width: 3px;

        font-size: 14px;
    }

    .methodology-block__content {
        padding-inline: 2px;
    }

    .methodology-block__eyebrow {
        font-size: 9.5px;
    }

    .methodology-block__content h3 {
        margin-bottom: 9px;
        font-size: clamp(25px, 8vw, 33px);
    }

    .methodology-block__content>p {
        font-size: 10.5px;
        line-height: 1.85;
    }

    .methodology-list {
        gap: 7px;
        margin-block: 12px;
    }

    .methodology-list li {
        min-height: 38px;
        padding: 8px 39px 8px 10px;
        font-size: 9.5px;
    }

    .methodology-list li::before {
        right: 9px;
        width: 20px;
        height: 20px;
        font-size: 7px;
    }
}

/* =========================================================
   Zoom out / wide screens
========================================================= */

@media (min-width: 1600px) {

    .methodology-hero,
    .methodology-content {
        width: min(100%, 1600px);
        margin-inline: auto;
    }
}

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

    .methodology-page *,
    .methodology-page *::before,
    .methodology-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}



/* =========================================================
   PORTAL LOGIN — SIMPLE ELEGANT FORM
   احذف تنسيقات صفحة تسجيل الدخول السابقة ثم ضع هذا الجزء مكانها
========================================================= */

.portal-login-simple {
    --pls-oud: var(--sirah-brand-oud, #8b4654);
    --pls-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --pls-gold: var(--sirah-brand-gold, #c69a58);
    --pls-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --pls-paper: var(--sirah-brand-paper, #fffaf5);
    --pls-ink: var(--sirah-brand-ink, #342329);
    --pls-muted: var(--sirah-brand-muted, #75656a);

    width: 100%;
    min-width: 0;
    overflow: clip;
    background: #fff;
}

.portal-login-simple *,
.portal-login-simple *::before,
.portal-login-simple *::after {
    box-sizing: border-box;
}

.portal-login-simple__section {
    position: relative;
    isolation: isolate;

    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;

    padding-block: clamp(46px, 7vw, 86px);

    background:
        radial-gradient(circle at 15% 15%,
            rgba(198, 154, 88, .12),
            transparent 28%),
        radial-gradient(circle at 88% 80%,
            rgba(139, 70, 84, .08),
            transparent 30%),
        linear-gradient(180deg,
            #fffdf9,
            #f8eee5);
}

.portal-login-simple__pattern {
    position: absolute;
    top: -120px;
    left: -80px;
    z-index: -1;

    width: 290px;
    aspect-ratio: 1;

    opacity: .055;
    pointer-events: none;

    background:
        repeating-conic-gradient(from 22.5deg,
            rgba(139, 70, 84, .95) 0 8deg,
            transparent 8deg 22.5deg);

    -webkit-mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    mask: radial-gradient(circle, #000 0 59%, transparent 60%);

    transform: rotate(18deg);
}

.portal-login-simple__container {
    width: min(calc(100% - 24px), 540px);
    max-width: 540px;
    margin-inline: auto;
    padding-inline: 0;
}

.portal-login-simple__card {
    position: relative;
    overflow: hidden;

    padding: clamp(24px, 4vw, 38px);

    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 26px;

    background:
        radial-gradient(circle at 100% 0,
            rgba(198, 154, 88, .10),
            transparent 28%),
        rgba(255, 253, 249, .97);

    box-shadow:
        0 24px 60px rgba(72, 42, 31, .14),
        inset 0 1px 0 rgba(255, 255, 255, .90);
}

.portal-login-simple__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;

    background:
        linear-gradient(90deg,
            var(--pls-oud-dark),
            var(--pls-oud),
            var(--pls-gold));
}

.portal-login-simple__header {
    margin-bottom: 26px;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(139, 70, 84, .08);

    text-align: center;
}

.portal-login-simple__icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin: 0 auto 12px;

    color: var(--pls-oud);

    border: 1px solid rgba(198, 154, 88, .26);
    border-radius: 16px;

    background:
        linear-gradient(145deg,
            #f6ead9,
            #ead3ae);

    font-size: 19px;

    box-shadow: 0 10px 22px rgba(91, 55, 26, .10);
}

.portal-login-simple__header h1 {
    margin: 0 0 6px;

    color: var(--pls-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(31px, 5vw, 42px);
    font-weight: 700;
    line-height: 1.15;
}

.portal-login-simple__header p {
    margin: 0;

    color: var(--pls-muted);

    font-size: 11px;
    line-height: 1.7;
}

.portal-login-simple__alert {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 12px;

    font-size: 10.5px;
    line-height: 1.6;
}

.portal-login-simple__alert--success {
    color: #315f3a;
    border: 1px solid rgba(54, 122, 68, .17);
    background: #edf7ef;
}

.portal-login-simple__field {
    margin-bottom: 20px;
}

.portal-login-simple__field label {
    display: block;

    margin-bottom: 8px;

    color: var(--pls-ink);

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

.portal-login-simple__field small {
    display: block;

    margin-top: 7px;

    color: #96868a;

    font-size: 9px;
    line-height: 1.6;
}

.portal-login-simple__phone,
.portal-login-simple__otp {
    min-height: 54px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid rgba(139, 70, 84, .14);
    border-radius: 15px;

    background: #fff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.portal-login-simple__phone:focus-within,
.portal-login-simple__otp:focus-within {
    border-color: rgba(139, 70, 84, .52);
    box-shadow: 0 0 0 4px rgba(139, 70, 84, .07);
}

.portal-login-simple__code {
    min-width: 82px;
    min-height: 54px;

    display: grid;
    place-items: center;

    color: var(--pls-oud);

    border-left: 1px solid rgba(139, 70, 84, .1);

    background: #f6ead9;

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

.portal-login-simple__phone input,
.portal-login-simple__otp input {
    width: 100%;
    min-width: 0;
    height: 52px;

    padding: 0 16px;

    color: var(--pls-ink);

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 13px;
}

.portal-login-simple__phone input {
    direction: ltr;
    text-align: right;
}

.portal-login-simple__otp {
    padding-inline: 15px;
}

.portal-login-simple__otp>i {
    color: var(--pls-gold);
    font-size: 14px;
}

.portal-login-simple__otp input {
    direction: ltr;
    text-align: center;

    font-size: 24px;
    font-weight: 800;
    letter-spacing: 10px;
}

.portal-login-simple__error {
    margin-top: 8px;
    padding: 9px 11px;

    color: #9f263d;

    border: 1px solid rgba(159, 38, 61, .15);
    border-radius: 10px;

    background: #fff0f3;

    font-size: 9.5px;
    line-height: 1.6;
}

.portal-login-simple__submit,
.portal-login-simple__back {
    width: 100%;
    min-height: 49px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 15px;

    border-radius: 13px;

    font-size: 10.5px;
    font-weight: 900;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.portal-login-simple__submit {
    color: #fff;

    border: 1px solid rgba(255, 255, 255, .12);

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

    box-shadow: 0 12px 24px rgba(103, 49, 61, .20);
}

.portal-login-simple__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(103, 49, 61, .25);
}

.portal-login-simple__submit:disabled {
    cursor: wait;
    opacity: .72;
}

.portal-login-simple__back {
    margin-top: 9px;

    color: var(--pls-oud);

    border: 1px solid rgba(139, 70, 84, .14);

    background: #fff;
}

.portal-login-simple__back:hover {
    color: #fff;
    background: var(--pls-oud);
    transform: translateY(-2px);
}

.portal-login-simple__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 20px;
    padding-top: 16px;

    color: #97878a;

    border-top: 1px solid rgba(139, 70, 84, .07);

    text-align: center;
}

.portal-login-simple__note i {
    color: var(--pls-gold);
}

.portal-login-simple__note span {
    font-size: 9px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .portal-login-simple__section {
        min-height: calc(100vh - 78px);
        padding-block: 30px 40px;
    }

    .portal-login-simple__container {
        width: min(calc(100% - 20px), 520px);
    }

    .portal-login-simple__card {
        padding: 21px 15px;
        border-radius: 20px;
    }

    .portal-login-simple__header {
        margin-bottom: 21px;
        padding-bottom: 16px;
    }

    .portal-login-simple__icon {
        width: 47px;
        height: 47px;
        margin-bottom: 10px;
        border-radius: 13px;
        font-size: 17px;
    }

    .portal-login-simple__header h1 {
        font-size: clamp(29px, 9vw, 38px);
    }

    .portal-login-simple__header p {
        font-size: 10px;
    }

    .portal-login-simple__code {
        min-width: 68px;
        font-size: 11px;
    }

    .portal-login-simple__phone input,
    .portal-login-simple__otp input {
        font-size: 12px;
    }

    .portal-login-simple__otp input {
        font-size: 21px;
        letter-spacing: 8px;
    }

    .portal-login-simple__submit,
    .portal-login-simple__back {
        min-height: 45px;
        font-size: 9.5px;
    }

    .portal-login-simple__pattern {
        top: -82px;
        left: -58px;
        width: 205px;
    }
}

@media (min-width: 1600px) {
    .portal-login-simple__section {
        width: min(100%, 1600px);
        margin-inline: auto;
    }
}

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

    .portal-login-simple *,
    .portal-login-simple *::before,
    .portal-login-simple *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   PORTAL SEARCH RESULTS PAGE
   أضف هذا الجزء إلى نهاية public/portal/css/ui-refresh.css
========================================================= */

.portal-search-page {
    --ps-oud: var(--sirah-brand-oud, #8b4654);
    --ps-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --ps-gold: var(--sirah-brand-gold, #c69a58);
    --ps-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --ps-ink: var(--sirah-brand-ink, #342329);
    --ps-muted: var(--sirah-brand-muted, #75656a);

    width: 100%;
    min-width: 0;
    overflow: clip;
    background: #fff;
}

.portal-search-page *,
.portal-search-page *::before,
.portal-search-page *::after {
    box-sizing: border-box;
}

.portal-search-hero__container,
.portal-search-content__container {
    width: min(calc(100% - var(--sirah-layout-gutter, 36px)), var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    margin-inline: auto;
    padding-inline: 0;
}

/* القسم الموحّد أعلى الصفحة */
.portal-search-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(225, 195, 138, .20), transparent 28%),
        linear-gradient(118deg, #4b0c1b 0%, #7b1830 48%, #b57a2f 100%);
}

.portal-search-hero__pattern {
    position: absolute;
    top: -110px;
    left: -75px;
    z-index: -1;
    width: 290px;
    aspect-ratio: 1;
    opacity: .08;
    pointer-events: none;
    background:
        repeating-conic-gradient(from 22.5deg,
            rgba(255, 248, 227, .95) 0 8deg,
            transparent 8deg 22.5deg);
    -webkit-mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    transform: rotate(18deg);
}

.portal-search-hero__container {
    position: relative;
    z-index: 1;
    padding-block: 26px 30px;
}

.portal-search-breadcrumb {
    margin-bottom: 17px;
}

.portal-search-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-search-breadcrumb li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, .70);
    font-size: 11px;
    font-weight: 700;
}

.portal-search-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
}

.portal-search-breadcrumb li[aria-hidden="true"] {
    color: rgba(225, 195, 138, .72);
    font-size: 8px;
}

.portal-search-hero__content {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
}

.portal-search-hero__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: 0 auto 7px;
    color: var(--ps-gold-light);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    font-size: 15px;
}

.portal-search-hero__content p {
    margin: 0 0 3px;
    color: var(--ps-gold-light);
    font-size: 10.5px;
    font-weight: 900;
}

.portal-search-hero h1 {
    margin: 0;
    color: #fffdf8;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    text-shadow: 0 7px 22px rgba(29, 4, 12, .22);
}

/* المحتوى */
.portal-search-content {
    position: relative;
    isolation: isolate;
    padding-block: clamp(38px, 5vw, 68px);
    /* background:
        radial-gradient(circle at 8% 10%, rgba(198, 154, 88, .075), transparent 25%),
        linear-gradient(180deg, #fffdfa, #f8eee4); */
}

.portal-search-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .018;
    pointer-events: none;
    background:
        linear-gradient(30deg, transparent 24%, rgba(139, 70, 84, .72) 25%, rgba(139, 70, 84, .72) 26%, transparent 27%, transparent 74%, rgba(139, 70, 84, .72) 75%, rgba(139, 70, 84, .72) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(198, 154, 88, .75) 25%, rgba(198, 154, 88, .75) 26%, transparent 27%, transparent 74%, rgba(198, 154, 88, .75) 75%, rgba(198, 154, 88, .75) 76%, transparent 77%);
    background-size: 72px 126px;
}

/* مربع البحث */
.portal-search-form {
    width: min(100%, 820px);
    margin: 0 auto 32px;
}

.portal-search-form__field {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 7px 7px 14px;
    border: 1px solid rgba(139, 70, 84, .12);
    border-radius: 17px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 38px rgba(72, 42, 31, .10);
}

.portal-search-form__field>i {
    width: 38px;
    flex: 0 0 38px;
    color: var(--ps-gold);
    text-align: center;
    font-size: 15px;
}

.portal-search-form__field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    color: var(--ps-ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
}

.portal-search-form__field input::placeholder {
    color: #a39396;
}

.portal-search-form__field button {
    min-width: 115px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ps-oud), var(--ps-oud-dark));
    font-size: 10.5px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(103, 49, 61, .19);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portal-search-form__field button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(103, 49, 61, .24);
}

/* ملخص النتائج */
.portal-search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(139, 70, 84, .09);
}

.portal-search-summary__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--ps-gold);
    font-size: 9px;
    font-weight: 900;
}

.portal-search-summary h2 {
    margin: 0;
    color: var(--ps-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
}

.portal-search-summary__count {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    color: var(--ps-oud);
    border: 1px solid rgba(139, 70, 84, .10);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    font-size: 9.5px;
}

.portal-search-summary__count i {
    color: var(--ps-gold);
}

.portal-search-summary__count strong {
    font-size: 15px;
}

/* شبكة النتائج */
.portal-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal-search-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 20px;
    background: rgba(255, 253, 249, .96);
    box-shadow:
        0 15px 36px rgba(73, 43, 32, .08),
        inset 0 1px 0 rgba(255, 255, 255, .88);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.portal-search-card:hover {
    transform: translateY(-5px);
    border-color: rgba(198, 154, 88, .28);
    box-shadow: 0 22px 45px rgba(73, 43, 32, .13);
}

.portal-search-card__media,
.portal-search-card__placeholder {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.portal-search-card__media {
    padding: 9px 9px 0;
}

.portal-search-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.portal-search-card__placeholder {
    min-height: 178px;
    display: grid;
    place-items: center;
    color: var(--ps-gold);
    background:
        radial-gradient(circle at 25% 20%, rgba(198, 154, 88, .14), transparent 30%),
        linear-gradient(145deg, #f8ecda, #efe0cd);
    font-size: 34px;
}

.portal-search-card__body {
    padding: 17px;
}

.portal-search-card__meta {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(139, 70, 84, .07);
}

.portal-search-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #958488;
    font-size: 8.5px;
}

.portal-search-card__meta i {
    color: var(--ps-gold);
}

.portal-search-card h3 {
    margin: 0 0 8px;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 22px;
    line-height: 1.35;
}

.portal-search-card h3 a {
    color: var(--ps-oud-dark);
    text-decoration: none;
}

.portal-search-card p {
    min-height: 62px;
    margin: 0 0 12px;
    color: var(--ps-muted);
    font-size: 10.5px;
    line-height: 1.9;
}

.portal-search-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.portal-search-card__badge {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #6d552f;
    border: 1px solid rgba(198, 154, 88, .18);
    border-radius: 999px;
    background: #f3e4cd;
    font-size: 8px;
    font-weight: 800;
}

.portal-search-card__badge--main {
    color: var(--ps-oud);
    border-color: rgba(139, 70, 84, .12);
    background: #f2e3e7;
}

.portal-search-card__link {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: var(--ps-oud) !important;
    border: 1px solid rgba(139, 70, 84, .13);
    border-radius: 10px;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.portal-search-card__link:hover {
    color: #fff !important;
    background: var(--ps-oud);
    transform: translateX(-3px);
}

/* الترقيم */
.portal-search-pagination {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.portal-search-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

.portal-search-pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0 9px;
    color: var(--ps-oud);
    border: 1px solid rgba(139, 70, 84, .12);
    border-radius: 10px !important;
    background: rgba(255, 253, 249, .95);
    font-size: 9px;
    box-shadow: none;
}

.portal-search-pagination .page-item.active .page-link {
    color: #fff;
    border-color: var(--ps-oud);
    background: var(--ps-oud);
}

.portal-search-pagination .page-item.disabled .page-link {
    color: #b5aaac;
    background: rgba(255, 255, 255, .55);
}

/* لا توجد نتائج */
.portal-search-empty {
    width: min(100%, 640px);
    margin-inline: auto;
    padding: clamp(32px, 5vw, 52px);
    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 22px;
    background: rgba(255, 253, 249, .94);
    text-align: center;
    box-shadow: 0 18px 42px rgba(72, 42, 31, .09);
}

.portal-search-empty__icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    color: var(--ps-oud);
    border: 1px solid rgba(198, 154, 88, .24);
    border-radius: 20px;
    background: linear-gradient(145deg, #f6ead9, #ead3ae);
    font-size: 22px;
}

.portal-search-empty h2 {
    margin: 0 0 7px;
    color: var(--ps-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(27px, 3vw, 38px);
}

.portal-search-empty p {
    margin: 0 auto 18px;
    color: var(--ps-muted);
    font-size: 11px;
    line-height: 1.8;
}

.portal-search-empty a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: #fff !important;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ps-oud), var(--ps-oud-dark));
    font-size: 9.5px;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 991.98px) {
    .portal-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .portal-search-hero {
        min-height: 178px;
    }

    .portal-search-hero__container,
    .portal-search-content__container {
        width: min(calc(100% - 22px), var(--sirah-layout-width, 1240px));
    }

    .portal-search-hero__container {
        padding-block: 17px 22px;
    }

    .portal-search-breadcrumb {
        margin-bottom: 13px;
    }

    .portal-search-breadcrumb li {
        font-size: 9.5px;
    }

    .portal-search-hero__icon {
        width: 39px;
        height: 39px;
        margin-bottom: 5px;
        border-radius: 11px;
        font-size: 13px;
    }

    .portal-search-hero__content p {
        font-size: 9px;
    }

    .portal-search-hero h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .portal-search-hero__pattern {
        top: -82px;
        left: -60px;
        width: 205px;
    }

    .portal-search-content {
        padding-block: 30px 42px;
    }

    .portal-search-form {
        margin-bottom: 24px;
    }

    .portal-search-form__field {
        min-height: 52px;
        padding: 6px;
    }

    .portal-search-form__field>i {
        display: none;
    }

    .portal-search-form__field input {
        height: 40px;
        padding-inline: 9px;
        font-size: 10.5px;
    }

    .portal-search-form__field button {
        min-width: 88px;
        height: 40px;
        padding-inline: 12px;
        font-size: 9.5px;
    }

    .portal-search-summary {
        align-items: flex-end;
        margin-bottom: 19px;
    }

    .portal-search-summary h2 {
        font-size: 25px;
    }

    .portal-search-summary__count {
        min-height: 39px;
        padding: 6px 10px;
    }

    .portal-search-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .portal-search-card {
        border-radius: 17px;
    }

    .portal-search-card__body {
        padding: 14px;
    }

    .portal-search-card h3 {
        font-size: 21px;
    }

    .portal-search-card p {
        min-height: 0;
        font-size: 10px;
    }

    .portal-search-card__placeholder {
        min-height: 150px;
    }

    .portal-search-pagination {
        margin-top: 29px;
    }

    .portal-search-empty {
        padding: 30px 17px;
        border-radius: 18px;
    }

    .portal-search-empty__icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 19px;
    }
}

@media (max-width: 390px) {
    .portal-search-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .portal-search-summary__count span:last-child {
        display: none;
    }
}

@media (min-width: 1600px) {

    .portal-search-hero,
    .portal-search-content {
        width: min(100%, 1600px);
        margin-inline: auto;
    }
}

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

    .portal-search-page *,
    .portal-search-page *::before,
    .portal-search-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   SIRAH LIBRARY — FINAL TYPE-AWARE DESIGN
   احذف تنسيقات المكتبة السابقة ثم ضع هذا الجزء مكانها
========================================================= */

.sirah-library-page {
    --sl-oud: var(--sirah-brand-oud, #8b4654);
    --sl-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --sl-gold: var(--sirah-brand-gold, #c69a58);
    --sl-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --sl-ink: var(--sirah-brand-ink, #342329);
    --sl-muted: var(--sirah-brand-muted, #75656a);

    width: 100%;
    min-width: 0;
    background: #fff;
}

.sirah-library-page *,
.sirah-library-page *::before,
.sirah-library-page *::after {
    box-sizing: border-box;
}

.sirah-library-hero__container,
.sirah-library-content__container {
    width: min(calc(100% - var(--sirah-layout-gutter, 36px)),
            var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    margin-inline: auto;
    padding-inline: 0;
}

/* رأس الصفحة */
.sirah-library-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 212px;
    display: flex;
    align-items: center;

    color: #fff;

    background:
        radial-gradient(circle at 87% 16%, rgba(225, 195, 138, .21), transparent 29%),
        linear-gradient(118deg, #4b0c1b 0%, #7b1830 48%, #b57a2f 100%);
}

.sirah-library-hero__pattern {
    position: absolute;
    top: -112px;
    left: -74px;
    z-index: -1;

    width: 290px;
    aspect-ratio: 1;

    opacity: .08;
    pointer-events: none;

    background:
        repeating-conic-gradient(from 22.5deg,
            rgba(255, 248, 227, .95) 0 8deg,
            transparent 8deg 22.5deg);

    -webkit-mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    mask: radial-gradient(circle, #000 0 59%, transparent 60%);

    transform: rotate(18deg);
}

.sirah-library-hero__container {
    position: relative;
    z-index: 1;
    padding-block: 23px 28px;
}

.sirah-library-breadcrumb {
    margin-bottom: 14px;
}

.sirah-library-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sirah-library-breadcrumb li {
    display: inline-flex;
    align-items: center;

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

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

.sirah-library-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #fff;
    text-decoration: none;
}

.sirah-library-breadcrumb li[aria-hidden="true"] {
    color: rgba(225, 195, 138, .72);
    font-size: 8px;
}

.sirah-library-hero__content {
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
}

.sirah-library-hero__icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    margin: 0 auto 6px;

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

    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;

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

    font-size: 15px;
}

.sirah-library-hero__content>p {
    margin: 0 0 2px;

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

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

.sirah-library-hero h1 {
    margin: 0;

    color: #fffdf8;

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(33px, 4vw, 49px);
    font-weight: 700;
    line-height: 1.08;

    text-shadow: 0 7px 22px rgba(29, 4, 12, .22);
}

/* المحتوى */
.sirah-library-content {
    position: relative;
    isolation: isolate;

    min-height: 430px;
    padding-block: clamp(34px, 4.5vw, 58px);
    /* 
    background:
        radial-gradient(circle at 8% 10%, rgba(198, 154, 88, .075), transparent 25%),
        linear-gradient(180deg, #fffdfa, #f8eee4); */
}

.sirah-library-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    opacity: .018;
    pointer-events: none;

    background:
        linear-gradient(30deg,
            transparent 24%,
            rgba(139, 70, 84, .72) 25%,
            rgba(139, 70, 84, .72) 26%,
            transparent 27%,
            transparent 74%,
            rgba(139, 70, 84, .72) 75%,
            rgba(139, 70, 84, .72) 76%,
            transparent 77%),
        linear-gradient(150deg,
            transparent 24%,
            rgba(198, 154, 88, .75) 25%,
            rgba(198, 154, 88, .75) 26%,
            transparent 27%,
            transparent 74%,
            rgba(198, 154, 88, .75) 75%,
            rgba(198, 154, 88, .75) 76%,
            transparent 77%);

    background-size: 72px 126px;
}

.sirah-library-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 21px;
    padding-bottom: 13px;

    border-bottom: 1px solid rgba(139, 70, 84, .09);
}

.sirah-library-summary>div>span {
    display: block;
    margin-bottom: 3px;

    color: var(--sl-gold);

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

.sirah-library-summary h2 {
    margin: 0;

    color: var(--sl-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
}

.sirah-library-summary__count {
    min-height: 41px;

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

    padding: 7px 12px;

    color: var(--sl-oud);

    border: 1px solid rgba(139, 70, 84, .10);
    border-radius: 12px;

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

    font-size: 9px;
}

.sirah-library-summary__count i {
    color: var(--sl-gold);
}

.sirah-library-summary__count strong {
    font-size: 15px;
}

/* الشبكات */
.sirah-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

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

.sirah-library-card {
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 18px;

    background: rgba(255, 253, 249, .96);

    box-shadow:
        0 14px 32px rgba(73, 43, 32, .08),
        inset 0 1px 0 rgba(255, 255, 255, .88);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.sirah-library-card:hover {
    transform: translateY(-4px);
    border-color: rgba(198, 154, 88, .28);
    box-shadow: 0 20px 40px rgba(73, 43, 32, .12);
}

.sirah-library-card__media {
    position: relative;
    padding: 9px 9px 0;
}

.sirah-library-card__media-frame {
    width: 100%;
    overflow: hidden;

    border-radius: 13px;

    background: #f2e8dd;
}

.sirah-library-card__media-frame>a {
    display: block;
    width: 100%;
    height: 100%;
}

.sirah-library-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-position: center;

    transition: transform .35s ease;
}

/* المقال والفيديو */
.sirah-library-card--article .sirah-library-card__media-frame,
.sirah-library-card--video .sirah-library-card__media-frame {
    aspect-ratio: 16 / 8.7;
}

.sirah-library-card--article .sirah-library-card__media img,
.sirah-library-card--video .sirah-library-card__media img {
    object-fit: cover;
}

/* الصور */
.sirah-library-card--image .sirah-library-card__media-frame {
    aspect-ratio: 4 / 3;
}

.sirah-library-card--image .sirah-library-card__media img {
    object-fit: cover;
}

/* الكتب: غلاف أصغر وأكثر منطقية */
.sirah-library-card--book .sirah-library-card__media {
    padding-top: 14px;
}

.sirah-library-card--book .sirah-library-card__media-frame {
    width: min(54%, 170px);
    aspect-ratio: 3 / 4;

    margin-inline: auto;

    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 10px;

    box-shadow: 0 9px 22px rgba(68, 37, 26, .13);
}

.sirah-library-card--book .sirah-library-card__media img {
    object-fit: cover;
}

/* الصوتيات: بطاقة أفقية مدمجة */
.sirah-library-card--audio {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    align-items: stretch;
}

.sirah-library-card--audio .sirah-library-card__media {
    padding: 9px;
}

.sirah-library-card--audio .sirah-library-card__media-frame {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

.sirah-library-card--audio .sirah-library-card__media img {
    object-fit: cover;
}

/* العناصر البديلة عند عدم وجود صورة */
.sirah-library-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 165px;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 11px;

    padding: 18px;

    color: var(--sl-oud);

    text-align: center;

    background:
        radial-gradient(circle at 22% 18%, rgba(198, 154, 88, .14), transparent 30%),
        linear-gradient(145deg, #f7ead8, #eee0cf);
}

.sirah-library-card__placeholder>i {
    font-size: 34px;
    color: var(--sl-gold);
}

.sirah-library-card__placeholder>span:not(.sirah-library-card__wave) {
    max-width: 130px;

    color: var(--sl-oud-dark);

    font-family: "Amiri", "Cairo", serif;
    font-size: 17px;
    line-height: 1.45;
}

.sirah-library-card__placeholder--book {
    min-height: 100%;
    border: 4px double rgba(139, 70, 84, .14);
}

.sirah-library-card__placeholder--audio {
    min-height: 100%;
}

.sirah-library-card__wave {
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sirah-library-card__wave i {
    width: 4px;

    display: block;

    border-radius: 999px;

    background: linear-gradient(var(--sl-gold), var(--sl-oud));
}

.sirah-library-card__wave i:nth-child(1),
.sirah-library-card__wave i:nth-child(7) {
    height: 13px;
}

.sirah-library-card__wave i:nth-child(2),
.sirah-library-card__wave i:nth-child(6) {
    height: 24px;
}

.sirah-library-card__wave i:nth-child(3),
.sirah-library-card__wave i:nth-child(5) {
    height: 34px;
}

.sirah-library-card__wave i:nth-child(4) {
    height: 20px;
}

.sirah-library-card:hover .sirah-library-card__media img {
    transform: scale(1.025);
}

.sirah-library-card--book:hover .sirah-library-card__media img {
    transform: scale(1.012);
}

.sirah-library-card__type {
    position: absolute;
    right: 18px;
    bottom: 9px;

    min-height: 27px;

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

    padding: 5px 9px;

    color: #fff;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;

    background: rgba(103, 49, 61, .84);

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

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sirah-library-card__type i {
    color: var(--sl-gold-light);
}

.sirah-library-card--book .sirah-library-card__type {
    right: calc(50% - min(27%, 85px) + 7px);
}

.sirah-library-card--audio .sirah-library-card__type {
    right: 18px;
    bottom: 18px;
}

.sirah-library-card__body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 15px;
}

.sirah-library-card__meta {
    min-height: 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 8px;
    padding-bottom: 8px;

    border-bottom: 1px solid rgba(139, 70, 84, .07);
}

.sirah-library-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #958488;

    font-size: 8px;
}

.sirah-library-card__meta i {
    color: var(--sl-gold);
}

.sirah-library-card__title {
    margin: 0 0 7px;

    color: var(--sl-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 700;
    line-height: 1.38;
}

.sirah-library-card__title a {
    color: inherit;
    text-decoration: none;
}

.sirah-library-card__description {
    margin: 0 0 13px;

    color: var(--sl-muted);

    font-size: 9.8px;
    line-height: 1.82;
}

.sirah-library-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: auto;
}

.sirah-library-action {
    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 7px 11px;

    color: var(--sl-oud) !important;

    border: 1px solid rgba(139, 70, 84, .13);
    border-radius: 10px;

    background: #fff;

    font-family: inherit;
    font-size: 8.7px;
    font-weight: 900;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.sirah-library-action:hover {
    color: #fff !important;
    background: var(--sl-oud);
    transform: translateY(-2px);
}

.sirah-library-action--primary {
    color: #fff !important;
    border-color: var(--sl-oud);
    background: linear-gradient(135deg, var(--sl-oud), var(--sl-oud-dark));
}

.sirah-library-action--disabled {
    cursor: default;

    color: #948689 !important;

    border-color: rgba(139, 70, 84, .07);

    background: #f7f0e8;
}

.sirah-library-action--disabled:hover {
    color: #948689 !important;
    background: #f7f0e8;
    transform: none;
}

.sirah-library-audio {
    width: 100%;
    height: 42px;
}

/* نافذة الفيديو */
.sirah-library-modal.modal {
    z-index: 1065 !important;
    opacity: 1 !important;
}

.sirah-library-modal .modal-dialog,
.sirah-library-modal .modal-content {
    opacity: 1 !important;
    filter: none !important;
}

.sirah-library-modal .modal-content {
    overflow: hidden;

    border: 1px solid rgba(139, 70, 84, .12);
    border-radius: 18px;

    background: #fffaf5;

    box-shadow: 0 24px 60px rgba(39, 15, 21, .30);
}

.sirah-library-modal .modal-header {
    direction: rtl;

    padding: 14px 18px;

    border-bottom: 0;

    background: linear-gradient(135deg, var(--sl-oud), var(--sl-oud-dark));
}

.sirah-library-modal .modal-title {
    margin: 0;

    color: #fff;

    font-family: "Amiri", "Cairo", serif !important;
    font-size: 22px;
}

.sirah-library-modal .btn-close {
    margin: 0 auto 0 0;
    filter: invert(1);
}

.sirah-library-modal .modal-body {
    padding: 8px;

    background: #12090d;

    opacity: 1 !important;
    filter: none !important;
}

.sirah-library-video,
.sirah-library-video-embed {
    display: block;

    width: 100%;
    max-height: 540px;

    overflow: hidden;

    border-radius: 10px;

    background: #12090d;

    opacity: 1 !important;
    filter: none !important;
}

.sirah-library-video-embed iframe {
    opacity: 1 !important;
    filter: none !important;
}

/* الترقيم */
.sirah-library-pagination {
    display: flex;
    justify-content: center;

    margin-top: 33px;
}

.sirah-library-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;

    margin: 0;
}

.sirah-library-pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    padding: 0 9px;

    color: var(--sl-oud);

    border: 1px solid rgba(139, 70, 84, .12);
    border-radius: 10px !important;

    background: rgba(255, 253, 249, .95);

    font-size: 9px;

    box-shadow: none;
}

.sirah-library-pagination .page-item.active .page-link {
    color: #fff;
    border-color: var(--sl-oud);
    background: var(--sl-oud);
}

/* الحالة الفارغة */
.sirah-library-empty {
    width: min(100%, 620px);

    margin-inline: auto;
    padding: clamp(32px, 5vw, 52px);

    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 22px;

    background: rgba(255, 253, 249, .94);

    text-align: center;

    box-shadow: 0 18px 42px rgba(72, 42, 31, .09);
}

.sirah-library-empty__icon {
    width: 66px;
    height: 66px;

    display: grid;
    place-items: center;

    margin: 0 auto 14px;

    color: var(--sl-oud);

    border: 1px solid rgba(198, 154, 88, .24);
    border-radius: 20px;

    background: linear-gradient(145deg, #f6ead9, #ead3ae);

    font-size: 22px;
}

.sirah-library-empty>span:not(.sirah-library-empty__icon) {
    display: block;

    margin-bottom: 4px;

    color: var(--sl-gold);

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

.sirah-library-empty h2 {
    margin: 0 0 7px;

    color: var(--sl-oud-dark);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(27px, 3vw, 38px);
}

.sirah-library-empty p {
    margin: 0 0 18px;

    color: var(--sl-muted);

    font-size: 11px;
}

.sirah-library-empty a {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 15px;

    color: #fff !important;

    border-radius: 11px;

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

    font-size: 9.5px;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 991.98px) {

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

    .sirah-library-card--audio {
        display: flex;
        flex-direction: column;
    }

    .sirah-library-card--audio .sirah-library-card__media-frame {
        min-height: 170px;
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 767.98px) {
    .sirah-library-hero {
        min-height: 174px;
    }

    .sirah-library-hero__container,
    .sirah-library-content__container {
        width: min(calc(100% - 22px), var(--sirah-layout-width, 1240px));
    }

    .sirah-library-hero__container {
        padding-block: 16px 20px;
    }

    .sirah-library-breadcrumb {
        margin-bottom: 11px;
    }

    .sirah-library-breadcrumb li {
        font-size: 8.7px;
    }

    .sirah-library-hero__icon {
        width: 38px;
        height: 38px;

        margin-bottom: 5px;

        border-radius: 11px;

        font-size: 13px;
    }

    .sirah-library-hero__content>p {
        font-size: 8.5px;
    }

    .sirah-library-hero h1 {
        font-size: clamp(29px, 9vw, 39px);
    }

    .sirah-library-hero__pattern {
        top: -82px;
        left: -60px;
        width: 205px;
    }

    .sirah-library-content {
        padding-block: 28px 40px;
    }

    .sirah-library-summary {
        margin-bottom: 18px;
    }

    .sirah-library-summary h2 {
        font-size: 26px;
    }

    .sirah-library-summary__count {
        min-height: 38px;
        padding: 6px 10px;
    }

    .sirah-library-grid,
    .sirah-library-grid--audio {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .sirah-library-card {
        border-radius: 16px;
    }

    .sirah-library-card__body {
        padding: 14px;
    }

    .sirah-library-card--book .sirah-library-card__media-frame {
        width: min(48%, 150px);
    }

    .sirah-library-card--audio .sirah-library-card__media-frame {
        min-height: 145px;
        aspect-ratio: 16 / 6.8;
    }

    .sirah-library-card__title {
        font-size: 20px;
    }

    .sirah-library-card__description {
        font-size: 9.6px;
    }

    .sirah-library-card__type {
        right: 16px;
        bottom: 7px;
    }

    .sirah-library-card--book .sirah-library-card__type {
        right: calc(50% - min(24%, 75px) + 6px);
    }

    .sirah-library-card--audio .sirah-library-card__type {
        right: 16px;
        bottom: 16px;
    }

    .sirah-library-action {
        min-height: 34px;
        font-size: 8.4px;
    }

    .sirah-library-modal .modal-dialog {
        margin: 10px;
    }

    .sirah-library-modal .modal-title {
        font-size: 19px;
    }
}

@media (min-width: 1600px) {

    .sirah-library-hero,
    .sirah-library-content {
        width: min(100%, 1600px);
        margin-inline: auto;
    }
}

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

    .sirah-library-page *,
    .sirah-library-page *::before,
    .sirah-library-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   LIBRARY CONTENT DETAIL PAGE
   أضف هذا الجزء إلى نهاية public/portal/css/ui-refresh.css
========================================================= */

.library-detail-page {
    --ld-oud: var(--sirah-brand-oud, #8b4654);
    --ld-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --ld-gold: var(--sirah-brand-gold, #c69a58);
    --ld-gold-light: var(--sirah-brand-gold-light, #e1c38a);
    --ld-paper: var(--sirah-brand-paper, #fffaf5);
    --ld-ink: var(--sirah-brand-ink, #342329);
    --ld-muted: var(--sirah-brand-muted, #75656a);

    width: 100%;
    min-width: 0;
    overflow: clip;
    background: #fff;
}

.library-detail-page *,
.library-detail-page *::before,
.library-detail-page *::after {
    box-sizing: border-box;
}

.library-detail-hero__container,
.library-detail-content__container {
    width: min(calc(100% - var(--sirah-layout-gutter, 36px)),
            var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);
    margin-inline: auto;
    padding-inline: 0;
}

/* رأس الصفحة */
.library-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(225, 195, 138, .20), transparent 28%),
        linear-gradient(118deg, #4b0c1b 0%, #7b1830 48%, #b57a2f 100%);
}

.library-detail-hero__pattern {
    position: absolute;
    top: -116px;
    left: -76px;
    z-index: -1;
    width: 300px;
    aspect-ratio: 1;
    opacity: .08;
    pointer-events: none;
    background:
        repeating-conic-gradient(from 22.5deg,
            rgba(255, 248, 227, .95) 0 8deg,
            transparent 8deg 22.5deg);
    -webkit-mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    mask: radial-gradient(circle, #000 0 59%, transparent 60%);
    transform: rotate(18deg);
}

.library-detail-hero__container {
    position: relative;
    z-index: 1;
    padding-block: 27px 32px;
}

.library-detail-breadcrumb {
    margin-bottom: 17px;
}

.library-detail-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.library-detail-breadcrumb li {
    display: inline-flex;
    align-items: center;
    max-width: min(100%, 330px);
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 700;
}

.library-detail-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
}

.library-detail-breadcrumb li[aria-hidden="true"] {
    color: rgba(225, 195, 138, .72);
    font-size: 8px;
}

.library-detail-hero__content {
    width: min(100%, 900px);
    margin-inline: auto;
    text-align: center;
}

.library-detail-hero__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: 0 auto 7px;
    color: var(--ld-gold-light);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    font-size: 16px;
}

.library-detail-hero__content>p {
    margin: 0 0 3px;
    color: var(--ld-gold-light);
    font-size: 10px;
    font-weight: 900;
}

.library-detail-hero h1 {
    margin: 0;
    color: #fffdf8;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(31px, 3.7vw, 50px);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
    text-shadow: 0 7px 22px rgba(29, 4, 12, .22);
}

/* المحتوى */
.library-detail-content {
    position: relative;
    isolation: isolate;
    padding-block: clamp(40px, 5vw, 68px);
    /* background:
        radial-gradient(circle at 8% 10%, rgba(198, 154, 88, .075), transparent 25%),
        linear-gradient(180deg, #fffdfa, #f8eee4); */
}

.library-detail-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .018;
    pointer-events: none;
    background:
        linear-gradient(30deg, transparent 24%, rgba(139, 70, 84, .72) 25%, rgba(139, 70, 84, .72) 26%, transparent 27%, transparent 74%, rgba(139, 70, 84, .72) 75%, rgba(139, 70, 84, .72) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(198, 154, 88, .75) 25%, rgba(198, 154, 88, .75) 26%, transparent 27%, transparent 74%, rgba(198, 154, 88, .75) 75%, rgba(198, 154, 88, .75) 76%, transparent 77%);
    background-size: 72px 126px;
}

.library-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 345px);
    align-items: start;
    gap: clamp(24px, 3.5vw, 42px);
}

.library-detail-main {
    min-width: 0;
}

/* الغلاف */
.library-detail-cover {
    position: relative;
    margin: 0 0 20px;
    padding: 9px;
    overflow: hidden;
    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(72, 42, 31, .12);
}

.library-detail-cover img {
    display: block;
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 17px;
}

.library-detail-cover figcaption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 11px;
    background: rgba(103, 49, 61, .84);
    font-size: 8.5px;
    font-weight: 800;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* البطاقات */
.library-detail-card {
    margin-bottom: 18px;
    padding: clamp(20px, 2.6vw, 30px);
    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 21px;
    background: rgba(255, 253, 249, .95);
    box-shadow:
        0 15px 36px rgba(73, 43, 32, .08),
        inset 0 1px 0 rgba(255, 255, 255, .88);
}

.library-detail-card:last-child {
    margin-bottom: 0;
}

.library-detail-card__header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(139, 70, 84, .08);
}

.library-detail-card__icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ld-oud);
    border: 1px solid rgba(198, 154, 88, .26);
    border-radius: 13px;
    background: linear-gradient(145deg, #f6ead9, #ead3ae);
    font-size: 16px;
    line-height: 1 !important;
}

.library-detail-card__header>div>span {
    display: block;
    margin-bottom: 2px;
    color: var(--ld-gold);
    font-size: 9px;
    font-weight: 900;
}

.library-detail-card__header h2 {
    margin: 0;
    color: var(--ld-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(23px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.3;
}

.library-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 17px;
}

.library-detail-meta span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #7d6b6f;
    border: 1px solid rgba(139, 70, 84, .08);
    border-radius: 999px;
    background: #fbf4eb;
    font-size: 9px;
}

.library-detail-meta i {
    color: var(--ld-gold);
}

.library-detail-description {
    color: #5e4e52;
    font-size: clamp(12px, 1.1vw, 14.5px);
    line-height: 2.1;
}

.library-detail-video,
.library-detail-audio {
    display: block;
    width: 100%;
}

.library-detail-video {
    max-height: 540px;
    border-radius: 14px;
    background: #171214;
}

.library-detail-audio {
    height: 46px;
}

.library-detail-embed,
.library-detail-image-link {
    overflow: hidden;
    border-radius: 14px;
}

.library-detail-image-link {
    display: block;
}

.library-detail-image-link img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 14px;
    background: #f5eee7;
}

/* الأزرار */
.library-detail-downloads__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.library-detail-action {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: var(--ld-oud) !important;
    border: 1px solid rgba(139, 70, 84, .14);
    border-radius: 11px;
    background: #fff;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.library-detail-action:hover {
    color: #fff !important;
    background: var(--ld-oud);
    transform: translateY(-2px);
}

.library-detail-action--primary {
    color: #fff !important;
    border-color: var(--ld-oud);
    background: linear-gradient(135deg, var(--ld-oud), var(--ld-oud-dark));
}

/* الشريط الجانبي */
.library-detail-sidebar {
    position: sticky;
    top: 108px;
}

.library-detail-info {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(139, 70, 84, .1);
    border-radius: 21px;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 18px 42px rgba(71, 39, 29, .11);
}

.library-detail-info__header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(225, 195, 138, .18), transparent 32%),
        linear-gradient(135deg, var(--ld-oud), var(--ld-oud-dark));
}

.library-detail-info__icon {
    width: 46px;
    height: 46px;
    display: inline-grid !important;
    place-items: center !important;
    color: var(--ld-gold-light);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .09);
    font-size: 16px;
}

.library-detail-info__header>div>span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .62);
    font-size: 8.5px;
}

.library-detail-info__header h2 {
    margin: 0;
    color: #fff;
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 24px;
}

.library-detail-info__body {
    padding: 8px 17px 14px;
}

.library-detail-info__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding-block: 12px;
    border-bottom: 1px solid rgba(139, 70, 84, .07);
}

.library-detail-info__item:last-child {
    border-bottom: 0;
}

.library-detail-info__item-icon {
    width: 40px;
    height: 40px;
    display: inline-grid !important;
    place-items: center !important;
    color: var(--ld-oud);
    border: 1px solid rgba(198, 154, 88, .18);
    border-radius: 11px;
    background: #f0dfc8;
    font-size: 13px;
}

.library-detail-info__item>div>span {
    display: block;
    margin-bottom: 2px;
    color: #9a8582;
    font-size: 8.5px;
    font-weight: 700;
}

.library-detail-info__item strong {
    display: block;
    color: var(--ld-ink);
    font-size: 11.5px;
    line-height: 1.6;
}

/* المشاركة */
.library-detail-share {
    margin-bottom: 14px;
    padding: 17px;
    border: 1px solid rgba(139, 70, 84, .09);
    border-radius: 17px;
    background: rgba(255, 253, 249, .95);
}

.library-detail-share h2 {
    margin: 0 0 12px;
    color: var(--ld-oud-dark);
    font-family: "Amiri", "Cairo", serif !important;
    font-size: 21px;
}

.library-detail-share__buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.library-detail-share__buttons a,
.library-detail-share__buttons button {
    width: 100%;
    height: 39px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    color: var(--ld-oud);
    border: 1px solid rgba(139, 70, 84, .12);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.library-detail-share__buttons a:hover,
.library-detail-share__buttons button:hover {
    color: #fff;
    background: var(--ld-oud);
    transform: translateY(-2px);
}

.library-detail-share__message {
    display: block;
    min-height: 16px;
    margin-top: 7px;
    color: #60844c;
    font-size: 8.5px;
    text-align: center;
}

.library-detail-back {
    width: 100%;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--ld-oud) !important;
    border: 1px solid rgba(139, 70, 84, .17);
    border-radius: 12px;
    background: rgba(255, 253, 249, .92);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none !important;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.library-detail-back:hover {
    color: #fff !important;
    background: var(--ld-oud);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .library-detail-layout {
        grid-template-columns: 1fr;
    }

    .library-detail-main {
        order: 1;
    }

    .library-detail-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 767.98px) {
    .library-detail-hero {
        min-height: 184px;
    }

    .library-detail-hero__container,
    .library-detail-content__container {
        width: min(calc(100% - 22px), var(--sirah-layout-width, 1240px));
    }

    .library-detail-hero__container {
        padding-block: 17px 22px;
    }

    .library-detail-breadcrumb {
        margin-bottom: 12px;
    }

    .library-detail-breadcrumb li {
        max-width: 120px;
        overflow: hidden;
        font-size: 8.8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .library-detail-hero__icon {
        width: 39px;
        height: 39px;
        margin-bottom: 5px;
        border-radius: 11px;
        font-size: 13px;
    }

    .library-detail-hero__content>p {
        font-size: 8.8px;
    }

    .library-detail-hero h1 {
        font-size: clamp(27px, 8vw, 38px);
        line-height: 1.15;
    }

    .library-detail-hero__pattern {
        top: -82px;
        left: -60px;
        width: 205px;
    }

    .library-detail-content {
        padding-block: 31px 42px;
    }

    .library-detail-cover {
        margin-bottom: 14px;
        padding: 6px;
        border-radius: 18px;
    }

    .library-detail-cover img {
        aspect-ratio: 16 / 10;
        border-radius: 13px;
    }

    .library-detail-cover figcaption {
        right: 17px;
        bottom: 17px;
        padding: 7px 9px;
        font-size: 7.8px;
    }

    .library-detail-card {
        margin-bottom: 14px;
        padding: 16px 14px;
        border-radius: 17px;
    }

    .library-detail-card__header {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 13px;
        padding-bottom: 11px;
    }

    .library-detail-card__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 11px;
        font-size: 14px;
    }

    .library-detail-card__header h2 {
        font-size: clamp(21px, 6.8vw, 28px);
    }

    .library-detail-description {
        font-size: 11px;
        line-height: 1.95;
    }

    .library-detail-downloads__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .library-detail-action {
        width: 100%;
    }

    .library-detail-info {
        border-radius: 17px;
    }

    .library-detail-info__header {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 15px;
    }

    .library-detail-info__icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 14px;
    }

    .library-detail-info__header h2 {
        font-size: 21px;
    }

    .library-detail-info__body {
        padding-inline: 14px;
    }

    .library-detail-info__item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding-block: 10px;
    }

    .library-detail-info__item-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        font-size: 11px;
    }
}

@media (min-width: 1600px) {

    .library-detail-hero,
    .library-detail-content {
        width: min(100%, 1600px);
        margin-inline: auto;
    }
}

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

    .library-detail-page *,
    .library-detail-page *::before,
    .library-detail-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}



/* =========================================================
   الحدث المميز — نفس تصميم أول دمج داخل القسم الموحد
========================================================= */

.sirah-history-featured {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(220px, 29%) minmax(0, 1fr);

    min-height: 178px;
    overflow: hidden;

    border: 1px solid rgba(99, 57, 47, .10);
    border-radius: 17px;

    background:
        linear-gradient(145deg, #fffdf9, #f8eee3);

    box-shadow: 0 12px 28px rgba(70, 46, 37, .09);
}

.sirah-history-featured__media {
    position: relative;

    display: block;

    min-height: 178px;
    overflow: hidden;

    background: #4a312a;

    text-decoration: none;
}

.sirah-history-featured__media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 42%;

    transition: transform .35s ease;
}

.sirah-history-featured:hover .sirah-history-featured__media img {
    transform: scale(1.025);
}

.sirah-history-featured__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            transparent 50%,
            rgba(48, 20, 24, .58));
}

.sirah-history-featured__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;

    min-height: 29px;

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

    padding: 6px 10px;

    color: #fff;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;

    background: rgba(103, 49, 61, .86);

    font-size: 8px;
    font-weight: 900;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sirah-history-featured__badge i {
    color: var(--sce-gold-soft, #e1c38a);
}

.sirah-history-featured__content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(17px, 2vw, 24px);
}

.sirah-history-featured__eyebrow {
    margin-bottom: 3px;

    color: var(--sce-gold, #c69a58);

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

.sirah-history-featured__content h3 {
    margin: 0 0 6px;

    color: var(--sce-oud-dark, #67313d);

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 700 !important;
    line-height: 1.3;
}

.sirah-history-featured__dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 7px;
}

.sirah-history-featured__dates span {
    min-height: 25px;

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

    padding: 5px 8px;

    color: #765e58;

    border: 1px solid rgba(198, 154, 88, .17);
    border-radius: 999px;

    background: #faf1e5;

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

.sirah-history-featured__dates i {
    color: var(--sce-gold, #c69a58);
}

.sirah-history-featured__content p {
    display: -webkit-box;
    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    margin: 0 0 10px;

    color: var(--sce-muted, #75656a);

    font-size: 10.5px;
    line-height: 1.75;
}

.sirah-history-featured__button {
    width: fit-content;
    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 7px 13px;

    color: #fff !important;

    border-radius: 9px;

    background:
        linear-gradient(135deg,
            #914e5c,
            #67313d);

    font-size: 9px;
    font-weight: 900;
    text-decoration: none !important;

    box-shadow: 0 8px 18px rgba(80, 46, 38, .16);
}

.sirah-history-hub__divider {
    position: relative;

    height: 1px;

    margin: clamp(18px, 2.3vw, 26px) 0;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(99, 57, 47, .14),
            transparent);
}

@media (max-width: 767.98px) {
    .sirah-history-featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sirah-history-featured__media {
        min-height: 0;
        aspect-ratio: 16 / 7.3;
    }

    .sirah-history-featured__content {
        padding: 14px;
    }

    .sirah-history-featured__content h3 {
        font-size: 23px;
    }

    .sirah-history-featured__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sirah-history-featured__media img {
        transition: none !important;
    }
}

/* =========================================================
   في مثل هذا اليوم + التقويم التاريخي
   الترتيب:
   1) الحدث المميز
   2) داخل عمود الأحداث: اليوم والتاريخ ثم أحداث اليوم
   3) داخل عمود التقويم: نوع التقويم + الشهر والسنة
   4) شبكة التقويم
========================================================= */

.sirah-history-hub .sirah-calendar-explorer__paper {
    padding: clamp(18px, 2.3vw, 28px);
}

/* =========================================================
   بطاقة اليوم والتاريخ — مرتبطة بأحداث في مثل هذا اليوم
========================================================= */

.sirah-calendar-today {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(120px, .82fr) 1px minmax(180px, 1.18fr) 1px minmax(180px, 1.18fr);
    align-items: stretch;
    gap: 0;

    width: 100%;
    margin: 0 0 clamp(14px, 1.8vw, 20px);
    padding: 8px 10px;

    color: #fffaf5;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;

    background:
        radial-gradient(circle at 8% 0%,
            rgba(225, 195, 138, .17),
            transparent 38%),
        linear-gradient(145deg,
            #914e5c,
            #67313d 62%,
            #4b252d);

    box-shadow: 0 9px 22px rgba(72, 40, 39, .15);
}

.sirah-calendar-today::after {
    content: "";

    position: absolute;
    left: -34px;
    bottom: -48px;
    z-index: -1;

    width: 84px;
    height: 84px;

    border: 1px solid rgba(225, 195, 138, .15);

    pointer-events: none;
    transform: rotate(45deg);
}

.sirah-calendar-today__item {
    position: relative;
    z-index: 1;

    min-width: 0;
    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;
}

.sirah-calendar-today__item--day {
    justify-content: center;
}

.sirah-calendar-today__icon {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    color: #f0d299;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 9px;

    background: rgba(0, 0, 0, .12);

    font-size: 10px;
}

.sirah-calendar-today__copy {
    min-width: 0;

    display: grid;
    gap: 2px;
}

.sirah-calendar-today__copy small {
    color: rgba(255, 250, 245, .66);

    font-size: 7px;
    font-weight: 800;
    line-height: 1.2;
}

.sirah-calendar-today__copy strong,
.sirah-calendar-today__copy b {
    display: block;
    overflow: hidden;

    color: #fffaf1;

    font-size: 9px;
    font-weight: 900;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sirah-calendar-today__item--day .sirah-calendar-today__copy {
    min-width: 68px;
}

.sirah-calendar-today__item--day .sirah-calendar-today__copy strong {
    overflow: visible;

    font-family: "Amiri", "Cairo", serif !important;
    font-size: clamp(19px, 1.8vw, 25px);
    line-height: 1.05;

    text-overflow: clip;
    white-space: nowrap;
}

.sirah-calendar-today__separator {
    position: relative;
    z-index: 1;

    align-self: center;

    width: 1px;
    height: 30px;

    background:
        linear-gradient(180deg,
            transparent,
            rgba(255, 255, 255, .20),
            transparent);
}

/* تواريخ كل حدث داخل لوحة "في مثل هذا اليوم" */
.sirah-selected-event-card__dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    margin: 0 0 8px;
}

.sirah-selected-event-card__dates span {
    min-height: 25px;

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

    padding: 5px 8px;

    color: #765e58;

    border: 1px solid rgba(198, 154, 88, .17);
    border-radius: 999px;

    background: #faf1e5;

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

.sirah-selected-event-card__dates i {
    color: var(--sce-gold, #c69a58);
}

/* =========================================================
   زر عرض المزيد — يظهر فقط على الأجهزة الصغيرة
========================================================= */

.sirah-selected-events__more {
    display: none;
}

.sirah-selected-events__more-button {
    width: 100%;
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 14px;

    color: #fff;

    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 11px;

    background:
        linear-gradient(135deg,
            var(--sce-oud, #8b4654),
            var(--sce-oud-dark, #67313d));

    box-shadow: 0 8px 18px rgba(80, 46, 38, .16);

    font-family: inherit;
    font-size: 10px;
    font-weight: 850;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.sirah-selected-events__more-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.035);
    box-shadow: 0 10px 21px rgba(80, 46, 38, .20);
}

.sirah-selected-events__more-button:disabled {
    cursor: wait;
    opacity: .72;
}

.sirah-selected-events__more-button i {
    font-size: 8px;
}

.sirah-selected-events__more-button.is-loading i {
    animation: sirah-events-more-spin .7s linear infinite;
}

@keyframes sirah-events-more-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   أدوات التقويم مرتبطة مباشرة بالتقويم
========================================================= */

.sirah-calendar-workspace__calendar {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sirah-calendar-workspace__calendar .sirah-calendar-toolbar {
    position: relative;
    z-index: 40;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;

    width: 100%;
    margin: 0 0 10px !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}

.sirah-calendar-workspace__calendar .sirah-calendar-toggle {
    width: 100%;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    margin: 0 !important;
}

.sirah-calendar-workspace__calendar .sirah-calendar-toggle label {
    min-width: 0;
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding-inline: 8px !important;

    font-size: 8.7px !important;
    white-space: nowrap;
}

.sirah-calendar-workspace__calendar .sirah-calendar-selectors {
    width: 100%;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.sirah-calendar-workspace__calendar .sirah-calendar-field {
    min-width: 0;
    width: 100%;
}

.sirah-calendar-workspace__calendar .sirah-calendar-field>span {
    display: block;

    margin-bottom: 4px;

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

.sirah-calendar-workspace__calendar .sirah-smart-select,
.sirah-calendar-workspace__calendar .sirah-smart-select__button {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   ترتيب الجوال
   اليوم والتاريخ ← الأحداث ← أدوات التقويم ← شبكة التقويم
========================================================= */

@media (max-width: 991.98px) {
    .sirah-calendar-workspace .sirah-selected-events {
        order: 1;
    }

    .sirah-calendar-workspace__calendar {
        order: 2;
    }

    .sirah-calendar-workspace__calendar .sirah-calendar-toolbar {
        margin-top: 2px !important;
    }
}

@media (max-width: 767.98px) {
    .sirah-history-hub .sirah-calendar-explorer__paper {
        padding: 11px;
    }

    .sirah-calendar-today {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(36px, auto));

        margin-bottom: 11px;
        padding: 7px;
    }

    .sirah-calendar-today__item {
        min-height: 36px;
        padding: 4px 7px;
    }

    .sirah-calendar-today__item--day {
        grid-column: 1;
        grid-row: 1 / 3;

        justify-content: center;
        flex-direction: column;

        border-left: 1px solid rgba(255, 255, 255, .11);
    }

    .sirah-calendar-today__item--hijri {
        grid-column: 2;
        grid-row: 1;
    }

    .sirah-calendar-today__item--gregorian {
        grid-column: 2;
        grid-row: 2;

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

    .sirah-calendar-today__separator {
        display: none;
    }

    .sirah-calendar-today__icon {
        width: 25px;
        height: 25px;

        font-size: 8px;
    }

    .sirah-calendar-today__item--day .sirah-calendar-today__copy {
        width: 100%;
        min-width: 0;

        text-align: center;
    }

    .sirah-calendar-today__item--day .sirah-calendar-today__copy strong {
        display: block;

        font-size: 18px;
        line-height: 1.1;
    }

    .sirah-calendar-today__copy b {
        font-size: 7.8px;
    }

    /* عرض الزر فقط إذا لم يكن hidden */
    .sirah-selected-events__more:not([hidden]) {
        display: block;
        margin-top: 11px;
    }

    .sirah-selected-events__more-button {
        min-height: 40px;
        font-size: 9.5px;
        border-radius: 10px;
    }

    .sirah-calendar-workspace__calendar .sirah-calendar-toolbar {
        gap: 7px !important;
        margin-bottom: 8px !important;
    }

    .sirah-calendar-workspace__calendar .sirah-calendar-toggle label {
        min-height: 35px;

        padding-inline: 5px !important;

        font-size: 7.8px !important;
    }

    .sirah-calendar-workspace__calendar .sirah-calendar-selectors {
        gap: 6px !important;
    }
}

@media (max-width: 420px) {
    .sirah-calendar-today {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .sirah-calendar-today__item {
        gap: 5px;
        padding-inline: 5px;
    }

    .sirah-calendar-today__copy small {
        font-size: 6.3px;
    }

    .sirah-calendar-today__copy b {
        font-size: 7.3px;
    }

    .sirah-calendar-workspace__calendar .sirah-calendar-toggle label {
        font-size: 7.2px !important;
    }
}

/* =========================================================
   بطاقة تاريخ اليوم داخل لوحة الأحداث
   الكمبيوتر: صف واحد كامل دون قص
   الجوال: اليوم في جهة والتاريخان فوق بعض
========================================================= */

.sirah-selected-events>.sirah-calendar-today {
    grid-template-columns:
        minmax(98px, .70fr) 1px minmax(145px, 1.15fr) 1px minmax(145px, 1.15fr);

    width: 100%;
    margin: 0 0 12px;
    padding: 7px 8px;

    border-radius: 12px;

    box-shadow: 0 7px 17px rgba(72, 40, 39, .12);
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item {
    min-height: 42px;
    gap: 7px;
    padding: 5px 7px;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__icon {
    width: 27px;
    height: 27px;

    font-size: 9px;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy {
    overflow: visible;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy strong,
.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy b {
    overflow: visible;

    text-overflow: clip;
    white-space: normal;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy b {
    font-size: 8.2px;
    line-height: 1.35;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day .sirah-calendar-today__copy {
    min-width: 55px;
}

.sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day .sirah-calendar-today__copy strong {
    font-size: clamp(18px, 1.55vw, 22px);

    white-space: nowrap;
}

/* في الشاشات المتوسطة تبقى البطاقة أفقية ولكن أكثر ضغطًا */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .sirah-selected-events>.sirah-calendar-today {
        grid-template-columns:
            minmax(88px, .62fr) 1px minmax(130px, 1.10fr) 1px minmax(130px, 1.10fr);

        padding-inline: 6px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item {
        gap: 5px;
        padding-inline: 5px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy small {
        font-size: 6.5px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy b {
        font-size: 7.5px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day .sirah-calendar-today__copy strong {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .sirah-selected-events>.sirah-calendar-today {
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(36px, auto));

        margin-bottom: 10px;
        padding: 6px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item {
        min-height: 36px;
        padding: 4px 6px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day {
        grid-column: 1;
        grid-row: 1 / 3;

        justify-content: center;
        flex-direction: column;

        border-left: 1px solid rgba(255, 255, 255, .11);
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--hijri {
        grid-column: 2;
        grid-row: 1;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--gregorian {
        grid-column: 2;
        grid-row: 2;

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

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__separator {
        display: none;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day .sirah-calendar-today__copy {
        width: 100%;

        text-align: center;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__item--day .sirah-calendar-today__copy strong {
        font-size: 18px;
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy b {
        font-size: 7.6px;
    }
}

@media (max-width: 420px) {
    .sirah-selected-events>.sirah-calendar-today {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .sirah-selected-events>.sirah-calendar-today .sirah-calendar-today__copy b {
        font-size: 7.1px;
    }
}


/* =========================================================
   فيديوهات الصفحة الرئيسية — نسخة حرة ومتناسقة أكثر
   - السلايدر يتحرك تلقائياً
   - بدون صندوق كبير حول الفيديوهات
   - على الجوال يظهر القسم داخل الحاوية مثل بقية الأقسام
========================================================= */

.sirah-home-videos {
    --sv-oud: var(--sirah-brand-oud, #8b4654);
    --sv-oud-dark: var(--sirah-brand-oud-dark, #67313d);
    --sv-gold: var(--sirah-brand-gold, #c69a58);
    --sv-paper: #fffaf1;
    --sv-paper-soft: #f8ecda;
    --sv-ink: var(--sirah-brand-ink, #342329);
    --sv-muted: var(--sirah-brand-muted, #75656a);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: var(--sirah-section-space-y) 0;

    width: 100%;
    max-width: none;
    margin-inline: 0;

    border: 0;

     background:
        radial-gradient(circle at 12% 18%, rgba(198, 154, 88, .075), transparent 26%),
        radial-gradient(circle at 88% 84%, rgba(139, 70, 84, .035), transparent 26%),
       linear-gradient(
    180deg,
    #faf4ed 0%,
    #f4e9df 52%,
    #faf5ef 100%
) !important;
}

.sirah-home-videos::before,
.sirah-home-videos::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.sirah-home-videos::before {
    top: -155px;
    right: -65px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(198, 154, 88, .12);
    border-radius: 50%;
}

.sirah-home-videos::after {
    left: -80px;
    bottom: -118px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(103, 49, 61, .07);
    border-radius: 50%;
}

.sirah-home-videos__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .16;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, rgba(111, 76, 55, .026) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(111, 76, 55, .026) 25%, transparent 25%);
    background-size: 34px 34px;
}

.sirah-home-videos__container {
    position: relative;
    z-index: 1;

    /* نفس عرض الكونتاينر المستخدم في بقية أقسام الموقع */
    width: min(calc(100% - 32px),
            var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);

    margin-inline: auto;
    padding-inline: 0;
}

/* ===== heading ===== */

.sirah-home-videos__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.sirah-home-videos__heading-copy,
.sirah-home-videos__heading>div:first-child {
    max-width: 690px;
}

.sirah-home-videos__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--sv-gold);
    font-size: 11px;
    font-weight: 800;
}

.sirah-home-videos__eyebrow::after {
    content: "";
    width: 34px;
    height: 1px;
    margin-right: 4px;
    background: linear-gradient(90deg, var(--sv-gold), transparent);
}

.sirah-home-videos__heading h2 {
    margin: 0 0 5px;
    color: var(--sv-oud-dark);
    font-family: "Amiri", "Cairo", serif;
    font-size: clamp(28px, 3.2vw, 39px);
    font-weight: 700;
    line-height: 1.13;
}

.sirah-home-videos__heading p {
    max-width: 620px;
    margin: 0;
    color: var(--sv-muted);
    font-size: 11px;
    line-height: 1.72;
}

.sirah-home-videos__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sv-oud), var(--sv-oud-dark));
    box-shadow: 0 7px 16px rgba(91, 46, 52, .13);
    font-size: 9.5px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sirah-home-videos__all:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 21px rgba(91, 46, 52, .19);
}

/* ===== slider shell =====
   أزلنا الصندوق المغلق وخففنا الإطار كثيراً
*/

.sirah-home-videos__slider-shell {
    position: relative;

    /*
     * مساحة مستقلة للأسهم حتى لا تلامس البطاقات.
     * عرض السهم 36px + فراغ بصري مريح بينه وبين الفيديو.
     */
    padding: 2px 48px 4px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sirah-home-videos__slider-shell::before,
.sirah-home-videos__slider-shell::after {
    display: none;
}

/* ===== track ===== */

.sirah-home-videos__track {
    position: relative;
    z-index: 1;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 8px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.sirah-home-videos__track::-webkit-scrollbar {
    display: none;
}

/* ===== card ===== */

.sirah-home-video-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;

    border: 1px solid rgba(112, 75, 53, .12);
    border-radius: 14px;

    background: linear-gradient(180deg, rgba(255, 253, 247, .96) 0%, rgba(251, 242, 228, .98) 100%);
    box-shadow: 0 8px 22px rgba(75, 49, 36, .07);

    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sirah-home-video-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    z-index: 3;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(198, 154, 88, .55), transparent);
    pointer-events: none;
}

.sirah-home-video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(198, 154, 88, .24);
    box-shadow: 0 12px 26px rgba(75, 49, 36, .11);
}

.sirah-home-video-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.2;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #2e201b;
    cursor: pointer;
}

.sirah-home-video-card__media:disabled {
    cursor: default;
}

.sirah-home-video-card__media img,
.sirah-home-video-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sirah-home-video-card__media img {
    display: block;
    filter: saturate(.88) sepia(.06) contrast(.98);
    transition: transform .42s ease, filter .42s ease;
}

.sirah-home-video-card:hover .sirah-home-video-card__media img {
    transform: scale(1.025);
    filter: saturate(.95) sepia(.03);
}

.sirah-home-video-card__placeholder {
    display: grid;
    place-items: center;
    color: rgba(229, 198, 143, .72);
    background: radial-gradient(circle at 50% 40%, rgba(201, 154, 88, .14), transparent 31%), linear-gradient(145deg, #3c2922, #1f1714);
}

.sirah-home-video-card__placeholder i {
    font-size: 37px;
}

.sirah-home-video-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 19, 16, .03) 0%, rgba(31, 19, 16, .06) 46%, rgba(31, 19, 16, .54) 100%);
}

.sirah-home-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--sv-oud-dark);
    border: 1px solid rgba(255, 248, 232, .92);
    border-radius: 50%;
    background: rgba(250, 235, 207, .95);
    box-shadow: 0 6px 17px rgba(0, 0, 0, .17), inset 0 0 0 4px rgba(198, 154, 88, .15);
    transform: translate(-50%, -50%);
    transition: transform .20s ease, background .20s ease;
}

.sirah-home-video-card:hover .sirah-home-video-card__play {
    transform: translate(-50%, -50%) scale(1.07);
    background: #fff1d5;
}

.sirah-home-video-card__play i {
    margin-left: -1px;
    font-size: 13px;
}

.sirah-home-video-card__badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    padding: 3px 7px;
    color: #fff6e5;
    border: 1px solid rgba(238, 206, 148, .22);
    border-radius: 999px;
    background: rgba(79, 34, 44, .88);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-size: 7.8px;
    font-weight: 800;
}

.sirah-home-video-card__body {
    padding: 10px 12px 12px;
}

.sirah-home-video-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    color: #b78342;
    font-size: 7.7px;
    font-weight: 700;
}

.sirah-home-video-card__body h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 5px;
    color: var(--sv-oud-dark);
    font-family: "Amiri", "Cairo", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sirah-home-video-card__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 30px;
    margin: 0 0 8px;
    color: var(--sv-muted);
    font-size: 9px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sirah-home-video-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 29px;
    padding: 4px 9px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: linear-gradient(135deg, var(--sv-oud), var(--sv-oud-dark));
    box-shadow: 0 5px 11px rgba(85, 42, 51, .11);
    font-size: 8.4px;
    font-weight: 800;
    cursor: pointer;
}

.sirah-home-video-card__unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 4px 9px;
    color: #8b746c;
    border: 1px solid rgba(120, 86, 67, .08);
    border-radius: 7px;
    background: #f4e9da;
    font-size: 8px;
    font-weight: 700;
}

/* ===== nav ===== */

.sirah-home-videos__nav {
    position: absolute;
    z-index: 5;
    top: 39%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--sv-oud);
    border: 1px solid rgba(127, 86, 59, .16);
    border-radius: 50%;
    background: rgba(255, 247, 232, .97);
    box-shadow: 0 6px 16px rgba(74, 48, 36, .12);
    font-size: 9px;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.sirah-home-videos__nav:hover {
    color: #fff;
    background: var(--sv-oud);
}

.sirah-home-videos__nav--prev {
    right: 3px;
}

.sirah-home-videos__nav--next {
    left: 3px;
}

/* ===== progress as soft dots-line ===== */

.sirah-home-videos__progress {
    position: relative;
    width: min(160px, 34%);
    height: 3px;
    overflow: visible;
    margin: 13px auto 0;
    border-radius: 999px;
    background: rgba(107, 47, 61, .08);
}

.sirah-home-videos__progress::before,
.sirah-home-videos__progress::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(198, 154, 88, .55);
    transform: translateY(-50%);
}

.sirah-home-videos__progress::before {
    right: -14px;
}

.sirah-home-videos__progress::after {
    left: -14px;
}

.sirah-home-videos__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sv-gold), var(--sv-oud));
    transition: width .2s ease;
}

/* ===== modal ===== */

.sirah-home-video-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(201, 154, 88, .23);
    border-radius: 14px;
    background: #fffaf2;
    box-shadow: 0 28px 70px rgba(36, 23, 18, .26);
}

.sirah-home-video-modal .modal-header {
    position: relative;

    min-height: 62px;
    padding: 12px 58px 12px 18px;

    direction: rtl;

    border-bottom: 1px solid rgba(107, 47, 61, .09);
    background: linear-gradient(135deg, #fff8ec, #f3e1c5);
}

.sirah-home-video-modal .modal-title {
    width: 100%;
    margin: 0;

    color: var(--sv-oud);

    font-family: "Amiri", "Cairo", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;

    text-align: right;
}

/* زر الإغلاق يبقى في الطرف الأيسر مهما كان اتجاه RTL */
.sirah-home-video-modal .modal-header .btn-close {
    position: absolute;
    top: 50%;
    left: 14px;
    right: auto;

    width: 34px;
    height: 34px;

    margin: 0 !important;
    padding: 0;

    border: 1px solid rgba(103, 49, 61, .13);
    border-radius: 50%;

    background-color: rgba(255, 250, 242, .78);
    background-size: 11px;

    opacity: .82;

    transform: translateY(-50%);
    transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.sirah-home-video-modal .modal-header .btn-close:hover {
    background-color: #fffaf2;
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.sirah-home-video-modal .modal-body {
    padding: 9px;
    background: #211817;
}

.sirah-home-video-modal__video {
    display: block;
    width: 100%;
    max-height: 72vh;
    background: #000;
}

/* ===== tablet ===== */

@media (max-width: 991.98px) {
    .sirah-home-videos {
        padding: var(--sirah-section-space-y) 0;
    }

    .sirah-home-videos__container {
        width: min(calc(100% - 28px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
    }

    .sirah-home-videos__heading {
        gap: 16px;
        margin-bottom: 15px;
    }

    .sirah-home-videos__heading h2 {
        font-size: clamp(27px, 4.5vw, 35px);
    }

    .sirah-home-videos__slider-shell {
        padding-inline: 44px;
    }

    .sirah-home-videos__track {
        grid-auto-columns: calc((100% - 11px) / 2);
        gap: 11px;
    }

    .sirah-home-videos__nav--prev {
        right: 2px;
    }

    .sirah-home-videos__nav--next {
        left: 2px;
    }
}

/* ===== mobile ===== */

@media (max-width: 767.98px) {
    .sirah-home-videos {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: var(--sirah-section-space-y) 0;
        border: 0;

        background:
            radial-gradient(circle at 12% 18%, rgba(198, 154, 88, .06), transparent 24%),
            linear-gradient(180deg,
                var(--sirah-bg-videos-top) 0%,
                var(--sirah-bg-videos-middle) 50%,
                var(--sirah-bg-videos-bottom) 100%);
    }

    .sirah-home-videos::before,
    .sirah-home-videos::after {
        display: none;
    }

    .sirah-home-videos__pattern {
        display: block;
        opacity: .10;
    }

    .sirah-home-videos__container {
        width: min(calc(100% - 20px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
        margin-inline: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .sirah-home-videos__heading {
        display: block;
        margin-bottom: 12px;
    }

    .sirah-home-videos__eyebrow {
        font-size: 9.5px;
    }

    .sirah-home-videos__heading h2 {
        margin-bottom: 4px;
        font-size: clamp(25px, 7.8vw, 32px);
    }

    .sirah-home-videos__heading p {
        font-size: 10.3px;
        line-height: 1.65;
    }

    .sirah-home-videos__all {
        min-height: 33px;
        margin-top: 10px;
        padding: 6px 10px;
        font-size: 8.8px;
    }

    .sirah-home-videos__slider-shell {
        padding-inline: 0;
    }

    .sirah-home-videos__track {
        grid-auto-columns: 83%;
        gap: 9px;
        padding-bottom: 6px;
    }

    .sirah-home-videos__nav {
        display: none;
    }

    .sirah-home-video-card {
        border-radius: 13px;
    }

    .sirah-home-video-card__media {
        aspect-ratio: 16 / 8.6;
    }

    .sirah-home-video-card__body {
        padding: 9px 10px 10px;
    }

    .sirah-home-video-card__body h3 {
        min-height: auto;
        font-size: 17px;
    }

    .sirah-home-video-card__body p {
        min-height: auto;
        font-size: 8.8px;
    }

    .sirah-home-videos__progress {
        width: 40%;
        margin-top: 11px;
    }
}

@media (max-width: 767.98px) {
    .sirah-home-video-modal .modal-dialog {
        width: calc(100% - 16px);
        max-width: none;
        margin: 8px auto;
    }

    .sirah-home-video-modal .modal-content {
        border-radius: 13px;
    }

    .sirah-home-video-modal .modal-header {
        min-height: 52px;
        padding: 9px 48px 9px 12px;
    }

    .sirah-home-video-modal .modal-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .sirah-home-video-modal .modal-header .btn-close {
        left: 9px;
        width: 31px;
        height: 31px;
        background-size: 10px;
    }

    .sirah-home-video-modal .modal-body {
        padding: 5px;
    }
}

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

    .sirah-home-video-card,
    .sirah-home-video-card__media img,
    .sirah-home-video-card__play,
    .sirah-home-videos__all,
    .sirah-home-videos__nav,
    .sirah-home-videos__progress span {
        transition: none !important;
    }

    .sirah-home-videos__track {
        scroll-behavior: auto;
    }
}

/* =========================================================
   FINAL SECTION BACKGROUNDS — 2026-08-11
   تحسين تباين الأقسام السفلية
========================================================= */

/* الاستكشاف التاريخي: أبيض دافئ */
/* .sirah-history-hub {
    background:
        radial-gradient(circle at 8% 18%, rgba(198, 154, 88, .055), transparent 25%),
        radial-gradient(circle at 92% 82%, rgba(103, 49, 61, .035), transparent 25%),
        linear-gradient(180deg, #fffdf9 0%, #fbf7f0 100%) !important;
} */

/* عن السيرة: بيج دافئ أوضح */
.sirah-about {
    background:
        radial-gradient(circle at 10% 15%, rgba(198, 154, 88, .10), transparent 28%),
        radial-gradient(circle at 90% 82%, rgba(139, 70, 84, .045), transparent 30%),
        linear-gradient(180deg,
            var(--sirah-bg-about-top) 0%,
            var(--sirah-bg-about-bottom) 100%) !important;
}




/*
 * عند Zoom Out / الشاشات الواسعة:
 * هذه القاعدة تخص الأقسام الأخرى فقط.
 * قسم أوقات الأحداث لديه قاعدة مستقلة داخل بلوكه الموحد أعلاه.
 */
@media (min-width: 1800px) {

    .timeline-section,
    .on-this-day-section,
    .sirah-history-hub,
    .sirah-density,
    .sirah-about,
    .sirah-home-videos,
    .sirah-age-events,
    .sirah-quran {
        width: min(100%, 1600px) !important;
        max-width: 1600px !important;
        margin-inline: auto !important;
    }

    .timeline-section .container,
    .timeline-section .timeline-shell,
    .on-this-day-section__container,
    .sirah-history-hub .sirah-calendar-explorer__container,
    .sirah-density .container,
    .sirah-about__container,
    .sirah-home-videos__container {
        width: min(calc(100% - 36px),
                var(--sirah-layout-width, 1240px)) !important;
        max-width: var(--sirah-layout-width, 1240px) !important;
        margin-inline: auto !important;
    }
}

/* =========================================================
   FIX V3 — Footer width on Zoom Out / very wide CSS viewport
   نفس حد بقية الصفحة: لا يمتد الفوتر على كامل الشاشة عند التصغير
========================================================= */
@media (min-width: 1600px) {
    .sirah-footer {
        width: min(100%, 1600px) !important;
        max-width: 1600px !important;
        margin-inline: auto !important;
        border-radius: 0 !important;
    }
}

/*
        بطاقات الأحداث
         */
.home-event-showcase {
    --hes-ink: #3a251b;
    --hes-muted: #8b7567;
    --hes-gold: #b78637;
    --hes-shadow: rgba(75, 49, 33, .15);

    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    max-width: none;
    margin-inline: 0;

    padding-block: var(--sirah-section-space-y, 48px);

    background:
        radial-gradient(circle at 10% 18%,
            rgba(198, 154, 88, .065),
            transparent 26%),
        radial-gradient(circle at 90% 84%,
            rgba(103, 49, 61, .03),
            transparent 25%),
        linear-gradient(180deg,
            #fffdf9 0%,
            #fbf7f0 100%);
}

.home-event-showcase__inner {
    position: relative;
    z-index: 1;

    width: min(calc(100% - var(--sirah-layout-gutter, 36px)),
            var(--sirah-layout-width, 1240px));
    max-width: var(--sirah-layout-width, 1240px);

    margin-inline: auto;
    padding-inline: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

/*
         * نفس قاعدة Zoom Out الموجودة في بقية الأقسام.
         */
@media (min-width: 1800px) {
    .home-event-showcase {
        width: min(100%, 1600px);
        max-width: 1600px;
        margin-inline: auto;
    }

    .home-event-showcase__inner {
        width: min(calc(100% - 36px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
        margin-inline: auto;
    }
}

.home-event-showcase::before,
.home-event-showcase::after {
    content: "";
    position: absolute;
    z-index: 0;

    border: 1px solid rgba(184, 139, 67, .12);
    border-radius: 50%;

    pointer-events: none;
}

.home-event-showcase::before {
    width: clamp(220px, 22vw, 350px);
    height: clamp(220px, 22vw, 350px);

    top: clamp(-205px, -13vw, -135px);
    right: clamp(-120px, -7vw, -65px);
}

.home-event-showcase::after {
    width: clamp(190px, 19vw, 300px);
    height: clamp(190px, 19vw, 300px);

    bottom: clamp(-175px, -11vw, -115px);
    left: clamp(-100px, -6vw, -55px);
}

.home-event-showcase__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;

    pointer-events: none;

    opacity: .34;

    background:
        radial-gradient(circle at 3% 13%,
            transparent 0 76px,
            rgba(181, 135, 73, .17) 77px 78px,
            transparent 79px),
        radial-gradient(circle at 96% 89%,
            transparent 0 108px,
            rgba(181, 135, 73, .14) 109px 110px,
            transparent 111px);
}

.home-event-showcase__heading {
    position: relative;
    z-index: 2;

    max-width: 720px;
    margin: 0 auto 17px;

    text-align: center;
}

.home-event-showcase__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-bottom: 7px;
    padding: 4px 10px;

    color: #9d6c2e;

    border: 1px solid rgba(168, 116, 49, .16);
    border-radius: 999px;

    background: rgba(255, 253, 249, .78);

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

.home-event-showcase__heading h2 {
    margin: 0;

    color: var(--hes-ink);

    font-family: "Amiri", "Cairo", serif;
    font-size: clamp(31px, 3vw, 43px);
    font-weight: 900;
    line-height: 1.13;
}

/*
         * العرض أصبح أضيق قليلًا حتى تكون الأسهم والبطاقات
         * مجموعة واحدة متماسكة في منتصف القسم.
         */
.home-event-showcase__carousel {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 4px;

    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.home-event-showcase__stage {
    position: relative;

    height: 340px;
    min-width: 0;

    overflow: visible;

    touch-action: pan-y;
    user-select: none;
}

.home-event-showcase__card {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 286px;
    aspect-ratio: 1 / 1;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, -50%) scale(.70);

    filter:
        saturate(.72) brightness(1.06);

    transition:
        transform .46s cubic-bezier(.22, .8, .22, 1),
        opacity .34s ease,
        filter .34s ease;

    will-change: transform, opacity;
}

/*
         * البطاقة الرئيسية في الأمام.
         */
.home-event-showcase__card.is-active {
    z-index: 6;

    opacity: 1;
    pointer-events: auto;

    transform:
        translate(-50%, -50%) scale(1.05);

    filter: none;
}

/*
         * البطاقتان الجانبيتان أصبحتا أقرب وتدخلان قليلًا خلف البطاقة الوسطى.
         * مع نزول بسيط لأسفل ليعطي شكل الطبقات مثل المرجع.
         */
.home-event-showcase__card.is-prev {
    z-index: 4;

    opacity: .72;

    transform:
        translate(calc(-50% - 228px),
            calc(-50% + 10px)) scale(.86);

    filter:
        saturate(.74) brightness(1.055);
}

.home-event-showcase__card.is-next {
    z-index: 4;

    opacity: .72;

    transform:
        translate(calc(-50% + 228px),
            calc(-50% + 10px)) scale(.86);

    filter:
        saturate(.74) brightness(1.055);
}

/*
         * البطاقات الأبعد قريبة من المجموعة لكن أخف بصريًا،
         * وتجلس خلف الجانبيتين.
         */
.home-event-showcase__card.is-far-prev {
    z-index: 2;

    opacity: .18;

    transform:
        translate(calc(-50% - 368px),
            calc(-50% + 19px)) scale(.69);
}

.home-event-showcase__card.is-far-next {
    z-index: 2;

    opacity: .18;

    transform:
        translate(calc(-50% + 368px),
            calc(-50% + 19px)) scale(.69);
}

.home-event-showcase__frame {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border: 2px solid rgba(184, 133, 49, .76);
    border-radius: 20px;

    background: #e8d9bf;

    box-shadow:
        0 17px 38px var(--hes-shadow),
        0 5px 11px rgba(75, 49, 33, .07),
        inset 0 0 0 3px rgba(255, 255, 255, .22);
}

.home-event-showcase__card:not(.is-active) .home-event-showcase__frame {
    border-color: rgba(176, 134, 74, .36);

    box-shadow:
        0 10px 24px rgba(75, 49, 33, .09),
        inset 0 0 0 2px rgba(255, 255, 255, .17);
}

.home-event-showcase__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1.02);

    transition: transform 3.4s ease;
}

.home-event-showcase__card.is-active .home-event-showcase__image {
    transform: scale(1.065);
}

.home-event-showcase__shine {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .16) 0%,
            transparent 29%,
            transparent 73%,
            rgba(255, 255, 255, .05) 100%);
}

.home-event-showcase__vignette {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(180deg,
            transparent 44%,
            rgba(22, 14, 10, .08) 59%,
            rgba(22, 14, 10, .82) 100%);
}

.home-event-showcase__content {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;

    z-index: 3;

    color: #fff;

    text-align: center;
}

.home-event-showcase__content h3 {
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    color: #fff;

    font-family: "Amiri", "Cairo", serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.24;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, .38),
        0 6px 15px rgba(0, 0, 0, .22);

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-event-showcase__card:not(.is-active) .home-event-showcase__content h3 {
    font-size: 16.5px;

    -webkit-line-clamp: 2;
}

.home-event-showcase__arrow {
    position: relative;
    z-index: 15;

    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #94642c;

    border: 1px solid rgba(170, 122, 58, .16);
    border-radius: 50%;

    background: rgba(255, 252, 246, .90);

    box-shadow:
        0 6px 15px rgba(70, 45, 29, .07),
        inset 0 1px 0 rgba(255, 255, 255, .86);

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}

.home-event-showcase__arrow:hover {
    transform: scale(1.06);

    color: #75471e;

    background: #fffaf2;
}

.home-event-showcase__arrow:disabled {
    opacity: .28;
    cursor: default;
    transform: none;
}

.home-event-showcase__dots {
    position: relative;
    z-index: 2;

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

    gap: 6px;

    margin-top: 4px;
}

.home-event-showcase__dots button {
    width: 6px;
    height: 6px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(90, 66, 50, .22);

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease,
        opacity .25s ease;
}

.home-event-showcase__dots button.is-active {
    width: 20px;

    border-radius: 999px;

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

@media (min-width: 1200px) {
    .home-event-showcase__card {
        width: 294px;
    }

    .home-event-showcase__stage {
        height: 350px;
    }

    .home-event-showcase__card.is-prev {
        transform:
            translate(calc(-50% - 255px),
                calc(-50% + 10px)) scale(.86);
    }

    .home-event-showcase__card.is-next {
        transform:
            translate(calc(-50% + 255px),
                calc(-50% + 10px)) scale(.86);
    }

    .home-event-showcase__card.is-far-prev {
        transform:
            translate(calc(-50% - 430px),
                calc(-50% + 20px)) scale(.69);
    }

    .home-event-showcase__card.is-far-next {
        transform:
            translate(calc(-50% + 430px),
                calc(-50% + 20px)) scale(.69);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .home-event-showcase {
        padding: 16px 0 20px;
    }

    .home-event-showcase__inner {
        width: min(calc(100% - 28px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
        margin-inline: auto;
        padding: 0;
    }

    .home-event-showcase__stage {
        height: 305px;
    }

    .home-event-showcase__card {
        width: 252px;
    }

    .home-event-showcase__card.is-prev {
        transform:
            translate(calc(-50% - 195px),
                calc(-50% + 9px)) scale(.82);
    }

    .home-event-showcase__card.is-next {
        transform:
            translate(calc(-50% + 195px),
                calc(-50% + 9px)) scale(.82);
    }

    .home-event-showcase__card.is-far-prev,
    .home-event-showcase__card.is-far-next {
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .home-event-showcase {
        width: 100%;
        max-width: none;
        margin: 0;

        padding: var(--sirah-section-space-y, 30px) 0;
    }

    .home-event-showcase__inner {
        width: min(calc(100% - 20px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
        margin-inline: auto;
        padding: 0;
    }

    .home-event-showcase__heading {
        margin-bottom: 11px;
    }

    .home-event-showcase__eyebrow {
        margin-bottom: 5px;

        font-size: 8.5px;
    }

    .home-event-showcase__heading h2 {
        font-size: 27px;
    }

    .home-event-showcase__carousel {
        grid-template-columns:
            29px minmax(0, 1fr) 29px;

        width: 100%;
        max-width: none;
        margin-inline: 0;
        gap: 2px;
    }

    .home-event-showcase__stage {
        height: 274px;

        overflow: hidden;
    }

    .home-event-showcase__card {
        width: min(65vw, 220px);
    }

    .home-event-showcase__card.is-active {
        transform:
            translate(-50%, -50%) scale(1);
    }

    /*
             * في الجوال تبقى البطاقات ملاصقة نسبيًا للوسط،
             * ويظهر طرف كل بطاقة بدل أن تختفي خارج الشاشة.
             */
    .home-event-showcase__card.is-prev {
        opacity: .54;

        transform:
            translate(calc(-50% - 46vw),
                calc(-50% + 7px)) scale(.73);
    }

    .home-event-showcase__card.is-next {
        opacity: .54;

        transform:
            translate(calc(-50% + 46vw),
                calc(-50% + 7px)) scale(.73);
    }

    .home-event-showcase__card.is-far-prev,
    .home-event-showcase__card.is-far-next {
        opacity: 0;
    }

    .home-event-showcase__frame {
        border-radius: 16px;
    }

    .home-event-showcase__content {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .home-event-showcase__content h3 {
        font-size: 18px;
    }

    .home-event-showcase__card:not(.is-active) .home-event-showcase__content h3 {
        font-size: 13px;
    }

    .home-event-showcase__arrow {
        width: 28px;
        height: 28px;

        font-size: 9px;
    }

    .home-event-showcase__dots {
        margin-top: 1px;
    }
}

@media (max-width: 430px) {
    .home-event-showcase__inner {
        width: min(calc(100% - 14px),
                var(--sirah-layout-width, 1240px));
    }

    .home-event-showcase__stage {
        height: 250px;
    }

    .home-event-showcase__card {
        width: min(64vw, 204px);
    }

    .home-event-showcase__card.is-prev {
        transform:
            translate(calc(-50% - 45vw),
                calc(-50% + 6px)) scale(.71);
    }

    .home-event-showcase__card.is-next {
        transform:
            translate(calc(-50% + 45vw),
                calc(-50% + 6px)) scale(.71);
    }

    .home-event-showcase__content h3 {
        font-size: 16.5px;
    }
}


/*
         * الجوال/التابلت في وضع التدوير:
         * نفس عرض الـ container المستخدم في بقية الأجهزة.
         * لا نضع عرضًا خاصًا أصغر من باقي المقاسات؛
         * نغير فقط ارتفاع البطاقات وحجمها لأن الشاشة قصيرة.
         */
@media (max-width: 991.98px) and (orientation: landscape),
(max-height: 520px) and (min-width: 560px) {

    .home-event-showcase {
        width: 100%;
        max-width: none;
        margin-inline: 0;

        padding-block: 16px;
    }

    .home-event-showcase__inner {
        width: min(calc(100% - var(--sirah-layout-gutter, 36px)),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);

        margin-inline: auto;
        padding-inline: 0;
    }

    .home-event-showcase__heading {
        margin-bottom: 8px;
    }

    .home-event-showcase__eyebrow {
        margin-bottom: 3px;
        padding: 3px 8px;

        font-size: 7.5px;
    }

    .home-event-showcase__heading h2 {
        font-size: clamp(22px, 4vw, 27px);
        line-height: 1.05;
    }

    .home-event-showcase__carousel {
        width: 100%;
        max-width: none;
        margin-inline: 0;

        grid-template-columns: 31px minmax(0, 1fr) 31px;
        gap: 4px;
    }

    .home-event-showcase__stage {
        height: 220px;
        overflow: hidden;
    }

    .home-event-showcase__card {
        width: clamp(168px, 29vw, 205px);
    }

    .home-event-showcase__card.is-active {
        transform:
            translate(-50%, -50%) scale(1);
    }

    .home-event-showcase__card.is-prev {
        opacity: .67;

        transform:
            translate(calc(-50% - clamp(150px, 25vw, 185px)),
                calc(-50% + 5px)) scale(.76);
    }

    .home-event-showcase__card.is-next {
        opacity: .67;

        transform:
            translate(calc(-50% + clamp(150px, 25vw, 185px)),
                calc(-50% + 5px)) scale(.76);
    }

    .home-event-showcase__card.is-far-prev,
    .home-event-showcase__card.is-far-next {
        opacity: 0;
    }

    .home-event-showcase__frame {
        border-radius: 14px;
    }

    .home-event-showcase__content {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .home-event-showcase__content h3 {
        font-size: clamp(13px, 2.2vw, 16px);
        line-height: 1.18;

        -webkit-line-clamp: 3;
    }

    .home-event-showcase__card:not(.is-active) .home-event-showcase__content h3 {
        font-size: clamp(9px, 1.7vw, 11px);

        -webkit-line-clamp: 2;
    }

    .home-event-showcase__arrow {
        width: 29px;
        height: 29px;

        font-size: 8px;
    }

    .home-event-showcase__dots {
        margin-top: 2px;
        gap: 5px;
    }

    .home-event-showcase__dots button {
        width: 5px;
        height: 5px;
    }

    .home-event-showcase__dots button.is-active {
        width: 17px;
    }
}

/*
         * جوال أفقي صغير:
         * نفس العرض أيضًا، فقط تقليل الارتفاع والحجم قليلًا.
         */
@media (max-width: 700px) and (max-height: 430px) and (orientation: landscape) {
    .home-event-showcase {
        padding-block: 11px;
    }

    .home-event-showcase__inner {
        width: min(calc(100% - 24px),
                var(--sirah-layout-width, 1240px));
        max-width: var(--sirah-layout-width, 1240px);
        margin-inline: auto;
    }

    .home-event-showcase__heading h2 {
        font-size: 22px;
    }

    .home-event-showcase__stage {
        height: 205px;
    }

    .home-event-showcase__card {
        width: clamp(165px, 28vw, 185px);
    }

    .home-event-showcase__card.is-prev {
        transform:
            translate(calc(-50% - clamp(145px, 24vw, 165px)),
                calc(-50% + 4px)) scale(.74);
    }

    .home-event-showcase__card.is-next {
        transform:
            translate(calc(-50% + clamp(145px, 24vw, 165px)),
                calc(-50% + 4px)) scale(.74);
    }
}

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

    .home-event-showcase__card,
    .home-event-showcase__image,
    .home-event-showcase__arrow,
    .home-event-showcase__dots button {
        transition: none !important;
    }
}