html, body {
    height: 100%;
    margin: 0;
    padding: 0;
 
}

/* ✅ تنسيق العنوان فوق الصور */
.overlay-title {
    position: absolute;
    bottom: 50px; /* يضع العنوان في أسفل الصورة */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.815); /* خلفية شفافة */
    padding: 8px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    width: 84%; 

    box-shadow: 0px 0px 5px rgb(233 100 10);
}

.main-blog-title{
    color: #2b4596de; /* تغيير اللون إلى اللون البرتقالي */
    border-radius: 5px;
    text-align: center;
    font-weight: bold;

}

  .main-blog-title:hover  {
    color: #e9640a; /* تغيير اللون إلى اللون البرتقالي */
    transition: color 0.3s ease;
}


.main-blog-title-t {
    color: #e9640a; /* تغيير اللون إلى اللون البرتقالي */
    border-radius: 5px;
    text-align: center;
    font-weight: bold;

}

  .main-blog-title-t:hover  {
    color: #2b4596de; /* تغيير اللون إلى اللون البرتقالي */
    transition: color 0.3s ease;
}

.blog-section h2 {
    color: #2b4596de;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}



/* ✅ ضبط الصور داخل الحاوية */
.main-image, .small-image {
    position: relative; /* لتحديد موضع العنوان داخل الصورة */
}


/* ✅ تكبير العنوان قليلاً للصورة الرئيسية */
/* .main-image .overlay-title {
    font-size: 22px;
    bottom: 15px;
} 

/* ✅ تكبير العنوان الصور الي تحت */
/* .small-image .main-blog-title h2 {
    font-size: 16px;
    
    margin: 10px 0px;
    text-align: center;
    font-weight: bold;
} */



.layout-container {
    display: flex;
    max-width: 1300px; /* حدد العرض الذي تريده (مثلاً 900px) */
    margin: auto; /* يجعل الكونتينر في المنتصف */
    padding: 10px; /* لضبط المسافات الداخلية */
    gap: 35px;
    padding: 10px;
    align-items: stretch; /* تضمن أن جميع الأعمدة بنفس الارتفاع */
    /* background-color: #e9630a71; */
}


/* العمود الأيسر (القائمة الزرقاء) */
/* ✅ تغيير لون الخلفية الأساسي */
.sidebar {
    background-color: #2b4596; 
    padding: 15px;
    /* border-radius: 8px; */
    margin-top: 9px;
    border: 3px solid #FF5733;
}

/* ✅ ضبط العناصر داخل القائمة */
.sidebar-item {
    text-align: center;
    padding: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 30px;
}

/* ✅ تأثير hover باللون الأسود */
.sidebar-item:hover {
    background-color: #e9640a;
    color: white;
    cursor: pointer;
}

/* ✅ تغيير لون الأيقونات والنص */
.sidebar-item i {
    color: white;
}

.law-title {
    color: white;
    font-size: 16px;
    font-weight: bold;
}


/* العمود الأيمن (الصور) */
.main-content {
    flex: 1; /* يشغل المساحة المتبقية */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ✅ تنسيق الصورة الرئيسية */
.main-img {
    width: 100%; /* ملء المساحة بالكامل */
    height: 320px; /* ارتفاع مخصص للصورة الرئيسية */
     /* object-fit: cover; */
    /* border-radius: 8px;  */
    transition: transform 0.2s ease-in-out;
    border: 3px solid #2b4596;
    /* opacity: 80%; */
    margin-bottom: 25px;
}

.main-img:hover {
    transform: scale(1.02); /* تكبير بنسبة 5% */
}

/* ✅ تنسيق الصور الفرعية */
.small-img {
    width: 100%;
    height: 429px; /* ارتفاع أصغر للصور الفرعية */
    /* object-fit: cover; */
    /* border-radius: 8px; */
    transition: transform 0.1s ease-in-out;
    border: 2px solid #FF5733;
}

.small-img:hover {
    transform: scale(1.02); /* تكبير بنسبة 5% */
}

/* ✅ جعل الصور الفرعية في خط واحد */
.small-images-container {
    display: flex;
    gap: 0px 15px;
}

.small-image {
    flex: 1;
}




@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        max-width: 100%;
        width: 100%;
    }
    
    .small-images-container {
        flex-direction: column;
    }
    
    .main-img {
        height: 550px; /* تقليل ارتفاع الصورة الرئيسية */
    }

    .small-images-container {
        flex-direction: column;
    }

    .small-img {
        height: 550px; /* تصغير الصور الفرعية */
        
    }
    .overlay-title {
        font-size: 16px;
        width: 90%;
    }
}
