* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
     font-family: 'Vazirmatn', Tahoma, sans-serif;
}

html {
    overflow-x: hidden;
    
}


.navigation-contain {
    width: 100%;
    background: #d6d4d2;
    padding: 8px 0;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    direction: ltr;
}

.navigation-contain .logo-contain {
    width: 20%;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: space-around;
}

.navigation-contain .logo-contain a {
    text-decoration: none;
}

.logo-img-menu {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 6px #d9d9d9, -3px -3px 6px #ffffff;
}

.navigation-contain .center-nav {
    width: 60%;
}

.navigation-contain .center-nav .nav {
    width: 100%;
    height: 80px;
    padding: 1rem;
    border-radius: 50px;
    z-index: 100;
    animation: animate-nav 1s ease-in-out backwards;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-contain .search-contain {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

@keyframes animate-nav {
    0% {
        visibility: hidden;
        opacity: 0;
    }
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.nav-light {
    position: absolute;
    top: 0;
    right: 4em;
    background-color: #ffffffff;
    width: 4em;
    height: 0.4em;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    transition: 0.3s ease;
    margin-right: 20.2%;
}

.nav-light::before {
    content: "";
    width: 5.2em;
    height: 6em;
    position: absolute;
    top: 0.6em;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) -50%, rgba(255, 255, 255, 0) 90%);
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0% 100%);
}

.nav .nav-list {
    display: flex;
    justify-content: space-around;
    flex: 1;
}

.nav .nav-list li {
    position: relative;
    display: flex;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav .nav-list li i {
    color: #9C2D2D;
    font-size: 1.5rem;
}

.nav .nav-list li.active i {
    color: #ffffffff;
    text-shadow: 0 0 15px var(--home-icon-color),
        0 0 30px var(--home-icon-color),
        0 0 45px var(--home-icon-color),
        0 0 60px var(--home-icon-color);
}

.nav .nav-list li.active .tooltip {
    color: #ffffffff;
}

.tooltip {
    position: absolute;
    left: 50%;
    bottom: -3rem;
    transform: translateX(-50%);
    color: #9C2D2D;
    border-radius: 0.4rem;
    padding: 1.1rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: 0.3s;
}

/* استایل دکمه‌های کاربر - حالت عمودی */
.user-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-right: 10px;
    min-width: 70px;
}

.user-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    background: #9C2D2D;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-action-btn:hover {
    background: #7a2323;
    transform: translateX(-2px);
    box-shadow: 0 5px 10px rgba(156, 45, 45, 0.3);
}

.user-action-btn i {
    font-size: 14px;
    color: white !important;
}

.user-action-btn.logout-btn {
    background: #dc3545;
}

.user-action-btn.logout-btn:hover {
    background: #bb2d3b;
}

/* استایل برای حالت فیکس */
.navigation-contain.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 1000;
    animation: none !important;
    background: rgb(214, 212, 210 0.1);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(173, 255, 47, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.7s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navigation-contain:not(.fixed) {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

body.has-fixed-nav {
    padding-top: 80px;
}

/* استایل‌های عمومی همبرگر منو */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #9C2D2D;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 55%;
    max-width: 400px;
    height: 100%;
    background: #F7F5F2;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #9C2D2D;
    color: white;
}

.mobile-logo p {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.close-mobile-nav {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.close-mobile-nav:hover {
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
}

.mobile-nav-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-list li:hover {
    background: rgba(156, 45, 45, 0.1);
    transform: translateX(5px);
}

.mobile-nav-list li.active {
    background: rgba(156, 45, 45, 0.2);
    border-right: 4px solid #9C2D2D;
}

.mobile-nav-list li i {
    font-size: 2rem;
    color: #9C2D2D;
    width: 30px;
    text-align: center;
}

.mobile-nav-list li a {
    font-size: 1.6rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
}

/* دکمه‌های کاربر در موبایل - کوچکتر و جمع‌وجورتر */
.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 8px 0;
}

.mobile-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #9C2D2D;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-user-btn i {
    font-size: 1.6rem;
    color: white !important;
    width: 25px;
    text-align: center;
}

.mobile-user-btn:hover {
    background: #7a2323;
    transform: translateX(5px);
}

.mobile-user-btn.logout-btn {
    background: #dc3545;
}

.mobile-user-btn.logout-btn:hover {
    background: #bb2d3b;
}

.mobile-search {
    padding: 20px;
    border-top: 1px solid #ddd;
}

.mobile-input-box {
    position: relative;
    width: 100%;
}

.mobile-input-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background: white;
}

.mobile-input-box input:focus {
    border-color: #9C2D2D;
    outline: none;
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9C2D2D;
    font-size: 1.6rem;
}

/* استایل اصلی بخش زبان کشویی */
.language-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    background-color: #d6d4d2;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #555;
    font-weight: 500;
}

.language-toggle:hover {
    background-color: #f9f9f9;
    border-color: #9C2D2D;
    box-shadow: 0 4px 12px rgba(156, 45, 45, 0.1);
}

.language-toggle i.fa-globe {
    color: #9C2D2D;
    font-size: 18px;
}

.language-toggle span {
    font-size: 15px;
    color: #9C2D2D;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.language-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    text-decoration: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(156, 45, 45, 0.08);
    padding-right: 22px;
}

.dropdown-item.active {
    background-color: rgba(156, 45, 45, 0.1);
    color: #9C2D2D;
    font-weight: 600;
}

.dropdown-item i {
    color: #9C2D2D;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.language-name {
    flex-grow: 1;
    font-size: 15px;
}

.language-code {
    color: #888;
    font-size: 13px;
}

/* Media Queries برای نمایش همبرگر در موبایل */
@media (max-width: 1200px) {
    .user-action-btn span {
        display: none;
    }
    
    .user-action-btn {
        padding: 6px;
        min-width: 30px;
        justify-content: center;
    }
    
    .user-action-btn i {
        font-size: 16px;
        margin: 0;
    }
}

@media (max-width: 992px) {
    .user-actions {
        margin-right: 5px;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .center-nav {
        display: none;
    }

    .navigation-contain .logo-contain {
        width: 50% !important;
    }

    .navigation-contain .search-contain {
        width: 50% !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .input-box {
        display: none;
    }

    .navigation-contain {
        height: 60px !important;
        padding: 0 15px !important;
    }

    body.has-fixed-nav {
        padding-top: 60px !important;
    }

    .logo-img-menu {
        width: 55px;
        height: 55px;
    }
    
    .mobile-user-actions {
        display: flex;
    }
    
    .user-actions {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-user-actions {
        display: none;
    }
}

/* Animation برای آیتم‌های منوی موبایل */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-list li {
    animation: slideInRight 0.3s ease forwards;
    opacity: 0;
}

.mobile-nav-list li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-list li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-list li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-list li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-list li:nth-child(5) { animation-delay: 0.3s; }

/* استایل باکس جستجو */
.input-box {
    position: relative;
    height: 55px;
    max-width: 50px;
    width: 100%;
    margin: 0 auto;
    border-radius: 7px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-box.open {
    max-width: 200px;
}

.input-box input {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0 15px;
    outline: none;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    background: #EFECEA !important;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-box.open input {
    padding: 0 15px 0 65px;
}

.input-box .search {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60px;
    border-radius: 6px;
    background: linear-gradient(#9C2D2D);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-box.open .search {
    border-radius: 6px 0 0 6px;
}

.search .search-icon {
    font-size: 30px;
    color: #ffffff;
    transform: rotate(90deg);
}

.input-box.open .search-icon {
    transform: rotate(0deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-box .close-icon {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #9C2D2D;
    padding: 5px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.input-box.open .close-icon {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) rotate(180deg);
}