﻿/* =========================================
   ملف التنسيقات الرئيسي - نقابة المحامين
========================================= */

/* --- الإعدادات العامة --- */
html, body {
    height: 100%;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    text-align: right;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-wrapper {
    flex: 1 0 auto;
}

/* --- شريط التنقل والتذييل --- */
.navbar {
    background-color: #111111;
    border-bottom: 3px solid #cc0000;
    z-index: 1050;
}


.nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px !important; /* تصغير حجم الخط */
    padding: 8px 12px !important; /* تقليل المسافات الجانبية لتوفير مساحة */
    white-space: nowrap !important; /* 🌟 السطر الأهم: منع نزول النص لسطرين */
    transition: color 0.3s ease;
}

    .nav-link:hover, .nav-link.active {
        color: #d4af37 !important;
    }
 

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none !important;
}
/* تنسيق القوائم المنسدلة (Dropdowns) */
.dropdown-menu-dark {
    background-color: #1a1a1a !important;
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

    .dropdown-menu-dark .dropdown-item {
        font-size: 14px;
        padding: 10px 20px;
        transition: all 0.2s ease;
    }

        .dropdown-menu-dark .dropdown-item:hover {
            background-color: #333333;
            color: #d4af37 !important; /* اللون الذهبي عند التأشير */
            padding-right: 25px; /* حركة ناعمة لليسار عند التأشير */
        }

/* إظهار القائمة المنسدلة عند مرور الماوس (Hover) بدلاً من النقر في الشاشات الكبيرة */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeUp 0.3s ease forwards;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
footer {
    flex-shrink: 0;
    background-color: #111111;
    border-top: 4px solid #198754;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: 0.3s;
}

    .footer-links a:hover {
        color: #d4af37;
        padding-right: 8px;
    }

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .social-icon:hover {
        background-color: #d4af37;
        color: #111111 !important;
        border-color: #d4af37;
    }

/* --- الصفحة الرئيسية (Modern Hero) --- */
.hero-modern {
    background-image: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(100, 0, 0, 0.7) 100%), url('/Content/Images/hero-bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 160px 0 180px 0;
    margin-top: -24px;
    position: relative;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.4;
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.floating-services {
    margin-top: -90px;
    position: relative;
    z-index: 10;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter: blur(10px); */
    border-radius: 20px;
    border-bottom: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .service-card:hover {
        transform: translateY(-15px);
        border-bottom: 4px solid #d4af37;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    }

/* --- الأخبار والتعاميم --- */
.elegant-title {
    font-weight: 800;
    color: #111111;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

    .elegant-title::before {
        content: '';
        display: block;
        width: 12px;
        height: 35px;
        background-color: #cc0000;
        border-radius: 6px;
        margin-left: 15px; /* بديل لخاصية gap في الـ RTL */
    }

.featured-news-card {
    background: #111111;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    transition: 0.3s;
}

    .featured-news-card:hover img {
        transform: scale(1.05);
    }

    .featured-news-card img {
        transition: transform 0.5s ease;
        opacity: 0.6;
    }

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(17,17,17,1), transparent);
}

.news-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding-left: 10px;
}

    .news-list-container::-webkit-scrollbar {
        width: 6px;
    }

    .news-list-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .news-list-container::-webkit-scrollbar-thumb {
        background: #cc0000;
        border-radius: 10px;
    }

.news-list-item {
    border-right: 4px solid #e9ecef;
    transition: 0.3s;
}

    .news-list-item:hover {
        background-color: #f8f9fa;
        border-right-color: #d4af37;
        transform: translateX(-5px);
    }

/* --- تفاصيل الخبر المقروء --- */
.article-header {
    margin-top: -30px;
}

.article-image-container {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

.article-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

    .article-image:hover {
        transform: scale(1.03);
    }

.article-content {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    text-align: justify;
}

.official-quote-style {
    border-right: 5px solid #cc0000;
    padding-right: 20px;
    background-color: #f8f9fa;
    border-radius: 10px 0 0 10px;
}

.gallery-img {
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10px;
    object-fit: cover;
    height: 120px;
    width: 100%;
}

    .gallery-img:hover {
        transform: scale(1.05);
        opacity: 0.8;
    }

/* =========================================
   إعدادات الطباعة (تطبع تفاصيل الخبر فقط)
========================================= */
@media print {
    /* إخفاء كل العناصر غير الضرورية */
    .navbar, footer, .no-print, .btn, .badge {
        display: none !important;
    }

    /* تبييض الخلفيات وإزالة الظلال لتوفير الحبر */
    body, .main-wrapper, .card {
        background-color: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    /* إظهار محتوى الخبر بكامل العرض */
    .printable-area {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .article-image-container {
        page-break-inside: avoid;
        border: 2px solid #ddd;
    }

    .official-quote-style {
        border-right: 3px solid #000;
        background: transparent;
    }

    /* إضافة ترويسة مطبوعة خاصة بالنقابة تظهر في الورق فقط */
    .printable-area::before {
        content: "نقابة المحامين الفلسطينيين - مركز غزة | تعميم رسمي";
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 18px;
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
}

/* --- شريط الأخبار العاجلة --- */
.urgent-ticker-wrapper {
    background-color: #cc0000;
    color: white;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid #a30000;
    position: relative;
    z-index: 1040; /* ليكون تحت الـ Navbar مباشرة */
}

.urgent-badge {
    background-color: white;
    color: #cc0000;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* حركة الوميض لكلمة عاجل */
.animation-blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}