/* القائمة الرئيسية */
.main-nav {
    background: linear-gradient(135deg, 
        var(--primary-dark) 0%,
        var(--primary-color) 50%,
        var(--primary-light) 100%
    );
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* إخفاء زر القائمة في وضع الكمبيوتر */
.mobile-menu-btn {
    display: none;
}

/* تنسيق القائمة الرئيسية للكمبيوتر */
.main-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: static;
    background: none;
    width: auto;
    height: auto;
    box-shadow: none;
}

.main-menu li {
    opacity: 1;
    transform: none;
}

.main-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.main-menu i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* تنسيق القائمة المنسدلة للكمبيوتر */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-dark);
    border-radius: 8px;
    padding: 10px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(225, 190, 231, 0.2);
    margin-top: 5px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 15px;
    display: block;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    margin-bottom: 0;
}
/* تنسيق اللوجو */
.logo {
    margin-right: 0vh; /* إزالة أي هوامش */
}
/* تنسيق اللوجو */
.logo-text {
    color: var(--text-light);
    font-size: 2.8rem;
    margin: 0;
    
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}



.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* تنسيقات التعليقات */
.comments-section {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
}

.comment-meta h4 {
    margin: 0;
    color: #333;
}

.comment-date {
    font-size: 12px;
    color: #666;
}

.comment-content {
    margin: 10px 0;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-actions button:hover {
    color: var(--primary-color);
}

.replies-container {
    margin-right: 40px;
    margin-top: 10px;
}

/* تنسيقات الإشعارات */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #48bb78;
}

.notification.error {
    background: #e53e3e;
}

.notification.info {
    background: #4299e1;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* تحسين شكل قسم الدروس */
.lectures-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.lectures-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.main-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-right: 15px;
}

.main-title:before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: linear-gradient(45deg, #b8960c, #edc531);
    border-radius: 2px;
}

.main-title i {
    color: #b8960c;
    margin-left: 10px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

/* تحسين شكل الفلاتر */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-tag {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover, .filter-tag.active {
    background: linear-gradient(45deg, #b8960c, #edc531);
    color: white;
}

/* تحسين شكل بطاقات الدروس */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.lesson-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.lesson-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lesson-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lesson-card:hover .lesson-thumbnail img {
    transform: scale(1.1);
}

.lesson-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-thumbnail-placeholder i {
    font-size: 3rem;
    color: #b8960c;
}

.lesson-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.lesson-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lesson-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.lesson-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lesson-title a:hover {
    color: #b8960c;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.lesson-meta i {
    color: #b8960c;
    margin-left: 5px;
}

.lesson-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.lesson-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn i {
    margin-left: 5px;
}

.action-btn.primary {
    background: linear-gradient(45deg, #b8960c, #edc531);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(45deg, #a38309, #d9b428);
}

.action-btn.secondary {
    background-color: #f0f0f0;
    color: #555;
}

.action-btn.secondary:hover {
    background-color: #e0e0e0;
}

.action-btn.share {
    background-color: #f0f0f0;
    color: #555;
}

.action-btn.share:hover {
    background-color: #e0e0e0;
}

/* تحالة فارغة */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #777;
}

/* تجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .heading-filters {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .heading-filters {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .filters {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        margin-bottom: 10px;
    }
}

.hero {
    height: 600px;
    position: relative;
    background: url('../images/shaikh_logo.jpeg') center/cover;
    color: var(--light-text);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(74, 20, 140, 0.8), rgba(123, 31, 162, 0.8));
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 200px;
}

.hero h1 {
    margin-top: -15vh;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1.1rem;
}

.search-box button {
    padding: 15px 30px;
    background: var(--secondary-color);
    border: none;
    border-radius: 0 30px 30px 0;
    color: var(--light-text);
    cursor: pointer;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.quick-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* تنسيقات القائمة الثابتة */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* تنسيقات الإحصائيات */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}



/* تأثيرات حركية */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    position: relative;
    overflow: hidden;
    padding-right: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.section-title:hover::after {
    transform: scaleX(1);
}
/* التنسيقات الأساسية والمتغيرات */
:root {
    --primary-color: #4A148C;
    --primary-light: #7B1FA2;
    --primary-dark: #3A1078;
    --accent: #E1BEE7;
    --text-light: #FFF;
    --text-dark: #333;
    --gray-light: #F5F5F5;
    --gray-medium: #EEE;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* إعادة تعيين عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    background: var(--gray-light);
}

.container {
    width: min(95%, 1200px);
    margin: 0 auto;
}

/* تنسيق الهيدر الرئيسي */
.header-top {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}
/* تحديث التنسيقات */
.section-heading {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.heading-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.filter-select {
    min-width: 150px;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

/* تحديث تنسيق الكروت */
.lecture-card {
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.lecture-card:hover {
    border-color: var(--primary-color);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* القائمة الرئيسية */
.main-header {
    background: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}
/* تنسيقات قسم المحاضرات */
.lectures-section {
    padding: 50px 0;
    background: var(--gray-light);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.main-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.heading-filters {
    display: flex;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    width: 300px;
    font-size: 0.95rem;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
}
/* تنسيق الخلفية والحاوية */
.lectures-section {
    padding: 50px 0;
    background: #f5f7fa; /* خلفية رمادية فاتحة للقسم كامل */
}

.lectures-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 0 auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

/* إضافة زخارف إسلامية في خلفية الحاوية */
.lectures-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('path/to/islamic-pattern.svg');
    opacity: 0.05;
    pointer-events: none;
}
/* تنسيق شبكة المحاضرات */
.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* تنسيق كارت المحاضرة */
.lecture-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* تنسيق صورة المحاضرة */
.lecture-thumbnail {
    position: relative;
    padding-top: 56.25%; /* نسبة 16:9 */
    background: #000;
}

.thumbnail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lecture-card:hover .thumbnail-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lecture-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.duration, .quality {
    position: absolute;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
}

.duration {
    right: 10px;
}

.quality {
    left: 10px;
    background: var(--primary-color);
}

/* تنسيق محتوى المحاضرة */
.lecture-content {
    padding: 20px;
}

.lecture-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.category {
    background: var(--accent);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.date {
    color: #666;
    font-size: 0.85rem;
}

.lecture-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-dark);
}

.speaker-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.speaker-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.speaker-name {
    color: var(--primary-color);
    font-weight: 500;
}

.lecture-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.lecture-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lecture-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.action-btn.watch {
    background: var(--primary-color);
    color: #fff;
    flex: 2;
}

.action-btn.download {
    background: var(--accent);
    color: var(--primary-color);
    flex: 1;
}

.action-btn.share {
    background: #eee;
    color: #666;
    width: 40px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}



.main-menu li {
    position: relative;
}

.main-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.main-menu a:hover {
    background: var(--primary-light);
}

/* القوائم المنسدلة */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-dark);
    padding: 12px 20px;
    display: block;
}

.dropdown-menu li a:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

/* قسم الهيرو */
.hero {
    min-height: 600px;
    background: linear-gradient(rgba(74, 20, 140, 0.9), rgba(123, 31, 162, 0.8)),
                url('path/to/hero-image.jpg') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 60px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* البحث الرئيسي */
.main-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.main-search input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.main-search button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.main-search button:hover {
    background: var(--primary-light);
}

/* الأقسام الرئيسية */
.main-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.section-card {
    background: var(--text-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.section-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* تنسيقات التجاوب */
@media (max-width: 992px) {
    .main-menu {
        gap: 15px;
    }
    
    .section-card {
        padding: 20px;
    }
}

/* تأثيرات حركية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-card {
    animation: fadeIn 0.5s ease forwards;
}

.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.2s; }
.section-card:nth-child(4) { animation-delay: 0.3s; }

/* تنسيقات إضافية للتحسين */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
}
/* تنسيق أقسام المحتوى الرئيسية */
.main-content {
    padding: 40px 0;
}

/* تنسيق قسم أحدث الفتاوى */
.latest-fatwas {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-light);
}

.fatwa-card {
    padding: 15px;
    border-bottom: 1px solid var(--gray-medium);
    transition: var(--transition);
}

.fatwa-card:last-child {
    border-bottom: none;
}

.fatwa-card:hover {
    background: var(--gray-light);
    border-radius: 8px;
}

.fatwa-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.fatwa-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

.fatwa-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* تنسيق قسم المقالات المختارة */
.featured-articles {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 15px;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* تنسيق الشريط الجانبي */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تنسيق البحث السريع */
.quick-search form {
    display: flex;
    gap: 10px;
}

.quick-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 0.95rem;
}

.quick-search button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-search button:hover {
    background: var(--primary-light);
}

/* تنسيق التصنيفات */
.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 12px;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.categories a:hover {
    background: var(--gray-light);
    color: var(--primary-color);
}

.categories span {
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* تنسيق الأكثر قراءة */
.most-read ul {
    list-style: none;
}

.most-read li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-medium);
}

.most-read li:last-child {
    border-bottom: none;
}

.most-read-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.5;
}

.most-read-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.most-read-content span {
    font-size: 0.85rem;
    color: #666;
}

/* تنسيق الفوتر */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
}


/* تأثيرات إسلامية في الخلفية */
.islamic-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('patterns/islamic-star.svg'),
        url('patterns/geometric.svg');
    background-size: 300px, 400px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.section-divider {
    position: relative;
    height: 50px;
    margin: 30px 0;
    overflow: hidden;
}

.section-divider::before {
    content: '۞';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--primary-color),
        transparent
    );
}

/* تجاوب مع الشاشات المتوسطة والصغيرة */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        width: 280px;
        
        height: calc(100vh - 70px);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        gap: 10px;
    }

    .main-menu.active {
        right: 0;
    }

    .main-menu a {
        padding: 12px 15px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--gray-light);
        margin: 5px 0;
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

/* تجاوب الهيرو مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .hero {
        margin-top: 0px;
        min-height: 70vh;
    }

    .main-menu {
        position: fixed;
        top: 0px;
        right: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, 
            var(--primary-dark) 0%,
            var(--primary-color) 50%,
            var(--primary-light) 100%
        );
        width: 280px;
        height: calc(100vh - 0px);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        gap: 10px;
    }
    
    /* تحسين مظهر الروابط في القائمة */
    .main-menu a {
        color: var(--text-light);
        text-decoration: none;
        padding: 12px 20px;
        border-radius: 8px;
        transition: var(--transition);
        font-weight: 500;
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-5px);
        border-color: var(--accent);
    }
    
    .main-menu i {
        color: var(--accent);
        font-size: 1.2rem;
    }
    
    /* تحسين القائمة المنسدلة */
    .dropdown-menu {
        position: static;
        background: rgb(231, 212, 255);
        border-radius: 8px;
        padding: 10px;
        margin: 5px 0;
        border: 1px solid rgba(225, 190, 231, 0.2);
    }
    
    .dropdown-menu a {
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 5px;
    }
    
    .dropdown-menu a:last-child {
        margin-bottom: 0;
    }
    
    /* تحسين زر القائمة */
    .mobile-menu-btn {
        background: var(--primary-light);
        color: var(--text-light);
        padding: 10px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .mobile-menu-btn:hover {
        background: var(--primary-dark);
    }
    
    /* إضافة تأثيرات حركية */
    .main-menu.active {
        right: 0;
    }
    
    .main-menu li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .main-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* تأخير ظهور العناصر بشكل متتالي */
    .main-menu li:nth-child(1) { transition-delay: 0.1s; }
    .main-menu li:nth-child(2) { transition-delay: 0.2s; }
    .main-menu li:nth-child(3) { transition-delay: 0.3s; }
    .main-menu li:nth-child(4) { transition-delay: 0.4s; }
    .main-menu li:nth-child(5) { transition-delay: 0.5s; }
    .main-menu li:nth-child(6) { transition-delay: 0.6s; }
    
    /* تحسين الشريط الجانبي للتمرير */
    .main-menu::-webkit-scrollbar {
        width: 5px;
    }
    
    .main-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .main-menu::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 5px;
    }
    
    /* تجاوب مع الشاشات الصغيرة جداً */
    @media (max-width: 320px) {
        .main-menu {
            width: 100%;
        }
        
        .main-menu a {
            padding: 10px 15px;
            font-size: 0.9rem;
        }
    }
    
    /* إضافة تأثير الظل للقائمة عند فتحها */
    .main-menu.active {
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    }
    
    /* تحسين مؤشر القائمة المنسدلة */
    .has-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-right: auto;
        color: var(--accent);
        transition: var(--transition);
    }
    
    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    .hero-content {
        padding: 40px 15px;
    }

    
    .hero h1 {
        margin-top: 1vh;

        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .search-box {
        width: 90%;
    }

    .quick-links {
        flex-direction: column;
        gap: 12px;
        width: 90%;
        margin: 0 auto;
    }

    .quick-link {
        width: 100%;
        padding: 12px 20px;
    }
}

/* تجاوب مع الشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .logo-text {
        font-size:1.9rem;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-box input {
        padding: 12px 50px 12px 15px;
        font-size: 0.9rem;
    }
}