/* =========================================
   0. الفونت: كل العناصر ترث فونت المنصة
========================================= */
.advanced-slider,
.advanced-slider *,
.s-block--bundle-custom-banner,
.s-block--bundle-custom-banner *,
salla-custom-banner-tzuk1f,
.thmanyah-stats-slider,
.thmanyah-stats-slider *,
.btn-custom {
    font-family: inherit !important;
}

/* =========================================
   1. HERO SLIDER (تم تصحيح التوسيط هنا)
========================================= */
.advanced-slider,
section.advanced-slider.advanced-slider--0.auto-height {
    display: block !important;
    max-width: 1440px !important;
    width: calc(100% - 64px) !important; /* مسافات متساوية يمين ويسار */
    margin: 32px auto 0 auto !important;   /* التوسيط التلقائي */
    height: 600px !important;
    overflow: hidden !important;
    transform: translateZ(0);
}

.advanced-slider__slide {
    height: 600px !important;
    border-radius: 40px !important;
    overflow: hidden !important;
}

.advanced-slider__slide img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

.advanced-slider__caption {
    display: flex !important;
    align-items: center !important;
    padding-right: 40px !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================
   2. النصوص والعناوين
========================================= */
.advanced-slider__caption__inner__content {
    text-align: right !important;
    max-width: 550px !important;
    width: 100% !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    line-height: 1.6 !important;
    color: rgba(248, 250, 255, 0.9);
}

.advanced-slider__caption__inner__content__heading {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 550px !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
}

.line-1,
.line-2 {
    display: block !important;
    width: 100% !important;
    font-size: 64px !important;
    font-weight: 700 !important;
    letter-spacing: -1px;
    padding-bottom: 15px !important;
    margin-bottom: -10px !important;
}

.line-1 {
    color: #ffffff;
}

.line-2 {
    background: linear-gradient(90deg, #77ff00 0%, #f8faff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.advanced-slider__caption__inner__content__text {
    max-width: 400px !important;
    width: 100% !important;
    text-align: right !important;
    font-size: 1.15rem !important;
    color: rgba(248, 250, 255, 0.9);
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;
}

/* =========================================
   3. الأزرار
========================================= */
.slider-buttons-container {
    display: flex;
    gap: 15px;
}

.btn-custom {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-green {
    background-color: #5fbb41 !important;
    color: #ffffff !important;
}

.btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.btn-custom:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* إخفاء زرار السلايدر الأصلي */
.advanced-slider__caption__inner__content__button {
    display: none !important;
}

/* =========================================
   4. شريط الإحصائيات
========================================= */
.thmanyah-stats-slider {
    width: 100%;
    box-sizing: border-box;
    background-color: transparent !important;
    padding: 60px 0;
    direction: rtl;
    border: none !important;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.thmanyah-stats-slider.visible {
    opacity: 1;
    transform: translateY(0);
}

.stats-wrapper {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-title {
    color: #2e2f31;
    font-size: 38.2px;
    font-weight: 700;
    line-height: 130%;
    text-align: right;
    flex-shrink: 0;
}

.stats-items-group {
    display: flex;
    align-items: center;
    gap: 79.7px;
}

.stats-node {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.node-val {
    display: inline-block;
    color: #5fbb41;
    font-size: 33.084px;
    font-weight: 700;
    line-height: 130%;
}

.node-lbl {
    color: #2e2f31;
    font-size: 31.57px;
    font-weight: 700;
    line-height: 130%;
}

.node-special {
    min-width: 190px;
    align-items: flex-start !important;
}

/* =========================================
   5. البانر المخصص
========================================= */
.s-block--bundle-custom-banner,
salla-custom-banner-tzuk1f {
    display: block !important;
    max-width: 1440px !important;
    width: 100% !important;
    border-radius: 40px !important;
    overflow: hidden !important;
}

/* =========================================
   6. RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .advanced-slider,
    .s-block--bundle-custom-banner,
    salla-custom-banner-tzuk1f {
        margin: 24px auto !important;
        width: calc(100% - 48px) !important;
    }

    .line-1,
    .line-2 {
        font-size: 36px !important;
        line-height: 1.2 !important;
        padding-bottom: 8px !important;
    }

    .advanced-slider__caption__inner__content__heading,
    .advanced-slider__caption__inner__content__text {
        max-width: 380px !important;
    }
}

@media (max-width: 992px) {
    .stats-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .stats-items-group {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stats-node {
        align-items: center;
        text-align: center;
    }

    .stats-title {
        font-size: 28px;
        text-align: center;
    }

    .node-val { font-size: 26px; }
    .node-lbl { font-size: 22px; }
}

@media (max-width: 768px) {
    .advanced-slider,
    .s-block--bundle-custom-banner,
    salla-custom-banner-tzuk1f {
        margin: 16px auto !important;
        width: calc(100% - 24px) !important;
        border-radius: 24px !important;
        height: auto !important;
    }

    .advanced-slider__caption {
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: flex-start !important;
        padding: 20px 16px !important;
    }

    .advanced-slider__caption__inner__content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .advanced-slider__caption__inner__content__heading {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .line-1,
    .line-2 {
        font-size: 32px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
        padding-bottom: 4px !important;
        margin: 0 !important;
        white-space: normal !important;
    }

    .advanced-slider__caption__inner__content__text {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
        max-width: 100% !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .slider-buttons-container {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .btn-custom {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 11px 16px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 767px) {
    salla-custom-banner-rz4rt5 {
        --banner-overlay-opacity: 0.6 !important;
        --banner-text-color: #ffffff !important;
    }
}

/* Custom CSS for Clicks */
.advanced-slider__caption .container {
    position: relative !important;
    z-index: 99 !important;
    pointer-events: none !important;
}

.advanced-slider__caption__inner, 
.slider-buttons-container,
.advanced-slider__caption__inner__content__button,
.slider-buttons-container a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
}

.advanced-slider__slide-link {
    z-index: 1 !important;
}