:root{
  --bg:#f4f6fa; --surface:#ffffff; --surface2:#eef2f8; --text:#14213a; --muted:#5b6b84;
  --navy:#0b1f3a; --navy2:#12305c; --red:#d8232a; --red2:#b30f16; --gold:#f2b705;
  --border:#dde4ef; --shadow:0 10px 30px rgba(11,31,58,.10); --radius:16px;
}
body.dark{
  --bg:#0a1220; --surface:#111c30; --surface2:#16233c; --text:#e8eef7; --muted:#9db0ca;
  --border:#22334f; --shadow:0 10px 30px rgba(0,0,0,.45);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Vazirmatn,Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.9;font-size:16px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1220px;margin:0 auto;padding:0 18px}
button,input,select,textarea{font-family:inherit;font-size:1rem}

/* topbar */
.topbar{background:var(--navy);color:#cfe0f5;font-size:.85rem;padding:7px 0}
.topbar-inner{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.topbar-left{margin-inline-start:auto;display:flex;gap:16px;align-items:center}
.topbar-left a:hover{color:#fff}
.theme-btn{background:transparent;border:1px solid #35527c;color:#cfe0f5;border-radius:999px;padding:2px 12px;cursor:pointer;font-size:.8rem}
.theme-btn:hover{background:#35527c;color:#fff}

/* header */
.header{background:var(--surface);border-bottom:3px solid var(--red);position:sticky;top:0;z-index:50;box-shadow:0 2px 14px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;gap:26px;padding:12px 18px}
.logo{display:flex;align-items:center;gap:10px}
.logo-mark{background:var(--red);color:#fff;font-weight:900;font-size:1.7rem;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;line-height:1}
.logo-text{font-size:2rem;font-weight:900;color:var(--navy);letter-spacing:-1px;line-height:1}
body.dark .logo-text{color:#fff}
.logo-text em{color:var(--red);font-style:normal}
.logo-fa{display:flex;flex-direction:column;line-height:1.3;font-weight:800;color:var(--text)}
.logo-fa small{font-weight:400;color:var(--muted);font-size:.75rem}
.nav{display:flex;gap:4px;margin-inline-start:auto;flex-wrap:wrap}
.nav a{padding:7px 13px;border-radius:999px;font-weight:600;color:var(--muted)}
.nav a:hover,.nav a.active{background:var(--surface2);color:var(--red)}
.burger{display:none;background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:4px 13px;font-size:1.25rem;cursor:pointer;color:var(--text)}

/* ticker */
.ticker-wrap{background:var(--navy2);color:#fff;overflow:hidden}
.ticker-inner{display:flex;align-items:center;gap:14px;padding:8px 18px}
.ticker-label{background:var(--red);padding:2px 14px;border-radius:999px;font-weight:800;white-space:nowrap;font-size:.88rem}
.ticker{overflow:hidden;flex:1;direction:ltr}
.ticker-track{display:inline-block;white-space:nowrap;animation:tick 70s linear infinite;direction:rtl;font-size:.92rem}
.ticker-track a{margin:0 22px}
.ticker-track a:hover{color:var(--gold)}
@keyframes tick{from{transform:translateX(-55%)}to{transform:translateX(55%)}}

/* hero */
.hero{padding:28px 0 8px}
.hero-grid{display:grid;grid-template-columns:1.9fr 1fr;gap:22px}
.hero-main{position:relative;border-radius:var(--radius);overflow:hidden;min-height:420px;background:var(--navy);box-shadow:var(--shadow)}
.hero-main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:.92}
.hero-overlay{position:absolute;inset:auto 0 0 0;padding:70px 26px 22px;background:linear-gradient(transparent,rgba(4,12,26,.93));color:#fff}
.hero-overlay .badge{background:var(--red);padding:1px 12px;border-radius:999px;font-size:.8rem;font-weight:700}
.hero-overlay h2{font-size:1.65rem;line-height:1.7;margin:10px 0 6px}
.hero-overlay p{color:#d6e2f2;font-size:.95rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-meta{font-size:.82rem;color:#a9bedd;margin-top:8px}
.hero-side{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.side-title{font-size:1.05rem;border-bottom:2px solid var(--red);padding-bottom:8px;margin-bottom:12px}
.top-list{list-style:none;counter-reset:top}
.top-list li{counter-increment:top;padding:9px 0;border-bottom:1px dashed var(--border);display:flex;gap:10px;align-items:flex-start}
.top-list li:last-child{border-bottom:none}
.top-list li::before{content:counter(top);background:var(--surface2);color:var(--red);font-weight:900;min-width:30px;height:30px;border-radius:9px;display:grid;place-items:center;line-height:1}
.top-list a{font-weight:600;line-height:1.7;font-size:.94rem}
.top-list a:hover{color:var(--red)}
.top-list small{display:block;color:var(--muted);font-weight:400}
.weather-card{background:linear-gradient(140deg,var(--navy),var(--navy2));color:#eaf1fb;border-radius:13px;padding:16px;margin-top:16px}
.weather-card h3{font-size:.98rem;margin-bottom:8px}
.weather-card ul{list-style:none}
.weather-card li{display:flex;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.14);padding:5px 0;font-size:.9rem}
.weather-card li:last-child{border:none}
.weather-note{font-size:.8rem;color:#b9cbe6;margin-top:9px;line-height:1.8}

/* intro */
.intro-strip{padding:22px 0}
.intro-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.intro-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.intro-card span{font-size:1.6rem}
.intro-card h3{margin:6px 0 4px;font-size:1.02rem}
.intro-card p{color:var(--muted);font-size:.9rem}

/* news */
.section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;flex-wrap:wrap;margin:22px 0 14px}
.section-head h1{font-size:1.55rem}
.section-head p{color:var(--muted);font-size:.92rem}
.tools{display:flex;gap:9px;flex-wrap:wrap}
.tools input,.tools select{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:11px;padding:9px 13px;min-width:210px}
.btn{background:var(--red);color:#fff;border:none;border-radius:11px;padding:9px 18px;cursor:pointer;font-weight:700}
.btn:hover{background:var(--red2)}
.btn-big{padding:12px 30px;font-size:1.02rem}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.chip{background:var(--surface);border:1px solid var(--border);color:var(--muted);padding:5px 17px;border-radius:999px;cursor:pointer;font-weight:600}
.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}
body.dark .chip.active{background:var(--red);border-color:var(--red)}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}
.card:hover{transform:translateY(-4px)}
.card-media{position:relative;aspect-ratio:16/9;background:var(--surface2);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-media .src{position:absolute;top:10px;inset-inline-start:10px;background:rgba(5,15,32,.82);color:#fff;padding:1px 11px;border-radius:999px;font-size:.76rem;font-weight:700}
.card-media .cat{position:absolute;bottom:10px;inset-inline-start:10px;background:var(--gold);color:#231a00;padding:1px 11px;border-radius:999px;font-size:.76rem;font-weight:800}
.card-body{padding:15px 17px 17px;display:flex;flex-direction:column;gap:7px;flex:1}
.card-body h3{font-size:1.02rem;line-height:1.75}
.card-body h3 a:hover{color:var(--red)}
.card-body p{color:var(--muted);font-size:.88rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--muted);border-top:1px dashed var(--border);padding-top:9px}
.card-foot a{color:var(--red);font-weight:800}
.empty{text-align:center;padding:38px;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}
.empty .btn{margin-top:12px}
.load-more-wrap{text-align:center;margin:24px 0 8px}

/* skeletons */
.skeleton{background:linear-gradient(100deg,var(--surface2) 40%,var(--border) 50%,var(--surface2) 60%);background-size:200% 100%;animation:sh 1.3s infinite;border-radius:12px}
@keyframes sh{to{background-position:-200% 0}}
.hero-skeleton{position:absolute;inset:0;border-radius:0}
.card-skeleton{height:330px}
.skeleton-line{height:16px;background:var(--surface2);border-radius:7px;margin:13px 0;list-style:none}
.skeleton-line::before{display:none!important}

/* sources */
.sources{background:var(--surface);border-block:1px solid var(--border);margin-top:38px;padding:36px 0}
.sources h2,.faq h2,.contact h2{font-size:1.4rem;margin-bottom:6px}
.section-sub{color:var(--muted);margin-bottom:18px}
.source-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.source-card{border:1px solid var(--border);border-radius:13px;padding:16px;background:var(--bg)}
.source-card h3{font-size:1rem;display:flex;align-items:center;gap:8px}
.source-card .dot{width:11px;height:11px;border-radius:50%}
.source-card p{color:var(--muted);font-size:.86rem;margin-top:5px}
.source-card a{color:var(--red);font-size:.85rem;font-weight:700}

/* about */
.about{padding:38px 0}
.about-grid{display:grid;grid-template-columns:1.8fr 1fr;gap:24px;align-items:start}
.about h2{font-size:1.4rem;margin-bottom:10px}
.about h3{margin:18px 0 6px}
.about p{color:var(--text);margin-bottom:10px}
.check-list{list-style:none}
.check-list li{padding:5px 0 5px 0;padding-inline-start:26px;position:relative}
.check-list li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--red);font-weight:900}
.about-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.about-card img{border-radius:11px;margin-bottom:13px;width:100%}
.about-card table{width:100%;border-collapse:collapse;font-size:.9rem}
.about-card th{text-align:start;color:var(--muted);font-weight:600;padding:7px 4px;border-bottom:1px solid var(--border);white-space:nowrap}
.about-card td{padding:7px 4px;border-bottom:1px solid var(--border)}
.about-card tr:last-child th,.about-card tr:last-child td{border:none}

/* faq + contact */
.faq{padding:8px 0 30px}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px 18px;margin-bottom:10px}
.faq summary{font-weight:800;cursor:pointer}
.faq details p{color:var(--muted);margin-top:6px;font-size:.93rem}
.contact{background:var(--surface);border-top:1px solid var(--border);padding:36px 0 44px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.contact-list{list-style:none;margin:12px 0 20px}
.contact-list li{padding:4px 0}
.newsletter{background:var(--surface2);border-radius:13px;padding:17px}
.newsletter form{display:flex;gap:8px;margin-top:10px}
.newsletter input{flex:1;border:1px solid var(--border);border-radius:11px;padding:9px 13px;background:var(--surface);color:var(--text)}
.contact-form{display:flex;flex-direction:column;gap:12px}
.contact-form label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:.92rem}
.contact-form input,.contact-form select,.contact-form textarea{border:1px solid var(--border);border-radius:11px;padding:10px 13px;background:var(--bg);color:var(--text);font-weight:400}
.form-msg{color:#12805c;font-size:.88rem;min-height:1.2em}

/* footer */
.footer{background:var(--navy);color:#c8d8ee;padding:36px 0 0;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:24px;padding-bottom:26px}
.footer h4{color:#fff;margin-bottom:10px}
.footer a{display:block;padding:3px 0;color:#aebfe0}
.footer a:hover{color:#fff}
.footer-logo .logo-text{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:14px 18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.84rem}

#toTop{position:fixed;bottom:22px;inset-inline-start:22px;background:var(--red);color:#fff;border:none;width:46px;height:46px;border-radius:50%;font-size:1.2rem;cursor:pointer;box-shadow:var(--shadow);display:none;z-index:60}

.hero-note{margin-top:14px;font-size:.85rem;color:var(--muted);border-top:1px dashed var(--border);padding-top:10px}
.footer-grid-slim{grid-template-columns:1.6fr 1fr 1fr}

/* responsive */
@media(max-width:1020px){
  .hero-grid{grid-template-columns:1fr}
  .intro-grid,.source-grid{grid-template-columns:repeat(2,1fr)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
  .about-grid,.contact-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .nav{display:none;position:absolute;top:100%;right:0;left:0;background:var(--surface);flex-direction:column;padding:12px 18px;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .burger{display:block;margin-inline-start:auto}
  .logo-fa{display:none}
  .news-grid{grid-template-columns:1fr}
  .intro-grid,.source-grid,.footer-grid{grid-template-columns:1fr}
  .hero-main{min-height:340px}
  .hero-overlay h2{font-size:1.25rem}
  .tools{width:100%}.tools input{flex:1;min-width:150px}
  .topbar-left a{display:none}
  .newsletter form{flex-direction:column}
}

/* 2026: Compact editorial layout and responsive image thumbnails */
.hero{padding-top:20px}.hero-main{min-height:345px}.hero-grid{grid-template-columns:1.65fr 1fr;gap:16px}
.section-head{padding-top:10px}
.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.news-grid.grouped{display:block}
.topic-section{margin:0 0 35px;scroll-margin-top:105px}
.topic-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;padding:0 4px 9px;border-bottom:1px solid var(--border)}
.topic-heading h2{font-size:1.2rem;font-weight:900;display:flex;align-items:center;gap:10px}
.topic-heading h2::before{content:"";width:5px;height:23px;background:var(--red);border-radius:6px}
.topic-heading span{color:var(--muted);font-size:.81rem}
.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.card{min-height:160px;flex-direction:row;border-radius:14px;box-shadow:0 3px 15px rgba(11,31,58,.055);transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-media{flex:0 0 142px;width:142px;aspect-ratio:auto;min-height:142px;display:block;align-self:stretch}
.card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card-body{min-width:0;padding:13px 14px;gap:5px}
.card-kicker{color:var(--muted);display:flex;align-items:center;gap:5px;font-size:.75rem;line-height:1.6}
.source-dot{width:7px;height:7px;border-radius:50%;flex:none}.middle-dot{padding:0 4px}
.card-body h3{font-size:.94rem;line-height:1.75;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-body p{font-size:.79rem;line-height:1.8;-webkit-line-clamp:2}
.card-foot{border:0;padding:0;margin-top:auto;font-size:.72rem;gap:6px}
.card-foot a{white-space:nowrap}
.hero-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;color:white;text-align:center;height:100%;padding:35px}
.hero-empty p{font-size:.92rem;opacity:.75}
.load-sentinel{height:3px;pointer-events:none}
.seo-server-list{display:none}
@media(max-width:1020px){.hero-grid{grid-template-columns:1fr}.topic-grid,.news-grid{grid-template-columns:1fr 1fr}}
@media(max-width:750px){.topic-grid,.news-grid{grid-template-columns:1fr}.card-media{flex-basis:118px;width:118px;min-height:134px}.card-body{padding:11px 12px}.hero-main{min-height:310px}.card-body p{-webkit-line-clamp:1}.card-foot{font-size:.7rem}}
@media(max-width:390px){.card-media{flex-basis:102px;width:102px}.card-body h3{font-size:.88rem}.card-foot a{font-size:.68rem}.card-body{padding:10px}}
@media(prefers-reduced-motion:reduce){.card,.ticker-track{animation:none;transition:none}}
