/* ========================================================
   1. Bootstrap 5 Bridge (RTL Optimized & Helper Utilities)
   ======================================================== */
:root {
    --primary-color: #e27023;
    --primary-hover: #c45d1a;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8faff;
    --radius-lg: 16px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Utilities (بناء الجسر) */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ms-1 { margin-right: 0.25rem !important; } 
.me-1 { margin-left: 0.25rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.fw-bold { font-weight: 700 !important; }
.text-primary { color: var(--primary-color) !important; }
.bg-soft-primary { background-color: #fff0e6 !important; color: var(--primary-color) !important; } /* لون خلفية Badge */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }

/* ========================================================
   2. Modern Components (التصميمات الحديثة)
   ======================================================== */

/* البطاقة العامة (Modern Card) */
.modern-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid #edf2f7;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #ffe0cc;
}

/* بطاقة الأخبار/الإعلانات (Announcement Card) */
.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* أزرار مخصصة داخل البطاقات */
.btn-read-more {
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-read-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================================
   3. Responsive & Layout Helpers
   ======================================================== */
.flex-grow-1 { flex-grow: 1; }
.mt-auto { margin-top: auto; }

/* تأكد من أن الـ Swiper يعمل بشكل صحيح */
.swiper-wrapper { padding-bottom: 30px; }
.swiper-pagination-bullet-active { background: var(--primary-color) !important; }