.switch-box {
    display: none !important;
}
/* Mobile Menu Container */
.mobile-menu .dropdown-toggle::after,
.mobile-menu .nav-link::after {
    display: none !important;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
.mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #042e6f;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Submenu container */
.mobile-menu ul ul {
    display: none;
}

    /* Open */
    .mobile-menu ul ul.open {
        display: block;
        background-color: white;
        border: 0;
    }

    /* Indentation (Hierarchy) */
    .mobile-menu ul ul a {
        font-size: 14px;
        align-items: center;
        justify-content: space-between;
        color: #042e6f;
        border-bottom: 1px solid #eee;
    }

/* RTL */
html[dir="rtl"] .mobile-menu ul ul a {
    padding-right: 32px;
    padding-left: 16px;
}

/* LTR */
html[dir="ltr"] .mobile-menu ul ul a {
    padding-left: 32px;
    padding-right: 16px;
}

/* Arrow */
.mobile-menu .chev {
    font-size: 16px;
    color: #999;
    transition: transform .25s ease;
}

.mobile-menu a[aria-expanded="true"] .chev {
    transform: rotate(90deg);
}

* {
    box-sizing: border-box;
}

/* ===============================
                                                   DESKTOP
                                                ================================ */
.desktop-nav .navbar-brand img {
    max-height: 65px;
}

.desktop-nav .others-options {
    margin-right: 20px;
}

/* ===============================
                                                   MOBILE HEADER
                                                ================================ */
.mobile-responsive-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* Grid layout لضمان التوسيط الحقيقي */
.mobile-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    grid-template-areas: "menu logo search";
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}


/* ===============================
                                                   LOGO (CENTERED)
                                                ================================ */
.mobile-logo {
    text-align: center;
}

    .mobile-logo img {
        height: 46px;
        max-width: 160px;
    }


/* ===============================
                                                   ACTIONS
                                                ================================ */
.mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.mobile-search-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-lang a {
    font-size: 14px;
    font-weight: 600;
    color: #fd9519;
    text-decoration: none;
}
/* ===============================
                                                   SEARCH BOX
                                                ================================ */
.mobile-search-box {
    display: none;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

    .mobile-search-box.open {
        display: block;
    }

    .mobile-search-box input {
        width: 100%;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ddd;
    }

/* ================= MOBILE MENU ================= */
.mobile-menu {
    display: none;
    background: #fff;
    border-bottom: 1px solid #eee;
}

    .mobile-menu.open {
        padding-right: 25px;
        padding-left: 25px;
        display: block;
    }
/* ===============================
                                                   MEANMENU (☰ BUTTON)
                                                ================================ */
.mean-container .mean-bar {
    background: transparent;
    position: absolute;
    top: 10px;
    width: 40px;
}

/* إظهار زر القائمة دائمًا */
.mean-container a.meanmenu-reveal {
    display: block !important;
    font-size: 26px;
    padding: 0;
    top: 6px;
}


/* ===============================
                                                   MOBILE ONLY
                                                ================================ */
@media (max-width: 768px) {
    .mobile-responsive-nav {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
    /* إخفاء البحث القديم */
    .mobile-responsive-menu .search-box {
        display: none !important;
    }

    body {
        font-size: 15px;
        line-height: 1.8;
    }
}

/* ===============================
                                                   DESKTOP ONLY
                                                ================================ */
@media (min-width: 769px) {
    .mobile-responsive-nav {
        display: none;
    }

    @media (min-width: 769px) {
        .mobile-header, .mobile-menu, .mobile-search-box {
            display: none;
        }
    }
}
/* تعديل للغات RTL */
html[dir="ltr"] .mobile-lang-bar {
    text-align: right;
}

html[dir="rtl"] .mobile-lang-bar {
    text-align: left;
}

.mobile-lang-bar {
    display: none; /* يظهر فقط على الموبايل */
    padding: 8px 15px;
    background-color: #042e6f; /* لون الخلفية الرئيسي */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* ظل خفيف */
    position: relative;
    z-index: 999;
    text-align: center;
}

    /* نص اللغة */
    .mobile-lang-bar a {
        color: #fff; /* لون النص */
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
    }

        /* تأثير عند المرور */
        .mobile-lang-bar a:hover {
            text-decoration: underline;
        }

    .mobile-lang-bar a {
        margin-left: 32px;
        margin-right: 32px;
    }

/* Mobile only */
@media (max-width: 768px) {
    .mobile-lang-bar {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-area {
        text-align: center;
    }

    .single-footer-widget {
        margin-bottom: 30px;
    }

        .single-footer-widget ul li {
            justify-content: center;
        }

    .social-link {
        justify-content: center;
        flex-wrap: wrap;
    }

        .social-link li {
            margin: 5px;
        }
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 768px) {

    /* -------- Global -------- */
    body {
        font-size: 15px;
        line-height: 1.8;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* -------- Banner / Slider -------- */
    .banner-area img {
        height: auto !important;
        max-height: 260px;
        object-fit: cover;
    }

    #overlay {
        display: none; /* إخفاء الأسهم في الموبايل */
    }

    /* -------- Colleges Images -------- */
    .live-stress-area img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* -------- Section Titles -------- */
    .section-title h2 {
        font-size: 20px;
        text-align: center;
    }

    /* -------- News Cards -------- */
    .single-blog-item {
        margin-bottom: 20px;
    }

        .single-blog-item img {
            height: 200px;
            border-radius: 10px;
        }

    .blog-content h3 {
        font-size: 16px;
        line-height: 1.5;
    }

    .blog-content ul {
        font-size: 13px;
    }

    /* -------- Counters -------- */
    .counter-bg .row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .counter-bg .col-lg-2 {
        width: 45%;
        margin: 0 !important;
    }

    .single-counter-item {
        padding: 15px 10px;
        border-radius: 10px;
     }

        .single-counter-item h2 {
            font-size: 22px;
        }

        .single-counter-item h4 {
            font-size: 14px;
        }

    /* -------- Testimonials -------- */
    .single-testimonials-item {
        padding: 15px;
        font-size: 14px;
        line-height: 1.6;
    }

    /* -------- Features -------- */
    .features-area {
        padding: 30px 15px;
    }

    .single-features {
        padding: 12px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,.05);
        margin-bottom: 15px;
    }

        .single-features h3 {
            font-size: 15px;
            margin: 0 10px;
        }

    /* -------- University Life -------- */
    .about-content h2 {
        font-size: 20px;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-content ul li a {
        font-size: 14px;
    }

    /* -------- Video Section -------- */
    .video-img img {
        border-radius: 12px;
    }

    /* -------- Ads -------- */
    .ads-slide img {
        max-height: 260px !important;
        min-height: auto !important;
        object-fit: cover;
        border-radius: 12px;
    }
}


@media (max-width: 768px) {

    /* منع التداخل مع السلايدر */
    .banner-area {
        position: relative;
        z-index: 5;
    }

    .live-stress-area {
        position: relative;
        z-index: 1;
        margin-top: 20px !important;
    }

        /* صف الصور */
        .live-stress-area .row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        /* كل عنصر = نصف الصف */
        .live-stress-area .col-lg-4,
        .live-stress-area .col-sm-6 {
            flex: 0 0 calc(50% - 6px);
            max-width: calc(50% - 6px);
            padding: 0;
        }

        /* الصورة نفسها */
        .live-stress-area img {
            width: 100%;
            height: 160px;
            object-fit: contain; /* بدون قص */
            background: #f7f8f9;
            border-radius: 14px;
            display: block;
        }

        /* كرت أنيق */
        .live-stress-area a {
            display: block;
            background: #ffffff;
            padding: 8px;
            border-radius: 18px;
            box-shadow: 0 6px 14px rgba(0,0,0,.08);
        }
}
#body-text {
    max-width: 820px; /* عرض مريح للعين */
    line-height: 1.9; /* تباعد الأسطر */
    font-size: 16px;
    color: #2a2a2a;
}

    /* العناوين داخل النص */
    #body-text h2,
    #body-text h3 {
        margin: 30px 0 15px;
        color: #f28c28; /* لون أكاديمي هادئ */
        font-weight: 600;
    }

    /* الفقرات */
    #body-text p {
        margin-bottom: 18px;
        text-align: justify;
    }

    /* القوائم المرقمة */
    #body-text ol {
        padding-right: 22px;
        margin: 20px 0;
    }

        #body-text ol li {
            margin-bottom: 14px;
            line-height: 1.8;
        }

    /* النقاط */
    #body-text ul {
        padding-right: 20px;
        margin: 20px 0;
    }

        #body-text ul li {
            margin-bottom: 10px;
        }

/* تحسين القراءة في الجوال */
@media (max-width: 768px) {
    #body-text {
        font-size: 15px;
        line-height: 1.85;
        padding: 0 10px;
    }
}