/* =================================================== */
/* ============== إعدادات أساسية وتنسيقات عامة ========= */
/* =================================================== */

/* إعادة تعيين الهوامش والـ box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Kufi Arabic", sans-serif;
    background-color: #013a5614;
    /* لون خلفية رمادي فاتح */
    color: #111827;
    /* لون النص الأساسي */
    line-height: 1.6;
}

.seyasa-container {
    width: 100%;
    /* استخدم نسبة مئوية */
    max-width: 1200px;
    /* مع تحديد حد أقصى للعرض */
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* تنسيق عام للأقسام */
.seyasa-section {
    margin-bottom: 1.5rem;
}

/* تنسيق عام لعناوين الأقسام */
.seyasa-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 1rem;
    border-right: 4px solid #3b82f6;
    /* لون افتراضي أزرق */
}

/* ألوان مختلفة لحدود العناوين */
.seyasa-title-blue {
    border-color: #3b82f6;
}

.seyasa-title-red {
    border-color: #ef4444;
}

.seyasa-title-green {
    border-color: #22c55e;
}

.seyasa-title-purple {
    border-color: #8b5cf6;
}

.seyasa-title-yellow {
    border-color: #eab308;
}

/* صندوق المحتوى المؤقت (للاستبدال) */
.seyasa-placeholder-box {
    background-color: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    color: #6b7280;
}


/* =================================================== */
/* ================= الهيدر والفوتر ================== */
/* =================================================== */

.seyasa-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.seyasa-header .seyasa-placeholder-box {
    height: 4rem;
    /* 64px */
}

.seyasa-footer {
    background-color: #1f2937;
    /* لون رمادي غامق */
    color: #d1d5db;
}

.seyasa-footer .seyasa-placeholder-box {
    height: 6rem;
    /* 96px */
    border-color: #4b5563;
}

.seyasa-footer p {
    color: #9ca3af;
}

/* =================================================== */
/* ============== تقسيمات المحتوى =================== */
/* =================================================== */

/* --- قسم بعرض كامل --- */
.seyasa-full-width-section .seyasa-placeholder-box {
    height: 16rem;
    /* 256px */
}

/* --- قسم مع شريط جانبي (باستخدام Flexbox) --- */
.seyasa-layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    /* هذه الخاصية مهمة لترتيب العناصر على الجوال */
    gap: 1.5rem;
}

/* الوضع الافتراضي (للهاتف): كل عنصر يأخذ العرض الكامل */
.seyasa-main-content,
.seyasa-sidebar {
    width: 100%;
    min-width: 0;
    /* منع العناصر من التمدد بشكل غير مرغوب */
}

.seyasa-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

@media (min-width: 992px) {
    .seyasa-main-content {
        flex: 2 1;
    }

    .seyasa-sidebar {
        width: calc(35% - 0.75rem);
        flex-grow: 1;
        border-right: 2px solid var(--seyasa-border-color);
        padding-right: 1.5rem;
    }
}



/* إضافة حد وحشو فقط على الشاشات الكبيرة */
@media (min-width: 992px) {
    .seyasa-sidebar {
        border-right: 2px solid #e5e7eb;
        padding-right: 1.5rem;
    }
}

.seyasa-main-content .seyasa-placeholder-box,
.seyasa-sidebar .seyasa-placeholder-box {
    height: 24rem;
    /* 384px */
}

/* --- قسم شبكي للأخبار (باستخدام Grid) --- */
.seyasa-featured-grid {
    display: grid;
    gap: 1.5rem;
    /* الأعمدة تتغير حسب حجم الشاشة */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.seyasa-featured-grid .seyasa-placeholder-box {
    height: 12rem;
    /* 192px */
}

/* --- قسم الفيديو --- */
.seyasa-video-section .seyasa-placeholder-box {
    padding: 1.5rem;
}

.seyasa-video-wrapper {
    background-color: #000000;
    width: 100%;
    height: 20rem;
    /* 320px */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}


/* =================================================== */
/* ==============  تاج التصنيف الزجاجي (مشترك)  ====== */
/* =================================================== */

/* Category Glass Refined style */
.seyasa-category-glass {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 6px 9px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgb(36 62 87 / 58%)) !important;
}

.seyasa-large-news-card:hover .seyasa-category-glass,
.seyasa-main-news-card:hover .seyasa-category-glass {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* =================================================== */
/* ============== Responsive Display Utilities ======== */
/* =================================================== */

.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}