/*
Theme Name: پایگاه خبری دودکش
Description: قالب اختصاصی پایگاه خبری دودکش بر اساس ماکت HTML
Author: شما
Version: 1.0
Text Domain: doodkesh
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#101827;--muted:#687386;--line:#e7eaf0;--bg:#ffffff;--card:#fff;--accent:#f2790f;--accent2:#ffb347}
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif}
a{text-decoration:none;color:inherit}.wrap{max-width:1240px;margin:auto;padding:0 22px}

.top{background:#111827;color:#dce2eb;font-size:12px}
.top .wrap{height:38px;display:flex;align-items:center;justify-content:space-between}
.top-left{display:flex;gap:18px}
.live{color:#ffcb94;font-weight:800}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#f2790f;margin-left:6px}

header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.head{height:92px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.logo{display:flex;align-items:center;gap:11px}
.mark{width:45px;height:45px;border-radius:50%;display:block;object-fit:contain;flex:none}
.brand b{font-size:25px;display:block;line-height:1}
.brand small{color:var(--muted);font-size:10px}
.search{border:1px solid var(--line);background:#fafbfc;border-radius:12px;height:42px;width:290px;display:flex;align-items:center;padding:0 13px;color:#8a93a3}
.search input{border:0;outline:0;background:transparent;font-family:inherit;width:100%;font-size:13px;margin-right:8px}

.nav{border-top:1px solid #f1f2f5}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;height:49px;overflow:auto}
.nav-links{display:flex;align-items:center;gap:27px;white-space:nowrap}
.nav a{font-size:13px;font-weight:700}
.nav a:first-child{color:var(--accent)}
.socials{display:flex;align-items:center;gap:10px;flex:none}
.social-ic{width:29px;height:29px;border-radius:50%;background:#f3f4f6;color:#687386;display:grid;place-items:center;transition:.15s ease}
.social-ic svg{width:14px;height:14px;fill:currentColor}
.social-ic:hover{background:var(--accent);color:#fff}

.ticker{margin:20px 0 18px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;overflow:hidden}
.ticker strong{background:var(--accent);color:#fff;padding:12px 18px;font-size:12px;white-space:nowrap}
.ticker p{margin:0;padding:0 16px;font-size:12px;font-weight:600}

/* ================= بخش هیرو ================= */
.hero-row{display:flex;flex-direction:column;gap:22px}
.hero-center{aspect-ratio:21/9;width:100%;position:relative;overflow:hidden;border-radius:16px;background:#222;color:#fff}
.hero-center img{width:100%;height:100%;object-fit:cover;display:block;opacity:.8}
.overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,8,15,.92),rgba(4,8,15,.05) 65%);padding:26px;display:flex;flex-direction:column;justify-content:end}
.tag{display:inline-flex;width:max-content;background:var(--accent);color:#fff;padding:6px 10px;border-radius:5px;font-size:11px;font-weight:800;margin-bottom:10px}
.hero-center h1{font-size:24px;line-height:1.6;margin:0 0 9px}
.meta{font-size:11px;color:#c9ced7}

.sub-hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.sub-hero{aspect-ratio:16/9;width:100%;position:relative;overflow:hidden;border-radius:14px;background:#222;color:#fff}
.sub-hero img{width:100%;height:100%;object-fit:cover;display:block;opacity:.8}
.sub-hero .tag{padding:5px 9px;font-size:10px;margin-bottom:8px}
.sub-hero h2{font-size:16px;line-height:1.6;margin:0 0 7px}
.sub-hero .meta{font-size:10.5px}
@media(max-width:620px){.sub-hero-grid{grid-template-columns:1fr}}

/* باکس‌های وعده مسئولین */
.promise-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.promise-box{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;display:flex;flex-direction:row;gap:16px}
.promise-content{display:flex;flex-direction:column;flex:1;min-width:0}
.promise-box .promise-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:11px;display:block}
.promise-box h4{font-size:14px;line-height:1.7;margin:0 0 8px}
.promise-box p{font-size:11.5px;color:var(--muted);line-height:1.85;margin:0 0 14px}
.promise-box .promise-src{font-size:10px;color:#9aa2af;margin:-9px 0 0}
.promise-timer{display:flex;flex-direction:column;gap:6px;flex:none;align-self:stretch;width:80px}
.promise-timer .t-unit{background:#101827;border-radius:9px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;width:80px;flex:1;box-sizing:border-box}
.promise-timer .t-unit b{font-size:14px;color:#fff;font-weight:800}
.promise-timer .t-unit span{font-size:9.5px;color:#8791a1}
.promise-box.expired .promise-timer{display:none}
.promise-box.expired .expired-note{display:flex}
.expired-note{display:none;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#fdf0e2;color:var(--accent);border-radius:9px;padding:11px;font-size:11px;font-weight:800;flex:none;align-self:stretch;width:90px;text-align:center}
.expired-note svg{width:16px;height:16px;fill:currentColor}
@media(max-width:480px){.promise-box{flex-direction:column}.promise-timer,.expired-note{align-self:flex-start;flex-direction:row;width:auto}.promise-timer .t-unit{width:auto;flex:1}}
@media(max-width:900px){.promise-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.promise-grid{grid-template-columns:1fr}}

/* یادداشت‌ها و پادکست */
.notes-podcast-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.side-box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-sizing:border-box}
.side-box .section-title{margin-bottom:6px}
.note-item{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}
.note-item:last-child{border-bottom:0}
.note-item img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 0 0 1px var(--line)}
.note-item h4{font-size:12.5px;line-height:1.7;margin:0 0 4px;font-weight:700}
.note-item small{font-size:10.5px;color:var(--muted)}
.podcast-item{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.podcast-item:last-child{border-bottom:0}
.podcast-play{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.podcast-play svg{width:13px;height:13px;fill:currentColor}
.podcast-item h4{font-size:12.5px;line-height:1.7;margin:0 0 4px;font-weight:700}
.podcast-item small{font-size:10.5px;color:var(--muted)}
@media(max-width:620px){.notes-podcast-grid{grid-template-columns:1fr}}

.news-rows{display:flex;flex-direction:column;gap:14px}
.news-row{display:flex;align-items:stretch;gap:18px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}
.news-row img{width:220px;aspect-ratio:16/9;object-fit:cover;flex:none}
.news-row .row-body{padding:14px 18px 14px 4px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.news-row h3{font-size:15.5px;line-height:1.7;margin:7px 0}
.news-row p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}
.news-row .meta{color:#8992a0;margin-top:8px;font-size:11px}
@media(max-width:620px){.news-row{flex-direction:column}.news-row img{width:100%}.news-row .row-body{padding:14px}}

.latest-box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-sizing:border-box}
.latest-box .section-title{margin-bottom:12px}
.latest-list{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.latest-list li{list-style:none}
.latest-item{display:flex;flex-direction:column;gap:0}
.latest-item img{width:100%;aspect-ratio:16/10;border-radius:10px;object-fit:cover;margin-bottom:9px}
.latest-item h4{font-size:12.5px;line-height:1.65;margin:0 0 5px;font-weight:700}
.latest-item span{font-size:9.5px;color:#9aa2af}
@media(max-width:900px){.latest-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.latest-list{grid-template-columns:1fr}}

.section{margin-top:38px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.section-title h2{font-size:19px;margin:0;display:flex;align-items:center;gap:10px}
.section-title h2:before{content:"";width:5px;height:23px;background:var(--accent);border-radius:5px}
.more{font-size:11px;color:var(--accent);font-weight:800}

.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.media-card{aspect-ratio:16/9;position:relative;border-radius:16px;overflow:hidden;background:#222;color:#fff}
.media-card img{width:100%;height:100%;object-fit:cover;opacity:.7}
.media-card .m-overlay{position:absolute;inset:0;padding:22px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(0deg,rgba(0,0,0,.85),transparent 55%)}
.m-icon{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.18);backdrop-filter:blur(2px);display:grid;place-items:center;align-self:flex-start;border:1px solid rgba(255,255,255,.35)}
.m-icon svg{width:19px;height:19px;fill:#fff}
.media-card h3{margin:0 0 6px;font-size:16px;line-height:1.7}
.media-card .count{font-size:11px;color:#dfe3ea}

.trend-row{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:stretch}
.rank-list{display:flex;flex-direction:column;gap:14px}
.rank-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;gap:12px;align-items:center}
.rank-card .num{font-size:22px;color:#c5cad3;font-weight:900;flex:none}
.rank-card h4{font-size:13px;line-height:1.7;margin:0 0 5px}
.rank-card small{font-size:10.5px;color:var(--muted)}

.newsletter-box{background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:16px;padding:26px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.newsletter-box .tag{align-self:flex-end}
.newsletter-box h3{font-size:19px;font-weight:800;margin:14px 0 10px;line-height:1.65;color:var(--ink)}
.newsletter-box p{font-size:12.5px;color:var(--muted);line-height:1.95;margin-bottom:18px}
.newsletter-box input{width:100%;padding:11px 13px;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--ink);font-family:inherit;font-size:12.5px;margin-bottom:12px;text-align:center}
.newsletter-box input::placeholder{color:#9aa2af}
.newsletter-box button{width:100%;padding:12px;border:0;border-radius:10px;background:#101827;color:#fff;font-family:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
.newsletter-box button:hover{background:#1c2a3f}

.footer{margin-top:55px;background:#101827;color:#cbd3df;padding:42px 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:35px}
.footer h3{color:#fff;font-size:14px;margin-top:0}
.footer p,.footer a{font-size:11px;line-height:2.1;color:#9da8b8}
.copyright{border-top:1px solid #263142;margin-top:28px;padding-top:18px;font-size:10px;color:#778395}

@media(max-width:980px){ .media-grid{grid-template-columns:1fr} .trend-row{grid-template-columns:1fr} }
@media(max-width:900px){ .footer-grid{grid-template-columns:1fr 1fr} .search{width:200px} }
@media(max-width:620px){ .head{height:75px} .search{display:none} .brand b{font-size:20px} .footer-grid{grid-template-columns:1fr} .hero-center h1{font-size:20px} .wrap{padding:0 14px} }