/* إصلاحات للقالب Glaxdu */

/* إزالة scrollbar غير المرغوب */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body {
    position: relative;
    width: 100%;
}

/* إصلاح Testimonial - فقط position: relative */
.testi-content-wrap {
    position: relative;
    min-height: 450px;
    display: block;
}

.testi-big-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.testi-big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testi-content-wrap .row {
    position: relative;
    z-index: 2;
    margin-left: 50% !important;
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-right: 0 !important;
}

.testi-content-wrap .row .col-lg-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.testi-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    width: 100% !important;
}

/* إصلاح width للـ app container */
#app {
    width: 100%;
    overflow-x: hidden;
}


.testimonial-slider-wrap .testimonial-image-slider {
    width: 493px !important;
}

/* إصلاح المربعات الأربعة (اخترنا) - طول واحد لجميع المربعات */
.choose-us .row.no-gutters {
    margin-left: -15px !important;
    margin-right: -15px !important;
    display: flex;
    flex-wrap: wrap;
}

.choose-us .row.no-gutters > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    display: flex;
}

.choose-us .single-choose-us {
    width: 100%;
    min-height: 100%;
}

@media only screen and (min-width: 1366px) and (max-width: 1600px) {
    .choose-us .single-choose-us {
        padding: 50px 15px 46px;
    }
    .section-padding-1 .container-fluid {
        padding-right: 100px !important;
        padding-left: 100px !important;
    }
}


/* ========== السلايدر الرئيسي: صورة السلايدر في RTL تذهب لليسار ========== */
[dir="rtl"] .slider-active .slider-single-img {
    right: auto;
    left: 256px;
    bottom: 0;
}
@media only screen and (min-width: 1366px) and (max-width: 1600px) {
    [dir="rtl"] .slider-active .slider-single-img {
        left: 50px;
        right: auto;
    }
}
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
    [dir="rtl"] .slider-active .slider-single-img {
        left: 30px;
        right: auto;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    [dir="rtl"] .slider-active .slider-single-img {
        left: 30px;
        right: auto;
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
    [dir="rtl"] .slider-active .slider-single-img {
        left: 30px;
        right: auto;
    }
}
[dir="rtl"] .owl-item.active .slider-animated-1.slider-single-img img {
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
}

/* السلايدر: مسافة بين الزرين في RTL */
[dir="rtl"] .slider-content .slider-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
[dir="rtl"] .slider-content .slider-btn a {
    margin-right: 0;
    margin-left: 0;
}
@media only screen and (max-width: 767px) {
    [dir="rtl"] .slider-content .slider-btn a {
        margin-right: 0;
        margin-left: 0;
    }
}

/* إخفاء الأسهم (nav) للسلايدر */
.course-slider-active.owl-carousel .owl-nav {
    display: none !important;
}

/* إصلاح الفورم - إضافة فراغ بين الـ inputs */
.register-form .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.register-form .row > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.contact-form-style {
    margin-bottom: 20px !important;
}

.contact-form-style input,
.contact-form-style textarea {
    margin-bottom: 0 !important;
}


.owl-dots {
    display: none !important;
}

/* إصلاح Event Slider - إضافة فراغ بين الصور */
.event-active.owl-carousel .owl-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.event-active.owl-carousel .single-event {
    margin: 0 !important;
}

/* إصلاح Our Newsfeed - إضافة فراغ بين العناصر */
.blog-area .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.blog-area .row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.single-blog {
    margin-bottom: 30px !important;
}

/* إصلاح Footer - إضافة فراغ بين العناصر */
.footer-top .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.footer-top .row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* إصلاح Header - إزالة overflow المخفي */
.header-area {
    overflow: visible !important;
}

.header-bottom {
    overflow: visible !important;
}

/* إصلاح padding/margin للصفحة */
.container,
.container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* إصلاح meanMenu - إخفاء الزر المكرر */
.mobile-menu-toggle {
    display: none !important;
}

/* ============================================
   Sticky Header - إصلاح نهائي
   ============================================ */

/* الحالة الأساسية - المنيو عادي */
.header-bottom.sticky-bar {
    background-color: #fff;
    border-bottom: 0 solid #4a90e2;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease 0s;
    position: relative;
    top: auto;
    width: 100%;
    z-index: 100;
    left: auto;
}

/* الحالة عند السكرول - المنيو يثبت */
.header-bottom.sticky-bar.stick {
    -webkit-animation: 688ms ease-in-out 0s normal none 1 running fadeInDown;
    animation: 700ms ease-in-out 0s normal none 1 running fadeInDown;
    background-color: #fff !important;
    border-bottom: 0 solid #4a90e2;
    -webkit-box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.04);
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    left: 0 !important;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

/* Animation - fadeInDown */
@-webkit-keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
    100% {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* للموبايل */
@media (max-width: 768px) {
    .header-bottom.sticky-bar.stick {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
    }
}

/* إصلاح موضع meanMenu */
@media only screen and (max-width: 991px) {
    .mean-container a.meanmenu-reveal {
        display: block !important;
        position: absolute !important;
        right: 15px !important;
        top: -40px !important;
        z-index: 9999 !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        text-align: center !important;
        cursor: pointer !important;
    }
    
    .cart-search-wrap {
        position: relative;
    }
    
    .mobile-menu-area {
        position: relative;
        z-index: 999;
    }
    
    /* إصلاح القوائم الداخلية للموبايل - meanMenu يدير القائمة الرئيسية */
    /* لا نخفي القائمة الرئيسية - meanMenu يستخدم slideDown/slideUp */
    
    /* meanMenu يدير القوائم الداخلية بنفسه - فقط نتأكد من أن mean-expand يظهر */
    .mean-nav .mean-expand {
        display: block !important;
    }
}

/* ============================================
   محتوى HTML من CKEditor — عربي + إنجليزي
   (يُستخدم مع dir="rtl" | dir="ltr" على العنصر)
   ============================================ */
.about-prose {
    max-width: 52rem;
    margin-inline: auto;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.85;
}

.about-prose[dir="ltr"] {
    line-height: 1.75;
}

.about-prose h1,
.about-prose h2,
.about-prose h3,
.about-prose h4 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.about-prose h1 {
    font-size: 1.85rem;
}
.about-prose h2 {
    font-size: 1.5rem;
}
.about-prose h3 {
    font-size: 1.25rem;
}
.about-prose h4 {
    font-size: 1.1rem;
}

.about-prose h1:first-child,
.about-prose h2:first-child,
.about-prose h3:first-child {
    margin-top: 0;
}

.about-prose p {
    margin: 0 0 1.1em;
}

.about-prose ul,
.about-prose ol {
    margin: 0 0 1.1em;
    padding-inline-start: 1.35rem;
}

.about-prose li {
    margin-bottom: 0.4em;
}

.about-prose li > ul,
.about-prose li > ol {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.about-prose a {
    color: #5fcf80;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-prose a:hover {
    color: #4db870;
}

.about-prose strong,
.about-prose b {
    font-weight: 700;
    color: #222;
}

.about-prose blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-inline-start: 4px solid #5fcf80;
    background: rgba(95, 207, 128, 0.08);
    border-radius: 0 6px 6px 0;
}

.about-prose[dir="rtl"] blockquote {
    border-radius: 6px 0 0 6px;
}

.about-prose hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

.about-prose img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25rem auto;
    border-radius: 6px;
}

.about-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.about-prose th,
.about-prose td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: start;
}

.about-prose th {
    background: #f6f6f6;
    font-weight: 600;
}

.about-prose pre,
.about-prose code {
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
}

.about-prose pre {
    overflow-x: auto;
    padding: 1rem;
    background: #f4f4f4;
    border-radius: 6px;
    margin: 1rem 0;
}

.about-empty {
    max-width: 52rem;
    margin-inline: auto;
}

