/* /* body {
    margin: 0;
    font-family: B nazanin;
    direction: rtl;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #4a176b;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 50px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
}

header nav a:hover {
    text-decoration: none;
    color: #4a176b;
    background-color: #f4f4f9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    transition: all 0.1s ease-in-out;
}
footer {
    background-color: #333;
    color: #ddd;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

footer a:hover {
    background-color: #ddd;
    color: #000;
    transition: all 0.3s ease;
}

footer .copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #bbb;
}
footer h4 {
    text-align: right;
} */

/*body {
    margin: 0;
    font-family: 'B Nazanin', sans-serif;
    direction: rtl;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #4a176b;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

header img {
    height: 50px;
}

header nav {
    display: flex;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.1s ease-in-out;
}

header nav a:hover {
    text-decoration: none;
    color: #4a176b;
    background-color: #f4f4f9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

footer {
    background-color: #333;
    color: #ddd;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

footer a:hover {
    background-color: #ddd;
    color: #000;
}

footer .copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #bbb;
}

footer h4 {
    text-align: right;
}


@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header img {
        margin-bottom: 10px;
    }

    header nav {
        width: 100%;
        justify-content: center;
    }

    header nav a {
        margin: 5px;
        font-size: 16px;
    }

    footer h4 {
        text-align: center;
    }
}


@media (max-width: 576px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header img {
        height: 40px;
    }

    header nav {
        flex-direction: column;
        align-items: center;
    }

    header nav a {
        margin: 8px 0;
        padding: 8px 12px;
        font-size: 14px;
    }

    footer {
        padding: 15px;
    }

    footer a {
        display: block;
        margin: 10px 0;
    }

    footer h4 {
        font-size: 16px;
        text-align: center;
    }

    footer .copyright {
        font-size: 12px;
    }
} */

body {
    margin: 0;
    font-family: 'B Nazanin', sans-serif;
    direction: rtl;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #4a176b;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

header img {
    height: 50px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

nav {
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
}

nav a:hover {
    color: #4a176b;
    background-color: #f4f4f9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

footer {
    background-color: #333;
    color: #ddd;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

footer a:hover {
    background-color: #ddd;
    color: #000;
}

footer .copyright {
    margin-top: 10px;
    font-size: 14px;
    color: #bbb;
}

footer h4 {
    text-align: right;
}

/* --- ریسپانسیو برای تبلت --- */
@media (max-width: 992px) {
    header {
        flex-wrap: wrap;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        font-size: 16px;
    }

    footer h4 {
        text-align: center;
    }
}

/* --- ریسپانسیو برای موبایل + منوی بازشو --- */
@media (max-width: 576px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #4a176b;
        position: absolute;
        top: 60px;
        right: 0;
        z-index: 10;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 8px 0;
        padding: 12px 20px;
        font-size: 14px;
    }

    header img {
        height: 40px;
    }

    footer {
        padding: 15px;
    }

    footer a {
        display: block;
        margin: 10px 0;
    }

    footer h4 {
        font-size: 16px;
        text-align: center;
    }

    footer .copyright {
        font-size: 12px;
    }
}
