/**
 * Rezvan Theme 0.7.5.26 — Public Header Recovery
 * Project: Rezvan Platform / سامانه جامع خدام چایخانه رضوان
 * Project Lead & Implementation: Mohamad khodabakhshi / محمدکاظم خدابخشی
 *
 * Emergency-safe global navigation for public inner pages.
 * Gold is accent-only; all text remains high-contrast.
 */
.rzv-public-header,
.rzv-public-header *{
    box-sizing:border-box;
    font-family:'IRANYekanRezvan','IRANYekan','Iran Yekan',Tahoma,Arial,sans-serif!important;
}
.rzv-public-header{
    position:relative;
    z-index:9980;
    width:100%;
    direction:rtl;
    background:linear-gradient(135deg,#063d31,#0b6049);
    border-bottom:1px solid rgba(218,182,90,.42);
    box-shadow:0 10px 28px rgba(2,42,33,.13);
}
.rzv-public-header__inner{
    width:min(1380px,calc(100% - 32px));
    min-height:82px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:20px;
}
.rzv-public-header__brand{
    display:flex;
    align-items:center;
    gap:11px;
    flex:0 0 auto;
    color:#fff!important;
    text-decoration:none!important;
}
.rzv-public-header__brand img{
    width:58px;
    height:58px;
    border-radius:16px;
    object-fit:cover;
    border:1px solid rgba(234,205,125,.58);
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.rzv-public-header__brand span,
.rzv-public-header__brand strong,
.rzv-public-header__brand small{display:block}
.rzv-public-header__brand strong{
    color:#fff!important;
    font-size:16px;
    font-weight:900;
    line-height:1.8;
}
.rzv-public-header__brand small{
    margin-top:1px;
    color:#e7f0eb!important;
    font-size:11px;
    font-weight:600;
    line-height:1.7;
}
.rzv-public-header__nav{
    margin-right:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:4px;
    min-width:0;
}
.rzv-public-header__nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:8px 11px;
    border-radius:12px;
    color:#f8fbf9!important;
    text-decoration:none!important;
    white-space:nowrap;
    font-size:13px;
    font-weight:750;
    line-height:1.8;
    transition:background .16s ease,color .16s ease,transform .16s ease;
}
.rzv-public-header__nav a:hover,
.rzv-public-header__nav a:focus-visible{
    background:rgba(255,255,255,.12);
    color:#fff!important;
    outline:none;
}
.rzv-public-header__nav a.is-active{
    background:#fffdf7;
    color:#0a503c!important;
    box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.rzv-public-header__nav .rzv-public-header__login{
    margin-right:5px;
    padding-inline:16px;
    background:#e0b84e;
    color:#123b30!important;
    font-weight:900;
    border:1px solid #f0cf75;
}
.rzv-public-header__nav .rzv-public-header__login:hover,
.rzv-public-header__nav .rzv-public-header__login:focus-visible{
    background:#f0cc70;
    color:#0c332a!important;
}
.rzv-public-header__toggle{
    display:none;
    width:48px;
    height:48px;
    margin-right:auto;
    padding:11px;
    border:1px solid rgba(240,207,117,.65);
    border-radius:14px;
    background:rgba(255,255,255,.08);
    cursor:pointer;
}
.rzv-public-header__toggle span{
    display:block;
    width:100%;
    height:2px;
    margin:5px 0;
    border-radius:99px;
    background:#fff;
    transition:transform .16s ease,opacity .16s ease;
}
.rzv-public-header__toggle:focus-visible{
    outline:3px solid rgba(255,255,255,.24);
    outline-offset:2px;
}
@media(max-width:1080px){
    .rzv-public-header__inner{width:min(100% - 24px,1380px)}
    .rzv-public-header__nav a{padding-inline:8px;font-size:12px}
    .rzv-public-header__brand small{display:none}
}
@media(max-width:900px){
    .rzv-public-header__inner{
        width:100%;
        min-height:72px;
        padding:8px 12px;
        position:relative;
    }
    .rzv-public-header__brand img{width:50px;height:50px;border-radius:14px}
    .rzv-public-header__brand strong{font-size:15px}
    .rzv-public-header__toggle{display:block}
    .rzv-public-header__nav{
        display:none;
        position:absolute;
        top:calc(100% + 1px);
        right:10px;
        left:10px;
        margin:0;
        padding:9px;
        background:#fffdf8;
        border:1px solid #d6dfda;
        border-radius:0 0 18px 18px;
        box-shadow:0 18px 40px rgba(7,49,39,.2);
        max-height:min(72vh,560px);
        overflow-y:auto;
    }
    .rzv-public-header.is-open .rzv-public-header__nav{display:grid;gap:4px}
    .rzv-public-header__nav a,
    .rzv-public-header__nav .rzv-public-header__login{
        width:100%;
        min-height:46px;
        justify-content:flex-start;
        margin:0;
        padding:10px 14px;
        color:#17483b!important;
        background:transparent;
        border:0;
        border-radius:10px;
        font-size:14px;
        text-align:right;
    }
    .rzv-public-header__nav a:hover,
    .rzv-public-header__nav a:focus-visible,
    .rzv-public-header__nav a.is-active{
        background:#edf5f1;
        color:#0a503c!important;
    }
    .rzv-public-header__nav .rzv-public-header__login{
        margin-top:4px;
        justify-content:center;
        background:#e3bd56;
        color:#10392f!important;
        font-weight:900;
    }
    .rzv-public-header.is-open .rzv-public-header__toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
    .rzv-public-header.is-open .rzv-public-header__toggle span:nth-child(2){opacity:0}
    .rzv-public-header.is-open .rzv-public-header__toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}
@media(max-width:430px){
    .rzv-public-header__brand strong{font-size:14px}
    .rzv-public-header__brand img{width:46px;height:46px}
    .rzv-public-header__toggle{width:46px;height:46px}
}

/* 0.7.43 — Public menu normalization */
.rzv-public-header__nav{
    gap:6px;
}
.rzv-public-header__nav a{
    min-height:46px;
    padding:8px 12px;
    border:1px solid transparent;
    border-radius:12px;
}
.rzv-public-header__nav a[href*="guide"],
.rzv-public-header__nav a[href*="registration"],
.rzv-public-header__nav a[href*="khadem-guide"]{
    border-color:rgba(240,207,117,.22);
    background:rgba(255,255,255,.06);
}
.rzv-public-header__nav .rzv-public-header__login{
    margin-right:0;
    margin-inline-start:4px;
    min-width:112px;
}
@media(max-width:900px){
    .rzv-public-header__nav a[href*="guide"],
    .rzv-public-header__nav a[href*="registration"],
    .rzv-public-header__nav a[href*="khadem-guide"]{
        border:0;
        background:transparent;
    }
}

/* 0.7.44 — Front page now uses the same native public header as inner pages. */
body.home .rzv-public-page .elementor-widget-nav-menu,
body.home .rzv-public-page .elementor-widget-nav-menu > .elementor-widget-container{
    display:none!important;
}


/* =========================================================
 * 0.7.58 — Mobile public navigation stacking / visibility root fix
 * The toggle JS was already changing the header to `.is-open`; on some
 * mobile public/gallery layouts the dropdown could remain underneath a
 * higher stacking context. Keep the opened navigation above page media and
 * make its visibility contract explicit without changing desktop layout.
 * ========================================================= */
@media(max-width:900px){
    .rzv-public-header{
        overflow:visible!important;
    }
    .rzv-public-header__inner{
        overflow:visible!important;
    }
    .rzv-public-header.is-open{
        z-index:10050!important;
    }
    .rzv-public-header.is-open .rzv-public-header__nav{
        display:grid!important;
        visibility:visible!important;
        opacity:1!important;
        pointer-events:auto!important;
        z-index:10051!important;
    }
}
