﻿
/* ========================= GLOBAL CONFIG & ANTI-HIGHLIGHT ========================== */
* {
    font-family: Vazir !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}


a:focus, a:active, button:focus, button:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ========================= BACKGROUND ========================== */

body,
.wrapper,
.body,
.bgded,
.row1,
.row4 {
    background: #F3FAFF !important;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: IRANSans;
}

    body.menu-open {
        overflow: hidden;
    }

        /* ========================= BLUR EFFECT ON BODY ========================== */

        body.menu-open .body,
        body.menu-open .footer {
            filter: blur(8px);
            -webkit-filter: blur(8px);
            transition: filter 0.3s ease;
        }

/* ========================= BLUR OVERLAY (DIMMER ONLY) ========================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ========================= HEADER ========================== */

.wrapper.row1 {
    width: 100%;
    max-width: 100%;
}

#header.new-header {
    width: 100%;
    max-width: 100%;
    padding: clamp(14px, 1.5vw, 22px) clamp(20px, 4vw, 60px);
    background: #F3FAFF;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    z-index: 9999;
}

#header.hoc {
    max-width: 100% !important;
}

@media(max-width:991px) {
    body.menu-open #logo,
    body.menu-open .login-box {
        filter: blur(8px);
        -webkit-filter: blur(8px);
    }
}

/* ========================= RIGHT SIDE ========================== */

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 55px);
}

/* ========================= LOGO ========================== */

.logo-img {
    width: clamp(80px, 8vw, 130px);
    height: auto;
    object-fit: contain;
}

/* ========================= MENU (DESKTOP) ========================== */

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 42px);
    margin: 0;
    padding: 0;
    list-style: none;
}

    .main-nav ul li {
        position: relative;
    }

        .main-nav ul li a {
            color: #0B3954;
            text-decoration: none;
            font-size: clamp(16px, 1.2vw, 22px);
            font-weight: 700;
            white-space: nowrap;
            transition: .3s;
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
        }

            .main-nav ul li a:hover {
                color: #1f4f7d;
            }

@media(min-width: 992px) {
    .main-nav > ul > li > a {
        padding-bottom: 24px !important;
    }

        .main-nav > ul > li > a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 4px;
            background-color: #0B3954;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

    .main-nav > ul > li.d-open > a::after {
        width: 100%;
    }

    .main-nav > ul > li.d-open .menu-icon {
        transform: rotate(90deg) !important;
    }
}

/* ========================= MENU ICON ========================== */

.menu-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transform: rotate(270deg);
    transition: transform 0.3s ease;
}



/* ========================= SUBMENU DESKTOP ========================== */

@media (min-width:992px) {

    .main-nav li {
        position: relative;
    }

    /* LEVEL 1 */

    .main-nav > ul > li > ul {
        position: absolute;
        top: 62px;
        right: 0;
        min-width: 260px; /* قبلاً 580px */
        max-width: 320px;
        width: max-content;
        background: rgba(236,244,250,.92);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(18,59,93,.08);
        border-radius: 20px 0 20px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,.06);
        padding: 10px 0;
        display: none;
        flex-direction: column;
        z-index: 999;
    }

    .main-nav > ul > li.d-open > ul {
        display: flex;
    }

    /* LEVEL 2+ */

    .main-nav ul li ul li {
        width: 100%;
        position: relative;
    }

        .main-nav ul li ul li ul {
            position: absolute;
            top: 0px; /* چسبیدن به بالای زیرمنوی اصلی */
            right: calc(100% - 1px);
            min-width: 260px;
            background: rgba(236,244,250,.95);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(18,59,93,.08);
            /* گوشه بالا چپ تیز */
            border-radius: 18px 0 18px 18px;
            box-shadow: 0 10px 35px rgba(0,0,0,.08);
            padding: 10px 0;
            display: none;
            flex-direction: column;
            z-index: 1000;
        }

        .main-nav ul li ul li:hover > ul {
            display: flex;
        }

        .main-nav ul li ul li a {
            width: 100%;
            padding: 14px 25px;
            font-size: 18px;
            font-weight: 500;
            color: #0B3954;
        }

            .main-nav ul li ul li a::after {
                display: none !important;
            }

            .main-nav ul li ul li a:hover {
                background: rgba(255,255,255,.4);
                border-radius: 14px;
            }

        /* فلش آیتم هایی که زیرمنو دارند */

        .main-nav ul li ul li.has-submenu > a .menu-icon {
            transform: rotate(180deg);
        }
}

/* ========================= LOGIN BUTTON (MINIMAL & ELEGANT) ========================== */
.login-box {
    margin-right: 30px;
}

    .login-box a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 26px;
        font-size: clamp(13px, 0.9vw, 15px);
        font-weight: 600;
        color: #0B3954;
        text-decoration: none;
        background: transparent;
        border: 1.5px solid #0B3954;
        border-radius: 30px;
        transition: background-color .25s ease, color .25s ease;
    }
@media (min-width: 992px) {
    .login-box {
        margin-right: 30px;
        margin-bottom: 16px; /* معادل padding-bottom اضافه‌ی آیتم‌های منو */
    }
}


        .login-box a:hover {
            background: #0B3954;
            color: #ffffff;
        }

        .login-box a:active {
            background: #082a3f;
            color: #ffffff;
        }

/* نسخه داخل منوی موبایل */
.mobile-login {
    display: none; /* در دسکتاپ مخفی */
    padding: 22px 25px 30px;
    border-top: 1px solid #dbe7f1;
    margin-top: 10px;
}

    .mobile-login a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 17px;
        font-weight: 600;
        color: #ffffff;
        background: #0B3954;
        border: 1.5px solid #0B3954;
        border-radius: 30px;
        text-decoration: none;
        transition: background-color .25s ease;
    }

        .mobile-login a:hover,
        .mobile-login a:active {
            background: #082a3f;
        }

@media (max-width: 991px) {
    .mobile-login {
        display: block;
    }
}
/* در دسکتاپ مخفی */
.mobile-login {
    display: none;
}

/* داخل منوی همبرگری موبایل */


    .main-nav > ul {
        flex: 1 1 auto;
    }
    @media (max-width: 991px) {
        .header-right .main-nav {
            display: flex;
            flex-direction: column;
        }

        .mobile-login {
            display: block;
            margin-top: auto;
            padding: 16px 20px;
            border-top: 1px solid #dbe7f1;
        }

            .mobile-login a {
                display: block;
                width: 100%;
                text-align: center;
                padding: 10px 22px;
                background: transparent;
                color: #0B3954;
                border: 1.5px solid #0B3954;
                border-radius: 30px;
                font-size: 15px;
                font-weight: 500;
                text-decoration: none;
                transition: all 0.25s ease;
            }

                .mobile-login a:hover,
                .mobile-login a:active {
                    background: #0B3954;
                    color: #fff;
                }
    }


/* ========================= HAMBURGER ========================== */

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 10001;
}

    .menu-toggle img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

/* ===== MOBILE NAV HEADER ===== */
.mobile-nav-header {
    display: none;
}



/* ========================= MOBILE & TABLET ========================== */

@media(max-width:991px) {

    #header.new-header {
        padding: 18px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

        .menu-toggle.hide {
            opacity: 0;
            visibility: hidden;
        }

    .header-right {
        order: 2;
        margin-right: auto;
    }

    .logo-img {
        width: 75px;
    }

    .login-box {
        display: none;
    }

    .header-right .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: #F3FAFF;
        padding: 0;
        box-sizing: border-box;
        transition: .4s ease;
        z-index: 10002 !important;
        overflow-y: auto;
        display: block;
        filter: none !important;
    }

        .header-right .main-nav.active {
            right: 0;
        }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        border-bottom: 1px solid #dbe7f1;
        background: #F3FAFF;
        direction: rtl;
    }

    .mobile-menu-close {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .mobile-menu-close img {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }

    .mobile-nav-header .mobile-logo img {
        width: 65px;
        height: auto;
        object-fit: contain;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 0 25px;
        box-sizing: border-box;
    }

        .main-nav ul li {
            width: 100%;
            border-bottom: 1px solid #dbe7f1;
            position: relative;
        }

            .main-nav ul li a {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 18px 0 22px 0 !important;
                font-size: 22px;
                font-weight: 500;
                color: #0B3954;
                position: relative;
            }

        .main-nav ul > li.has-submenu > a::after {
            content: '';
            position: absolute;
            bottom: 8px;
            right: 0;
            width: 0;
            height: 3px;
            background-color: #0B3954;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .main-nav ul li.open > a::after {
            width: 100%;
        }

        .main-nav ul li.open > a .menu-icon {
            transform: rotate(90deg) !important;
        }

        .main-nav ul li ul li a::after {
            display: none !important;
        }

        .main-nav ul li ul {
            position: static;
            display: none;
            width: 100%;
            background: #edf4fa;
            box-shadow: none;
            border-radius: 12px;
            margin-bottom: 12px;
            padding: 8px 0;
            min-width: 100%;
            overflow: hidden;
        }

        .main-nav ul li:hover ul {
            display: none;
        }

        .main-nav ul li.open > ul {
            display: flex !important;
            flex-direction: column;
        }

        .main-nav ul li ul li {
            border-bottom: none;
        }

       
           @media(max-width:991px){

    .main-nav ul li ul{
        width:100%;
        box-sizing:border-box;
        overflow:hidden;
    }

    .main-nav ul li ul li ul{
        width:100%;
        max-width:100%;
        margin:8px 0 8px 0;
        padding:0;
        box-sizing:border-box;
        overflow:hidden;
        background:#e6eef6;
        border-radius:10px;
    }
        .main-nav ul li ul li a {
            padding: 12px 18px !important;
            font-size: 18px;
            font-weight: normal;
        }
    

}

            .main-nav ul li ul li.open > ul {
                display: flex !important;
                flex-direction: column;
            }

            .main-nav ul li ul li.has-submenu > a .menu-icon {
                transition: .3s;
            }

            .main-nav ul li ul li.open > a .menu-icon {
                transform: rotate(90deg);
            }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    font-family: Vazir, IRANSans, sans-serif;
    direction: rtl;
    background: transparent;
    margin-top: 60px;
}

.footer-wave {
    display: block;
    line-height: 0;
    margin-bottom: -2px;
}

    .footer-wave svg {
        width: 100%;
        height: 60px;
        display: block;
    }

.footer-main {
    background: #0B3954;
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 0.9fr 1.6fr;
    gap: 44px;
    align-items: start;
}

/* === ستون لوگو === */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 6px;
    /* روشن کردن لوگو */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 2;
    margin: 0 0 24px 0;
}

/* نمادهای اعتماد */
.footer-trust-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.trust-badge {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    overflow: hidden;
}

    .trust-badge:hover {
        background: rgba(255,255,255,0.22);
        border-color: rgba(255,255,255,0.45);
        transform: translateY(-2px);
    }

    .trust-badge img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        /* روشن کردن کامل آیکون */
        filter: brightness(0) invert(1);
        opacity: 1;
    }

/* === عناوین ستون‌ها === */
.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 22px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5BB8F5;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(91,184,245,0.6);
}

/* === لینک‌ها === */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .footer-links li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

        .footer-links li:last-child {
            border-bottom: none;
        }

        .footer-links li a {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.65);
            text-decoration: none;
            font-size: 14px;
            padding: 10px 0;
            transition: color 0.25s, padding-right 0.25s;
            position: relative;
        }

            .footer-links li a::before {
                content: '›';
                font-size: 18px;
                color: #5BB8F5;
                opacity: 0;
                transition: opacity 0.25s;
                line-height: 1;
                flex-shrink: 0;
            }

            .footer-links li a:hover {
                color: #ffffff;
                padding-right: 6px;
            }

                .footer-links li a:hover::before {
                    opacity: 1;
                }

/* === لیست تماس === */
.footer-contact-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

    .footer-contact-list > li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

        .footer-contact-list > li:last-child {
            border-bottom: none;
        }

/* آیکون تماس — رنگ‌بندی متفاوت برای هر نوع */
.contact-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(91,184,245,0.18);
    border: 1px solid rgba(91,184,245,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.3s;
}

/* پشتیبانی — رنگ سبز آبی */
.contact-icon-wrap--support {
    background: rgba(45,200,155,0.15);
    border-color: rgba(45,200,155,0.28);
}

/* ایمیل — رنگ بنفش ملایم */
.contact-icon-wrap--email {
    background: rgba(170,130,255,0.15);
    border-color: rgba(170,130,255,0.28);
}

/* آدرس تهران */
.contact-icon-wrap--location {
    background: rgba(255,165,80,0.15);
    border-color: rgba(255,165,80,0.28);
}

/* آدرس یزد */
.contact-icon-wrap--location2 {
    background: rgba(255,100,100,0.12);
    border-color: rgba(255,100,100,0.25);
}

.contact-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* روشن کردن آیکون‌های تماس */
    filter: brightness(0) invert(1);
    opacity: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 13.5px;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    word-break: break-word;
}

.ltr-val {
    direction: ltr;
    text-align: right;
    display: block;
}

/* === شبکه‌های اجتماعی === */
.footer-social {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
}

.social-title {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.22s;
    text-decoration: none;
}

/* رنگ hover اختصاصی هر شبکه */
.social-link--insta:hover  { background: rgba(228,64,95,0.25);  border-color: rgba(228,64,95,0.5);  }
.social-link--telegram:hover { background: rgba(41,182,246,0.25); border-color: rgba(41,182,246,0.5); }
.social-link--whatsapp:hover { background: rgba(37,211,102,0.25); border-color: rgba(37,211,102,0.5); }
.social-link--eitaa:hover    { background: rgba(255,160,50,0.22); border-color: rgba(255,160,50,0.45); }

.social-link:hover {
    transform: translateY(-4px);
}

.social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    /* روشن کردن آیکون‌های سوشال */
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}

.social-link:hover img {
    opacity: 1;
}

/* === نوار پایین === */
.footer-bottom {
    background: rgba(0,0,0,0.28);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

    .footer-bottom-links a {
        color: rgba(255,255,255,0.45);
        text-decoration: none;
        transition: color 0.25s;
    }

        .footer-bottom-links a:hover {
            color: #ffffff;
        }

    .footer-bottom-links .separator {
        color: rgba(255,255,255,0.18);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px 44px;
    }
}

@media (max-width: 640px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-container {
        padding: 0 22px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
.social-link--eitaa img {
    filter: brightness(0) invert(1);
}
