/* Homepage styles — extracted from site/home.blade.php inline <style>.
   The modern design layer lives in home-polish.css (loaded after this). */

    /* تحسينات إضافية للصفحة الرئيسية */

    /* ===== GOVERNMENT GREEN COLOR SYSTEM ===== */
    .text-government-green {
        color: #054239 !important;
    }

    .btn-government-green {
        background-color: #054239;
        border-color: #054239;
        color: #fff;
    }

    .btn-government-green:hover {
        background-color: #043229;
        border-color: #043229;
        color: #fff;
    }

    .btn-government-green:focus,
    .btn-government-green:active {
        background-color: #032820;
        border-color: #032820;
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(5, 66, 57, 0.5);
    }

    /* Force all icons to be government green - STRONG OVERRIDE */
    .service-icon i,
    i.text-government-green,
    .text-government-green i,
    i.fa-chart-bar,
    i.fa-shield,
    i.fa-search,
    i.fa-user-group,
    i.fa-balance-scale,
    i.fa-lightbulb,
    .service-icon i.fas,
    .service-icon i.far,
    .service-icon i.fal,
    .service-icon i[class*="fa-"] {
        color: #054239 !important;
        background: transparent !important;
        background-image: none !important;
        -webkit-text-fill-color: #054239 !important;
        background-clip: unset !important;
        -webkit-background-clip: unset !important;
        filter: none !important;
        fill: #054239 !important;
    }

    /* Specifically target the problematic icons */
    i.fa-chart-bar::before,
    i.fa-shield::before,
    .service-icon i::before {
        color: #054239 !important;
        background: none !important;
        background-image: none !important;
        -webkit-text-fill-color: #054239 !important;
    }

    /* Override any Bootstrap/Font Awesome default colors */
    .service-card i[class*="fa-"],
    .quick-link-card i[class*="fa-"] {
        color: #054239 !important;
        background: none !important;
        filter: none !important;
    }

    /* Remove any SVG fills if Font Awesome is using SVG */
    .service-icon svg,
    .service-card svg {
        fill: #054239 !important;
        color: #054239 !important;
    }

    /* منع الحركة غير المرغوبة */
    body {
        overflow-x: hidden;
    }

    .hero-section,
    .services-section,
    .news-section,
    .announcements-section {
        transform: none !important;
        will-change: auto;
    }

    .hero-section {
        position: relative;
        z-index: 1;
    }

    .hero-section>.container {
        position: relative;
        z-index: 2;
    }

    /* ضمان ظهور النوافذ المنبثقة والقوائم فوق hero-section */
    .dropdown-menu,
    .modal,
    .modal-backdrop,
    .navbar-collapse,
    .offcanvas,
    .tooltip,
    .popover {
        z-index: 99999999 !important;
    }

    /* ضمان ظهور قائمة الجوال فوق hero-section */
    .navbar-collapse.show {
        z-index: 999999999 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    /* ضمان ظهور قائمة اللغات فوق hero-section */
    .language-switcher {
        z-index: 9999999 !important;
    }

    .language-switcher .dropdown-menu {
        z-index: 99999999 !important;
    }

    /* ضمان ظهور العناصر على الجوال */
    @media (max-width: 991.98px) {
        .navbar-collapse {
            z-index: 999999999 !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
        }

        .navbar-collapse.show {
            z-index: 999999999 !important;
        }

        .language-switcher {
            z-index: 999999999 !important;
        }

        .language-switcher .dropdown-menu {
            z-index: 999999999 !important;
        }
    }

    .navbar {
        z-index: 999999 !important;
    }

    .navbar-toggler {
        z-index: 999999 !important;
    }

    /* إصلاح مشاكل z-index إضافية */
    .sticky-top {
        z-index: 1020 !important;
    }

    .fixed-top {
        z-index: 1030 !important;
    }

    .fixed-bottom {
        z-index: 1030 !important;
    }

    /* ضمان أن العناصر التفاعلية تظهر فوق hero-section */
    .btn,
    .form-control,
    .form-select,
    .nav-link,
    .dropdown-toggle {
        position: relative;
        z-index: 9999999;
    }

    .services-section {
        position: relative;
    }

    .services-section>.container {
        position: relative;
        z-index: 1;
    }

    .news-section {
        position: relative;
    }

    .news-section>.container {
        position: relative;
        z-index: 1;
    }

    .announcements-section {
        position: relative;
    }

    .announcements-section>.container {
        position: relative;
        z-index: 1;
    }

    /* تأثيرات صورة رئيس الهيئة */
    .president-image-container {
        position: relative;
        display: inline-block;
        margin-bottom: 1rem;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.4s ease;
        background: linear-gradient(135deg, #002623 0%, #054239 50%, #428177 100%);
        padding: 5px;
    }

    .president-image-container:hover {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(0, 38, 35, 0.4);
        backdrop-filter: brightness(1.2);
    }

    .president-image {
        width: 200px;
        height: 200px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid white;
        transition: all 0.3s ease;
    }

    .president-image-container:hover .president-image {
        transform: scale(1.1);
        filter: brightness(1.1) contrast(1.1) saturate(1.2);
    }

    .president-image-overlay {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #988561 0%, #b9a779 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(152, 133, 97, 0.4);
        animation: pulse 2s ease-in-out infinite;
    }

    .president-image-overlay i {
        animation: rotate 3s linear infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }

        100% {
            opacity: 1;
        }
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* تحسينات إضافية لقسم كلمة الرئيس */
    .president-message {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }

    .president-message::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/pattern.svg') repeat;
        background-size: 100px 100px;
        opacity: 0.05;
        z-index: 0;
        pointer-events: none;
    }

    .president-message>.container {
        position: relative;
        z-index: 1;
    }

    .president-photo h4 {
        color: #002623;
        margin-top: 1rem;
        font-size: 1.3rem;
    }

    .president-photo p {
        color: #6c757d;
        font-size: 0.95rem;
    }

    .card {
        border: none;
        border-radius: 15px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .card:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .card-body {
        padding: 2rem;
    }

    .blockquote {
        border-left: 4px solid #b9a779;
        padding-left: 1.5rem;
        margin: 0;
    }

    .blockquote p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #495057;
    }

    .blockquote .lead {
        font-size: 1.25rem;
        font-weight: 500;
        color: #002623;
    }

    .bg-gradient-primary {
        background: linear-gradient(135deg, #428177 0%, #b9a779 100%);
    }

    .hero-section {
        background: linear-gradient(135deg, #428177 0%, #b9a779 100%);
    }

    .president-message {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .president-photo {
        padding: 2rem;
    }

    .service-card {
        transition: all 0.4s ease;
        border: none;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #428177, #b9a779);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .service-card:hover::before {
        transform: scaleX(1);
    }

    .service-card:hover {
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        border-color: rgba(66, 129, 119, 0.2);
    }

    .service-card .card-body {
        padding: 2.5rem 2rem;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .service-card .service-icon {
        transition: all 0.4s ease;
        margin-bottom: 1.5rem;
        position: relative;
    }

    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(5deg);
    }

    .service-card .service-icon i {
        transition: all 0.4s ease;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }

    .service-card:hover .service-icon i {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    }

    .service-card h4 {
        color: #2d3a3a;
        font-weight: 700;
        margin-bottom: 1rem;
        transition: color 0.3s ease;
    }

    .service-card:hover h4 {
        color: #428177;
    }

    .service-card p {
        color: #6c757d;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        transition: color 0.3s ease;
    }

    .service-card:hover p {
        color: #495057;
    }

    .service-card button {
        transition: all 0.3s ease;
        border-radius: 25px;
        font-weight: 600;
        padding: 0.75rem 1.5rem;
        position: relative;
        overflow: hidden;
        border: 2px solid #054239;
        background: transparent;
        color: #054239;
    }

    .service-card button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .service-card button:hover::before {
        left: 100%;
    }

    .service-card button:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        border-color: currentColor;
    }

    .service-card button:active {
        transform: scale(0.98);
    }

    /* تأثيرات خاصة لكل نوع خدمة */
    .service-card:nth-child(1) button:hover {
        background: var(--bs-primary);
        color: white;
    }

    .service-card:nth-child(2) button:hover {
        background: var(--bs-success);
        color: white;
    }

    .service-card:nth-child(3) button:hover {
        background: var(--bs-warning);
        color: white;
    }

    .service-card:nth-child(4) button:hover {
        background: var(--bs-info);
        color: white;
    }

    .service-card:nth-child(5) button:hover {
        background: var(--bs-danger);
        color: white;
    }

    .service-card:nth-child(6) button:hover {
        background: var(--bs-secondary);
        color: white;
    }

    .services-section {
        background: whitesmoke;
    }

    .president-message {
        background: white;
    }

    .announcements-section {
        background: white;
    }

    .news-section {
        background: white;
    }

    .quick-links {
        background: white;
    }

    /* Service Modal Styles - Complete Rebuild */
    .service-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        overflow: visible;
    }

    .service-modal.show {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 20px;
        padding-top: 150px;
    }

    .service-modal-content {
        background-color: #fff;
        width: 90%;
        max-width: 700px;
        border-radius: 25px;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        animation: modalSlideIn 0.4s ease-out;
        overflow: visible;
        position: relative;
        z-index: 1001;
        margin: 0 auto;
        max-height: none;
        overflow-y: visible;
    }

    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(80px) scale(0.85);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* تحسين التموضع للنوافذ المنبثقة */
    .service-modal.show {
        align-items: flex-start !important;
        padding: 20px !important;
        padding-top: 150px !important;
    }

    .service-modal-content {
        margin: 0 auto !important;
    }

    /* ضمان ظهور النافذة بالكامل */
    .service-modal-content {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
        margin-top: 0 !important;
    }

    /* ضمان ظهور النافذة أسفل القائمة */
    .service-modal.show {
        align-items: flex-start !important;
        padding-top: 150px !important;
    }

    /* تحسين الموقع للنوافذ الكبيرة */
    .service-modal-content {
        position: relative;
        top: 0;
    }

    /* تحسين التمرير داخل النافذة إذا لزم الأمر */
    .service-modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .service-modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .service-modal-content::-webkit-scrollbar-thumb {
        background: #428177;
        border-radius: 4px;
    }

    .service-modal-content::-webkit-scrollbar-thumb:hover {
        background: #b9a779;
    }

    .service-modal-header {
        background: linear-gradient(135deg, #428177 0%, #b9a779 100%);
        color: white;
        padding: 2.5rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        border-radius: 25px 25px 0 0;
        z-index: 1002;
    }

    .service-modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/pattern.svg') repeat;
        background-size: 80px 80px;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

    .service-modal-header h3 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 700;
        position: relative;
        z-index: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .service-modal-header .close {
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        font-size: 2.2rem;
        font-weight: bold;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1003;
    }

    .service-modal-header .close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .service-modal-body {
        padding: 2.5rem;
        line-height: 1.8;
        color: #2d3a3a;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }

    .service-modal-body p {
        margin-bottom: 1.5rem;
        font-size: 1.15rem;
        color: #495057;
        line-height: 1.9;
    }

    .service-modal-body h5 {
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid;
        display: inline-block;
    }

    .service-modal-body ul {
        margin: 1.5rem 0;
        padding-left: 1.8rem;
        list-style: none;
    }

    .service-modal-body li {
        margin-bottom: 0.8rem;
        font-size: 1.05rem;
        color: #495057;
        position: relative;
        padding-left: 1.5rem;
        transition: all 0.3s ease;
    }

    .service-modal-body li::before {
        content: '✓';
        position: absolute;
        left: 0;
        top: 0;
        color: #10b981;
        font-weight: bold;
        font-size: 1.1rem;
        background: rgba(16, 185, 129, 0.1);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .service-modal-body li:hover::before {
        background: rgba(16, 185, 129, 0.2);
        transform: scale(1.1);
    }

    .service-modal-body li:hover {
        color: #2d3a3a;
        transform: translateX(5px);
    }

    .service-modal-body .bg-light {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 1px solid #dee2e6;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .service-modal-body .bg-light strong {
        color: #428177;
        font-weight: 700;
    }

    .service-modal-footer {
        padding: 2rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        text-align: center;
        border-top: 1px solid #dee2e6;
        border-radius: 0 0 25px 25px;
    }

    .service-modal-footer .btn {
        padding: 1rem 2.5rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }

    .service-modal-footer .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .service-modal-footer .btn:hover::before {
        left: 100%;
    }

    .service-modal-footer .btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .service-modal-footer .btn:active {
        transform: scale(0.98);
    }

    /* RTL Support for Modal */
    [dir="rtl"] .service-modal-header .close {
        right: auto;
        left: 2rem;
    }

    [dir="rtl"] .service-modal-body ul {
        padding-left: 0;
        padding-right: 1.8rem;
    }

    [dir="rtl"] .service-modal-body li {
        padding-left: 0;
        padding-right: 1.5rem;
    }

    [dir="rtl"] .service-modal-body li::before {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .service-modal-body li:hover {
        transform: scale(1.02);
    }

    .service-card:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    }

    .service-icon {
        transition: transform 0.3s ease;
    }

    .service-card:hover .service-icon {
        transform: scale(1.1);
    }

    .news-card,
    .announcement-card,
    .banner-card {
        border: none;
        border-radius: 1rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }

    .news-card:hover,
    .announcement-card:hover,
    .banner-card:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }

    .quick-link-card {
        border: none;
        border-radius: 1rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: white;
    }

    .quick-link-card:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        text-decoration: none;
    }

    .quick-link-card:hover .card-title {
        color: var(--bs-primary);
    }

    .blockquote {
        border-left: 4px solid var(--bs-primary);
        padding-left: 1rem;
        margin: 0;
    }

    .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .hero-logo {
        max-width: 375px;
        transition: transform 0.3s ease;
    }

    .hero-logo:hover {
        transform: scale(1.05);
    }

    .social-media-icons {
        margin-top: 2rem;
    }

    .social-icon-link {
        color: white;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }

    .social-icon-link:hover {
        transform: translateY(-3px) scale(1.1);
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-decoration: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .social-icon-link i {
        transition: all 0.3s ease;
    }

    .social-icon-link:hover i {
        transform: scale(1.1);
    }

    /* تصميم حديث حكومي للأخبار في الصفحة الرئيسية */
    .news-section {
        background: linear-gradient(135deg, #f8fafc 0%, #e8f5f3 100%);
        position: relative;
    }

    .news-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/images/pattern.svg') repeat;
        background-size: 60px 60px;
        opacity: 0.05;
        pointer-events: none;
    }

    .news-card-modern {
        background: white;
        border-radius: 1.5rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid #e8f5f3;
        height: 100%;
        position: relative;
    }

    .news-card-modern:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(66, 129, 119, 0.2);
        border-color: #428177;
    }

    .news-card-image {
        height: 200px;
        overflow: hidden;
        position: relative;
        background: linear-gradient(135deg, #428177 0%, #b9a779 100%);
    }

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

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

    .news-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: white;
        font-size: 2.5rem;
        opacity: 0.7;
    }

    .news-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(66, 129, 119, 0.9);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.8rem;
        font-weight: 600;
        backdrop-filter: blur(10px);
    }

    .news-card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        height: calc(100% - 200px);
    }

    .news-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2d5a52;
        margin-bottom: 1rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 1;
    }

    .news-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .news-title a:hover {
        color: #428177;
    }

    .news-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.85rem;
        color: #6b7280;
        flex-wrap: wrap;
    }

    .news-meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .news-meta-item i {
        color: #428177;
        font-size: 0.9rem;
    }

    .news-excerpt {
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.9rem;
        flex-grow: 1;
    }

    .news-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .news-read-more {
        transition: all 0.3s ease;
        color: #428177;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .news-read-more:hover {
        color: #054239;
        transform: translateX(-2px);
    }

    .news-views {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .news-views i {
        color: #428177;
    }

    .no-news-placeholder {
        padding: 3rem 2rem;
        background: white;
        border-radius: 1.5rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        border: 1px solid #e8f5f3;
    }

    /* تحسينات للشاشات الصغيرة */
    @media (max-width: 768px) {
        .news-card-content {
            padding: 1rem;
        }

        .news-title {
            font-size: 1rem;
        }

        .news-meta {
            gap: 0.75rem;
        }

        .news-excerpt {
            font-size: 0.85rem;
        }
    }

    /* ===== ANNOUNCEMENTS SECTION - CLEAN & MODERN DESIGN ===== */
    .announcements-section {
        padding: 3rem 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }

    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.75rem;
        position: relative;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #D4AF37, #B8860B);
        border-radius: 2px;
    }

    .section-description {
        font-size: 1rem;
        color: #7f8c8d;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.5;
    }

    .announcement-badge {
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.25);
        transition: all 0.3s ease;
    }

    .announcement-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
    }

    .announcement-badge.urgent {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
        animation: urgentGlow 2s ease-in-out infinite;
    }

    .announcement-badge.urgent:hover {
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    }

    @keyframes urgentGlow {

        0%,
        100% {
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
        }

        50% {
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
        }
    }

    .announcement-badge.info {
        background: linear-gradient(135deg, #17a2b8, #138496);
        box-shadow: 0 2px 8px rgba(23, 162, 184, 0.25);
    }

    .announcement-badge.info:hover {
        box-shadow: 0 4px 12px rgba(23, 162, 184, 0.35);
    }

    .announcement-badge.warning {
        background: linear-gradient(135deg, #ffc107, #e0a800);
        color: #212529;
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.25);
    }

    .announcement-badge.warning:hover {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
    }

    .announcement-badge.success {
        background: linear-gradient(135deg, #28a745, #1e7e34);
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
    }

    .announcement-badge.success:hover {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
    }

    .read-more-btn {
        background: linear-gradient(135deg, #D4AF37, #B8860B);
        color: white;
        padding: 12px 24px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
    }

    .read-more-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .read-more-btn:hover {
        background: linear-gradient(135deg, #B8860B, #8B6914);
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
        color: white;
        text-decoration: none;
    }

    .read-more-btn:hover::before {
        left: 100%;
    }

    .read-more-btn i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .read-more-btn:hover i {
        transform: scale(1.1);
    }

    .empty-announcements {
        text-align: center;
        padding: 3rem 2rem;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
        border: 2px dashed #bdc3c7;
        transition: all 0.3s ease;
    }

    .empty-announcements:hover {
        border-color: #D4AF37;
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
    }

    .empty-announcements i {
        font-size: 3.5rem;
        color: #bdc3c7;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }

    .empty-announcements:hover i {
        color: #D4AF37;
        transform: scale(1.1);
    }

    .empty-announcements h4 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .empty-announcements p {
        color: #7f8c8d;
        margin: 0;
        font-size: 0.9rem;
    }

    /* تحسين مظهر الأسهم الجديدة */
    .read-more-btn i,
    .news-read-more i {
        transition: all 0.3s ease;
        font-size: 0.9rem;
        color: rgb(255, 255, 255);
    }

    .read-more-btn:hover i,
    .news-read-more:hover i {
        transform: scale(1.1);
        color: #054239;
    }

    .news-read-more {
        transition: all 0.3s ease;
        color: #428177;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .news-read-more:hover {
        color: #054239;
        transform: scale(1.05);
    }

    /* تحسين مظهر أزرار "اقرأ المزيد" */
    .news-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .news-views {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .news-views i {
        color: #428177;
    }

    /* تحسينات للأجهزة المحمولة */
    @media (max-width: 768px) {
        .service-modal.show {
            padding: 15px;
            align-items: flex-end;
            padding-bottom: 5vh;
        }

        .service-modal-content {
            width: 95%;
            border-radius: 20px;
        }

        .service-modal-header {
            padding: 1.5rem 1rem;
            border-radius: 20px 20px 0 0;
        }

        .service-modal-header h3 {
            font-size: 1.4rem;
        }

        .service-modal-body {
            padding: 1.5rem;
        }

        .service-modal-footer {
            padding: 1.5rem;
            border-radius: 0 0 20px 20px;
        }

        .service-modal-header .close {
            top: 1rem;
            right: 1rem;
            width: 40px;
            height: 40px;
            font-size: 1.8rem;
        }
    }

    @media (max-width: 480px) {
        .service-modal.show {
            padding: 10px;
            align-items: flex-end;
            padding-bottom: 3vh;
        }

        .service-modal-content {
            width: 98%;
            border-radius: 15px;
        }

        .service-modal-header {
            padding: 1rem;
            border-radius: 15px 15px 0 0;
        }

        .service-modal-header h3 {
            font-size: 1.2rem;
        }

        .service-modal-body {
            padding: 1rem;
        }

        .service-modal-footer {
            padding: 1rem;
            border-radius: 0 0 15px 15px;
        }

        .service-modal-body h5 {
            font-size: 1rem;
        }

        .service-modal-body li {
            font-size: 0.95rem;
        }
    }

    /* تحسين التمرير للشاشات الصغيرة */
    @media (max-height: 600px) {
        .service-modal.show {
            padding: 10px;
            align-items: flex-end;
            padding-bottom: 2vh;
        }
    }

    /* تحسين التموضع للشاشات المختلفة */
    @media (max-width: 1200px) {
        .service-modal.show {
            padding: 15px;
        }

        .service-modal-content {
            width: 92%;
            max-width: 650px;
        }
    }

    @media (max-width: 992px) {
        .service-modal.show {
            padding: 12px;
        }

        .service-modal-content {
            width: 94%;
            max-width: 600px;
        }
    }

    /* ضمان ظهور الشريط العلوي */
    .navbar {
        z-index: 999999 !important;
        position: relative;
    }

    .navbar-brand,
    .navbar-nav,
    .navbar-toggler {
        z-index: 999999 !important;
        position: relative;
    }

    /* تحسين z-index للنوافذ المنبثقة */
    .service-modal {
        z-index: 1000;
    }

    .service-modal-content {
        z-index: 1001;
    }

    .service-modal-header {
        z-index: 1002;
    }

    .service-modal-header .close {
        z-index: 1003;
    }
