/* ==================================================================
   Zanjani Pro 2.0 - استایل‌های قابل تنظیم از داشبورد «قالب زنجانی»
   رنگ‌ها از متغیرهای --zt-accent و --zt-accent2 خوانده می‌شوند
   ================================================================== */
:root{
    --zt-accent:#c4197a;
    --zt-accent2:#f17532;
    --zt-teal:#3299a3;
    --zt-title-size:24px;
    --zt-radius:14px;
    --zt-soft:color-mix(in srgb,var(--zt-accent) 8%,#fff);
}

/* ---------- لودینگ ---------- */
body.zt-no-preloader .spinner-wrapper{display:none!important}

/* ---------- نمایش نرم تصاویر ---------- */
img.zt-fade{opacity:0;transition:opacity .6s ease}
img.zt-fade.zt-loaded{opacity:1}

/* ==================================================================
   عنوان باکس‌ها (.title-subject-cat)
   ================================================================== */
body.zt-pro .title-subject-cat{
    position:relative;
    font-size:var(--zt-title-size);
    font-weight:800;
    line-height:1.5;
    letter-spacing:-.3px;
    margin-bottom:12px;
    background:none;
    -webkit-text-fill-color:initial;
}
body.zt-pro .title-subject-cat a{text-decoration:none;transition:color .25s,opacity .25s,transform .25s}

/* --- روبانی: خط تزئینی دو طرف + نگین --- */
body.zt-ts-ribbon .title-subject-cat{
    display:flex;align-items:center;justify-content:center;gap:12px;
    border-bottom:0!important;padding:4px 0 6px;
}
body.zt-ts-ribbon .title-subject-cat:before,
body.zt-ts-ribbon .title-subject-cat:after{
    content:"";flex:1 1 auto;height:2px;border-radius:2px;max-width:140px;
    background:linear-gradient(90deg,transparent,var(--zt-accent2));
    position:static;width:auto;opacity:1;
}
body.zt-ts-ribbon .title-subject-cat:after{background:linear-gradient(270deg,transparent,var(--zt-accent2))}
body.zt-ts-ribbon .title-subject-cat a{
    position:relative;padding:0 20px;color:var(--zt-accent)!important;white-space:nowrap;
}
body.zt-ts-ribbon .title-subject-cat a:before,
body.zt-ts-ribbon .title-subject-cat a:after{
    content:"";position:absolute;top:50%;width:8px;height:8px;
    background:var(--zt-accent2);border-radius:2px;
    transform:translateY(-50%) rotate(45deg);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--zt-accent2) 20%,transparent);
}
body.zt-ts-ribbon .title-subject-cat a:before{right:0}
body.zt-ts-ribbon .title-subject-cat a:after{left:0}
body.zt-ts-ribbon .title-subject-cat a:hover{color:var(--zt-accent2)!important}

/* --- کپسولی --- */
body.zt-ts-pill .title-subject-cat{border-bottom:0!important;text-align:center;padding:0}
body.zt-ts-pill .title-subject-cat a{
    display:inline-flex;align-items:center;gap:8px;
    padding:6px 26px;border-radius:999px;
    color:#fff!important;font-size:.82em;
    background:linear-gradient(135deg,var(--zt-accent),var(--zt-accent2));
    box-shadow:0 8px 20px color-mix(in srgb,var(--zt-accent) 28%,transparent);
}
body.zt-ts-pill .title-subject-cat a:before{content:"";width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.85)}
body.zt-ts-pill .title-subject-cat a:hover{transform:translateY(-2px)}

/* --- سربرگ باکس --- */
body.zt-ts-tab .title-subject-cat{
    border-bottom:0!important;max-width:480px;margin:10px auto 0;padding:10px 16px;
    border-radius:var(--zt-radius) var(--zt-radius) 0 0;
    background:linear-gradient(135deg,var(--zt-accent),var(--zt-accent2));
    text-align:center;font-size:calc(var(--zt-title-size) * .82);
    box-shadow:0 6px 16px color-mix(in srgb,var(--zt-accent) 22%,transparent);
}
body.zt-ts-tab .title-subject-cat a{color:#fff!important;display:block}
body.zt-ts-tab .title-subject-cat + .main-box,
body.zt-ts-tab .title-subject-cat + div .main-box{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}

/* --- زیرخط گرادیانی --- */
body.zt-ts-underline .title-subject-cat{border-bottom:0!important;text-align:center;padding-bottom:10px}
body.zt-ts-underline .title-subject-cat a{color:var(--zt-accent)!important;position:relative;display:inline-block;padding-bottom:6px}
body.zt-ts-underline .title-subject-cat a:after{
    content:"";position:absolute;bottom:0;right:50%;transform:translateX(50%);
    width:60%;height:4px;border-radius:4px;
    background:linear-gradient(90deg,var(--zt-teal),var(--zt-accent2),var(--zt-accent));
    transition:width .35s ease;
}
body.zt-ts-underline .title-subject-cat a:hover:after{width:100%}

/* ==================================================================
   باکس‌های صفحه اصلی
   ================================================================== */
body.zt-box-soft .main-box{
    background:#fff;
    border-radius:var(--zt-radius);
    border:1px solid #edf0f3;
    border-bottom:4px solid color-mix(in srgb,var(--zt-accent2) 55%,#eee);
    box-shadow:0 6px 22px rgba(20,40,60,.07);
    transition:box-shadow .3s ease,transform .3s ease;
    overflow:hidden;
}
body.zt-box-soft .main-box:hover{box-shadow:0 12px 30px rgba(20,40,60,.12);transform:translateY(-2px)}
body.zt-box-soft .main-box ul li{transition:transform .2s ease}
body.zt-box-soft .main-box ul li:hover{transform:translateX(-4px)}
body.zt-box-soft .main-box ul li a{
    background:none!important;font-weight:500;color:#2c3e50;
    display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    border-bottom:1px dashed #eef1f4;padding:1px 0;
}
body.zt-box-soft .main-box ul li a:hover{color:var(--zt-accent)}
body.zt-box-soft .main-box-right .text-link-single-post{background:none!important;color:#1d3c6e;font-weight:700}
body.zt-box-soft .main-box-right .text-link-single-post:hover{color:var(--zt-accent)}
body.zt-box-soft .main-box-right:before{background:linear-gradient(90deg,var(--zt-accent2),var(--zt-accent));height:3px;z-index:2}
.zt-empty{color:#999;text-align:center;padding:30px 0}

/* ---------- افکت باکس اسلایدی اخبار ---------- */
@keyframes ztFadeIn{from{opacity:0}to{opacity:1}}
@keyframes ztSlideIn{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}
@keyframes ztZoomIn{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
body.zt-news-fx-fade .main-box-slider-slide{animation:ztFadeIn .7s ease both}
body.zt-news-fx-slide .main-box-slider-slide{animation:ztSlideIn .6s cubic-bezier(.2,.7,.2,1) both}
body.zt-news-fx-zoom .main-box-slider-slide{animation:ztZoomIn .6s ease both}

/* ==================================================================
   عنوان نوشته‌ها
   ================================================================== */
/* عنوان بالای صفحه (برگه‌ها، آرشیوها، سوالات) */
body.zt-pt-modern .article-art-head-title h1,
body.zt-pt-card .article-art-head-title h1{
    color:var(--zt-accent)!important;-webkit-text-fill-color:initial;background:none;
    font-weight:800;letter-spacing:-.3px;position:relative;padding-bottom:14px;
}
body.zt-pt-modern .article-art-head-title h1:after,
body.zt-pt-card .article-art-head-title h1:after{
    content:"";position:absolute;bottom:4px;right:50%;transform:translateX(50%);
    width:70px;height:4px;border-radius:4px;
    background:linear-gradient(90deg,var(--zt-teal),var(--zt-accent2));
}

/* عنوان داخل صفحه نوشته */
body.zt-pt-modern .singe-content .single-content-title{
    -webkit-text-fill-color:initial;background:linear-gradient(270deg,var(--zt-soft),transparent 85%);
    color:#1d3557;font-size:clamp(19px,2.2vw,27px);font-weight:800;line-height:1.7;
    border-right:5px solid var(--zt-accent2);border-radius:4px 0 0 4px;
    padding:8px 16px 8px 8px;margin:6px 0 18px;border-bottom:0;
}
body.zt-pt-modern .singe-content .single-content-title:before{display:none}

body.zt-pt-card .singe-content .single-content-title{
    -webkit-text-fill-color:#fff;color:#fff;
    background:linear-gradient(135deg,var(--zt-accent),var(--zt-accent2));
    font-size:clamp(18px,2.1vw,25px);font-weight:800;line-height:1.7;
    padding:14px 22px;border-radius:var(--zt-radius);margin:6px 0 20px;border:0;
    box-shadow:0 10px 24px color-mix(in srgb,var(--zt-accent) 25%,transparent);
}
body.zt-pt-card .singe-content .single-content-title:before{display:none}

/* عنوان آیتم‌های آرشیو */
body.zt-pt-modern .archive-box-title,
body.zt-pt-card .archive-box-title{
    color:#1d3557;font-size:18px;font-weight:700;border-bottom:0;padding-bottom:0;margin-bottom:6px;transition:color .2s;
}
body.zt-pt-modern .archive-box a:hover .archive-box-title,
body.zt-pt-card .archive-box a:hover .archive-box-title{color:var(--zt-accent)}
body.zt-pt-modern .archive-box,
body.zt-pt-card .archive-box{
    background:#fff;border:1px solid #eef1f4;border-right:4px solid var(--zt-teal);
    border-radius:10px;padding:14px 18px;margin-bottom:12px;
}
body.zt-pt-modern .archive-box:hover,
body.zt-pt-card .archive-box:hover{border-right-color:var(--zt-accent2);box-shadow:0 8px 22px rgba(20,40,60,.08)}

/* عنوان هر سوال در صفحه سوالات */
body.zt-pt-modern .page-qa .article>span,
body.zt-pt-card .page-qa .article>span{
    color:#fff;background:linear-gradient(135deg,var(--zt-teal),color-mix(in srgb,var(--zt-teal) 60%,var(--zt-accent2)));
    padding:3px 14px;border-radius:999px;font-size:14px;font-weight:700;top:2px;
    box-shadow:0 4px 12px rgba(50,153,163,.25);max-width:calc(100% - 60px);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.zt-pt-modern .page-qa .article>span:before,
body.zt-pt-card .page-qa .article>span:before{filter:brightness(0) invert(1)}
body.zt-pt-modern .page-qa .article_box,
body.zt-pt-card .page-qa .article_box{padding-top:28px;border-radius:var(--zt-radius);background:#fff;box-shadow:0 4px 16px rgba(20,40,60,.05)}

/* ==================================================================
   منوی صفحه سوالات شرعی
   ================================================================== */
body.zt-qa-modern .page-qa .page_menu{
    background:linear-gradient(180deg,#3c8f97 0%,#2f7c84 100%);
    border:0;border-radius:18px;padding:6px 6px 14px;
    box-shadow:0 12px 30px rgba(47,124,132,.25);
    scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent;
}
body.zt-qa-modern .page-qa .menu_category{border:0;box-shadow:none;border-radius:0;background:none}
body.zt-qa-modern .page-qa .menu_search{padding:10px 8px 12px;position:relative}
body.zt-qa-modern .page-qa .menu_search>input{
    width:100%;border:0;border-radius:12px;padding:10px 38px 10px 12px;font-size:13px;
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c8f97' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center/17px;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.4);outline:none;transition:box-shadow .2s;
}
body.zt-qa-modern .page-qa .menu_search>input:focus{box-shadow:0 0 0 3px rgba(241,117,50,.55)}
body.zt-qa-modern .page-qa .main_menu>hr,
body.zt-qa-modern .page-qa .sub-category>hr,
body.zt-qa-modern .page-qa hr.hr-li,
body.zt-qa-modern .page-qa hr.hr-ul,
body.zt-qa-modern .page-qa hr.last-hr{border-top:1px solid rgba(255,255,255,.10);margin:0 8px}
body.zt-qa-modern .page-qa .main_menu a{
    display:flex!important;align-items:center;gap:6px;
    padding:9px 12px!important;margin:2px 4px;border-radius:10px;
    border-left:0!important;color:#fff;font-size:13.5px;font-weight:600;
    transition:background-color .2s,padding .2s,color .2s;
}
body.zt-qa-modern .page-qa .main_menu a:hover{background-color:rgba(255,255,255,.14)!important;padding-right:16px!important}
body.zt-qa-modern .page-qa .main_menu a[aria-expanded=true],
body.zt-qa-modern .page-qa .main_menu .mm-active>a{background:rgba(255,255,255,.18)!important}
body.zt-qa-modern .page-qa .mm-active{background:none}
body.zt-qa-modern .page-qa .zt-cat-name{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.zt-qa-modern .page-qa .has-arrow{flex:0 0 auto;color:#ffd7bf;margin:0 2px 0 6px}
body.zt-qa-modern .page-qa .sub-category{background:rgba(0,0,0,.08);border-radius:10px;margin:0 6px}
body.zt-qa-modern .page-qa .sub-category .sub-category{background:rgba(0,0,0,.06)}
body.zt-qa-modern .page-qa li.last>a{font-weight:500;color:#eafcff}
body.zt-qa-modern .page-qa li.last>a .dot-before{
    visibility:visible;color:transparent;width:6px;height:6px;border-radius:50%;
    background:var(--zt-accent2);display:inline-block;overflow:hidden;flex:0 0 6px;font-size:0;
}
body.zt-qa-modern .page-qa li.last:hover{background:none}
body.zt-qa-modern .page-qa .ch-1>a{padding-right:16px!important}
body.zt-qa-modern .page-qa .ch-2>a{padding-right:22px!important}
body.zt-qa-modern .page-qa .ch-3>a{padding-right:28px!important}
body.zt-qa-modern .page-qa .ch-4>a{padding-right:34px!important}
body.zt-qa-modern .page-qa .ch-5>a,
body.zt-qa-modern .page-qa .ch-6>a{padding-right:40px!important}
.zt-count{
    flex:0 0 auto;font-size:11px;font-weight:700;line-height:1;
    padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.2);color:#fff;
}
body.zt-qa-classic .zt-count{background:rgba(0,0,0,.15)}
body.zt-qa-modern .page-qa .send-question{
    background:linear-gradient(135deg,var(--zt-accent2),#d9480f)!important;
    border-radius:999px!important;padding:10px 28px!important;font-weight:700;
    box-shadow:0 8px 20px rgba(241,117,50,.35);transition:transform .2s,box-shadow .2s;
}
body.zt-qa-modern .page-qa .send-question:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(241,117,50,.45)}

/* ==================================================================
   بنرها
   ================================================================== */
.zt-banner-wrap{margin:18px auto;display:grid;gap:14px}
.zt-banner{text-align:center;line-height:0}
.zt-banner > *{line-height:normal}
.zt-banner img{display:inline-block;max-width:100%;height:auto;border-radius:var(--zt-radius);box-shadow:0 6px 20px rgba(0,0,0,.08);transition:transform .3s ease,box-shadow .3s ease}
.zt-banner a:hover img{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.14)}
.zt-banner iframe,.zt-banner video{max-width:100%}
@media (max-width:767px){.zt-dev-desktop{display:none!important}}
@media (min-width:768px){.zt-dev-mobile{display:none!important}}
.zt-pos-under_slider{margin-top:22px}
.single-content-content .zt-banner-wrap{clear:both}

/* ==================================================================
   دکمه بازگشت به بالا
   ================================================================== */
.zt-top{
    position:fixed;left:18px;bottom:18px;z-index:60;width:46px;height:46px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;
    background:linear-gradient(135deg,var(--zt-teal),var(--zt-accent2));
    box-shadow:0 8px 22px rgba(0,0,0,.18);
    opacity:0;visibility:hidden;transform:translateY(12px);transition:all .3s ease;
}
.zt-top.show{opacity:1;visibility:visible;transform:none}
.zt-top:hover{transform:translateY(-3px)}
.zt-top svg{display:block}
