/* ==========================================================================
   إجبار الخلفية على اللون الأبيض السادة وإلغاء أي نقش أو صور خلفية
   ========================================================================== */
body, #tie-wrapper, .site-content, .footer-wrapper, #tie-body, main.site-main {
    background: #ffffff !important; 
    background-image: none !important;
}

/* ==========================================================================
   إطار عريض ومجسم ثابت (3D) لجميع صور المقالات والصفحة الرئيسية
   ========================================================================== */
.post-single .post-image img, 
.entry-content img {
    border: 6px solid #ffffff; 
    outline: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.1), 0 4px 4px rgba(0,0,0,0.1), 0 8px 12px rgba(0,0,0,0.15), 0 16px 24px rgba(0,0,0,0.1);
    box-sizing: border-box; 
    margin-bottom: 15px;
}

.home .tie-col img, 
.home .post-thumb img, 
.home .image-container img,
.home .mag-box img {
    border: 5px solid #ffffff; 
    outline: 1px solid #e0e0e0; 
    border-radius: 8px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07), 0 4px 8px rgba(0,0,0,0.07), 0 8px 16px rgba(0,0,0,0.07);
    box-sizing: border-box; 
    transition: transform 0.3s ease; 
}

/* استثناء الإطار الدائري للمحرر (دمج المقالات والصفحة الرئيسية) */
.post-single .post-image img[class*="round"], .post-single .post-image img[class*="circle"],
.entry-content img[class*="round"], .entry-content img[class*="circle"],
.wp-block-image.is-style-rounded img,
.home .tie-col img[class*="round"], .home .tie-col img[class*="circle"],
.home .post-thumb img[class*="round"], .home .post-thumb img[class*="circle"],
.home .image-container img[class*="round"], .home .image-container img[class*="circle"],
.home .mag-box img[class*="round"], .home .mag-box img[class*="circle"] {
    border-radius: 50% !important;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ==========================================================================
   الإصلاح المصحح والمعدل للشاشات والموبايل (منع اختفاء السايدبار وضيق المقالات)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* تحويل السايدبار والمحتوى لعرض كامل فقط على الهواتف والتابلت الصغير */
    .tie-row, #tie-container, .main-content-row, #content, .main-content, main,
    .sidebar, #sidebar, aside, .sidebar-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    .sidebar, #sidebar, aside, .sidebar-content {
        clear: both !important;
        position: relative !important;
        margin-top: 40px !important;
        padding: 15px !important;
    }

    .sidebar *, aside *, .widget *, .sidebar-content * {
        word-break: normal !important;
        white-space: normal !important;
    }
    
    .sidebar .widget-title, .sidebar .widget, aside section {
        display: block !important;

	
	
	
	/* ==========================================================================
   1. فك خناق الكلمات والودجات فوراً ومنع انضغاط الحروف نهائياً
   ========================================================================== */
.widget, .widget *, .sidebar *, .main-content *, .wp-block-column * {
    white-space: normal !important;
    word-break: normal !important;
    word-wrap: break-word !important;
    display: inline-block; /* إجبار الحروف على الامتداد الأفقي الطبيعي */
    width: auto;
}

/* ==========================================================================
   2. منع اختفاء العمود الجانبي وإجباره على الثبات بجانب المحتوى (75% و 25%)
   ========================================================================== */
@media screen and (min-width: 769px) {
    /* حاوية جنة الرئيسية */
    .site-content .container, #content .tie-container, .main-content-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* منطقة المقالات والمحتوى */
    .main-content, #primary, .content-area {
        width: 75% !important;
        display: block !important;
        float: right !important;
    }

    /* العمود الجانبي (السايدبار) */
    .sidebar, #secondary, #the-sidebar {
        width: 25% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        float: left !important;
        clear: none !important;
    }
}
	}
}