/* =================================================== */
/* ============== شبكة مقالات أسفل السلايدر =================== */
/* =================================================== */


/* حاوية الصفحة الرئيسية */
.seyasa-dow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* شبكة لعرض بطاقات الأخبار */
.seyasa-dow-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
}

/* للاستجابة على الشاشات المتوسطة */
@media (min-width: 768px) {
    .seyasa-dow-grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* للاستجابة على الشاشات الكبيرة */
@media (min-width: 1024px) {
    .seyasa-dow-grid-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* نمط بطاقة الخبر الفردية */
.seyasa-dow-news-card {
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .seyasa-dow-news-card {
        /* تغيير اتجاه العرض إلى طولي */
        flex-direction: column;
        /* محاذاة المحتوى إلى بداية البطاقة بدلاً من الوسط */
    }

    .seyasa-dow-news-image-wrapper {
        /* جعل الصورة تأخذ عرض البطاقة بالكامل */
        width: 100%;
        /* تحديد ارتفاع مناسب للصورة في العرض الطولي */
        height: 180px;
    }

    .seyasa-dow-news-content {
        /* إزالة الحشو الجانبي الذي كان مخصصاً للعرض الأفقي */
        padding-right: 0;
        /* إضافة حشو علوي للفصل بين الصورة والنص */
        padding-top: 12px;
        width: 100%;
    }
}

.seyasa-dow-news-card:hover {
    transform: translateY(-5px);
}

/* حاوية الصورة داخل البطاقة */
.seyasa-dow-news-image-wrapper {
    flex-shrink: 0;
    width: 96px;
    height: 135px;
}

.seyasa-dow-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* حاوية محتوى النص داخل البطاقة */
.seyasa-dow-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    padding-right: 16px;
}

/* نمط فئة الخبر */
.seyasa-dow-news-category {
    display: inline-block;
    color: #c52626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    margin-bottom: 4px;
    border-right: 5px solid var(--seyasa-live-red-color);
}

/* نمط عنوان الخبر */
.seyasa-dow-news-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    text-decoration: none;
    display: inline-block;
    transition: color 0.25s ease;
}

.seyasa-dow-news-title-inner {
    display: inline;
    -webkit-box-shadow: inset 0px 0px 0 rgba(226, 183, 74, 0.2);
    box-shadow: inset 0px 0px 0 rgba(226, 183, 74, 0.2);
    text-decoration: none;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

/* تأثير الهوفر عند تمرير المؤشر على بطاقة الخبر */
.seyasa-dow-news-card:hover .seyasa-dow-news-title {
    color: var(--seyasa-secondary-color);
}

.seyasa-dow-news-card:hover .seyasa-dow-news-title-inner {
    -webkit-box-shadow: inset 0px -8px 0px 0px rgba(226, 183, 74, 0.2);
    box-shadow: inset 0px -8px 0px 0px rgba(226, 183, 74, 0.2);
    text-decoration: underline;
    text-decoration-color: #23527c;
}