/*
Theme Name: 4000Shahid Modern
Theme URI: https://4000sh.ir/
Description: قالب مستقل و بازنویسی‌شده سایت ۴۰۰۰ شهید؛ بدون وابستگی به GeneratePress.
Version: 4.0.0
Author: 4000sh.ir
Text Domain: 4000shahid
*/
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
:root{--green:#087443;--green2:#0b5d38;--red:#c92332;--ink:#101a2d;--muted:#6b7280;--bg:#f6f8fa;--card:#fff;--line:#e5e9ee;--shadow:0 16px 50px rgba(18,38,63,.09);--radius:22px;--container:1240px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;direction:rtl;background:var(--bg);color:var(--ink);font-family:ShahidVazir,Tahoma,Arial,sans-serif;overflow-x:hidden}body,input,button,textarea,select{font-family:inherit}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto;display:block}.container{width:min(100% - 32px,var(--container));margin-inline:auto}.site-main{min-height:60vh}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* header */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-top:3px solid var(--ink);box-shadow:0 6px 24px rgba(0,0,0,.06)}.site-header-inner{min-height:82px;display:grid;grid-template-columns:160px 1fr 120px;align-items:center;gap:20px}.site-brand img{max-height:58px;width:auto;margin-inline-start:auto}.site-nav{display:flex;justify-content:center}.site-nav ul{list-style:none;display:flex;justify-content:center;align-items:center;gap:28px;margin:0;padding:0}.site-nav a{font-weight:700;font-size:15px;padding:10px 4px;position:relative}.site-nav a:after{content:"";position:absolute;bottom:2px;right:50%;width:0;height:2px;background:var(--green);transition:.2s}.site-nav a:hover:after{width:70%;right:15%}.header-space{min-width:120px}.mobile-toggle{display:none}
/* homepage: keep the existing slideshow structure and motion */
.home-modern{background:#fff}.home-hero-modern{padding:42px 0 30px;background-image:url('assets/site-pattern.png');background-size:700px}.home-hero-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:36px;align-items:center}.hero-text{padding:24px}.hero-badge{display:inline-flex;background:#e8f7ee;color:var(--green);border-radius:999px;padding:9px 14px;font-size:13px;font-weight:700}.hero-text h1{font-size:42px;line-height:1.5;margin:18px 0 10px}.hero-text p{font-size:17px;color:var(--muted);line-height:2.2}.hero-actions{margin-top:24px}.primary-action{display:inline-flex;background:var(--green);color:#fff;padding:13px 20px;border-radius:14px;font-weight:700}
.orbital-slider{position:relative;height:430px;min-height:430px;display:flex;align-items:center;justify-content:center}.orbital-card{position:absolute;width:260px;height:350px;border-radius:28px;overflow:hidden;background:#fff;box-shadow:var(--shadow);border:5px solid rgba(255,255,255,.9);transition:all .55s cubic-bezier(.2,.8,.2,1)}.orbital-card img{width:100%;height:100%;object-fit:cover}.orbital-info{position:absolute;inset:auto 12px 12px;padding:13px;border-radius:15px;background:rgba(8,20,35,.78);color:#fff;backdrop-filter:blur(8px)}.orbital-info strong{display:block}.orbital-info span{font-size:11px;opacity:.8}.orbital-card-0{transform:translateX(0) scale(1);z-index:5}.orbital-card-1{transform:translateX(190px) rotate(7deg) scale(.88);z-index:4;filter:saturate(.85)}.orbital-card-2{transform:translateX(340px) rotate(12deg) scale(.76);z-index:3;opacity:.8}.orbital-card-3{transform:translateX(-190px) rotate(-7deg) scale(.88);z-index:4;filter:saturate(.85)}.orbital-card-4{transform:translateX(-340px) rotate(-12deg) scale(.76);z-index:3;opacity:.8}
/* keep news carousel */
.home-search-section{padding:16px 0}.home-search-box{max-width:700px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px;box-shadow:0 10px 35px rgba(0,0,0,.06)}.home-search-box form{display:flex;gap:8px}.home-search-box input{flex:1;border:0;outline:0;padding:12px 18px;font-size:15px;background:transparent}.home-search-box button{border:0;background:var(--green);color:#fff;border-radius:999px;padding:0 24px;font-weight:700;cursor:pointer}.home-section{padding:50px 0}.modern-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.modern-section-head span{font-size:12px;color:var(--green);font-weight:700}.modern-section-head h2{margin:4px 0 0;font-size:28px}.modern-section-head>a{color:var(--green);font-weight:700}.news-carousel{position:relative;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:12px}.news-carousel-viewport{overflow:hidden}.news-carousel-track{display:flex;gap:18px;transition:transform .45s ease}.news-slide-card{flex:0 0 calc(33.333% - 12px);background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.05)}.news-slide-image img{width:100%;height:190px;object-fit:cover}.news-slide-body{padding:18px}.news-slide-body>span{color:var(--green);font-size:12px}.news-slide-body h3{font-size:18px;line-height:1.8;margin:8px 0}.news-slide-body p{color:var(--muted);line-height:1.9;font-size:13px}.modern-read-more{color:var(--green);font-weight:700;font-size:13px}.news-carousel-arrow{width:44px;height:44px;border:0;border-radius:50%;background:#fff;box-shadow:0 8px 25px rgba(0,0,0,.08);font-size:28px;cursor:pointer;color:var(--green)}.news-carousel-dots{display:flex;justify-content:center;gap:7px;margin-top:16px}.news-carousel-dots button{width:8px;height:8px;border:0;border-radius:50%;background:#cbd5df;cursor:pointer}.news-carousel-dots button.active{width:24px;border-radius:999px;background:var(--green)}
/* cards */
.home-martyrs-section{background:#f7faf8}.home-martyr-grid,.martyr-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.home-martyr-card,.martyr-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 12px 35px rgba(18,38,63,.07);transition:.25s}.home-martyr-card:hover,.martyr-card:hover{transform:translateY(-5px);box-shadow:0 20px 50px rgba(18,38,63,.12)}.martyr-image-wrap{position:relative;aspect-ratio:4/5;background:#e9eef0;overflow:hidden}.martyr-image-wrap img{width:100%;height:100%;object-fit:cover}.martyr-card-body{padding:14px 16px 16px}.martyr-card h3{margin:0 0 12px;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.martyr-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.martyr-actions{display:flex;align-items:center;gap:12px}.like-btn{border:0;background:transparent;color:#e3364f;cursor:pointer;padding:0;font-size:14px}.like-btn b{font-weight:700}.like-btn.liked{transform:scale(1.08)}.views{display:inline-flex;align-items:center;gap:4px}.home-martyr-card>a{display:block}.home-martyr-img{aspect-ratio:4/5;overflow:hidden;background:#e9eef0}.home-martyr-img img{width:100%;height:100%;object-fit:cover}.home-martyr-card h3{font-size:17px;margin:14px 16px 6px}.home-martyr-card>a>span{font-size:12px;color:var(--green);margin:0 16px 12px;display:block}.home-martyr-stats{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:11px 16px;color:var(--muted);font-size:12px}.home-media-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.home-media-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.06)}.home-media-card img{width:100%;height:220px;object-fit:cover}.home-media-card div{padding:16px}.home-media-card h3{margin:0 0 7px;font-size:17px}.home-media-card span{color:var(--green);font-size:12px}
/* archives */
.archive-hero,.single-hero{background-image:url('assets/site-pattern.png');padding:46px 0}.archive-hero h1,.single-hero h1{font-size:34px;margin:0 0 8px}.archive-hero p,.single-hero p{color:var(--muted);margin:0}.archive-body{padding:42px 0}.archive-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.news-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.05)}.news-card img{width:100%;height:210px;object-fit:cover}.news-card-body{padding:18px}.news-card-body time{color:var(--green);font-size:12px}.news-card-body h2{font-size:19px;line-height:1.8;margin:8px 0}.news-card-body p{color:var(--muted);line-height:1.9}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.media-card{background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,.05)}.media-card-thumb{position:relative;aspect-ratio:16/10;overflow:hidden;background:#e8edf1}.media-card-thumb img{width:100%;height:100%;object-fit:cover}.play-badge{position:absolute;bottom:12px;right:12px;width:42px;height:42px;border-radius:50%;background:rgba(8,116,67,.95);color:#fff;display:grid;place-items:center}.media-card-body{padding:15px}.media-card-body h2{font-size:17px;margin:0 0 8px;line-height:1.8}.media-stats{display:flex;gap:12px;color:var(--muted);font-size:12px}.media-type{color:var(--green);font-size:12px;font-weight:700}
/* single */
.single-wrap{padding:40px 0}.single-layout{max-width:980px;margin:auto;background:#fff;border-radius:26px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}.single-feature img{width:100%;max-height:580px;object-fit:cover}.single-content{padding:30px}.single-content h1{font-size:34px;line-height:1.7;margin:0 0 12px}.single-content .entry-meta{display:flex;gap:18px;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding-bottom:18px}.entry-body{line-height:2.3;font-size:16px}.entry-body img{border-radius:14px;margin:20px auto}.media-player{background:#0b0f14;padding:14px}.media-player video,.media-player audio{width:100%;max-height:650px}.media-info{padding:22px 28px;border-bottom:1px solid var(--line)}.media-info h1{margin:0 0 12px}.media-actions{display:flex;justify-content:space-between;align-items:center;gap:15px}.media-like{border:0;background:#fff0f2;color:#d7263d;border-radius:999px;padding:10px 16px;cursor:pointer;font-weight:700}.media-related{padding:24px 28px}.media-related h2{font-size:20px}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.related-grid a{border:1px solid var(--line);border-radius:16px;overflow:hidden}.related-grid img{height:120px;width:100%;object-fit:cover}.related-grid span{display:block;padding:10px;font-size:13px}
/* contact */
.contact-page{padding:60px 0;background-image:url('assets/site-pattern.png')}.contact-card{max-width:920px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:28px}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:25px}.contact-info{background:#f5faf7;border-radius:22px;padding:25px}.contact-info h1{margin-top:0}.contact-info-item{padding:13px 0;border-bottom:1px solid #dcebe2}.contact-form{display:grid;gap:13px}.contact-form input,.contact-form textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px;background:#fbfcfd}.contact-form button{border:0;background:var(--green);color:#fff;padding:13px;border-radius:13px;font-weight:700;cursor:pointer}.contact-notice{padding:12px;border-radius:12px;background:#e9f7ef;color:var(--green)}
/* footer */
.site-footer{background:#101a2d;color:#fff;margin-top:40px}.footer-top{padding:48px 0;display:grid;grid-template-columns:1fr 1fr;gap:40px}.footer-brand{display:flex;gap:20px;align-items:flex-start}.footer-logo{width:70px;height:70px;object-fit:contain}.footer-title{margin:0 0 10px;font-size:20px}.footer-desc{color:#b7c0cc;line-height:2}.footer-contact h3{margin-top:0}.footer-contact ul{list-style:none;padding:0;margin:0;display:grid;gap:12px;color:#d4d9df}.footer-contact a{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;text-align:center;color:#dce2e8}.footer-bottom-line{display:flex;justify-content:center;align-items:center;gap:6px;direction:rtl}.daily-martyr{position:fixed;left:22px;bottom:22px;z-index:1200}.daily-trigger{width:66px;height:66px;border-radius:50%;border:3px solid #fff;box-shadow:0 12px 35px rgba(0,0,0,.22);overflow:hidden;padding:0;background:#fff;cursor:pointer}.daily-trigger img{width:100%;height:100%;object-fit:cover}.daily-panel{position:absolute;left:0;bottom:78px;width:350px;background:#fff;border-radius:24px;box-shadow:0 25px 70px rgba(0,0,0,.22);overflow:hidden;display:none;border:1px solid var(--line)}.daily-martyr.open .daily-panel{display:block}.daily-panel img{width:100%;height:220px;object-fit:cover}.daily-panel-content{padding:18px}.daily-panel-content h3{margin:0 0 10px}.daily-panel-content p{color:var(--muted);font-size:13px;line-height:1.9}.daily-close{position:absolute;left:12px;top:12px;border:0;background:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer;font-size:20px}
@media(max-width:1000px){.site-header-inner{grid-template-columns:100px 1fr 30px}.header-space{min-width:0}.site-nav ul{gap:16px}.home-hero-grid{grid-template-columns:1fr}.hero-text{text-align:center}.home-martyr-grid,.martyr-grid,.media-grid{grid-template-columns:repeat(3,1fr)}.archive-news-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.site-header-inner{display:flex;justify-content:space-between}.site-nav{display:none}.mobile-toggle{display:block;border:0;background:transparent;font-size:27px}.site-brand img{max-height:50px}.hero-text h1{font-size:30px}.orbital-slider{height:360px}.orbital-card{width:220px;height:300px}.orbital-card-1{transform:translateX(120px) rotate(7deg) scale(.82)}.orbital-card-2{transform:translateX(205px) rotate(10deg) scale(.7)}.orbital-card-3{transform:translateX(-120px) rotate(-7deg) scale(.82)}.orbital-card-4{transform:translateX(-205px) rotate(-10deg) scale(.7)}.news-carousel{grid-template-columns:35px 1fr 35px}.news-slide-card{flex-basis:100%}.home-martyr-grid,.martyr-grid,.media-grid,.archive-news-grid{grid-template-columns:repeat(2,1fr)}.home-media-strip{grid-template-columns:1fr}.contact-grid,.footer-top{grid-template-columns:1fr}.daily-panel{width:min(350px,calc(100vw - 32px))}.single-content{padding:20px}.single-content h1{font-size:25px}.related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.container{width:min(100% - 22px,var(--container))}.home-martyr-grid,.martyr-grid,.media-grid,.archive-news-grid{grid-template-columns:1fr}.footer-brand{flex-direction:column}.daily-martyr{left:12px;bottom:12px}}


/* ===== Final UI refinements ===== */
.site-brand{display:flex;align-items:center;gap:12px;min-width:0}.site-brand-copy{font-size:13px;font-weight:800;line-height:1.7;color:var(--ink);white-space:nowrap}.site-nav li.current-menu-item>a,.site-nav a.active{color:var(--green)}.site-nav li.current-menu-item>a:after,.site-nav a.active:after{width:70%;right:15%}
.mobile-menu ul li.current-menu-item>a{color:var(--green);font-weight:800}
.hero-badge{display:none}

/* compact martyr card: name + like + views in one clean row */
.martyr-card{border-radius:22px}.martyr-card-link{display:block}.martyr-card-body{padding:13px 16px 15px}.martyr-card h3{margin:0 0 12px;font-size:16px}.martyr-card h3 a{display:block}.martyr-stats-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;color:#667085;font-size:12px;direction:rtl}.martyr-stats-row .like-btn{display:inline-flex;align-items:center;gap:5px;color:#e52d48;font-size:13px}.martyr-stats-row .heart{font-size:18px;line-height:1}.martyr-stats-row .views{display:inline-flex;align-items:center;gap:5px}.martyr-stats-row .eye{font-size:12px;color:#667085}.martyr-stats-row b{font-weight:800;color:#475467}.stat-divider{width:1px;height:16px;background:#e6e9ee}.martyr-card:hover .martyr-image-wrap img{transform:scale(1.02)}.martyr-image-wrap img{transition:transform .35s ease}

/* news slider arrows: no circular button backgrounds */
.news-carousel-arrow{background:transparent!important;box-shadow:none!important;width:30px;height:46px;padding:0;color:var(--green);font-size:38px;font-weight:400}.news-carousel-arrow:hover{background:transparent!important;transform:scale(1.08)}.news-carousel-dots{gap:5px;margin-top:13px}.news-carousel-dots button{width:5px;height:5px;padding:0;background:#c9d3dc}.news-carousel-dots button.active{width:12px;height:5px;background:var(--green)}

/* news page and single article */
.news-featured{margin-bottom:55px}.news-list-section{padding-top:8px}.news-single-page{padding:55px 0}.news-single{max-width:1080px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);overflow:hidden}.news-single-top{display:grid;grid-template-columns:1.05fr .95fr;direction:ltr;min-height:360px}.news-single-image{overflow:hidden}.news-single-image img{width:100%;height:100%;min-height:360px;object-fit:cover}.news-single-intro{direction:rtl;padding:44px 42px;display:flex;flex-direction:column;justify-content:center}.news-single-date{color:var(--green);font-size:13px;font-weight:800;margin-bottom:10px}.news-single-intro h1{font-size:36px;line-height:1.65;margin:8px 0 12px}.news-single-subtitle{font-weight:800;color:#475467;line-height:2;margin:0 0 8px}.news-single-excerpt{color:var(--muted);line-height:2.2;margin:0}.news-single-body{padding:35px 42px;border-top:1px solid var(--line)}.news-gallery{padding:0 42px 42px}.news-gallery h2{font-size:23px}.news-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.news-gallery-grid a{display:block;border-radius:16px;overflow:hidden;background:#eef1f3}.news-gallery-grid img{width:100%;height:220px;object-fit:cover}

/* media single like YouTube/Aparat */
.media-single-page{padding:45px 0;background:#f5f7f9}.media-single{max-width:1080px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.media-player{padding:0;background:#080b0f}.media-player video,.media-player audio{display:block;width:100%;max-height:650px}.media-empty{min-height:480px;position:relative;display:grid;place-items:center;overflow:hidden;color:#fff}.media-empty img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}.media-empty p{position:relative;z-index:1;background:rgba(0,0,0,.55);padding:12px 18px;border-radius:12px}.media-info{padding:22px 28px}.media-info h1{font-size:28px;line-height:1.7;margin:6px 0 14px}.media-actions{border-top:1px solid var(--line);padding-top:15px}.media-description{padding:0 28px 30px}.media-related{border-top:1px solid var(--line)}

/* compact contact page */
.contact-page{padding:38px 0 48px}.contact-card{max-width:760px;padding:18px;border-radius:22px}.contact-grid{grid-template-columns:.75fr 1.25fr;gap:16px}.contact-info{border-radius:17px;padding:19px}.contact-info h1{font-size:22px;margin-bottom:8px}.contact-info p{font-size:13px;line-height:1.9}.contact-info-item{padding:10px 0;font-size:13px}.contact-form{gap:9px}.contact-form input,.contact-form textarea{padding:10px 12px;border-radius:10px;font-size:13px}.contact-form textarea{min-height:120px}.contact-form button{padding:11px;border-radius:10px}.contact-notice{font-size:13px;margin-bottom:8px}

/* daily martyr popup on the right */
.daily-martyr{right:22px;left:auto}.daily-panel{right:0;left:auto}.daily-close{right:12px;left:auto}.daily-trigger{position:relative}

/* footer: only year/copyright in bottom line */
.footer-bottom{padding:14px 0}.footer-bottom-line{font-size:14px}.footer-contact h3 a{color:#fff}.footer-contact h3 a:hover{color:#75d3a4}

/* archive search exactly like home */
.archive-search-wrap{margin:0 auto 30px}.archive-search-wrap .home-search-box{max-width:700px}.archive-search-wrap .home-search-box form{display:flex}

/* responsive */
@media(max-width:760px){
 .site-brand-copy{font-size:11px;max-width:180px;white-space:normal}.news-single-top{grid-template-columns:1fr;direction:rtl}.news-single-image img{min-height:260px;max-height:360px}.news-single-intro{padding:26px}.news-single-intro h1{font-size:27px}.news-single-body,.news-gallery{padding:25px}.news-gallery-grid{grid-template-columns:1fr 1fr}.contact-card{max-width:600px}.contact-grid{grid-template-columns:1fr}.daily-martyr{right:12px;left:auto}
}
@media(max-width:480px){.site-brand-copy{display:none}.news-gallery-grid{grid-template-columns:1fr}.martyr-stats-row{gap:8px}.daily-panel{width:min(350px,calc(100vw - 24px))}}

/* martyr profile */
.martyr-single-page{padding:48px 0;background:#f5f7f9}.martyr-profile{max-width:1080px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.martyr-profile-head{display:grid;grid-template-columns:420px 1fr;direction:ltr;min-height:440px}.martyr-profile-image{background:#e9eef0}.martyr-profile-image img{width:100%;height:100%;object-fit:cover}.martyr-profile-intro{direction:rtl;padding:45px;display:flex;flex-direction:column;justify-content:center}.martyr-profile-intro>span{color:var(--green);font-weight:800;font-size:13px}.martyr-profile-intro h1{font-size:40px;margin:8px 0}.martyr-profile-intro p{color:var(--muted)}.martyr-profile-stats{display:flex;align-items:center;gap:18px;margin-top:22px;border-top:1px solid var(--line);padding-top:18px;color:#667085}.martyr-profile-stats .like-btn{color:#e52d48;border:0;background:transparent;font-size:14px;cursor:pointer}.martyr-profile-content{padding:34px 40px}.martyr-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:35px}.martyr-facts div{background:#f7faf8;border:1px solid #e1eee6;border-radius:15px;padding:14px}.martyr-facts small{display:block;color:var(--muted);margin-bottom:5px}.martyr-facts strong{font-size:14px}.martyr-biography,.martyr-text-section,.martyr-gallery{border-top:1px solid var(--line);padding-top:25px;margin-top:25px}.martyr-biography h2,.martyr-text-section h2,.martyr-gallery h2{font-size:23px}@media(max-width:760px){.martyr-profile-head{grid-template-columns:1fr;direction:rtl}.martyr-profile-image{height:360px}.martyr-profile-intro{padding:26px}.martyr-profile-intro h1{font-size:30px}.martyr-profile-content{padding:25px}.martyr-facts{grid-template-columns:1fr 1fr}}@media(max-width:480px){.martyr-facts{grid-template-columns:1fr}}

.daily-close{background:transparent!important;box-shadow:none!important;border:0!important;font-weight:700;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7)}

/* ===== Final UI corrections ===== */
body,body input,body button,body textarea,body select{
  font-family:Vazirmatn,IRANSansX,IRANSans,Tahoma,Arial,sans-serif;
}
.archive-search-wrap{display:flex;justify-content:center;width:100%;margin:0 auto 34px}
.archive-search-wrap .home-search-box{width:min(100%,700px);max-width:700px;margin:0!important}
.shohada-search-box{display:flex;align-items:center}
.shohada-search-box input{min-width:0}
.shohada-archive-body{padding-top:38px}
.archive-pagination{display:flex;justify-content:center;margin:32px 0}
.archive-pagination ul{display:flex;gap:7px;list-style:none;padding:0;margin:0}
.archive-pagination a,.archive-pagination span{min-width:36px;height:36px;padding:0 10px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid var(--line)}
.archive-pagination .current{background:var(--green);color:#fff;border-color:var(--green)}
.empty-state{background:#fff;border:1px solid var(--line);border-radius:18px;padding:45px;text-align:center;display:grid;gap:8px;color:var(--muted)}
/* A compact, independent contact page */
.contact-page-new{padding:34px 0 54px;background:var(--bg);min-height:60vh}
.contact-shell{width:min(100%,900px);margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 16px 45px rgba(18,38,63,.07);display:grid;grid-template-columns:.85fr 1.15fr;overflow:hidden}
.contact-info-new{padding:30px;background:linear-gradient(180deg,#f1faf5,#f8fbf9)}
.contact-kicker,.contact-form-heading>span{color:var(--green);font-size:12px;font-weight:800}
.contact-info-new h1{font-size:28px;margin:7px 0 8px}
.contact-info-new>p{color:var(--muted);line-height:1.9;font-size:13px;margin:0 0 20px}
.contact-details-new{display:grid;gap:9px}
.contact-details-new>a,.contact-details-new>div{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:13px;background:rgba(255,255,255,.72);border:1px solid #e0eee6}
.contact-details-new>a>span,.contact-details-new>div>span{width:32px;height:32px;border-radius:10px;background:#e5f6ec;color:var(--green);display:grid;place-items:center;flex:none}
.contact-details-new small{display:block;color:var(--muted);font-size:10px;margin-bottom:2px}
.contact-details-new strong{font-size:12px;line-height:1.8}
.contact-form-new-wrap{padding:30px}
.contact-form-heading h2{font-size:22px;margin:6px 0 18px}
.contact-form-new{gap:11px}
.contact-form-new label{font-size:12px;font-weight:700;color:#344054}
.contact-form-new input,.contact-form-new textarea{margin-top:6px;padding:10px 12px;border-radius:11px;font-size:13px}
.contact-form-new textarea{min-height:105px;resize:vertical}
.contact-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.contact-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.contact-submit-row small{color:var(--muted);font-size:10px}
.contact-submit-row button{width:auto;padding:10px 22px;border-radius:11px}
.contact-notice{margin-bottom:10px;padding:9px 12px;font-size:12px}
/* media links and player */
.media-card>a{display:block;cursor:pointer}
.media-card:hover .media-card-thumb img{transform:scale(1.035)}
.media-card-thumb img{transition:transform .35s ease}
.media-single-page{min-height:60vh}
.media-single .media-player{padding:0}
.media-single .media-player video{background:#070b10;min-height:360px;max-height:680px;object-fit:contain}
.media-single .media-empty{min-height:520px}
.media-info{padding:22px 28px}
.media-info .media-type{display:inline-block;background:#e9f7ef;padding:6px 10px;border-radius:999px}
.media-related{padding-bottom:30px}
@media(max-width:760px){
 .contact-shell{grid-template-columns:1fr;max-width:620px}
 .contact-info-new,.contact-form-new-wrap{padding:22px}
 .contact-two{grid-template-columns:1fr}
 .contact-submit-row{align-items:flex-start;flex-direction:column}
 .contact-submit-row button{width:100%}
 .media-single .media-player video{min-height:240px}
}

/* ===== News / typography refinements ===== */
body,input,button,textarea,select{font-family:Vazir,ShahidVazir,Tahoma,Arial,sans-serif}
.site-brand-copy{font-weight:900}
.news-single-date{display:none!important}
.news-single-top{align-items:stretch}
.news-single-intro{display:flex;flex-direction:column;justify-content:center}
.news-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.news-gallery-item{display:block;position:relative;overflow:hidden;border-radius:18px;background:#eef2f0;cursor:zoom-in}
.news-gallery-item img{width:100%;height:230px;object-fit:cover;transition:transform .35s ease}
.news-gallery-item:hover img{transform:scale(1.045)}
.sh4k-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(8,15,12,.9);display:flex;align-items:center;justify-content:center;padding:30px;cursor:zoom-out}
.sh4k-lightbox[hidden]{display:none}
.sh4k-lightbox-image{max-width:min(1200px,94vw);max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 20px 80px rgba(0,0,0,.35)}
.sh4k-lightbox-close{position:absolute;top:18px;left:22px;width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:#17231d;font-size:32px;line-height:1;cursor:pointer}
.news-single-body img{cursor:zoom-in}
@media(max-width:800px){.news-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.news-gallery-grid{grid-template-columns:1fr}.news-gallery-item img{height:220px}}

/* Martyrs search: icon only */
.shohada-search-box{display:flex;align-items:center;justify-content:center;gap:0}
.shohada-search-box input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.shohada-search-box button{width:52px;height:52px;padding:0;border:0;background:transparent;color:var(--green);font-size:35px;line-height:1;cursor:pointer;display:grid;place-items:center;box-shadow:none}
.shohada-search-box button:hover{color:var(--green2);transform:scale(1.08)}
.shohada-search-box button span{display:block;transform:none}
.shohada-search-box .search-icon{width:20px;height:20px;border:3px solid currentColor;border-radius:50%;position:relative}
.shohada-search-box .search-icon:after{content:"";position:absolute;width:10px;height:3px;background:currentColor;border-radius:3px;right:-8px;bottom:-4px;transform:rotate(45deg);transform-origin:left center}
/* Admin gallery previews */
.sh4k-gallery-preview{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.sh4k-gallery-thumb{width:92px;height:72px;border-radius:12px;overflow:hidden;border:1px solid #dce5df;background:#f6f8f7}
.sh4k-gallery-thumb img{width:100%;height:100%;object-fit:cover}
.sh4k-field-help{display:block;color:#7a847e;font-size:11px;margin-top:6px}


/* ===== News page + article refinements ===== */
.news-single-date{
  display:block;
  color:#718096;
  font-size:11px;
  font-weight:700;
  line-height:1.8;
  margin:0 0 14px;
  letter-spacing:.1px;
}
.news-single-intro h1 + .news-single-date{margin-top:-2px}

/* Premium featured-news section */
.news-featured-premium{
  position:relative;
  padding:34px 28px 30px;
  border-radius:30px;
  background:
    radial-gradient(circle at 8% 10%, rgba(8,116,67,.10), transparent 28%),
    radial-gradient(circle at 92% 15%, rgba(201,35,50,.08), transparent 25%),
    linear-gradient(135deg,#ffffff 0%,#f7fbf9 100%);
  border:1px solid #e1ebe5;
  box-shadow:0 18px 55px rgba(18,38,63,.08);
  overflow:hidden;
}
.news-featured-premium:before{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:7px;
  background:linear-gradient(90deg,transparent 0%,var(--red) 18%,var(--green) 50%,var(--red) 82%,transparent 100%);
  opacity:.85;
}
.news-featured-premium:after{
  content:"";
  position:absolute;
  width:260px;height:260px;
  left:-150px;top:-150px;
  border:1px solid rgba(8,116,67,.12);
  border-radius:50%;
  box-shadow:0 0 0 28px rgba(8,116,67,.035),0 0 0 56px rgba(8,116,67,.025);
  pointer-events:none;
}
.news-featured-decoration{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin:-3px auto 16px;
  position:relative;
  z-index:1;
}
.news-featured-decoration span{
  display:block;
  width:54px;height:2px;
  background:linear-gradient(90deg,transparent,var(--green));
  border-radius:999px;
}
.news-featured-decoration span:last-child{
  background:linear-gradient(90deg,var(--green),transparent);
}
.news-featured-decoration i{
  display:block;
  width:12px;height:12px;
  border:2px solid var(--green);
  border-radius:50%;
  transform:rotate(45deg);
  background:#fff;
}
.news-featured-head{
  position:relative;
  z-index:1;
  margin-bottom:24px;
  justify-content:center;
  text-align:center;
}
.news-featured-head>div{width:100%}
.news-featured-head span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 12px;
  border-radius:999px;
  background:#e9f6ef;
  color:var(--green);
}
.news-featured-head span:before{
  content:"";
  width:6px;height:6px;border-radius:50%;
  background:var(--red);
}
.news-featured-head h2{
  font-size:30px;
  margin:8px 0 3px;
}
.news-featured-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.news-featured-premium .news-carousel{
  position:relative;
  z-index:1;
}
.news-featured-premium .news-slide-card{
  border:1px solid #e1e8e4;
  border-radius:22px;
  box-shadow:0 12px 34px rgba(18,38,63,.075);
  transition:transform .25s ease,box-shadow .25s ease;
}
.news-featured-premium .news-slide-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 45px rgba(18,38,63,.13);
}
.news-featured-premium .news-slide-image{
  position:relative;
  display:block;
  overflow:hidden;
}
.news-featured-premium .news-slide-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 60%,rgba(8,20,35,.18));
  pointer-events:none;
}
.news-featured-premium .news-slide-image img{
  height:205px;
  transition:transform .45s ease;
}
.news-featured-premium .news-slide-card:hover .news-slide-image img{
  transform:scale(1.045);
}
.news-featured-premium .news-carousel-arrow{
  position:relative;
  z-index:2;
  border:1px solid #e1e9e4;
  background:#fff;
}
.news-featured-premium .news-carousel-dots button{
  transition:.2s ease;
}
.news-featured-premium .news-carousel-dots{
  position:relative;
  z-index:1;
  margin-bottom:4px;
}

/* Lightbox: cleaner, centered and obvious zoom affordance */
.news-gallery-item:focus-visible{
  outline:3px solid rgba(8,116,67,.35);
  outline-offset:3px;
}
.sh4k-lightbox{
  backdrop-filter:blur(7px);
  background:rgba(7,15,12,.92);
}
.sh4k-lightbox-image{
  animation:sh4kLightboxIn .22s ease-out;
}
@keyframes sh4kLightboxIn{
  from{opacity:0;transform:scale(.96)}
  to{opacity:1;transform:scale(1)}
}
@media(max-width:760px){
  .news-featured-premium{padding:26px 14px 24px;border-radius:24px}
  .news-featured-head h2{font-size:25px}
  .news-featured-head p{font-size:12px}
  .news-featured-premium .news-slide-image img{height:190px}
  .news-single-date{font-size:10px;margin-bottom:11px}
}

/* ===== Requested header/search/date corrections ===== */
.site-header-inner{grid-template-columns:160px 1fr 120px;grid-template-rows:auto auto;min-height:82px;padding-top:8px;padding-bottom:12px}
.header-search{grid-column:1 / -1;width:min(100%,700px);justify-self:center;padding:0!important;margin:0!important}
.header-search .home-search-box{width:100%;max-width:700px;margin:0}
.site-brand-copy{font-size:18px;font-weight:900;line-height:1.45}
.news-single-date{display:block!important;color:#718096;font-size:11px;font-weight:700;line-height:1.8;margin:3px 0 14px}
@media(max-width:760px){
 .site-header-inner{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:8px 12px;padding:8px 0 12px}
 .site-brand{grid-column:1}.header-space{grid-column:2;grid-row:1}
 .header-search{grid-column:1 / -1;grid-row:2;width:100%}
 .site-brand-copy{font-size:15px;display:block;max-width:none;white-space:nowrap}
}
@media(max-width:480px){.site-brand-copy{font-size:13px}}

/* =========================================================
   FINAL NEWS / HEADER / MOBILE CORRECTIONS
   ========================================================= */

/* Desktop header: keep the brand + logo clearly on the far right,
   separate from the navigation, with the search centered underneath. */
.site-header-inner{
  min-height:78px;
  display:grid;
  grid-template-columns:minmax(330px,380px) minmax(0,1fr) 90px;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:28px;
  row-gap:0;
}
.site-brand{
  grid-column:1;
  grid-row:1;
  justify-self:start;
  width:100%;
  min-width:0;
  gap:14px;
}
.site-brand img{max-height:66px;width:auto;flex:none}
.site-brand-copy{
  font-size:18px;
  font-weight:900;
  line-height:1.5;
  color:var(--ink);
  white-space:nowrap;
  overflow:visible;
}
.site-nav{grid-column:2;grid-row:1;justify-self:center}
.header-space{grid-column:3;grid-row:1;min-width:0}
.header-search{
  grid-column:1 / -1;
  grid-row:2;
  width:100%;
  padding:5px 0 12px;
}
.header-search .home-search-section{padding:0}
.header-search .home-search-box{
  width:min(100%,700px);
  max-width:700px;
  margin:0 auto;
}
.header-search .home-search-box form{display:flex}

/* The news area uses a clearly red editorial visual language. */
.archive-hero{
  background:
    radial-gradient(circle at 8% 20%,rgba(201,35,50,.16),transparent 28%),
    linear-gradient(135deg,#fff7f7 0%,#fff 58%,#fff5f6 100%);
  border-bottom:1px solid #f1d7da;
}
.archive-hero h1{color:#a9192b;font-weight:900}
.news-featured{
  border-color:#f0d9dc;
  background:
    radial-gradient(circle at 90% 10%,rgba(201,35,50,.10),transparent 28%),
    linear-gradient(135deg,#fff 0%,#fff8f8 100%);
}
.news-featured-premium:before{
  background:linear-gradient(90deg,transparent 0%,#c92332 18%,#a9192b 50%,#c92332 82%,transparent 100%);
}
.news-featured-decoration span{background:linear-gradient(90deg,transparent,#c92332)}
.news-featured-decoration span:last-child{background:linear-gradient(90deg,#c92332,transparent)}
.news-featured-decoration i{border-color:#c92332}
.news-featured-head span{
  background:#fff0f2;
  color:#a9192b;
}
.news-featured-head span:before{background:#c92332}
.news-featured-head h2{color:#8f1425}
.news-featured-premium .news-slide-card{border-color:#f0dfe1}
.news-featured-premium .news-slide-card:hover{
  box-shadow:0 20px 45px rgba(155,25,42,.14);
}
.news-featured-premium .news-carousel-arrow,
.news-featured-premium .news-carousel-dots button.active{
  color:#c92332;
  background:#c92332;
}
.news-list-section .modern-section-head span{color:#c92332}
.news-list-section .modern-read-more{color:#c92332}
.news-card{border-color:#f0dfe1}
.news-card:hover{box-shadow:0 18px 42px rgba(155,25,42,.10)}
.news-card-body h2 a:hover{color:#c92332}

/* Single news article: red editorial theme + exact publication date. */
.news-single-page{
  background:
    linear-gradient(180deg,#fff8f8 0,#fff 420px);
}
.news-single{
  border-color:#efd9dc;
  box-shadow:0 18px 55px rgba(155,25,42,.09);
}
.news-single-intro{
  border-right:5px solid #c92332;
}
.news-single-date{
  color:#c92332;
  font-size:12px;
  font-weight:800;
  margin:0 0 10px;
}
.news-single-intro h1{color:#1b2030}
.news-single-subtitle{color:#a9192b}
.news-single-body{border-top-color:#f0dfe1}
.news-gallery{border-top:1px solid #f0dfe1;margin-top:28px}
.news-gallery h2{color:#a9192b}
.news-gallery-grid a{
  border:2px solid #f3e1e3;
  transition:.25s ease;
}
.news-gallery-grid a:hover{
  border-color:#c92332;
  box-shadow:0 12px 30px rgba(155,25,42,.14);
}

/* Home news cards: no dates. */
.home-modern .news-slide-body>span{display:none}

/* Mobile: make the entire site fit the viewport and avoid oversized/escaping elements. */
@media(max-width:760px){
  .container{width:min(100% - 22px,var(--container))}
  .site-header-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    column-gap:10px;
    row-gap:4px;
    min-height:0;
    padding:8px 0 10px;
  }
  .site-brand{
    grid-column:1;
    grid-row:1;
    justify-self:start;
    width:auto;
    max-width:calc(100vw - 62px);
  }
  .site-brand img{max-height:48px}
  .site-brand-copy{
    display:block;
    max-width:calc(100vw - 125px);
    white-space:normal;
    font-size:12px;
    line-height:1.5;
  }
  .site-nav{display:none}
  .header-space{
    grid-column:2;
    grid-row:1;
    min-width:36px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .mobile-toggle{
    display:block;
    width:36px;height:36px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    font-size:22px;
    line-height:1;
  }
  .header-search{
    grid-column:1 / -1;
    grid-row:2;
    padding:2px 0 0;
  }
  .header-search .home-search-box{
    width:100%;
    max-width:none;
  }
  .home-search-box{padding:5px}
  .home-search-box input{font-size:13px;padding:10px 12px;min-width:0}
  .home-search-box button{padding:0 16px;font-size:12px;flex:none}

  .home-hero-modern{padding:24px 0 20px;background-size:430px}
  .home-hero-grid{grid-template-columns:1fr;gap:10px}
  .hero-text{padding:10px 4px;text-align:center}
  .hero-text h1{font-size:27px;line-height:1.65;margin:8px 0}
  .hero-text p{font-size:13px;line-height:2;margin:0}
  .hero-actions{margin-top:15px}
  .primary-action{padding:11px 16px;font-size:13px}

  .orbital-slider{
    width:100%;
    max-width:100%;
    height:315px;
    min-height:315px;
    overflow:hidden;
    margin:0 auto;
  }
  .orbital-card{
    width:185px;
    height:255px;
    max-width:55vw;
    border-radius:22px;
  }
  .orbital-card-0{transform:translateX(0) scale(1)}
  .orbital-card-1{transform:translateX(82px) rotate(6deg) scale(.78)}
  .orbital-card-2{transform:translateX(132px) rotate(9deg) scale(.66);opacity:.55}
  .orbital-card-3{transform:translateX(-82px) rotate(-6deg) scale(.78)}
  .orbital-card-4{transform:translateX(-132px) rotate(-9deg) scale(.66);opacity:.55}
  .orbital-info{inset:auto 8px 8px;padding:9px;font-size:12px}

  .home-section{padding:32px 0}
  .modern-section-head{align-items:flex-start;gap:8px}
  .modern-section-head h2{font-size:22px}
  .news-carousel{grid-template-columns:28px minmax(0,1fr) 28px;gap:4px}
  .news-carousel-viewport{min-width:0}
  .news-slide-card{min-width:0;flex-basis:100%!important}
  .news-slide-image img{height:180px}
  .news-slide-body{padding:14px}
  .news-slide-body h3{font-size:16px;line-height:1.7}
  .news-slide-body p{font-size:12px}
  .news-carousel-arrow{width:28px;font-size:32px}

  .home-martyr-grid,.martyr-grid,.media-grid,.archive-news-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .home-martyr-card h3,.martyr-card h3{font-size:14px}
  .home-media-strip{grid-template-columns:1fr;gap:12px}
  .home-media-card img{height:190px}

  .archive-hero{padding:30px 0}
  .archive-hero h1,.single-hero h1{font-size:28px}
  .archive-body{padding:25px 0}
  .news-featured-premium{padding:22px 10px 24px;border-radius:22px}
  .news-featured-head h2{font-size:24px}
  .news-featured-head p{font-size:11px}
  .news-featured-premium .news-slide-image img{height:180px}
  .news-card img{height:180px}

  .news-single-page{padding:25px 0}
  .news-single{border-radius:20px}
  .news-single-top{grid-template-columns:1fr;direction:rtl}
  .news-single-image img{min-height:220px;max-height:300px}
  .news-single-intro{
    padding:22px 18px;
    border-right:0;
    border-top:4px solid #c92332;
  }
  .news-single-intro h1{font-size:25px;line-height:1.65}
  .news-single-date{font-size:11px}
  .news-single-body{padding:22px 18px;font-size:14px;line-height:2.2}
  .news-gallery{padding:0 18px 25px}
  .news-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .news-gallery-grid img{height:145px}
}

@media(max-width:520px){
  .site-brand-copy{font-size:11px;max-width:180px}
  .site-brand img{max-height:44px}
  .home-martyr-grid,.martyr-grid,.media-grid,.archive-news-grid{grid-template-columns:1fr}
  .orbital-slider{height:285px;min-height:285px}
  .orbital-card{width:175px;height:245px}
  .orbital-card-1{transform:translateX(68px) rotate(5deg) scale(.75)}
  .orbital-card-2{transform:translateX(105px) rotate(8deg) scale(.62);opacity:.35}
  .orbital-card-3{transform:translateX(-68px) rotate(-5deg) scale(.75)}
  .orbital-card-4{transform:translateX(-105px) rotate(-8deg) scale(.62);opacity:.35}
  .news-carousel{grid-template-columns:24px minmax(0,1fr) 24px}
  .news-carousel-arrow{width:24px;font-size:28px}
  .news-slide-image img{height:170px}
  .news-gallery-grid{grid-template-columns:1fr}
  .news-gallery-grid img{height:auto;max-height:260px}
}

/* Keep hidden overflow guarantees on long Persian words/content. */
.site-main,.home-modern,.archive-body,.news-single-page,.single-wrap,
.archive-news-grid,.home-martyr-grid,.home-media-strip,
.news-carousel-viewport,.news-single-body,.entry-body{
  min-width:0;
}
.entry-body{overflow-wrap:anywhere}

@media(max-width:760px){
  .mobile-menu{
    position:absolute;
    top:100%;
    right:11px;
    left:11px;
    z-index:1100;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 18px 45px rgba(18,38,63,.14);
    padding:8px;
  }
  .mobile-menu ul{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:3px;
  }
  .mobile-menu li a{
    display:block;
    padding:11px 13px;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
  }
  .mobile-menu li a:hover,
  .mobile-menu li.current-menu-item>a{
    background:#f1f8f4;
    color:var(--green);
  }
}


/* ===== Final visual refinements ===== */

/* All page title bands use the same ornamental pattern as the home hero. */
.archive-hero,
.single-hero{
  background-color:#fff;
  background-image:url('assets/site-pattern.png');
  background-size:700px;
  background-repeat:repeat;
  background-position:center;
}
.archive-hero h1,
.single-hero h1{color:#17233b}
.archive-hero p,
.single-hero p{color:var(--muted)}

/* News page: red only for typography/signs, never as a red background. */
.news-featured{
  background:#fff !important;
  background-image:none !important;
  border-color:#e8e8e8 !important;
  box-shadow:0 18px 55px rgba(18,38,63,.07);
}
.news-featured-premium{
  background:#fff !important;
}
.news-featured-premium:before{
  background:linear-gradient(90deg,transparent 0%,#c92332 20%,#c92332 80%,transparent 100%);
}
.news-featured-head span{
  background:transparent !important;
  color:#a9192b;
  border:1px solid #efd8dc;
}
.news-featured-decoration span{background:linear-gradient(90deg,transparent,#c92332)}
.news-featured-decoration span:last-child{background:linear-gradient(90deg,#c92332,transparent)}
.news-featured-decoration i{background:#fff;border-color:#c92332}
.news-list-section .modern-section-head span,
.news-list-section .modern-read-more,
.news-card-body h2 a:hover{color:#c92332}

/* The arrow controls are simple arrows, without the circular button. */
.news-carousel-arrow{
  width:34px !important;
  height:44px !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  color:#c92332 !important;
  font-size:36px !important;
  padding:0 !important;
}
.news-carousel-arrow:hover{
  background:transparent !important;
  transform:scale(1.12);
}

/* Ornamental background behind the title area of individual content pages. */
.news-single-intro,
.media-info{
  background-image:url('assets/site-pattern.png');
  background-size:520px;
  background-repeat:repeat;
  background-color:#fff;
}
.news-single-intro{
  background-position:center;
}
.media-info{
  background-position:center;
}

/* Mobile: exactly two martyr cards side-by-side, both home and archive. */
@media(max-width:760px){
  .home-martyr-grid,
  .martyr-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  .home-martyr-card,
  .martyr-card{
    min-width:0;
    border-radius:15px;
  }
  .martyr-image-wrap{
    aspect-ratio:4/5;
  }
  .martyr-card-body{
    padding:9px 8px 10px;
  }
  .home-martyr-card h3,
  .martyr-card h3{
    font-size:12px !important;
    line-height:1.6;
    margin-bottom:7px;
  }
  .martyr-meta{
    font-size:9px;
    gap:4px;
  }
  .martyr-actions{
    gap:5px;
  }
  .like-btn{
    font-size:11px;
  }
  .archive-hero{
    background-size:430px;
  }
  .news-featured-premium{
    background:#fff !important;
  }
}

@media(max-width:380px){
  .home-martyr-grid,
  .martyr-grid{
    gap:7px !important;
  }
  .home-martyr-card h3,
  .martyr-card h3{
    font-size:11px !important;
  }
  .martyr-card-body{
    padding:8px 6px;
  }
}

/* Ensure long Persian text never forces a horizontal scroll. */
body,
.site,
.site-main,
main,
section,
article,
.container{
  max-width:100%;
}
img,video,iframe{
  max-width:100%;
}


/* ===== Mobile hamburger: green icon, no box/background ===== */
@media (max-width:760px){
  .mobile-toggle{
    color:var(--green) !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    outline:none !important;
    width:auto !important;
    height:auto !important;
    padding:2px 0 !important;
    font-size:29px !important;
    line-height:1 !important;
    appearance:none;
    -webkit-appearance:none;
  }
  .mobile-toggle:hover,
  .mobile-toggle:focus,
  .mobile-toggle:active{
    color:var(--green) !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    outline:none !important;
  }
}


/* ===== Single martyr page — scoped visual layer ===== */
.martyr-wrapper{max-width:1300px;margin:0 auto;padding:38px 18px 65px;direction:rtl;background:transparent}
.martyr-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:28px;align-items:start}
.martyr-card{background:#fff;border:1px solid #e5ebe7;border-radius:24px;padding:18px;box-shadow:0 16px 45px rgba(18,38,63,.09);position:sticky;top:92px;min-width:0;overflow:hidden}
.martyr-photo-wrap{position:relative;overflow:hidden;border-radius:18px;background:#edf2ef;aspect-ratio:4/5}
.martyr-photo-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.martyr-photo-badge{position:absolute;right:12px;bottom:12px;padding:7px 12px;border-radius:999px;background:rgba(7,105,61,.92);color:#fff;font-size:11px;font-weight:800}
.martyr-name{text-align:center;font-size:24px;line-height:1.6;margin:16px 0 12px;font-weight:900;color:#172033}
.fav-btn{width:100%;background:#f2f5f3;color:#12643f;border:1px solid #dce8e1;padding:11px;border-radius:12px;font-weight:800;cursor:pointer;margin-bottom:13px;transition:.2s}
.fav-btn:hover{background:#e8f4ed}.fav-btn.active{background:#b22222;color:#fff;border-color:#b22222}
.salavat-wrapper{background:linear-gradient(145deg,#087443,#075d36);color:#fff;text-align:center;border-radius:16px;padding:16px;margin:14px 0;box-shadow:0 10px 25px rgba(8,116,67,.18)}
.salavat-top{display:flex;justify-content:center;gap:7px;align-items:center;margin-bottom:5px}.salavat-count{font-size:30px;font-weight:900}.salavat-note{font-size:12px;opacity:.92;line-height:1.9}
.salavat-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:12px}.salavat-btn{background:#fff;color:#087443;border:0;padding:7px 12px;border-radius:9px;cursor:pointer;font-weight:900;min-width:38px}.salavat-btn:hover{transform:translateY(-1px)}
.map-box{height:190px;border-radius:14px;overflow:hidden;margin:14px 0;border:1px solid #e3e9e5}
.martyr-data{margin-top:14px}.martyr-data-row{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:10px;margin:6px 0;font-size:13px;background:#f5f7f8}.martyr-data-row:nth-child(odd){background:#e9f5ee}.martyr-data-row>span:first-child{color:#667085;font-weight:700}.martyr-data-row .answer{color:#087443;font-weight:800;text-align:left}
.martyr-main-content{min-width:0}
.martyr-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px;padding:7px;border:1px solid #e0e9e4;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(18,38,63,.06);overflow:hidden}
.martyr-tabs .tab-btn{border:1px solid transparent;background:transparent;color:#53606b;padding:12px 10px;border-radius:12px;cursor:pointer;font-weight:900;font-family:inherit;font-size:13px;transition:.2s;min-width:0;white-space:nowrap}
.martyr-tabs .tab-btn span{color:#087443;margin-left:5px}.martyr-tabs .tab-btn:hover{background:#eef7f1;color:#087443}.martyr-tabs .tab-btn.active{background:#087443;color:#fff;box-shadow:0 7px 18px rgba(8,116,67,.18)}.martyr-tabs .tab-btn.active span{color:#fff}
.martyr-content .tab{display:none;background:#fff;border:1px solid #e4eae7;border-radius:20px;padding:28px;box-shadow:0 13px 38px rgba(18,38,63,.07);min-height:340px;line-height:2.15;overflow:hidden}.martyr-content .tab.active{display:block}
.martyr-content .tab img,.martyr-content .tab video,.martyr-content .tab iframe{max-width:100%;height:auto;border-radius:13px}.martyr-content .tab p,.martyr-content .tab h1,.martyr-content .tab h2,.martyr-content .tab h3,.martyr-content .tab h4,.martyr-content .tab li{overflow-wrap:anywhere}.martyr-content .tab table{display:block;max-width:100%;overflow:auto}.video-wrapper-container{display:flex;flex-wrap:wrap;gap:15px}.video-wrapper{flex:1 1 calc(50% - 15px);min-width:0}.video-wrapper video,.video-wrapper iframe{width:100%;max-width:100%;border-radius:13px}.audio-wrapper audio{max-width:100%;width:100%}
@media(max-width:1000px){.martyr-layout{grid-template-columns:300px minmax(0,1fr);gap:20px}.martyr-card{position:static}.martyr-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.martyr-wrapper{padding:25px 12px 48px}.martyr-layout{grid-template-columns:1fr;gap:18px}.martyr-card{padding:14px;border-radius:20px}.martyr-photo-wrap{max-height:none}.martyr-name{font-size:22px}.martyr-main-content{width:100%;min-width:0}.martyr-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:6px;border-radius:15px}.martyr-tabs .tab-btn{font-size:12px;padding:11px 7px;white-space:normal;line-height:1.7}.martyr-content .tab{padding:19px 16px;border-radius:17px;min-height:0}.martyr-data-row{font-size:12px}.map-box{height:175px}.video-wrapper{flex-basis:100%}}
@media(max-width:430px){.martyr-wrapper{padding-left:10px;padding-right:10px}.martyr-photo-wrap{aspect-ratio:1/1.18}.martyr-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.martyr-tabs .tab-btn{font-size:11px;padding:10px 5px}.martyr-tabs .tab-btn span{margin-left:2px}.martyr-content .tab{padding:16px 13px}.martyr-data-row{flex-direction:column;align-items:flex-start;gap:3px}.martyr-data-row .answer{text-align:right}.salavat-buttons{gap:6px}.salavat-btn{padding:7px 10px;min-width:36px}}

/* v9: stable 20-news homepage carousel */
.home-news-section .news-carousel-viewport{width:100%;overflow:hidden;min-width:0}
.home-news-section .news-carousel-track{display:flex;gap:18px;will-change:transform;transition:transform .45s ease}
.home-news-section .news-slide-card{flex:0 0 auto;min-width:0}
.home-news-section .news-carousel-dots{min-height:8px}
@media(max-width:700px){
  .home-news-section .news-carousel{grid-template-columns:36px 1fr 36px;gap:6px}
  .home-news-section .news-carousel-arrow{width:36px;height:36px;font-size:23px;box-shadow:none;background:transparent}
}

/* ===== Homepage: final latest-news showcase ===== */
.home-news-section .news-showcase{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 48px;
  align-items:center;
  gap:12px;
}
.home-news-section .news-showcase-viewport{
  min-width:0;
  overflow:hidden;
}
.home-news-section .news-showcase-track{
  display:flex;
  will-change:transform;
  transition:transform .65s cubic-bezier(.22,.61,.36,1);
}
.home-news-section .news-showcase-page{
  flex:0 0 100%;
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:18px;
}
.home-news-section .news-showcase-card{
  min-width:0;
  background:#fff;
  border:1px solid #e1e8e4;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  transition:transform .25s ease,box-shadow .25s ease;
}
.home-news-section .news-showcase-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 42px rgba(18,38,63,.12);
}
.home-news-section .news-showcase-image{
  position:relative;
  display:block;
  overflow:hidden;
}
.home-news-section .news-showcase-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(8,20,35,.2));
  pointer-events:none;
}
.home-news-section .news-showcase-image img{
  display:block;
  width:100%;
  height:150px;
  object-fit:cover;
  transition:transform .45s ease;
}
.home-news-section .news-showcase-card:hover .news-showcase-image img{
  transform:scale(1.05);
}
.home-news-section .news-showcase-body{
  padding:12px 14px 14px;
}
.home-news-section .news-showcase-body h3{
  font-size:15px;
  line-height:1.75;
  margin:0 0 6px;
}
.home-news-section .news-showcase-body p{
  color:var(--muted);
  line-height:1.75;
  font-size:11px;
  margin:0 0 7px;
}
.home-news-section .news-showcase-arrow{
  width:44px;
  height:44px;
  border:1px solid #e1e9e4;
  border-radius:50%;
  background:#fff;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
  font-size:28px;
  cursor:pointer;
  color:var(--green);
  transition:.2s ease;
}
.home-news-section .news-showcase-arrow:hover{
  transform:scale(1.08);
}
.home-news-section .news-showcase-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:16px;
  min-height:8px;
}
.home-news-section .news-showcase-dots button{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#cbd5df;
  cursor:pointer;
  transition:.2s ease;
}
.home-news-section .news-showcase-dots button.active{
  width:24px;
  border-radius:999px;
  background:var(--green);
}
.home-news-section .news-showcase-empty{
  grid-column:1/-1;
  padding:30px;
  text-align:center;
}
@media(max-width:1050px){
  .home-news-section .news-showcase-page{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .home-news-section .news-showcase-image img{height:140px}
}
@media(max-width:760px){
  .home-news-section .news-showcase{
    grid-template-columns:36px minmax(0,1fr) 36px;
    gap:6px;
  }
  .home-news-section .news-showcase-page{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(5,minmax(0,1fr));
    gap:12px;
  }
  .home-news-section .news-showcase-image img{height:150px}
  .home-news-section .news-showcase-body{padding:10px 11px 12px}
  .home-news-section .news-showcase-body h3{font-size:13px;line-height:1.7}
  .home-news-section .news-showcase-body p{display:none}
  .home-news-section .news-showcase-arrow{
    width:34px;
    height:34px;
    font-size:23px;
  }
}
@media(max-width:480px){
  .home-news-section .news-showcase-page{gap:9px}
  .home-news-section .news-showcase-image img{height:125px}
  .home-news-section .news-showcase-body h3{font-size:12px}
  .home-news-section .modern-read-more{font-size:11px}
}
