body {
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    background: #f7f9fa;
    margin: 0;
    padding: 0;
    direction: rtl;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

.header {
    background: linear-gradient(90deg, #256029 60%, #3e8e41 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100%;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    box-sizing: border-box;
}
.logo {
    font-size: 1.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.lang-switcher {
    display: flex;
    gap: 10px;
}
.lang-btn {
    background: #fff;
    color: #256029;
    border: none;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.lang-btn.active, .lang-btn:hover {
    background: #256029;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 96, 41, 0.3);
}

.main-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 0 0 0;
}
.hero {
    flex: 1 1 350px;
    max-width: 500px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(46,125,50,0.07);
    margin: 20px;
    padding: 32px 32px 24px 32px;
    text-align: center;
}
.hero h1 {
    color: #256029;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.hero p {
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.hero .cta-btn {
    background: #256029;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.hero .cta-btn:hover {
    background: #3e8e41;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 96, 41, 0.4);
}

.features {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}
.features-title {
    color: #256029;
    font-size: 1.5rem;
    margin-bottom: 28px;
    font-weight: bold;
    text-align: center;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(46,125,50,0.07);
    padding: 32px 24px 24px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}
.feature-card:hover {
    box-shadow: 0 8px 32px rgba(46,125,50,0.15);
    transform: translateY(-6px) scale(1.02);
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: #256029;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(46,125,50,0.10);
}
.feature-card h3 {
    color: #256029;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.feature-card p {
    color: #444;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.7;
}

.status-waiting_customer {
    color: #fff;
    background: #ff9800;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 6px;
    background: #256029;
    color: #fff;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(37, 96, 41, 0.08);
}
.btn:hover, .btn:focus {
    background: #3e8e41;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 96, 41, 0.18);
}

@media (max-width: 900px) {
    .main-section {
        flex-direction: column;
        padding: 20px 0;
    }
    .hero, .features {
        max-width: 95vw;
        margin: 10px auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .features {
        padding: 0 5px;
    }
}

/* قواعد للشاشات المتوسطة - تعديل الهوامش */
@media (max-width: 1024px) {
    .header-content {
        padding: 20px 30px;
        box-sizing: border-box;
    }
}

/* قواعد للشاشات الصغيرة - تعديل الهوامش */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .lang-switcher {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .lang-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* قواعد للشاشات الصغيرة جداً - أزرار تسجيل الدخول والتسجيل */
@media (max-width: 480px) {
    .header-content {
        padding: 12px 15px;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .lang-switcher {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* تنسيق أزرار تسجيل الدخول والتسجيل */
    .header-content > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 200px;
    }
    
    .header-content > div:last-child .lang-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

[dir="ltr"] body {
    direction: ltr;
} 