/* =================================================== */
/* ============== إعدادات أساسية وتنسيقات عامة ========= */
/* =================================================== */

/* إعادة تعيين الهوامش والـ box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Reduce CLS from font loading */
@font-face {
    font-family: 'Noto Kufi Arabic Fallback';
    src: local('Arial');
    size-adjust: 100%;
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

body {
    font-family: "Noto Kufi Arabic", "Noto Kufi Arabic Fallback", sans-serif;
    background-color: #013a5614;
    /* لون خلفية رمادي فاتح */
    color: #111827;
    /* لون النص الأساسي */
    line-height: 1.6;
}

.naba-container {
    width: 100%;
    /* استخدم نسبة مئوية */
    max-width: 1300px;
    /* مع تحديد حد أقصى للعرض */
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

/* تنسيق عام للأقسام */
.naba-section {
    margin-bottom: 1.5rem;
}

/* تنسيق عام لعناوين الأقسام */
.naba-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 1rem;
    border-right: 4px solid #3b82f6;
    /* لون افتراضي أزرق */
}

/* ألوان مختلفة لحدود العناوين */
.naba-title-blue {
    border-color: #3b82f6;
}

.naba-title-red {
    border-color: #ef4444;
}

.naba-title-green {
    border-color: #22c55e;
}

.naba-title-purple {
    border-color: #8b5cf6;
}

.naba-title-yellow {
    border-color: #eab308;
}

/* صندوق المحتوى المؤقت (للاستبدال) */
.naba-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;
}


/* =================================================== */
/* ================= الهيدر والفوتر ================== */
/* =================================================== */

.naba-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.naba-header .naba-placeholder-box {
    height: 4rem;
    /* 64px */
}

.naba-footer {
    background-color: #1f2937;
    /* لون رمادي غامق */
    color: #d1d5db;
}

.naba-footer .naba-placeholder-box {
    height: 6rem;
    /* 96px */
    border-color: #4b5563;
}

.naba-footer p {
    color: #9ca3af;
}

/* =================================================== */
/* ============== تقسيمات المحتوى =================== */
/* =================================================== */

/* --- قسم بعرض كامل --- */
.naba-full-width-section .naba-placeholder-box {
    height: 16rem;
    /* 256px */
}

/* --- قسم مع شريط جانبي (باستخدام Flexbox) --- */
.naba-layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    /* هذه الخاصية مهمة لترتيب العناصر على الجوال */
    gap: 1.5rem;
}

/* الوضع الافتراضي (للهاتف): كل عنصر يأخذ العرض الكامل */
.naba-main-content,
.naba-sidebar {
    width: 100%;
    min-width: 0;
}

.naba-sidebar {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .naba-main-content {
        flex: 2 1;
    }

    .naba-sidebar {
        flex: 0 0 30%;
        max-width: 30%;
        border-right: 2px solid var(--naba-border-color);
        padding-right: 1rem;
        padding: 10px;
        background-color: #f8f9fa;
        height: fit-content;
    }
}

.naba-main-content .naba-placeholder-box,
.naba-sidebar .naba-placeholder-box {
    height: 24rem;
    /* 384px */
}

/* --- قسم شبكي للأخبار (باستخدام Grid) --- */
.naba-featured-grid {
    display: grid;
    gap: 1.5rem;
    /* الأعمدة تتغير حسب حجم الشاشة */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.naba-featured-grid .naba-placeholder-box {
    height: 12rem;
    /* 192px */
}

/* --- قسم الفيديو --- */
.naba-video-section .naba-placeholder-box {
    padding: 1.5rem;
}

.naba-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 */
.naba-category-glass {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: linear-gradient(135deg, color-mix(in srgb, var(--naba-primary-color) 60%, transparent) 0%, color-mix(in srgb, var(--naba-secondary-color) 50%, transparent) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.naba-large-news-card:hover .naba-category-glass,
.naba-main-news-card:hover .naba-category-glass {
    background: linear-gradient(135deg, color-mix(in srgb, var(--naba-primary-color) 75%, transparent) 0%, color-mix(in srgb, var(--naba-secondary-color) 65%, transparent) 100%) !important;
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =================================================== */
/* ============== Responsive Display Utilities ======== */
/* =================================================== */

.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}