/* =========================================
   MEGA MENU CONTAINER
========================================= */

.mega-dropdown {
    position: relative;
    height: 100%;
}


/* دکمه دسته بندی */

.mega-toggle {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}


/* =========================================
   MEGA MENU
========================================= */

.mega-menu {
    position: absolute;

    top: 100%;
    right: 0;

    width: 1050px;
    max-width: 80vw;

    min-height: 460px;

    background: #fff;

    border-radius: 0 0 14px 14px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    z-index: 9999;


    /* حالت مخفی */

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* =========================================
   HOVER OPEN
========================================= */

.mega-dropdown:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* Wrapper */

.mega-menu-wrapper {
    display: flex;

    min-height: 460px;

    direction: rtl;
}


/* =========================================
   RIGHT SIDEBAR
========================================= */

.mega-sidebar {
    width: 230px;

    flex-shrink: 0;

    background: #f8f8f8;

    border-left: 1px solid #e8e8e8;
}


/* Main categories */

.mega-category {
    width: 100%;

    height: 92px;

    border: 0;

    border-bottom: 1px solid #e8e8e8;

    background: transparent;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 20px;

    cursor: pointer;

    font-family: inherit;

    color: #3e4751;

    transition: .2s ease;
}


.mega-category:hover,
.mega-category.active {
    background: #fff;

    color: #d81b4d;
}


.mega-category-icon {
    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;
}


.mega-category > span:nth-child(2) {
    flex: 1;

    font-weight: 700;

    text-align: right;
}


.mega-category > .bi-chevron-left {
    font-size: 14px;

    color: #999;
}


/* =========================================
   MEGA CONTENT
========================================= */

.mega-content {
    display: none;

    flex: 1;

    padding: 32px 35px;

    background: #fff;
}


.mega-content.active {
    display: block;
}


/* Columns */

.mega-column {
    padding: 0 28px;

    border-left: 1px solid #eeeeee;

    min-height: 380px;
}


.mega-column:last-child {
    border-left: 0;
}


/* Titles */

.mega-column h5 {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 17px;

    font-weight: 700;

    color: #333;

    margin-bottom: 18px;
}


.mega-column h5 span {
    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #d81b4d;
}


/* Links */

.mega-column a {
    display: block;

    color: #777;

    text-decoration: none;

    font-size: 14px;

    margin-bottom: 13px;

    transition: .2s;
}


.mega-column a:hover {
    color: #d81b4d;

    padding-right: 5px;
}

.mega-menu {
    width: 1100px;
    max-width: 82vw;
    min-height: 460px;
}
.mega-menu {
    display: block !important;
}

/* ========================================
   SPECIAL SERVICES MEGA MENU
======================================== */

.special-dropdown {
    position: relative;
    overflow: visible !important;
}


/* Button */

.special-toggle {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}


/* ========================================
   MENU
======================================== */

.special-menu {

    position: absolute;

    top: 100%;
    right: 0;

    width: 780px;
    max-width: 80vw;

    margin-top: 0;

    background: #fff;

    border-radius: 0 0 14px 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .13);

    z-index: 99999;

    padding: 25px;


    /* Hidden */

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* ========================================
   OPEN ON HOVER
======================================== */

.special-dropdown:hover .special-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* ========================================
   GRID
======================================== */

.special-menu-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr
        230px;

    gap: 20px;

}


/* ========================================
   COLUMN
======================================== */

.special-column {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


/* ========================================
   ITEM
======================================== */

.special-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 14px;

    border-radius: 10px;

    text-decoration: none;

    color: #333;

    transition: .2s ease;

}


.special-item:hover {

    background: #f8f8f8;

    transform: translateX(-3px);

}


.special-icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #fff2f5;

    color: #d81b4d;

    font-size: 22px;

}


.special-item strong {

    display: block;

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 5px;

}


.special-item span {

    display: block;

    font-size: 12px;

    color: #888;

}


/* ========================================
   SPECIAL BANNER
======================================== */

.special-banner {

    border-radius: 12px;

    padding: 25px 20px;

    background: linear-gradient(
        135deg,
        #f7f7f7,
        #fff
    );

    border: 1px solid #eeeeee;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.special-banner > i {

    font-size: 45px;

    color: #d81b4d;

    margin-bottom: 15px;

}


.special-banner h4 {

    font-size: 18px;

    font-weight: 800;

    margin-bottom: 10px;

}


.special-banner p {

    font-size: 13px;

    color: #777;

    line-height: 1.9;

}


.special-banner a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding: 9px 16px;

    border-radius: 8px;

    background: #d81b4d;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    transition: .2s;

}


.special-banner a:hover {

    transform: translateY(-2px);

}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {

    .special-menu {
        display: none;
    }

}


@media (max-width: 1200px) {

    .special-menu {

        width: 680px;

    }


    .special-menu-grid {

        grid-template-columns:
            1fr
            1fr;

    }


    .special-banner {

        display: none;

    }

}


.header,
.header-container,
.navigation,
.nav-right,
.special-dropdown {
    overflow: visible !important;
}


/* ========================================
   MOBILE MENU
======================================== */

.mobile-offcanvas {
    width: 330px !important;
    max-width: 88vw;

    border: 0 !important;

    direction: rtl;

    font-family: inherit;
}


/* Header */

.mobile-menu-header {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 18px;

    border-bottom: 1px solid #eee;
}


.mobile-menu-logo img {
    max-height: 48px;
    max-width: 150px;

    object-fit: contain;
}


.mobile-menu-close {
    width: 40px;
    height: 40px;

    border: 0;

    background: #f6f6f6;

    border-radius: 10px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}


/* Body */

.mobile-menu-body {
    padding: 10px 0 30px;
}


/* Link */

.mobile-menu-link {
    width: 100%;

    min-height: 56px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 0;

    border-bottom: 1px solid #f0f0f0;

    background: transparent;

    color: #333;

    text-decoration: none;

    font-family: inherit;

    font-size: 15px;

    text-align: right;

    cursor: pointer;

    transition: .2s;
}


.mobile-menu-link:hover {
    color: #d81b4d;

    background: #fafafa;
}


.mobile-menu-link > i {
    font-size: 20px;
}


.mobile-menu-link-right {
    display: flex;

    align-items: center;

    gap: 12px;

    flex: 1;
}


/* Arrow */

.mobile-arrow {
    font-size: 14px !important;

    transition: .25s;
}


.mobile-menu-group.open .mobile-arrow {
    transform: rotate(-90deg);
}


/* ========================================
   SUBMENU
======================================== */

.mobile-submenu {
    display: none;

    background: #fafafa;

    padding: 5px 0;
}


.mobile-menu-group.open .mobile-submenu {
    display: block;
}


.mobile-submenu a {
    display: block;

    padding: 13px 25px 13px 15px;

    color: #666;

    text-decoration: none;

    font-size: 14px;

    border-bottom: 1px solid #eee;

    transition: .2s;
}


.mobile-submenu a:hover {
    color: #d81b4d;

    background: #fff;
}


.mobile-phone {
    color: #d81b4d;
}


/* فقط دسکتاپ */

@media (min-width: 992px) {

    .mobile-offcanvas {
        display: none !important;
    }

}