/* ناوبری ریسپانسیو برای موبایل بدون منوی همبرگری */

/* استایل‌های پایه برای منوی ناوبری */
header {
    flex-wrap: wrap !important;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    width: 100%;
    margin-top: 6px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
}

nav ul {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    background-color: transparent;
}

nav ul li {
    margin: 3px 5px !important;
}

nav ul li a {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #ffffff;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* استایل برای لینک اکتیو */
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    header {
        padding: 10px 15px !important;
        justify-content: center;
        background-color: #000000;
    }
    
    nav {
        margin-top: 10px;
        overflow-x: visible;
        padding-bottom: 5px;
        max-height: none;
        width: 100%;
        display: flex;
        background-color: transparent;
        justify-content: center;
    }
      nav ul {
        display: flex;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        margin: 5px !important;
        width: auto !important;
        flex-shrink: 0;
        display: inline-block !important;
    }    nav ul li a {
        text-align: center;
        font-size: 0.85rem !important;
        padding: 8px 12px;
        white-space: nowrap;
        width: auto;
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }
    
    nav ul li a.active {
        background-color: rgba(255, 255, 255, 0.3);
        font-weight: bold;
    }
}

/* تنظیمات برای تبلت و نمایشگرهای متوسط */
@media (min-width: 577px) and (max-width: 768px) {
    header {
        padding: 15px 20px !important;
    }
    
    nav ul li {
        margin: 5px !important;
        width: auto;
    }
}

/* افزایش فاصله بین هدر و محتوا به خاطر ناوبری */
section:first-of-type {
    margin-top: 70px;
}

@media (max-width: 576px) {
    section:first-of-type {
        margin-top: 130px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    section:first-of-type {
        margin-top: 100px;
    }
}

/* تنظیمات اضافی برای هدر - ناوبار مدرن و سیاه */
header {
    background-color: #000000; /* پس زمینه سیاه برای ناوبار */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
}

header.scrolled {
    background-color: #000000; /* پس زمینه همیشه سیاه حتی هنگام اسکرول */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}
