@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    direction: rtl;
}

.header {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-left: 10px;
    border-radius: 50px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5cb85c;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    text-align: right;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #222;
    color: #5cb85c;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.auth-buttons {
    display: flex;
    margin-right: 1rem;
}

.auth-button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.donate-button {
    background-color: #d9534f;
}

.volunteer-button {
    background-color: #5bc0de;
}

.auth-button:hover {
    opacity: 0.9;
}

/* المتجاوب */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #000;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .nav.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        padding-right: 1rem;
        display: none;
        background-color: #222;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-item.active .dropdown-content {
        display: block;
    }
    
    .nav-link {
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid #333;
    }
    
    .auth-buttons {
        margin: 1rem;
        width: 100%;
        flex-direction: column;
    }
    
    .auth-button {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px;
    }
}

/* لإصلاح مشكلة تشوه العناصر */
@media (min-width: 993px) and (max-width: 1200px) {
    .nav-link {
        padding: 1rem 0.7rem;
        font-size: 0.9rem;
    }
}