إعدادات عامة
========================= */

body {
    direction: rtl;
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #222;
}

/* =========================
   الهيدر
========================= */

header {
    background: linear-gradient(90deg, #151515 0%, #24203f 45%, #6a11cb 100%);
    padding: 18px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #007bff;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}

nav {
    display: flex;
    gap: 12px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: .3s;
}

nav a:hover {
    background: rgba(255,255,255,.15);
}
/* =========================
   الواجهة الرئيسية
========================= */
.hero {
    background: linear-gradient(90deg, #111827 0%, #004aad 55%, #007bff 100%);
    color: white;
    text-align: center;
    padding: 70px 20px;
    margin: 0;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    margin-top: 25px;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    transition: .3s;
}

.hero-btn:hover {
    background: #0056d2;
}
/* =========================
   شبكة الأقسام
========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 30px;
    background: transparent;
    border-radius: 20px;
}
/* =========================
   البطاقات
========================= */
.card {
    background: #ede4ff;
    color: #7614d8;
    text-decoration: none;
    border-radius: 25px;
    overflow: hidden;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,.20);
    transition: .35s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0,0,0,.30);
}

.card:active {
    transform: scale(.97);
}
/* =========================
   صور البطاقات
========================= */

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: .4s;
    border-radius: 25px 25px 0 0;
}

.card:hover img {
    transform: scale(1.05);
}
/* =========================
   النصوص
========================= */
.card h2 {
    color: #004a8f;
    font-size: 20px;
    margin: 12px 10px 6px;
}

.card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding: 0 15px 14px;
}
/* =========================
   الصورة الرئيسية
========================= */

body > img {
    display: block;
    width: 320px;
    max-width: 90%;
    margin: 35px auto;
}

/* =========================
   الجوال
========================= */

@media (max-width:1000px){

.cards{
    grid-template-columns: repeat(2,1fr);
}

}

@media (max-width:600px){

.cards{
    grid-template-columns:1fr;
}

.hero h1{
    font-size:30px;
}

.hero p{
    font-size:17px;
}

}body {
    background: linear-gradient(135deg, #0e0f0e, #2addad) !important;
}.card {
    background: #ede4ff !important;
    display: block;
}header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
}header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}