/* Add custom CSS styles below */ 
/* ============================= */
/*      قسم قصتي - Story Section */
/* ============================= */

/* صندوق قسم قصتي */
.story-section {
    background: transparent !important;        /* بدون خلفية */
    padding: 160px 20px 120px !important;      /* مسافة من فوق وتحت */
    margin: 0 auto 90px !important;            /* مسافة بين الأقسام */
    max-width: 950px !important;               /* عرض المحتوى */
    text-align: center !important;             /* توسيط النص */
}

/* عنوان قصتي */
.story-section h2,
.story-section .component-title {
    color: #d87e90 !important;  /* الوردي الفاتح حق الشعار */
    font-family: "Tajawal", sans-serif !important;
    font-weight: 800 !important;   /* غامق */
    font-size: 34px !important;    /* حجم العنوان */
    margin-bottom: 28px !important;
    letter-spacing: -1px !important; /* يعطي شكل أجمل */
}

/* نص قصة ثراء */
.story-section p {
    color: #2e2e35 !important; /* الرمادي الداكن القريب من لون الفهد */
    font-family: "Tajawal", sans-serif !important;
    font-size: 19px !important;     /* حجم مناسب ومقروء */
    font-weight: 600 !important;    /* غامق شوي */
    line-height: 2.1 !important;    /* مسافة بين السطور */
    margin-bottom: 22px !important; /* مسافة بين الفقرات */
}

/* ===========================================
   لافتة التقسيط - installment-banner
   حركة دخول + تمايل احترافي + هوفر
===========================================*/

/* الحاوية الأساسية للبانر */
.installment-banner {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
    animation: bannerEnter 0.9s ease-out forwards;
    transform-origin: center;
}

/* صورة البانر نفسها */
.installment-banner img {
    display: block;
    width: 100%;
    height: auto;
    
    /* بداية التمايل */
    animation: bannerFloat 5.2s ease-in-out infinite;
    transform-origin: center right;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* تأثير عام عند المرور بالماوس (الكمبيوتر) */
@media (hover: hover) {
    .installment-banner:hover img {
        transform: scale(1.03);
        filter: saturate(1.05) contrast(1.03);
    }
}

/* ===== أنيميشن الدخول من اليسار إلى الوسط ===== */
@keyframes bannerEnter {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    60% {
        opacity: 1;
        transform: translateX(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== أنيميشن التمايل (الجوال يحسسك يتحرك يمين/يسار) ===== */
@keyframes bannerFloat {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* استجابة للجوال - تخفيف الظل شوية */
@media (max-width: 768px) {
    .installment-banner {
        border-radius: 20px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }
}


/* ======================= */
/*  بنر ثراء الرئيسي      */
/*  hero-tharaa            */
/* ======================= */

/* الحاوية الأساسية للبنر */
.hero-tharaa {
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px;
    border-radius: 0 0 32px 32px;
    max-width: 1920px;
    animation: heroFadeIn 1.1s ease-out both;
    transform-origin: center;
}

/* صورة البنر */
.hero-tharaa img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center;
    animation: heroFloat 14s ease-in-out infinite;
}

/* طبقة تدرّج ناعمة فوق الخلفية */
.heo-tharaa::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(255,255,255,0.2) 0, transparent 45%),
                radial-gradient(circle at 90% 100%, rgba(255,255,255,0.18) 0, transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

/* ووترمارك كلمة ثراء في الخلف */
.hero-tharaa::after {
    content: "ثــراء";
    position: absolute;
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Tajawal", sans-serif;
    font-size: 64px;
    letter-spacing: 10px;
    color: #2e2e35;
    opacity: 0.04;
    white-space: nowrap;
    pointer-events: none;
}

/* زر البنر (CTA) – يعتمد على زر سلة الموجود داخل المكوّن */
.hero-tharaa .btn,
.hero-tharaa .button {
    position: absolute;
    bottom: 14%;
    right: 14%;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background-color: #2e2e35;        /* نفس لون الفهد */
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* هوفر الزر */
@media (hover: hover) {
    .hero-tharaa .btn:hover,
    .hero-tharaa .button:hover {
        transform: translateY(-3px);
        background-color: #41445a;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    }
}

/* تأثير عام عند المرور بالماوس على البنر (ديسكتوب) */
@media (hover: hover) {
    .hero-tharaa:hover img {
        transform: scale(1.02);
        filter: saturate(1.03);
    }
}

/* دخول البنر من الأسفل مع تلاشي */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        box-shadow: none;
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    }
}

/* طفو خفيف لصورة البنر */
@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ضبط الوضع بالموبايل */
@media (max-width: 768px) {
    .hero-tharaa {
        border-radius: 0 0 24px 24px;
        margin-bottom: 30px;
    }

    .hero-tharaa::after {
        font-size: 40px;
        bottom: 6%;
    }

    .hero-tharaa .btn,
    .hero-tharaa .button {
        bottom: 8%;
        right: 50%;
        transform: translateX(50%);
        padding: 8px 20px;
        font-size: 13px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }

    @media (hover: hover) {
        .hero-tharaa .btn:hover,
        .hero-tharaa .button:hover {
            transform: translate(50%, -3px);
        }
    }
}