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

:root {
    --primary-color: #8B0000;
    --secondary-color: #D4AF37;
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --gray-color: #F5F5F5;
    --text-color: #333333;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Amiri', 'Scheherazade New', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== الهيدر ===== */
.header-top {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-social a {
    color: var(--light-color);
    margin-left: 15px;
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--secondary-color);
}

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

.contact-btn {
    color: var(--light-color);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid var(--light-color);
}

.contact-btn:hover {
    opacity: 0.9;
}

.header-main {
    padding: 20px 0;
    box-shadow: var(--shadow);
    background-color: var(--light-color);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
}

.logo-text p {
    color: var(--dark-color);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* ===== البانر ===== */
.main-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://i.ibb.co/VYY5VXns/background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: 100px 0;
    margin-bottom: 40px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
}

.banner-btn:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
}

/* ===== الأقسام العامة ===== */
.main-content {
    padding: 40px 0 80px;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}

.view-all {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
}

.view-all:hover {
    background-color: #6a0000;
}

/* ===== من نحن ===== */
.about-section {
    margin-bottom: 60px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 0 0 400px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.arabic-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* ===== بطاقات المحتوى ===== */
.articles-grid,
.meetings-grid,
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card,
.meeting-card,
.lesson-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--light-color);
}

.article-card:hover,
.meeting-card:hover,
.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-content,
.meeting-content,
.lesson-content {
    padding: 25px;
}

.article-title,
.meeting-title,
.lesson-title {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.article-meta,
.meeting-meta,
.lesson-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta span,
.meeting-meta span,
.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-excerpt,
.meeting-excerpt,
.lesson-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ===== شعار مهرجان الكرازة ===== */
.festival-banner {
    background: linear-gradient(135deg, #8B0000 0%, #6a0000 50%, #4a0000 100%);
    border-radius: 16px;
    padding: 50px 30px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    position: relative;
    overflow: hidden;
}

.festival-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

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

.festival-banner-content {
    position: relative;
    z-index: 1;
}

.festival-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    animation: pulseIcon 2s ease-in-out infinite;
}

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

.festival-title {
    color: #D4AF37;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    font-family: 'Amiri', serif;
    letter-spacing: 1px;
}

.festival-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.divider-line {
    flex: 0 0 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.divider-icon {
    color: #D4AF37;
    font-size: 20px;
    animation: rotateStar 4s linear infinite;
}

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

.festival-slogan {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0 15px;
    font-family: 'Amiri', serif;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border-right: 4px solid #D4AF37;
    border-left: 4px solid #D4AF37;
    display: inline-block;
}

.festival-decoration {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.decoration-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D4AF37;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.3s;
}
.decoration-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* ===== الكتب ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.book-cover {
    flex: 0 0 180px;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.book-author {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.book-description {
    color: #444;
    line-height: 1.6;
    margin: 5px 0 10px;
}

.book-meta {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 14px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #8B0000, #6a0000);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

/* ===== صفحة العرض (view.html) ===== */
.view-content {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.view-title {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.view-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.view-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.view-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===== الاختبار ===== */
.quiz-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.quiz-section h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.question-item {
    background: var(--gray-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.question-item p {
    font-size: 18px;
    margin-bottom: 15px;
}

.question-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.question-options button {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.question-options button:hover {
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
}

.feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius);
    font-weight: bold;
}

.feedback.correct {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.feedback.incorrect {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ===== تحميل الكتب ===== */
.book-download-section {
    margin-top: 30px;
    text-align: center;
}

.download-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

/* ===== الفوتر ===== */
.main-footer {
    background-color: #222222;
    color: var(--light-color);
}

.footer-top {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 10px;
}

.footer-logo h3 {
    color: var(--light-color);
    font-size: 20px;
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
}

.footer-about {
    color: #aaa;
    line-height: 1.6;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.contact-info p {
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--light-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter h5 {
    margin-bottom: 15px;
    color: var(--light-color);
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 5px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--light-color);
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: var(--radius);
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #b8941f;
}

.footer-bottom {
    background: #111111;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #aaa;
    font-size: 14px;
}

/* ===== التجاوب مع الموبايل ===== */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 140px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 140px);
        background-color: var(--light-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list a {
        padding: 15px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--dark-color) !important;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }
    
    .festival-title {
        font-size: 24px;
    }
    
    .festival-slogan {
        font-size: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .articles-grid,
    .meetings-grid,
    .lessons-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .festival-banner {
        padding: 30px 20px;
    }
    
    .festival-title {
        font-size: 22px;
    }
    
    .festival-slogan {
        font-size: 18px;
    }
    
    .view-content {
        padding: 20px;
    }
    
    .view-title {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .festival-slogan {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .festival-icon {
        font-size: 36px;
    }
	
	/* ===== تحسينات PWA ===== */
@media (display-mode: standalone) {
    .header-top {
        padding-top: env(safe-area-inset-top);
    }
    .main-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== تحسين عرض المحتوى ===== */
.view-body {
    font-size: 18px;
    line-height: 2;
    color: #333;
    padding: 10px 0;
}

.view-body p {
    margin-bottom: 20px;
}

.view-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.view-body h2, .view-body h3 {
    color: #8B0000;
    margin: 25px 0 15px;
}

.view-body ul, .view-body ol {
    padding-right: 30px;
    margin: 15px 0;
}

.view-body blockquote {
    border-right: 4px solid #D4AF37;
    padding: 10px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 4px;

	
	
	/* ============================================================
  
   ============================================================ */

.article-image,
.meeting-image,
.lesson-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

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

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

/* ============================================================
   تنسيق المحتوى الداخلي (يحافظ على التنسيق من لوحة التحكم)
   ============================================================ */

.view-body {
    font-size: 18px;
    line-height: 2;
    color: #333;
}

.view-body p {
    margin-bottom: 20px;
}

.view-body h1, 
.view-body h2, 
.view-body h3, 
.view-body h4 {
    color: #8B0000;
    margin: 25px 0 15px;
    font-weight: 700;
}

.view-body strong, 
.view-body b {
    font-weight: 700;
    color: #222;
}

.view-body em, 
.view-body i {
    font-style: italic;
}

.view-body u {
    text-decoration: underline;
}

.view-body ul, 
.view-body ol {
    padding-right: 30px;
    margin: 15px 0;
}

.view-body li {
    margin-bottom: 8px;
}

.view-body blockquote {
    border-right: 4px solid #D4AF37;
    padding: 15px 25px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 4px;
    color: #555;
    font-style: italic;
}

.view-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.view-body a {
    color: #8B0000;
    text-decoration: underline;
}

.view-body a:hover {
    color: #D4AF37;
}

.view-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.view-body th,
.view-body td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: right;
}

.view-body th {
    background: #f5f5f5;
    font-weight: 700;
}

.view-body .highlight {
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 4px;
}

.view-body .text-center {
    text-align: center;
}

.view-body .text-right {
    text-align: right;
}

.view-body .text-left {
    text-align: left;


/* ============================================================
   تنسيق الصورة في البطاقة
   ============================================================ */

.article-image,
.meeting-image,
.lesson-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

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

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

/* ============================================================
   تنسيق المحتوى
   ============================================================ */

.view-body {
    font-size: 18px;
    line-height: 2;
    color: #333;
}

.view-body p {
    margin-bottom: 20px;
}

.view-body h1, 
.view-body h2, 
.view-body h3, 
.view-body h4 {
    color: #8B0000;
    margin: 25px 0 15px;
    font-weight: 700;
}

.view-body strong, 
.view-body b {
    font-weight: 700;
    color: #222;
}

.view-body em, 
.view-body i {
    font-style: italic;
}

.view-body u {
    text-decoration: underline;
}

.view-body ul, 
.view-body ol {
    padding-right: 30px;
    margin: 15px 0;
}

.view-body li {
    margin-bottom: 8px;
}

.view-body blockquote {
    border-right: 4px solid #D4AF37;
    padding: 15px 25px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 4px;
    color: #555;
    font-style: italic;
}

.view-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.view-body a {
    color: #8B0000;
    text-decoration: underline;
}

.view-body a:hover {
    color: #D4AF37;
}

.view-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.view-body th,
.view-body td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: right;
}

.view-body th {
    background: #f5f5f5;
    font-weight: 700;
}

/* ============================================================
   تنسيق البطاقات
   ============================================================ */

.article-card,
.meeting-card,
.lesson-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--light-color);
}

.article-card:hover,
.meeting-card:hover,
.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-content,
.meeting-content,
.lesson-content {
    padding: 25px;
}

.article-title,
.meeting-title,
.lesson-title {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.article-meta,
.meeting-meta,
.lesson-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta span,
.meeting-meta span,
.lesson-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-excerpt,
.meeting-excerpt,
.lesson-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;


/* ============================================================
   التجاوب مع الموبايل والتابلت
   ============================================================ */

@media (max-width: 768px) {
    /* تحسين الصورة في البطاقة */
    .article-image,
    .meeting-image,
    .lesson-image {
        height: 180px;
    }
    
    /* تحسين حجم الخط في المحتوى */
    .view-body {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .view-title {
        font-size: 24px !important;
    }
    
    /* تحسين تنسيق الفقرات */
    .view-body p {
        margin-bottom: 15px;
    }
    
    /* تحسين القوائم */
    .view-body ul,
    .view-body ol {
        padding-right: 20px;
    }
    
    /* تحسين البطاقات */
    .article-card,
    .meeting-card,
    .lesson-card {
        margin-bottom: 20px;
    }
    
    .article-content,
    .meeting-content,
    .lesson-content {
        padding: 15px;
    }
    
    .article-title,
    .meeting-title,
    .lesson-title {
        font-size: 18px;
    }
    
    /* تحسين الميتا */
    .article-meta,
    .meeting-meta,
    .lesson-meta {
        font-size: 12px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* تحسين الصورة في البطاقة */
    .article-image,
    .meeting-image,
    .lesson-image {
        height: 150px;
    }
    
    /* تحسين حجم الخط */
    .view-body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .view-title {
        font-size: 20px !important;
    }
    
    /* تحسين الفقرات */
    .view-body p {
        margin-bottom: 12px;
    }
    
    /* تحسين البطاقات */
    .article-content,
    .meeting-content,
    .lesson-content {
        padding: 12px;
    }
    
    .article-title,
    .meeting-title,
    .lesson-title {
        font-size: 16px;
    }
    
    /* تحسين الميتا */
    .article-meta,
    .meeting-meta,
    .lesson-meta {
        font-size: 11px;
        gap: 8px;
        flex-wrap: wrap;
    }
}

/* ===== تحسينات للشاشات المتوسطة (تابلت) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .article-image,
    .meeting-image,
    .lesson-image {
        height: 200px;
    }
    
    .view-body {
        font-size: 17px;
        line-height: 1.9;
    }


	
}