/* إعدادات الخطوط والصفحة العامة */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Tahoma, sans-serif; 
}
body { 
    background-color: #f5f5f5; 
    transition: all 0.3s; 
}
body.dark { 
    background-color: #121212; 
    color: white; 
}

/* الهيدر وشريط التنقل */
header { 
    background: linear-gradient(135deg, #1a3a6b, #2952a3); 
    color: white; 
    padding: 25px; 
    text-align: center; 
}
header img { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    margin-bottom: 10px; 
    border: 3px solid #f0c040; 
}
header h1 { 
    font-size: 28px; 
    color: #f0c040; 
    margin-bottom: 5px; 
}
header p { 
    font-size: 16px; 
    color: white; 
}
nav { 
    background-color: #1a3a6b; 
    padding: 12px; 
    text-align: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
nav a { 
    color: #f0c040; 
    text-decoration: none; 
    margin: 5px 8px; 
    font-size: 13px; 
    font-weight: bold; 
    display: inline-block; 
}
nav a:hover { 
    color: white; 
}

/* الأزرار التفاعلية */
.dark-btn { 
    background-color: #f0c040; 
    color: #1a3a6b; 
    border: none; 
    padding: 6px 15px; 
    border-radius: 20px; 
    font-size: 13px; 
    font-weight: bold; 
    cursor: pointer; 
    margin: 5px 8px; 
}
.login-btn { 
    background-color: white; 
    color: #1a3a6b; 
    border: none; 
    padding: 6px 15px; 
    border-radius: 20px; 
    font-size: 13px; 
    font-weight: bold; 
    cursor: pointer; 
    margin: 5px 8px; 
    text-decoration: none; 
}

/* قسم الـ Hero الترحيبي */
.hero { 
    background: linear-gradient(135deg, #1a3a6b, #2952a3); 
    color: white; 
    padding: 60px 20px; 
    text-align: center; 
}
.hero h2 { 
    font-size: 28px; 
    color: #f0c040; 
    margin-bottom: 15px; 
}
.hero p { 
    font-size: 16px; 
    color: white; 
}

/* الأقسام والكروت */
.section { 
    margin: 40px auto; 
    width: 90%; 
    text-align: center; 
}
.section h2 { 
    color: #1a3a6b; 
    font-size: 24px; 
    margin-bottom: 25px; 
    border-bottom: 3px solid #f0c040; 
    padding-bottom: 10px; 
}
body.dark .section h2 { 
    color: #f0c040; 
}
.cards { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* كروت الكتب الدراسيّة */
.card { 
    background-color: white; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    width: 220px; 
    border-top: 4px solid #1a3a6b; 
}
body.dark .card { 
    background-color: #1e1e1e; 
    color: white; 
}
.card h3 { 
    color: #1a3a6b; 
    margin-bottom: 10px; 
}
body.dark .card h3 { 
    color: #f0c040; 
}
.card p { 
    color: #555; 
    font-size: 14px; 
    margin-bottom: 15px; 
}
body.dark .card p { 
    color: #aaa; 
}
.card a { 
    background-color: #1a3a6b; 
    color: white; 
    padding: 8px 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
}
.card a:hover { 
    background-color: #f0c040; 
    color: #1a3a6b; 
}

/* كروت الفيديو (يوتيوب) */
.video-card { 
    background-color: white; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    width: 220px; 
    border-top: 4px solid #f0c040; 
}
body.dark .video-card { 
    background-color: #1e1e1e; 
}
.video-card h3 { 
    color: #1a3a6b; 
    margin-bottom: 10px; 
}
body.dark .video-card h3 { 
    color: #f0c040; 
}
.video-card p { 
    color: #555; 
    font-size: 14px; 
    margin-bottom: 15px; 
}
body.dark .video-card p { 
    color: #aaa; 
}
.video-card a { 
    background-color: #ff0000; 
    color: white; 
    padding: 8px 15px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
}

/* صندوق التواصل ومشاركة الموقع */
.contact-box { 
    background-color: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 0 15px rgba(0,0,0,0.1); 
    width: 90%; 
    max-width: 500px; 
    margin: 0 auto; 
    border-top: 4px solid #25D366; 
}
body.dark .contact-box { 
    background-color: #1e1e1e; 
}
.contact-box p { 
    color: #555; 
    font-size: 16px; 
    margin-bottom: 15px; 
}
body.dark .contact-box p { 
    color: #aaa; 
}
.contact-box a { 
    display: inline-block; 
    background-color: #25D366; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: bold; 
}
.share-btn { 
    position: fixed; 
    bottom: 20px; 
    left: 20px; 
    z-index: 999; 
}
.share-btn a { 
    background-color: #25D366; 
    color: white; 
    padding: 12px 20px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: bold; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}

/* التذييل (Footer) */
footer { 
    background-color: #1a3a6b; 
    color: white; 
    padding: 25px; 
    text-align: center; 
    margin-top: 40px; 
}
footer p { 
    color: #f0c040; 
    margin-bottom: 5px; 
}
footer small { 
    color: white; 
    font-size: 13px; 
}