/* الخطوط والألوان */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

:root {
    --primary-color: #0d5e4c;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: var(--dark-color);
}

/* الهيدر */
header {
    background-color: #873260;
    color:black;
    padding: 15px 0;
}

.logo {
    height: 50px;
    width: 60px;
    
}

.logo span {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* التنقل */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: black;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color:white;
    font-size: 1.5rem;
    cursor: pointer;
    
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* القائمة المنسدلة */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-right: 10px;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1001;
}

.dropdown-menu a {
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a:hover {
    background:green;
}

/* البطل */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    font-weight: bold;
}

/* الخصائص */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem;
    background-color: #873260;
}

.feature {
    flex: 1 1 250px;
    background: white; /* لون أبيض شبه شفاف لتباين جيد */
    border-radius: 8px;
    padding: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(224, 13, 13, 0.852);
}
/* الأزرار */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    margin: 0.5rem;
    display: inline-block;
}

.btn-primary {
    background-color: hsl(307, 96%, 20%);
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: black;
    background: transparent;
}

.btn:hover {
    opacity: 0.85;
    background-color: hsl(72, 92%, 40%);
}

/* الفوتر */
footer {
    background-color: #873260;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

.social-links a {
    margin: 0 0.5rem;
    color: white;
    font-size: 1.2rem;
}

/* شاشة الجوال */
@media (max-width: 768px) {
        .nav-container {
            flex-direction: row;
            justify-content: space-between; /* توزيع العناصر بين اليمين واليسار */
            align-items: center;
        }
    
        .logo {
            margin-right: 135px; /* دفع الشعار لليسار */
            
        }
    
        .menu-toggle {
            display: block;
            margin-right: 0px; /* دفع القائمة لليمين */
        }
    
        nav ul {
            display: none;
            flex-direction: column;
            width: 100%;
        }
    
        nav ul.show {
            display: flex;
        }
    
        nav ul li {
            width: 100%;
        }
    
        .dropdown-menu {
            position: static;
            box-shadow: none;
            border-radius: 0;
            background: var(--light-color);
        }
    }
