/* =========================================================
   إصلاح التجاوب الحديث (Mobile Responsive Fix)
   ========================================================= */

@media only screen and (max-width: 1020px) {
    /* 1. إلغاء العرض الثابت 750px وجعله مرناً */
    .layout {
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 75px !important;
        overflow-x: hidden;
    }

    /* 2. ضبط الهيدر وقائمة الموبايل */
    .header {
        height: 75px !important;
        padding: 10px 15px !important;
    }
    .header .logo {
        width: 120px !important;
        margin-top: 4px !important;
    }
    .header .logo img {
        margin-top: 0 !important;
        width: 100% !important;
    }
    .gh {
        width: 36px !important;
        height: 30px !important;
        top: 22px !important;
        left: 15px !important;
    }
    .header .naver {
        top: 75px !important;
    }
    .header .naver li h3 {
        font-size: 18px !important;
        line-height: 50px !important;
        padding: 0 20px !important;
    }
    .header .sub > dl > dd h4,
    .header .sub > dl dl a h5 {
        font-size: 15px !important;
        line-height: 38px !important;
        padding: 5px 15px !important;
    }

    /* 3. ضبط النصوص والأزرار في الصفحة الرئيسية */
    .uit_txt {
        margin-top: 35px !important;
    }
    .uit_txt h2,
    .h_pg4 h2,
    .h_worldwide h2,
    .mcit-news-head h2 {
        font-size: 24px !important;
        line-height: 1.4 !important;
    }
    .uit_txt p,
    .h_pg5 .box .uit_txt p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .ban_cent .txt h4 {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }
    .ban_cent .txt a,
    .h_pg5 .box .uit_txt .btns,
    .uit_txt .btns,
    .h_worldwide .btns a {
        width: 100% !important;
        max-width: 240px !important;
        height: 46px !important;
        line-height: 46px !important;
        font-size: 16px !important;
        margin-top: 25px !important;
    }

    /* 4. ضبط بطاقات الأقسام الأربعة (.h_pg1 .list) */
    .h_pg1 {
        padding: 0 15px 30px !important;
    }
    .h_pg1 .list li {
        width: 100% !important;
        float: none !important;
        border-bottom: 1px solid #efefef;
    }
    .h_pg1 .list li a {
        padding: 10px 15px !important;
        display: flex !important;
        align-items: center;
    }
    .h_pg1 .list li a .img {
        width: 60px !important;
        height: 60px !important;
        background-size: contain !important;
        float: none !important;
        flex-shrink: 0;
    }
    .h_pg1 .list li h3 {
        position: static !important;
        transform: none !important;
        font-size: 16px !important;
        padding-right: 15px !important;
    }

    /* 5. ضبط النوافذ المنبثقة والفورم */
    .tc_mask {
        width: 92% !important;
        max-width: 500px !important;
    }
    .ps_new .form {
        width: 100% !important;
        display: flex;
    }
    .ps_new .form .t1 {
        width: 70% !important;
        font-size: 14px !important;
        padding-right: 45px !important;
    }
    .ps_new .form .sub {
        width: 30% !important;
        font-size: 15px !important;
    }

    /* 6. ضبط الفوتر وإشعار الكوكيز */
    .footer .rts {
        padding: 0 15px !important;
    }
    .footer .rts .tel h4 {
        font-size: 15px !important;
    }
    .footer .rts .tel h2 {
        font-size: 18px !important;
    }
    .footer .Payball img {
        width: 90px !important;
    }
    .footer .copy h6 {
        font-size: 12px !important;
    }
    .in_mask .wrap {
        padding: 15px !important;
    }
    .in_mask .wrap p {
        width: 100% !important;
        float: none !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px;
    }
    .in_mask .wrap .btn {
        float: none !important;
        width: 140px !important;
        height: 40px !important;
        margin: 0 auto !important;
    }
    .in_mask .wrap .btn i {
        line-height: 40px !important;
        font-size: 15px !important;
        padding-right: 35px !important;
        background-size: 22px !important;
    }
}
/* 1. منع التمرير الأفقي على مستوى الصفحة بالكامل */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* 2. قفل جميع الحاويات الرئيسية والسلايدر لمنع خروج الشرائح */

.layout, 
.footer, 
.h_banner, 
.h_swip, 
.swiper-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}
.header{
    max-width: 100% !important;
    box-sizing: border-box;
}
/* 3. إصلاح الهوامش السالبة لـ Bootstrap (.row) التي تسبب خروجاً بـ 15px */
.container {
    overflow-x: hidden;
}
