﻿/* همبرگر */
#hmbrg-menu-check {
    display: none;
}

.hmbrg-hamburger {
    display: none; /* پیش‌فرض مخفی در دسکتاپ */
    position: fixed;
    top: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

@media (max-width: 991px) {
    .hmbrg-hamburger {
        display: flex;
    }
    #MofidLogo{
        margin-right:40%;
    }
}

.hmbrg-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 3px;
    transition: all 0.35s ease;
}

#hmbrg-menu-check:checked + .hmbrg-hamburger .hmbrg-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

#hmbrg-menu-check:checked + .hmbrg-hamburger .hmbrg-bar:nth-child(2) {
    opacity: 0;
}

#hmbrg-menu-check:checked + .hmbrg-hamburger .hmbrg-bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* منو */
.hmbrg-mobile-menu {
    position: fixed;
    top: 0;
    right: -2480px;
    width: 100%;
    background: gray;
    box-shadow: 0px 10px 15px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 9999;
    padding: 70px 20px 20px;
}

#hmbrg-menu-check:checked ~ .hmbrg-mobile-menu {
    right: 0;
}

/* overlay */
.hmbrg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9980;
}

#hmbrg-menu-check:checked ~ .hmbrg-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hmbrg-menu-list a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

    .hmbrg-menu-list a:hover {
        color: #0066cc;
    }
