/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles - تم نقلها إلى transparent-header.css */

/* تم نقل أنماط العنوان إلى transparent-header.css */





/* تم نقل أنماط البحث إلى transparent-header.css */

/* تم نقل أنماط البحث إلى transparent-header.css */

/* تم نقل أنماط النافبار إلى transparent-header.css */

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* تم نقل أنماط القوائم المنسدلة إلى transparent-header.css */

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
    margin-top: 0;
}

/* إضافة مساحة للمحتوى لتجنب التداخل مع الهيدر الشفاف */
body {
    padding-top: 0;
}

/* Footer Styles */
.site-footer {
    background: url('../images/footer_bg.jpg') center center/cover no-repeat;
    color: white;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 60, 114, 0.8);
    z-index: 1;
}

.footer-section {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    background: rgba(255,255,255,0.9);
}

.newsletter-form .btn {
    border: none;
    padding: 12px 20px;
    background: #28a745;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-right: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.sheikh-bio {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* تم نقل أنماط الاستجابة للهيدر إلى transparent-header.css */

/* أنماط الاستجابة للفوتر */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
} 

/* ===== قسم الفيديو الرئيسي ===== */
.hero-video-section {
    background: url('../images/hero_bg.jpg') center center/cover no-repeat;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* الفيديو الرئيسي */
.main-video-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button i {
    font-size: 30px;
    color: #667eea;
    margin-left: 5px;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-info p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* أزرار التحكم */
.video-controls {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.video-controls .btn {
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-controls .btn-primary {
    background: linear-gradient(45deg, #2577B1, #1e5f8f);
}

.video-controls .btn-outline-primary {
    border: 2px solid #2577B1;
    color: #2577B1;
}

.video-controls .btn-outline-primary:hover {
    background: #2577B1;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 119, 177, 0.3);
}

.video-controls .btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* الشريط الجانبي للفيديوهات */
.video-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2577B1;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #2577B1, #1e5f8f);
}

/* قائمة الفيديوهات */
.video-list {
    max-height: 500px;
    overflow-y: auto;
}

.video-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.video-item.active {
    background: linear-gradient(135deg, #2577B1 0%, #1e5f8f 100%);
    color: white;
    border-color: #2577B1;
    box-shadow: 0 8px 25px rgba(37, 119, 177, 0.3);
}

.video-thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.play-icon i {
    font-size: 10px;
    color: #667eea;
    margin-left: 1px;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-details h6 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.3;
}

.video-details p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    opacity: 0.7;
}

.video-meta span {
    display: flex;
    align-items: center;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .hero-video-section {
        padding: 40px 0;
    }
    
    .video-wrapper {
        height: 250px;
    }
    
    .video-overlay h3 {
        font-size: 18px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 24px;
    }
    
    .video-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .video-controls .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .video-sidebar {
        margin-top: 30px;
        position: static;
    }
    
    .video-item {
        padding: 12px;
    }
    
    .video-thumb {
        width: 70px;
        height: 50px;
    }
}

/* تأثيرات إضافية */
.video-item.active .video-details h6,
.video-item.active .video-details p {
    color: white;
}

.video-item.active .video-meta {
    opacity: 0.9;
}

/* شريط التمرير المخصص */
.video-list::-webkit-scrollbar {
    width: 6px;
}

.video-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* ===== نهاية قسم الفيديو الرئيسي ===== */

/* ===== Modal الفيديو ===== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    opacity: 1;
}

.video-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    margin: 0;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-modal-body {
    padding: 0;
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* نسبة 16:9 */
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== التنبيهات ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.alert-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
}

.notification.alert-info {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
    color: white;
    border: none;
}

.notification.alert-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: white;
    border: none;
}

.notification.alert-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    color: white;
    border: none;
}

/* ===== تحسينات إضافية ===== */

/* تأثير التحميل */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* تأثيرات للصور */
.video-thumbnail,
.video-thumb img {
    transition: transform 0.3s ease;
}

.video-thumbnail:hover,
.video-thumb:hover img {
    transform: scale(1.05);
}

/* تحسين الأداء */
.video-wrapper,
.video-placeholder {
    will-change: transform;
}

/* تحسين إمكانية الوصول */
.video-placeholder:focus,
.play-button:focus,
.video-item:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* تحسين الطباعة */
@media print {
    .hero-video-section {
        display: none;
    }
}

/* تحسين للشاشات الكبيرة */
@media (min-width: 1200px) {
    .hero-video-section {
        padding: 100px 0;
    }
    
    .video-wrapper {
        height: 250px;
    }
    
    .video-sidebar {
        padding: 40px;
    }
    
    .site-header {
        min-height: 400px;
    }
    
    .header-top {
        padding: 40px 0;
    }
    
    .sheikh-name {
        font-size: 3.5rem;
    }
}

/* تحسين للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1199px) {
    .video-controls {
        justify-content: space-around;
    }
    
    .video-controls .btn {
        flex: 1;
        margin: 0 5px;
    }
}

     /* تحسين للشاشات الصغيرة جداً */
     @media (max-width: 480px) {
         .hero-video-section {
             padding: 30px 0;
         }

         .video-wrapper {
             height: 200px;
         }

         .video-overlay h3 {
             font-size: 16px;
         }

         .video-overlay p {
             font-size: 14px;
         }

         .play-button {
             width: 50px;
             height: 50px;
         }

         .play-button i {
             font-size: 20px;
         }

         .video-controls .btn {
             padding: 10px 15px;
             font-size: 14px;
         }

         .video-sidebar {
             padding: 20px;
         }

         .video-item {
             padding: 10px;
         }

         .video-thumb {
             width: 60px;
             height: 45px;
         }

         .video-details h6 {
             font-size: 13px;
         }

         .video-details p {
             font-size: 11px;
         }
     }

     /* ===== قسم الكتب والإصدارات ===== */
     .books-section {
         background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
         padding: 80px 0;
         position: relative;
         overflow: hidden;
     }

     .books-section::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="books" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e9ecef" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e9ecef" opacity="0.3"/><circle cx="10" cy="60" r="0.5" fill="%23e9ecef" opacity="0.3"/><circle cx="90" cy="40" r="0.5" fill="%23e9ecef" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>');
         opacity: 0.5;
         z-index: 1;
     }

     .section-header {
         position: relative;
         z-index: 2;
     }

     .section-title {
         font-size: 2.5rem;
         font-weight: 700;
         color: #1e3c72;
         margin-bottom: 15px;
         position: relative;
     }

     .section-title::after {
         content: '';
         position: absolute;
         bottom: -10px;
         left: 50%;
         transform: translateX(-50%);
         width: 80px;
         height: 4px;
         background: linear-gradient(45deg, #1e3c72, #2a5298);
         border-radius: 2px;
     }

     .section-subtitle {
         font-size: 1.1rem;
         color: #666;
         max-width: 600px;
         margin: 0 auto;
         line-height: 1.6;
     }

     .featured-book {
         position: relative;
         z-index: 2;
     }

     .book-card {
         background: white;
         border-radius: 20px;
         box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
         overflow: hidden;
         transition: all 0.3s ease;
         height: 100%;
     }

     .book-card:hover {
         transform: translateY(-10px);
         box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
     }

     .book-card.featured {
         border: 3px solid #1e3c72;
     }

     .book-cover {
         position: relative;
         height: 300px;
         overflow: hidden;
     }

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

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

     .book-overlay {
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background: rgba(30, 60, 114, 0.8);
         display: flex;
         align-items: center;
         justify-content: center;
         opacity: 0;
         transition: opacity 0.3s ease;
     }

     .book-card:hover .book-overlay {
         opacity: 1;
     }

     .book-actions {
         display: flex;
         gap: 15px;
         flex-direction: column;
     }

     .book-actions .btn {
         border-radius: 25px;
         padding: 10px 20px;
         font-weight: 600;
         transition: all 0.3s ease;
     }

     .book-actions .btn:hover {
         transform: translateY(-2px);
     }

     .book-info {
         padding: 30px;
     }

     .book-title {
         font-size: 1.8rem;
         font-weight: 700;
         color: #1e3c72;
         margin-bottom: 15px;
     }

     .book-description {
         color: #666;
         line-height: 1.6;
         margin-bottom: 20px;
     }

     .book-meta {
         display: flex;
         gap: 20px;
         margin-bottom: 20px;
         flex-wrap: wrap;
     }

     .book-meta span {
         display: flex;
         align-items: center;
         gap: 8px;
         color: #666;
         font-size: 0.9rem;
     }

     .book-meta i {
         color: #1e3c72;
     }

     .book-rating {
         display: flex;
         align-items: center;
         gap: 10px;
     }

     .stars {
         display: flex;
         gap: 2px;
     }

     .stars i {
         color: #ffc107;
         font-size: 1.1rem;
     }

     .rating-text {
         color: #666;
         font-weight: 600;
     }

     .books-list {
         position: relative;
         z-index: 2;
     }

     .book-item {
         display: flex;
         align-items: center;
         gap: 20px;
         padding: 20px;
         background: white;
         border-radius: 15px;
         box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
         margin-bottom: 20px;
         transition: all 0.3s ease;
         cursor: pointer;
     }

     .book-item:hover {
         transform: translateY(-5px);
         box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
     }

     .book-thumb {
         width: 80px;
         height: 120px;
         flex-shrink: 0;
         border-radius: 10px;
         overflow: hidden;
         position: relative;
     }

     .book-thumb img {
         width: 100%;
         height: 100%;
         object-fit: cover;
     }

     .book-item .book-overlay {
         background: rgba(30, 60, 114, 0.9);
     }

     .book-item .book-overlay .btn {
         border-radius: 50%;
         width: 40px;
         height: 40px;
         display: flex;
         align-items: center;
         justify-content: center;
         padding: 0;
     }

     .book-details {
         flex-grow: 1;
     }

     .book-details h5 {
         font-size: 1.1rem;
         font-weight: 600;
         color: #1e3c72;
         margin-bottom: 8px;
     }

     .book-details p {
         color: #666;
         font-size: 0.9rem;
         margin-bottom: 10px;
     }

     .book-details .book-meta {
         gap: 15px;
         margin-bottom: 0;
     }

     .book-details .book-meta span {
         font-size: 0.8rem;
         color: #888;
     }

     .books-section .btn-outline-primary {
         border-radius: 30px;
         padding: 12px 30px;
         font-weight: 600;
         border-color: #2577B1;
         color: #2577B1;
         transition: all 0.3s ease;
     }

     .books-section .btn-outline-primary:hover {
         background-color: #2577B1;
         color: white;
         transform: translateY(-2px);
         box-shadow: 0 8px 25px rgba(37, 119, 177, 0.3);
     }

     .books-section .btn-outline-primary i {
         margin-left: 8px;
     }

     /* ===== نهاية قسم الكتب والإصدارات ===== */

     /* ===== قسم المقالات والكتابات ===== */
     .articles-section {
         background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
         padding: 80px 0;
         position: relative;
         overflow: hidden;
     }

     .articles-section::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="articles" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23dee2e6" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23dee2e6" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23dee2e6" opacity="0.3"/><circle cx="10" cy="60" r="0.5" fill="%23dee2e6" opacity="0.3"/><circle cx="90" cy="40" r="0.5" fill="%23dee2e6" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23articles)"/></svg>');
         opacity: 0.5;
         z-index: 1;
     }

     .featured-article {
         position: relative;
         z-index: 2;
     }

     .article-card {
         background: white;
         border-radius: 20px;
         box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
         overflow: hidden;
         transition: all 0.3s ease;
         height: 100%;
     }

     .article-card:hover {
         transform: translateY(-10px);
         box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
     }

     .article-card.featured {
         border: 3px solid #28a745;
     }

     .article-image {
         position: relative;
         height: 250px;
         overflow: hidden;
     }

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

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

     .article-category {
         position: absolute;
         top: 20px;
         right: 20px;
         background: rgba(40, 167, 69, 0.9);
         color: white;
         padding: 8px 16px;
         border-radius: 20px;
         font-size: 0.9rem;
         font-weight: 600;
     }

     .article-content {
         padding: 30px;
     }

     .article-meta {
         display: flex;
         gap: 20px;
         margin-bottom: 15px;
         flex-wrap: wrap;
     }

     .article-meta span {
         display: flex;
         align-items: center;
         gap: 8px;
         color: #666;
         font-size: 0.9rem;
     }

     .article-meta i {
         color: #28a745;
     }

     .article-title {
         font-size: 1.8rem;
         font-weight: 700;
         color: #1e3c72;
         margin-bottom: 15px;
         line-height: 1.3;
     }

     .article-excerpt {
         color: #666;
         line-height: 1.6;
         margin-bottom: 20px;
         font-size: 1rem;
     }

     .article-tags {
         display: flex;
         gap: 10px;
         margin-bottom: 25px;
         flex-wrap: wrap;
     }

     .tag {
         background: #e9ecef;
         color: #495057;
         padding: 5px 12px;
         border-radius: 15px;
         font-size: 0.8rem;
         font-weight: 500;
         transition: all 0.3s ease;
     }

     .tag:hover {
         background: #28a745;
         color: white;
     }

     .article-actions {
         display: flex;
         gap: 15px;
         flex-wrap: wrap;
     }

     .article-actions .btn {
         border-radius: 25px;
         padding: 10px 20px;
         font-weight: 600;
         transition: all 0.3s ease;
     }

     .article-actions .btn:hover {
         transform: translateY(-2px);
     }

     .articles-sidebar {
         background: white;
         border-radius: 20px;
         box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
         padding: 30px;
         position: relative;
         z-index: 2;
     }

     .articles-sidebar .sidebar-title {
         font-size: 1.5rem;
         font-weight: 700;
         margin-bottom: 25px;
         color: #1e3c72;
         position: relative;
     }

     .articles-sidebar .sidebar-title::after {
         content: '';
         position: absolute;
         bottom: -8px;
         right: 0;
         width: 60px;
         height: 3px;
         background: #28a745;
         border-radius: 2px;
     }

     .article-item {
         display: flex;
         align-items: center;
         gap: 15px;
         padding: 15px;
         margin-bottom: 20px;
         background: #f8f9fa;
         border-radius: 15px;
         transition: all 0.3s ease;
         cursor: pointer;
         border: 1px solid #e9ecef;
     }

     .article-item:hover {
         background: #e9ecef;
         transform: translateY(-3px);
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
     }

     .article-thumb {
         width: 70px;
         height: 70px;
         flex-shrink: 0;
         border-radius: 10px;
         overflow: hidden;
         position: relative;
     }

     .article-thumb img {
         width: 100%;
         height: 100%;
         object-fit: cover;
     }

     .article-category-small {
         position: absolute;
         top: 5px;
         right: 5px;
         background: rgba(40, 167, 69, 0.9);
         color: white;
         padding: 3px 8px;
         border-radius: 10px;
         font-size: 0.7rem;
         font-weight: 600;
     }

     .article-details {
         flex-grow: 1;
     }

     .article-details h6 {
         font-size: 1rem;
         font-weight: 600;
         color: #1e3c72;
         margin-bottom: 8px;
         line-height: 1.3;
     }

     .article-meta-small {
         display: flex;
         gap: 15px;
         font-size: 0.8rem;
         color: #666;
     }

     .articles-section .btn-outline-primary {
         border-radius: 30px;
         padding: 12px 30px;
         font-weight: 600;
         border-color: #2577B1;
         color: #2577B1;
         transition: all 0.3s ease;
     }

     .articles-section .btn-outline-primary:hover {
         background-color: #2577B1;
         color: white;
         transform: translateY(-2px);
         box-shadow: 0 8px 25px rgba(37, 119, 177, 0.3);
     }

     .articles-section .btn-outline-primary i {
         margin-left: 8px;
     }

     /* ===== نهاية قسم المقالات والكتابات ===== */

/* ===== قسم رسالة الموقع ===== */
.site-message-section {
    background: url('../images/message.jpg') center center/cover no-repeat;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.site-message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(0, 0, 0, 0.7);  طبقة شفافة داكنة لتحسين وضوح النص */
    z-index: 1;
}

.message-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-box {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #2c3e50;
    border-radius: 25px;
    padding: 50px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.message-header {
    text-align: center;
    margin-bottom: 40px;
}

.message-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.message-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.separator-line {
    width: 60px;
    height: 2px;
    background: #2c3e50;
    border-radius: 1px;
}

.separator-icon {
    color: #2c3e50;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.message-content {
    position: relative;
    color: #2c3e50;
    line-height: 1.8;
}

.quote-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 4rem;
    color: #2c3e50;
    opacity: 0.2;
    z-index: 1;
}

.message-text {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    text-align: justify;
    margin-bottom: 30px;
}

.message-text p {
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.message-signature {
    text-align: left;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 62, 80, 0.3);
}

.signature-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.signature-text::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2c3e50, transparent);
    border-radius: 1px;
}

/* تأثير التوهج للصندوق */
.message-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2c3e50, #34495e, #2c3e50);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.3;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(44, 62, 80, 0.3);
    }
    to {
        opacity: 0.5;
        box-shadow: 0 0 30px rgba(44, 62, 80, 0.5);
    }
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .site-message-section {
        padding: 60px 0;
    }
    
    .message-box {
        padding: 30px;
        margin: 0 15px;
    }
    
    .message-title {
        font-size: 2rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .quote-icon {
        font-size: 3rem;
        top: -15px;
        right: -15px;
    }
    
    .separator-line {
        width: 40px;
    }
}

@media (max-width: 576px) {
    .message-box {
        padding: 25px;
    }
    
    .message-title {
        font-size: 1.8rem;
    }
    
    .message-text {
        font-size: 0.95rem;
    }
    
    .signature-text {
        font-size: 1.1rem;
    }
}

/* ===== نهاية قسم رسالة الموقع ===== */

/* ===== تحسينات إضافية للتصميم الجديد ===== */
.hero-video-section .container {
    position: relative;
    z-index: 2;
}

.hero-video-section .row {
    position: relative;
    z-index: 2;
}

/* تأثير التوهج للعناصر */
.main-video-container::before,
.video-sidebar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-video-container:hover::before,
.video-sidebar:hover::before {
    opacity: 1;
}

/* تحسين أزرار التحكم */
.video-controls {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* تأثير النص المضيء */
.section-title {
    text-shadow: 0 0 20px rgba(30, 60, 114, 0.3);
}

/* تحسين التباين للقراءة */
.video-sidebar .sidebar-title {
    color: #1e3c72;
    text-shadow: none;
}

.video-details h6 {
    color: #1e3c72;
}

.video-details p {
    color: #666;
} 