/* Custom UX Upgrade for ShamiShere - REVERTED TO STABLE V9 */

/* 1. Global Typography */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    background-color: #f8f9fa !important;
    direction: rtl;
    text-align: right;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif !important;
}

/* 2. Header & Footer (Stable) */
header {
    background: #111 !important;
    font-family: 'Tajawal', sans-serif !important;
}

.header-style1 .main-menu-area {
    min-height: 60px !important;
    display: flex;
    align-items: center;
}

#dropdown ul li a {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    font-family: 'Tajawal', sans-serif !important;
}

footer {
    background: #0c0c0c !important;
    color: #fff !important;
    padding-top: 50px !important;
    font-family: 'Tajawal', sans-serif !important;
}

footer .footer-box h2 {
    color: #ffffff !important;
    font-family: 'Tajawal', sans-serif !important;
    border-bottom: 2px solid #e53935;
    display: inline-block;
    margin-bottom: 20px;
}

footer .footer-box ul li a {
    color: #ddd !important;
    font-size: 14px !important;
}

footer .footer-box ul li a:hover {
    color: #e53935 !important;
}

footer .footer-area-bottom {
    background-color: #050505 !important;
    padding: 15px 0 !important;
}

/* 3. Section Titles (Topic Border Fix) */
.topic-border {
    border-bottom: 2px solid #e53935 !important;
    margin-bottom: 35px !important;
    position: relative !important;
    display: block !important;
    overflow: visible !important;
}

.topic-box-lg {
    background: #e53935 !important;
    color: #fff !important;
    padding: 8px 25px !important;
    display: inline-block !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 18px !important;
}

.isotope-classes-tab {
    display: inline-block !important;
    margin-right: 15px !important;
}

.isotope-classes-tab a {
    padding: 5px 10px !important;
    color: #444 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* 4. Fix Squeezed Media Items (Layout Fix) */
.media {
    display: table !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.media>a,
.media>.width38-lg {
    display: table-cell !important;
    vertical-align: top !important;
    width: 120px !important;
}

.media-body {
    display: table-cell !important;
    vertical-align: top !important;
    padding-right: 15px !important;
    text-align: right !important;
}

.media img {
    width: 120px !important;
    height: 85px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

/* 5. Homepage Large Cards */
.img-overlay-70 {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.img-overlay-70 img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

.img-overlay-70:before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%) !important;
    height: 60% !important;
}

/* 6. Sidebar Refinement */
.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 7. Mobile Logo Fix */
@media only screen and (max-width: 991px) {
    .mean-container .mean-bar {
        z-index: 2147483647 !important;
    }

    .mean-container .mean-bar .mobile-menu-nav-back {
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .logo-mobile img {
        max-height: 45px !important;
        width: auto !important;
        display: block !important;
    }

    .mean-container .mean-bar .meanmenu-reveal {
        top: 18px !important;
        position: absolute !important;
        left: 15px !important;
        right: auto !important;
    }

    .mean-container .mean-nav ul li a {
        text-align: right !important;
        float: right !important;
    }
}