/* ملف تنسيق صفحة المقالات
-------------------------------------------------- */
:root {
    --primary-color: #1c4f82;
    --secondary-color: #e6b400;
    --dark-color: #0a2240;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* تنسيقات العنوان الرئيسي */
.page-title-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.page-title-section .section-header {
    position: relative;
    z-index: 2;
}

.section-header h1 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.section-divider {
    height: 4px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}
/* تنسيقات البريدكرمب */
.breadcrumb-container {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 15px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* تنسيقات قسم البحث */
.search-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 40px;
}

.search-section .form-control {
    border-radius: 30px;
    padding: 10px 20px;
    border: 1px solid #ced4da;
}

.search-section .btn {
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
}

.search-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-section .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* تنسيقات قسم المقالات */
.articles-section {
    padding: 60px 0;
}

.section-padding {
    padding: 60px 0;
}

.article-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    padding: 20px;
}

.article-content-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 280px; /* ارتفاع أكبر للصورة الطولية */
    width: 200px; /* عرض محدد للصورة الطولية */
    background-color: #f0f0f0;
    float: right;
    margin-left: 20px;
    border-radius: 8px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.placeholder-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 200px;
    height: 280px;
    float: right;
    margin-left: 20px;
    border-radius: 8px;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('../images/logo/Logo_Old_Circle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.article-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-category i {
    margin-left: 5px;
}

.article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 56px; /* 2 سطر × 28 بكسل للسطر الواحد */
}

.article-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    padding: 8px 15px;
    background-color: rgba(28, 79, 130, 0.1);
    border-radius: 20px;
    align-self: flex-start;
}

.read-more i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* تنسيقات الترقيم */
.pagination-wrapper {
    margin-top: 40px;
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* تنسيقات التنبيهات */
.alert-info {
    background-color: #e3f2fd;
    border-color: #b3e5fc;
    color: #0288d1;
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .article-content-wrapper {
        flex-direction: column;
    }
    
    .article-image, .placeholder-image {
        width: 100%;
        height: 200px;
        float: none;
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .article-title {
        font-size: 18px;
        max-height: 50px;
    }
    
    .article-excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}
