
.title {
    
    color: #134779;
    
    font-family: 'Lateef', sans-serif !important;

    /* أضف أي خصائص تنسيق إضافية للعنوان هنا */
}

.articles-container {
    display: flex;
    flex-wrap: wrap;
}

.article {
    position: relative; /* Add position relative */
    width: 220px; /* Set width of the article */
    height: 250px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add box shadow */
    overflow: hidden; /* Hide overflowing icon */
    margin-bottom: 20px;
    margin-right: 5px;

}

.article img {
    width: 300px; /* Make the image fill the container */
    height: 150px; /* Maintain aspect ratio */
    border-radius: 5px; /* Add border radius */
    transition: transform 0.3s ease; /* Add transition effect */
}

.article:hover img {
    transform: scale(1.1); /* Enlarge the image on hover */
}

.icon-link {
    position: absolute; /* Position the icon link */
    top: 40%; /* Align to the center vertically */
    left: 50%; /* Align to the center horizontally */
    transform: translate(-50%, -50%); /* Center the icon link */
    background-color: rgba(255, 255, 255, 0.5); /* Set background color */
    border-radius: 50%; /* Make the icon link circular */
    padding: 20px; /* Add padding */
    opacity: 0; /* Initially hide the icon link */
    transition: opacity 0.3s ease; /* Add transition effect */
}

.article:hover .icon-link {
    opacity: 1; /* Show the icon link on hover */
}

.icon-link i {
    color: #001b92; /* Set icon color */
    font-size: 24px; /* Set icon size */
}

.article h2 {
    font-size: 18px; /* Set heading font size */
    margin-top: 10px; /* Add margin */
    color: #333; /* Set heading color */
}

@media screen and (max-width: 768px) {
    .article {
        width: calc(100% - 10px); /* Set the width to 50% of the container minus some spacing */
        margin-left: auto; /* Align to the right */
        margin-right: 0; /* Reset margin-right */
    }
}
.article-detail {
    max-width: 800px; /* عرض أقصى للعنصر */
    margin: 0 auto; /* توسيط العنصر في الصفحة */
    padding: 20px; /* إضافة هامش داخلي */
}

.article-detail h1 {
    font-size:2.25rem; /* حجم الخط للعنوان */
    margin-bottom: 10px; /* هامش أسفل العنوان */
    font-weight: 800;
    
}

.article-detail img {
    max-width: 100%; /* عرض أقصى للصورة */
    height: auto; /* الحفاظ على نسبة العرض إلى الارتفاع */
    margin-bottom: 10px; /* هامش أسفل الصورة */
}

.article-detail p {
    font-size: 16px; /* حجم الخط للنص */
    line-height: 1.6; /* ارتفاع السطر */
}

.author-info {
    border-radius: 10px; /* Increase border radius for smoother corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add shadow effect */
    overflow: hidden; /* Prevent content from overflowing the container */
    background-color: #DDE1EC; /* Background color */
    position: relative; /* Enable use of ::before pseudo-element */
    height: auto; /* Auto height to accommodate content */

   
}

.publish-date {
    font-size: 1.5vw; /* Responsive font size */
    color: #666;
    font-family: 'Lateef', cursive;
    font-weight: bold; /* Change to 'bold' for better readability */
}

.author-info::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 6px; /* عرض الخط */
    height: 80px; /* طول الخط */
    background-color: #AC0000; /* لون الخط */
    transform: translateY(-50%);
}
.author-details {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 10vw); /* Responsive width calculation */
}

.author-description {
    font-size: 1.8vw; /* Responsive font size */
    font-family: 'Lateef', cursive;
    color: #333;
    margin-right: 1vw; /* Responsive margin */
}

.author-name {
    margin: 0;
    font-weight: bold;
    margin-right: 1vw; /* Responsive margin */
}

@media screen and (max-width: 768px) {
    .author-details {
        width: 100%; /* Full width on smaller screens */
        margin-right: 20px;
    }

    .author-name, .author-description, .publish-date {
        font-size: 3vw; /* Decrease font size for smaller screens */
        margin-right: 0; /* Remove right margin for smaller screens */
    }

    .author-info::before {
        width: 1vw; /* Decrease width for smaller screens */
    }
}
