
body:has(#chakad-shahan-global-footer) footer#colophon,
body:has(#chakad-shahan-global-footer) .site-footer:not(.cs-footer),
body:has(#chakad-shahan-global-footer) .elementor-location-footer:not(#chakad-shahan-global-footer *){display:none!important}

.cs-footer{
    --cf-text:#E5E9ED;
    --cf-heading:#FFFFFF;
    --cf-accent:#E5AA3B;
    --cf-divider:rgba(255,255,255,.12);
    width:100%;
    background:#032743!important;
    color:var(--cf-text);
    direction:rtl;
    overflow:hidden;
    font-family:var(--chakad-font-family,"IRANYekanX","IRANYekan",Tahoma,sans-serif);
}
.cs-footer *{box-sizing:border-box}
.cs-footer a{text-decoration:none!important}
.cs-footer-inner{
    width:min(1480px,calc(100% - 64px));
    margin:0 auto;
    padding:36px 0 22px;
}

/* Physical layout = approved concept:
   left: brand | center: menus | right: contact */
.cs-footer-main{
    direction:ltr;
    display:grid;
    grid-template-columns:1.05fr 1.55fr 1fr;
    grid-template-areas:"brand navs contact";
    gap:64px;
    align-items:start;
}
.cs-footer-brand{
    grid-area:brand;
    direction:rtl;
    text-align:center;
}
.cs-footer-navs{
    grid-area:navs;
    direction:rtl;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
}
.cs-footer-contact{
    grid-area:contact;
    direction:rtl;
    text-align:right;
}

.cs-footer-logo{
    display:block;
    max-width:100%;
    height:auto;
    object-fit:contain;
    margin:0 auto 8px;
}
.cs-footer-tagline{
    color:var(--cf-text)!important;
    font-size:15px;
    line-height:1.8;
}

/* HARD RESET against theme button styles (pink/red artifact). */
.cs-footer .cs-footer-title,
.cs-footer button.cs-footer-title,
.cs-footer .cs-footer-title:hover,
.cs-footer .cs-footer-title:focus,
.cs-footer .cs-footer-title:active{
    -webkit-appearance:none!important;
    appearance:none!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0 0 12px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    background-image:none!important;
    color:var(--cf-heading)!important;
    font:inherit!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.6!important;
    text-align:right!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    cursor:default!important;
    text-decoration:none!important;
}
.cs-footer .cs-footer-title::before,
.cs-footer .cs-footer-title::after{
    content:none!important;
    display:none!important;
}
.cs-footer-chevron{display:none;color:var(--cf-accent)}

.cs-footer-links{list-style:none!important;padding:0!important;margin:0!important}
.cs-footer-links li{margin:0 0 8px!important;padding:0!important}
.cs-footer-links a,
.cs-footer-links a:visited{
    color:var(--cf-text)!important;
    font-size:13px!important;
    line-height:1.7!important;
    transition:color .18s ease!important;
}
.cs-footer-links a:hover{color:var(--cf-accent)!important}

.cs-footer-contact-heading{display:block!important}
.cs-contact-row{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    color:var(--cf-text)!important;
    font-size:13px;
    margin:0 0 10px;
}
.cs-contact-row:hover{color:var(--cf-accent)!important}
.cs-contact-icon{
    width:19px;
    height:19px;
    flex:0 0 19px;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.cs-contact-icon svg{
    width:18px;
    height:18px;
    display:block;
}
.cs-contact-text{direction:rtl}

.cs-footer-socials{
    display:flex;
    gap:18px;
    margin-top:15px;
    align-items:center;
}
.cs-footer-social,
.cs-footer-social:visited{
    color:#fff!important;
    line-height:1;
    display:inline-flex;
}
.cs-footer-social svg{
    width:1em;
    height:1em;
    fill:currentColor;
}
.cs-footer-social:hover{color:var(--cf-accent)!important}

.cs-footer-divider{
    height:1px;
    background:var(--cf-divider);
    margin:27px 0 18px;
}

/* Physical bottom layout = approved concept:
   left: trust badges | center: copyright | right: gold up button */
.cs-footer-bottom{
    direction:ltr;
    display:grid;
    grid-template-columns:1fr 2fr 1fr;
    grid-template-areas:"trust copy top";
    align-items:center;
    min-height:66px;
    gap:20px;
}
.cs-footer-trust{
    grid-area:trust;
    direction:ltr;
    display:flex;
    gap:18px;
    align-items:center;
    justify-content:flex-start;
}
.cs-footer-trust-item{
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.cs-footer-trust-item img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.cs-footer-copy{
    grid-area:copy;
    direction:rtl;
    text-align:center;
    font-size:12px;
    color:var(--cf-text)!important;
}

/* HARD RESET against global theme pink buttons. */
.cs-footer .cs-footer-top-btn,
.cs-footer .cs-footer-top-btn:hover,
.cs-footer .cs-footer-top-btn:focus,
.cs-footer .cs-footer-top-btn:active{
    grid-area:top;
    justify-self:end;
    -webkit-appearance:none!important;
    appearance:none!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    min-height:48px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:50%!important;
    outline:0!important;
    box-shadow:none!important;
    background:var(--cf-accent)!important;
    background-image:none!important;
    color:#163957!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    text-decoration:none!important;
}
.cs-footer .cs-footer-top-btn::before,
.cs-footer .cs-footer-top-btn::after{
    content:none!important;
    display:none!important;
}
.cs-footer-top-btn svg{
    width:23px;
    height:23px;
    display:block;
}
.cs-footer-top-btn:hover{transform:translateY(-3px)}

@media(max-width:1024px){
    .cs-footer-inner{width:calc(100% - 32px)}
    .cs-footer-main{
        grid-template-columns:1fr 1.45fr 1fr;
        gap:34px;
    }
    .cs-footer-navs{gap:24px}
}

@media(max-width:767px){
    .cs-footer-inner{
        width:calc(100% - 24px);
        padding:27px 0 18px;
    }
    .cs-footer-main{
        direction:rtl;
        display:flex;
        flex-direction:column;
        gap:20px;
    }
    .cs-footer-brand{
        width:100%;
        order:1;
        text-align:center;
    }
    .cs-footer-logo{
        max-width:190px!important;
        margin-inline:auto;
    }
    .cs-footer-tagline{font-size:12px}
    .cs-footer-navs{
        width:100%;
        order:2;
        display:block;
        border-top:1px solid var(--cf-divider);
    }
    .cs-footer-nav{border-bottom:1px solid var(--cf-divider)}
    .cs-footer .cs-footer-title,
    .cs-footer button.cs-footer-title{
        min-height:48px!important;
        margin:0!important;
        font-size:13px!important;
        cursor:pointer!important;
    }
    .cs-footer-chevron{
        display:block;
        font-size:18px;
        transition:transform .2s ease;
    }
    .cs-footer-nav-body{
        display:none;
        padding:0 0 12px;
    }
    .cs-footer-nav.is-open .cs-footer-nav-body{display:block}
    .cs-footer-nav.is-open .cs-footer-chevron{transform:rotate(180deg)}
    .cs-footer-contact{
        width:100%;
        order:3;
    }
    .cs-footer-contact-heading{
        min-height:auto!important;
        margin-bottom:12px!important;
        cursor:default!important;
    }
    .cs-contact-row{font-size:12px}
    .cs-footer-divider{margin:19px 0 14px}
    .cs-footer-bottom{
        direction:rtl;
        display:flex;
        flex-direction:column;
        gap:15px;
    }
    .cs-footer-trust{
        order:1;
        justify-content:center;
        gap:14px;
    }
    .cs-footer-copy{
        order:2;
        font-size:10px;
    }
    .cs-footer .cs-footer-top-btn{
        order:3;
        align-self:center;
        width:44px!important;
        height:44px!important;
        min-width:44px!important;
        min-height:44px!important;
    }
}


/* v1.9.3 — Shared Container alignment law
   Footer content uses the exact same horizontal start/end axes as Shahanland sections. */
.cs-footer{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
}

.cs-footer-inner{
    width:min(1480px,calc(100% - 64px))!important;
    max-width:1480px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
}

#chakad-shahan-global-footer,
#chakad-shahan-global-footer > .elementor,
#chakad-shahan-global-footer .elementor-element,
#chakad-shahan-global-footer .e-con,
#chakad-shahan-global-footer .e-con-inner{
    max-width:none;
}

/* The Elementor wrapper must not introduce a narrower content box around the footer. */
#chakad-shahan-global-footer > .elementor,
#chakad-shahan-global-footer > .elementor > .elementor-element,
#chakad-shahan-global-footer > .elementor > .e-con{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
}

@media(max-width:1024px){
    .cs-footer-inner{
        width:calc(100% - 32px)!important;
        max-width:none!important;
    }
}

@media(max-width:767px){
    .cs-footer-inner{
        width:calc(100% - 24px)!important;
        max-width:none!important;
    }
}


/* v1.9.4 — credit + mobile contact accordion + mobile logo hardening */
.cs-footer-copy-wrap{
    grid-area:copy;
    direction:rtl;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
}
.cs-footer-copy{grid-area:auto!important}
.cs-footer-credit,
.cs-footer-credit:visited{
    color:#AFC1CF!important;
    font-size:10px!important;
    line-height:1.6!important;
    text-decoration:none!important;
}
.cs-footer-credit:hover{color:var(--cf-accent)!important}

.cs-footer .cs-footer-brand,
.cs-footer .cs-footer-logo{
    visibility:visible!important;
    opacity:1!important;
}
.cs-footer .cs-footer-logo{display:block!important}
.cs-footer-contact-body{display:block}

@media(max-width:767px){
    .cs-footer-brand{
        display:block!important;
        visibility:visible!important;
        opacity:1!important;
        min-height:1px!important;
    }
    .cs-footer-logo{
        display:block!important;
        visibility:visible!important;
        opacity:1!important;
        width:auto!important;
        max-width:190px!important;
        max-height:82px!important;
        height:auto!important;
        margin:0 auto 8px!important;
        object-fit:contain!important;
        position:relative!important;
        z-index:2!important;
    }

    .cs-footer-contact{
        border-bottom:1px solid var(--cf-divider);
    }
    .cs-footer-contact-heading{
        min-height:48px!important;
        margin:0!important;
        cursor:pointer!important;
        display:flex!important;
    }
    .cs-footer-contact-body{
        display:none!important;
        padding:0 0 14px!important;
    }
    .cs-footer-contact.is-open .cs-footer-contact-body{display:block!important}
    .cs-footer-contact.is-open .cs-footer-chevron{transform:rotate(180deg)}

    .cs-footer-copy-wrap{order:2}
    .cs-footer-copy{order:initial!important}
    .cs-footer-credit{font-size:9.5px!important}
}
