/* Theme Name: DMHouse Theme
Theme URI: https://elementor.com/
Description: DMHouse Custom Theme based on Hello Elementor
Author: DMHouse Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.5.5
Text Domain: dmhouse-theme
License: GNU General Public License v3 or later.
*/

/* --- تنظیمات پایه --- */
body {
    /*direction: rtl;*/
    /*text-align: right;*/
    font-family: "IranYekan", sans-serif;
    overflow-x: hidden;
}

.site-main-header, .site-main-footer {
    width: 100%;
    direction: rtl;
}

/* --- هدر --- */
@media screen and (min-width: 769px) {
    .site-main-header{
    position: sticky;
    top: 0;
    z-index: 99;
    bottom: auto;
    }
}
@media screen and (max-width: 768px) {
    .site-main-header{
    position: sticky;
    top: 0;
    z-index: 99;
    bottom: auto;
    }
}
.site-main-header .header-sticky {
    background-color: #ffffff;
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
    border-radius: 0px 0px 15px 15px;
    z-index: 90;
    position: relative;
}
.site-main-header .logo-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-main-header .header-menus-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
}

/* پوزیشن relative برای لنگر شدن مگامنو ضروری است */
.site-main-header .header-main-wrapper {
    max-width: var(--dm-container-max-width, 1300px);
    margin: 0 auto;
    position: relative;
}

.site-main-header .header-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 90px;
}

.site-main-header .logo-box img {
    max-height: 65px;
    width: auto;
    display: block;
}
.site-main-header img {
    max-height: 37px;
    width: auto;
    display: block;
}

/* --- مگامنو (استایل مشابه سایت مرجع) --- */
.site-main-header .mega-menu-wrapper {
    position: static;
    /*border-left: 1px solid #cccccca6;*/
    height: 90px; /* اضافه شدن ارتفاع کامل هدر */
    display: flex; /* برای وسط‌چین ماندن دکمه */
    align-items: center;
}

@media (max-width: 992px) {
.site-main-header .mega-menu-wrapper {
    display:none;
}
}
.site-main-header .mega-menu-wrapper::after {
    content:"";
    background:#cccccca6;
    height: 35px;
    width: 1px;
}

.site-main-header .mega-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #333;
    font-size: 14px;
    /* height: 90px; */
    background: #f8f8f8;
    border-radius: 10px;
    padding: 8px 10px 8px 13px;
    margin-right: 20px;
    margin-left: 15px;
}

.site-main-header .mega-menu-trigger img {
    width: 24px;
}

.site-main-header .mega-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: none;
    z-index: 1000;
    border-top: 2px solid var(--dm-primary-color, #2F2E96) ;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    min-height: 450px;
}

.site-main-header .mega-menu-wrapper:hover .mega-menu-dropdown {
    display: block;
}

/* ساختار کلی لیست مگامنو */
.site-main-header .mega-menu-list {
    display: flex;
    flex-direction: column;
    width: 240px;
    background: #f9f9f9;
    min-height: 450px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* سطح ۱: سایدبار سمت راست */
.site-main-header .mega-menu-list > .menu-item {
    position: static; /* مهم: برای تمام‌عرض شدن زیرمنوها */
    border-bottom: 1px solid #f0f0f0;
}

.site-main-header .mega-menu-list > .menu-item > a {
    display: block;
    padding: 16px 20px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.site-main-header .mega-menu-list > .menu-item:hover > a {
    background: #fff;
    color: var(--dm-primary-color, #2F2E96) ;
}

/* خط نشانگر اکتیو در هاور تب */
.site-main-header .mega-menu-list > .menu-item:hover > a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 2px;
    background: var(--dm-primary-color, #2F2E96) ;
}

/* سطح ۲ و ۳: باکس محتوای زیرمنوها */
.site-main-header .mega-menu-list > .menu-item > .sub-menu {
    position: absolute;
    top: 0;
    right: 240px;
    left: 0;
    bottom: 0;
    background: #fff;
    display: none;
    padding: 20px;
    list-style: none;
    margin: 0;
    overflow-y: auto;
}

.site-main-header .mega-menu-list > .menu-item:hover > .sub-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-content: start;
}

/* پیش‌فرض: زیرمنوی اولین دسته باز است (تا کاربر هنوز روی دسته‌ای هاور نکرده) */
.site-main-header .mega-menu-list > .menu-item:first-child > .sub-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-content: start;
}

/* با ورود ماوس به لیست، زیرمنوی پیش‌فرضِ اولی بسته شود */
.site-main-header .mega-menu-list:hover > .menu-item:first-child > .sub-menu {
    display: none;
}

/* زیرمنوی دستهٔ هاورشده باز شود — این قانون بعد از قانون بالا می‌آید تا روی خودِ دستهٔ اول هم هنگام هاور برنده شود */
.site-main-header .mega-menu-list:hover > .menu-item:hover > .sub-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-content: start;
}

/* سطح ۲: تیتر ستون‌ها */
.site-main-header .mega-menu-list .sub-menu > .menu-item {
    width: 100%;
}
.site-main-header .mega-menu-list > .menu-item > .sub-menu > .menu-item > a {
    margin-bottom: 5px;
}
.site-main-header .mega-menu-list .sub-menu li{
    border-left: 1px solid #f0f0f0;
}
/*.site-main-header .mega-menu-list .sub-menu > .menu-item:last-child {*/
/*    border-left: none;*/
/*}*/

.site-main-header .mega-menu-list .sub-menu > .menu-item > a {
   display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 15px;
    color: #222;
    /*margin-bottom: 5px;*/
    text-decoration: none;
}

/* آیکون فلش کنار تیترهای سطح ۲ */
.site-main-header .mega-menu-list .sub-menu > .menu-item > a::before {
    content: "\203A"; 
    font-size: 20px;
    margin-left: 8px;
    color: var(--dm-primary-color, #2F2E96) ; /* رنگ آبی برای هماهنگی بیشتر */
    line-height: 1;
    
}

/* سطح ۳: لینک‌های نهایی */
.site-main-header .mega-menu-list .sub-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-main-header .mega-menu-list .sub-menu .sub-menu > .menu-item > a {
    display: block;
    padding: 6px 0;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.site-main-header .mega-menu-list .sub-menu .sub-menu > .menu-item > a:hover {
    color: var(--dm-primary-color, #2F2E96) ;
}

/* --- منوی عادی بالا --- */
.site-main-header .navbar-top .main-menu-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-main-header .navbar-top .main-menu-list > .menu-item {
    position: relative;
}

.site-main-header .navbar-top .main-menu-list > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #7c7c7c;
    text-decoration: none;
    padding: 8px 12px;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-main-header .navbar-top .main-menu-list > .menu-item > a:hover,
.site-main-header .navbar-top .main-menu-list > .menu-item:hover > a {
    color: var(--dm-primary-color, #2F2E96);
}

/* فلش پایین کنار آیتم‌های دارای زیرمنو */
.site-main-header .navbar-top .main-menu-list > .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-right: 4px;
    transition: transform 0.2s;
}

.site-main-header .navbar-top .main-menu-list > .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* --- دراپ‌داون منوی بالا --- */
.site-main-header .navbar-top .main-menu-list > .menu-item > .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--dm-primary-color, #2F2E96);
    border-radius: 0 0 10px 10px;
    list-style: none;
    padding: 8px 0 6px;
    margin: 0;
    display: none;
    z-index: 999;
}

/* پل شفاف برای رفع قطعی هاور بین تریگر و دراپ‌داون */
.site-main-header .navbar-top .main-menu-list > .menu-item > .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 0;
    left: 0;
    height: 6px;
}

.site-main-header .navbar-top .main-menu-list > .menu-item:hover > .sub-menu {
    display: block;
}

.site-main-header .navbar-top .main-menu-list > .menu-item > .sub-menu > .menu-item > a {
    display: block;
    padding: 10px 18px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.site-main-header .navbar-top .main-menu-list > .menu-item > .sub-menu > .menu-item > a:hover {
    color: var(--dm-primary-color, #2F2E96);
    background: #f5f5ff;
}

/* زیرمنوی سطح سوم */
.site-main-header .navbar-top .main-menu-list .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--dm-primary-color, #2F2E96);
    border-radius: 0 0 10px 10px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    z-index: 999;
}

.site-main-header .navbar-top .main-menu-list .sub-menu .menu-item:hover > .sub-menu {
    display: block;
}

/* خط جداکننده آیتم‌ها */
.site-main-header .navbar-top .main-menu-list > .menu-item > .sub-menu > .menu-item + .menu-item {
    border-top: 1px solid #f5f5f5;
}

/* --- هدر دوردیفه (دسکتاپ) --- */
@media (min-width: 992px) {
    .site-main-header.header-two-row .header-content-row {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0 0;
        gap: 0;
    }

    .site-main-header.header-two-row .mobile-menu-trigger {
        display: none;
    }

    /* ردیف اول: لوگو + سرچ + شماره */
    .site-main-header.header-two-row .logo-box {
        order: 1;
        flex: 0 0 auto;
        padding: 0px 0;
    }

    .site-main-header.header-two-row .search-form-wrapper {
        order: 2;
        flex: 1;
        max-width: 400px;
        margin: 0 20px;
    }

    .site-main-header.header-two-row .contact-call-header {
        order: 3;
        flex: 0 0 auto;
        margin-inline-start: auto;
    }

    /* ردیف دوم: منوها، عرض کامل */
    .site-main-header.header-two-row .header-menus-wrap {
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        border-top: 1px solid #f0f0f0;
        height: 55px;
        align-items: center;
    }

    .site-main-header.header-two-row .mega-menu-wrapper {
        height: 55px;
    }

    .site-main-header.header-two-row .mega-menu-trigger {
        padding: 10px 10px 10px 13px;
    }

    .site-main-header.header-two-row .navbar-top {
        display: flex;
        align-items: center;
    }

    .site-main-header.header-two-row .navbar-top .main-menu-list > .menu-item > a {
        padding: 11px 12px;
        display: flex;
        align-items: center;
    }
}

/* --- باکس جستجو --- */
.site-main-header .search-form-wrapper {
    flex-grow: 1;
    max-width: 300px;
}

.site-main-header .search-field {
    display: flex;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.site-main-header .searchTerm {
    border: none;
    background: transparent;
    padding: 12px 15px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.site-main-header .searchButton {
    background: var(--dm-primary-color, #2F2E96) ;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.site-main-header .searchButton img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* --- دکمهٔ آیکونی جستجو (حالت مودال) --- */
.site-main-header .search-form-wrapper {
    display: flex;
    align-items: center;
}

.site-main-header .search-modal-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    cursor: pointer;
    flex: 0 0 auto;
}

.site-main-header .search-modal-trigger img {
    width: 18px;
}

.site-main-header .search-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
}

.site-main-header .search-modal.is-open {
    display: block;
}

.site-main-header .search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 28, .55);
}

.site-main-header .search-modal-box {
    position: relative;
    max-width: 640px;
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.site-main-header .search-modal-field {
    display: flex;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.site-main-header .search-modal-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.site-main-header .search-modal-submit {
    background: var(--dm-primary-color, #2F2E96);
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.site-main-header .search-modal-submit img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.site-main-header .search-modal-close {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #131327;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

@media (max-width: 600px) {
    .site-main-header .search-modal-box {
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        border-radius: 0;
    }
}

/* --- بخش تماس --- */
.site-main-header .contact-call-header a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.site-main-header .contact-call-header p {
    margin: 0;
    font-weight: 800;
    font-size: 16px;
    color: #333;
}

.site-main-header .contact-call-header .pish-shomare {
    color: var(--dm-accent-color, #da0037);
}

/* --- فوتر --- */
.site-main-footer {
    background-color: #f8f8f875;
    padding: 0px 0 20px;
    margin-top: 80px;
    /*border-radius: 20px 20px 0px 0px;*/
    border-top:1px solid #cccccc26;
}

.site-main-footer .logo-box img{
    width:80px !important;
    height: auto;
    border-radius:10px;
}
.site-main-footer .Footer-section {
    display: flex;
    max-width: var(--dm-container-max-width, 1300px);
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: space-between;
}
.site-main-footer .Footer-section img{
    width:18px;
    height: auto;
}
.site-main-footer .Footer-section .Footer-section4 .dm-flex{
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-main-footer .Footer-section .Footer-section4 .dm-flex svg{
        fill:var(--dm-primary-color, #2F2E96);
}
.site-main-footer .Footer-section .Footer-section4 .dm-flex span{
        color: #333;
        font-size:14px;
        line-height: 1.8em;

}
.site-main-footer .Footer-section .Footer-section4 .dm-flex p{
        margin: 5px 0px;
        color: #7c7c7c;
        font-size:14px;
        line-height: 1.8em;

}
.site-main-footer .Footer-section .social-icons{
    margin-top:10px;
}
.site-main-footer .Footer-section .social-icons img{
    width:25px;
    height: auto;
}
.site-main-footer .Footer-section .dm-namad{
    display:flex;
    gap:5px;
    padding:8px 0px;
}
.site-main-footer .Footer-section .dm-namad img{
    width:60px;
    height: auto;
    border-radius:5px;
}
.site-main-footer .Footer-section-titr {
    color: #333;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 20px;
}

.Footer-section1 .Footer-section-titr {
    color: #333;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 20px;
    margin-top:10px;
}

.site-main-footer .footer-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0px;
    line-height: 1.8em;
}
.site-main-footer .Footer-section1 .dm-about-us-cta{
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--dm-primary-color, #2F2E96);
    padding: 8px 5px;
    margin-top: 6px;
    display: inline-block;
    color:var(--dm-primary-color, #2F2E96);
    transition:all 0.5s ease;
}
.site-main-footer .Footer-section1 .dm-about-us-cta:hover{
    background:var(--dm-accent-color, #da0037);
    color:#fff;
    border-radius:5px;
    border-color:var(--dm-accent-color, #da0037);
    transition:all 0.5s ease;
}

.site-main-footer .Footer-section-titr::after {
    content: "";
    display: block;
    width: 30px;
    height: 4px;
    background: var(--dm-primary-color, #2F2E96) ;
    margin-top: 8px;
    border-radius: 2px;
}

.site-main-footer .footer-list-nav {
    list-style: none;
    padding: 0;
}

.site-main-footer .footer-list-nav li {
    margin-bottom: 12px;
}

.site-main-footer .footer-list-nav a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
}

/* --- ریسپانسیو --- */
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

@media (min-width: 992px) {
    .px-lg-0 { padding-left: 0; padding-right: 0; }
    .site-main-footer .Footer-section1 { width: 30%; }
    .site-main-footer .Footer-section2, .site-main-footer .Footer-section3 { width: 18%; }
    .site-main-footer .Footer-section4 { width: 28%; }
}

@media (min-width: 993px) {
    /* توجه: این بلوک فقط حالت تک‌ردیفه را هدف می‌گیرد؛ در حالت دوردیفه header-content-row
       باید height:auto بماند وگرنه دو ردیف داخلش روی هم می‌افتند و بکگراند می‌شکند. */
    .site-main-header.is-sticky-scrolled:not(.header-two-row) .header-content-row {
        height: 64px;
    }

    .site-main-header.is-sticky-scrolled:not(.header-two-row) .logo-box img {
        max-height: 42px;
    }

    .site-main-header.is-sticky-scrolled:not(.header-two-row) .mega-menu-wrapper {
        height: 64px;
    }

    .site-main-header.is-sticky-scrolled .searchTerm {
        padding: 8px 15px;
    }

    .site-main-header.header-two-row.is-sticky-scrolled .logo-box {
        padding: 6px 0;
    }

    .site-main-header.header-two-row.is-sticky-scrolled .logo-box img {
        max-height: 38px;
    }

    .site-main-header.header-two-row.is-sticky-scrolled .header-menus-wrap {
        height: 34px;
    }

    .site-main-header.header-two-row.is-sticky-scrolled .mega-menu-wrapper {
        height: 28px;
    }

    /* آیتم‌های منو (از جمله دکمهٔ سفارش آنلاین آهن) با padding اندازه می‌گیرند نه height ثابت؛
       اگر فقط height کم شود ولی padding پایه (11px) دست‌نخورده بماند، box-sizing:content-box
       آن padding را روی همان height قدیمی اضافه می‌کند و دکمه واقعاً کوچک نمی‌شود. */
    .site-main-header.header-two-row.is-sticky-scrolled .navbar-top .main-menu-list > .menu-item > a {
        padding: 3px 12px;
    }

    /* پدینگ پیش‌فرض 13px دکمه (جمعاً حدود 50px) داخل ردیف جمع‌شدهٔ 28px جا نمی‌شود؛
       فقط در حالت اسکرول‌شده کوچک‌تر می‌شود، حالت اولیه (غیر اسکرول) دست‌نخورده می‌ماند. */
    .site-main-header.header-two-row.is-sticky-scrolled .mega-menu-trigger {
        padding: 4px 10px 4px 13px;
    }

    .site-main-header.header-two-row.is-sticky-scrolled .mega-menu-trigger img {
        width: 18px;
    }
}

@media (max-width: 991px) {
    .site-main-header .header-content-row { height: 70px; }
    .site-main-header .navbar-top, 
    .site-main-header .mega-menu-trigger span,
    .site-main-header .contact-call-header p { display: none; }
    .site-main-header .search-form-wrapper { max-width: 200px; }
    
    .site-main-footer .Footer-section {text-align: center; }
    .site-main-footer .Footer-section > div { width: 100%; margin-bottom: 30px; }
    .site-main-footer .Footer-section-titr::after { margin: 8px auto; }
}

/* استفاده از کلاس والد برای جلوگیری از تداخل */

.site-main-footer .dm-contact-box{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fcfcfc;
    border-radius: 15px;
    padding: 15px 30px;
    box-shadow: 0px 12px 24px -3px #11111110;
    margin-top: -50px;
    margin-bottom: 50px;
}
.site-main-footer .dm-contact-box .contact-text-box{
    position:relative;
}
.site-main-footer .dm-contact-box .contact-text-box::before{
    content: "";
    height: 45px;
    width: 3px;
    position: absolute;
    background: var(--dm-primary-color, #2f2e96);
    top: 7px;
    right: -10px;
    border-radius: 15px;
}


.site-main-footer .dm-contact-box .dm-contact-title{
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8em;
    margin: 0;
}
.site-main-footer .dm-contact-box .dm-contact-title span{
    color:var(--dm-primary-color, #2f2e96);
    font-weight: 900;
}
.site-main-footer .dm-contact-box .dm-contact-dec{
        font-size: 14px;
    line-height: 1.8em;
    margin: 0;
    font-weight: 500;
    color: #7c7c7c;
}

.footer-subscription-wrapper .footer-form-inline {
    direction: rtl;
    max-width: 300px;
    width: 300px;
    font-family: inherit;
    position: relative;
}

.footer-subscription-wrapper .input-group {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #e2e2e2;
    padding: 5px 0px;
    transition: border-color 0.3s;
}

.footer-subscription-wrapper .input-group:focus-within {
    border-color: #007bff; /* رنگ سازمانی آدرین فولاد */
}

.footer-subscription-wrapper input[type="tel"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 5px;
    font-size: 14px;
    outline: none;
    color: inherit;
    text-align: right;
    font-family: inherit;
}

.footer-subscription-wrapper button {
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    background: var(--dm-accent-color, #da0037);
    color: #fff;
    fill: #fff;
    font-size: 14px;
    font-family: inherit;
    border-radius: 5px;
    gap: 15px;
}

.footer-subscription-wrapper button:hover {
    transform: scale(1.1);
}

.footer-subscription-wrapper svg {
    width: 20px;
    height: 20px;
    transform: scaleX(-1); /* برای جهت درست در RTL */
}

.footer-subscription-wrapper .form-status-msg {
    font-size: 12px;
    /*margin-top: 8px;*/
    min-height: 18px;
    position: absolute;
        background: #fcfcfc;
}
.site-main-footer .Footer-section .autor-box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    border-top: 1px solid #cccccc;
    margin-top: 30px;
    padding-top: 12px;
}
.site-main-footer .Footer-section .autor-box p{
    margin:0px;
    line-height:1.8em;
    color:#7c7c7c;
    font-size:14px;
}
.site-main-footer .Footer-section .autor-box a{
    margin:0px;
    line-height:1.8em;
    color:#7c7c7c;
    font-size:14px;
    text-decoration: none;
}
.site-main-footer .Footer-section .autor-box a:hover{
    margin:0px;
    line-height:1.8em;
    color:#ec134f;
    font-size:14px;
    text-decoration: none;
}
@media screen and (max-width: 800px) {
    .site-main-footer .dm-contact-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding:10px 0px;
}
.Footer-section{
    padding:10px;
}

.site-main-footer .dm-contact-box .contact-text-box::before{
    display:none;
}

.site-main-footer .dm-contact-box .contact-text-box {
    position: relative;
    padding: 10px;
}
.site-main-footer .Footer-section .Footer-section2 ,.site-main-footer .Footer-section .Footer-section3{
       width: 47%; 
}

.site-main-footer .Footer-section-titr {
    color: #333;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 10px;
}

.site-main-footer .footer-list-nav li a{
    font-size:12px;
}
.site-main-footer .Footer-section .dm-namad{
    justify-content: center;
}
.site-main-footer .Footer-section .autor-box{
    flex-direction: column;
    gap:5px;
    margin-bottom: 0px;
}
    
}


.site-main-header .d-lg-none {
    display: none;
}

@media (max-width: 991px) {
    .site-main-header .d-lg-none {
        display: block;
    }
    
    .site-main-header .mobile-menu-trigger {
        cursor: pointer;
        padding: 5px;
    }
    
    .site-main-header .mobile-menu-trigger img {
        width: 24px;
        height: auto;
    }

    .site-main-header .logo-box {
        flex-grow: 1;
        justify-content: center;
    }

    .site-main-header .mobile-offcanvas-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        z-index: 99999;
        display: flex;
        transition: right 0.4s ease-in-out;
    }

    .site-main-header .mobile-offcanvas-menu.is-open {
        right: 0;
    }

    .site-main-header .offcanvas-overlay {
        flex: 1;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .site-main-header .mobile-offcanvas-menu.is-open .offcanvas-overlay {
        opacity: 1;
        visibility: visible;
    }

    .site-main-header .offcanvas-content {
        width: 360px;
        max-width: 88%;
        background: #fff;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        box-shadow: -8px 0 30px rgba(0,0,0,0.12);
        border-radius: 16px 0 0 16px;
    }

    .site-main-header .offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid #f0f0f0;
        background: #fafbff;
    }

    .site-main-header .offcanvas-header .logo-box img {
        max-height: 42px;
        width: auto;
    }

    .site-main-header .offcanvas-close {
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
        color: #64748b;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .site-main-header .offcanvas-close:active {
        background: #e2e8f0;
        color: var(--dm-primary-color, #2F2E96);
    }

    .site-main-header .offcanvas-tabs {
        display: flex;
        gap: 6px;
        padding: 10px 14px;
        border-bottom: 1px solid #f0f0f0;
        background: #fafafa;
    }

    .site-main-header .tab-btn {
        flex: 1;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 11px 0;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
    }

    .site-main-header .tab-btn.active {
        color: #fff;
        background: var(--dm-primary-color, #2F2E96);
        border-color: var(--dm-primary-color, #2F2E96);
        box-shadow: 0 3px 10px rgba(47,46,150,0.25);
    }

    .site-main-header .offcanvas-body {
        padding-top: 8px;
        padding-bottom: 30px;
    }

    .site-main-header .tab-content {
        display: none;
    }

    .site-main-header .tab-content.active {
        display: block;
    }

    .site-main-header .mobile-accordion-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .site-main-header .mobile-accordion-list li {
        position: relative;
    }

    .site-main-header .mobile-accordion-list > li {
        border-bottom: 1px solid #f1f5f9;
    }

    .site-main-header .mobile-accordion-list a {
        display: flex;
        align-items: center;
        padding: 14px 4px;
        color: #1e293b;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        min-height: 24px;
    }

    .site-main-header .mobile-accordion-list .menu-item-has-children > a {
        padding-left: 48px;
    }

    .site-main-header .mobile-accordion-list .is-open > a {
        color: var(--dm-primary-color, #2F2E96);
    }

    .site-main-header .mobile-accordion-list .sub-menu {
        display: none;
        list-style: none;
        padding: 4px 14px 8px;
        margin: 0 0 8px;
        background: #f8fafc;
        border-right: 3px solid var(--dm-primary-color, #2F2E96);
        border-radius: 8px;
    }

    .site-main-header .mobile-accordion-list .sub-menu a {
        font-size: 13.5px;
        font-weight: 500;
        color: #475569;
        padding: 10px 6px;
        min-height: 18px;
    }

    .site-main-header .mobile-accordion-list .sub-menu a:active {
        color: var(--dm-primary-color, #2F2E96);
    }

    /* دکمهٔ آکاردئون به ردیف اولِ آیتم پین می‌شود (نه وسط کل li که با باز شدن زیرمنو بزرگ می‌شود) */
    .site-main-header .accordion-toggle-btn {
        position: absolute;
        left: 0;
        top: 8px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #94a3b8;
        background: #f1f5f9;
        border-radius: 8px;
        transition: color 0.2s, background 0.2s;
        z-index: 2;
    }

    /* زیرمنوهای تودرتو ردیف کوتاه‌تری دارند */
    .site-main-header .mobile-accordion-list .sub-menu .accordion-toggle-btn {
        top: 5px;
        width: 30px;
        height: 30px;
    }

    .site-main-header .accordion-toggle-btn svg {
        transition: transform 0.25s;
    }

    .site-main-header .menu-item-has-children.is-open > .accordion-toggle-btn {
        color: #fff;
        background: var(--dm-primary-color, #2F2E96);
    }

    .site-main-header .menu-item-has-children.is-open > .accordion-toggle-btn svg {
        transform: rotate(180deg);
    }

    /* آیکن SVG آیتم‌های منو در حالت موبایل */
    .site-main-header .mobile-accordion-list .dmhouse-menu-icon {
        width: 22px;
        height: 22px;
        margin-left: 10px;
        flex-shrink: 0;
    }
}

/* --- آیکن SVG آیتم‌های منو (مگامنو) --- */
.site-main-header .dmhouse-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.site-main-header .dmhouse-menu-icon svg,
.site-main-header .dmhouse-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-main-header .mega-menu-list > .menu-item > a,
.site-main-header .mobile-accordion-list .menu-item > a {
    display: flex;
    align-items: center;
}
