/* إعدادات عامة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-color: #f4f7f6;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- تنسيق شاشات سطح المكتب (Desktop) --- */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--primary-color);
        color: var(--white);
        padding: 15px 50px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 25px;
    }

    .desktop-nav a {
        color: var(--white);
        text-decoration: none;
        font-weight: bold;
    }

    /* إخفاء قائمة الهاتف */
    .mobile-bottom-nav {
        display: none;
    }
}

/* --- تنسيق شاشات الهاتف (Mobile) --- */
@media (max-width: 768px) {
    /* إخفاء قائمة سطح المكتب */
    .desktop-nav {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: var(--white);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--primary-color);
        font-size: 12px;
    }

    .nav-item i {
        font-size: 20px;
        margin-bottom: 5px;
    }

    /* إضافة هامش أسفل الصفحة حتى لا يختفي المحتوى خلف القائمة */
    main {
        padding-bottom: 80px;
    }
}

/* --- تنسيق شبكة الصناديق الـ 12 --- */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px;
}

.box-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.box-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent-color);
}

.box-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}
