/*
Theme Name: ندای ماهشهر
Theme URI: https://nedayemahshahr.ir/
Author: Neday-e Mahshahr
Description: قالب خبری فارسی، راست‌چین و واکنش‌گرا با هدر و فوتر قابل تنظیم.
Version: 1.4.19
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: nedayemahshahr
*/
:root{--p:#07385f;--a:#d71920;--bg:#f5f7f9;--t:#222;--b:#e2e7ec;--m:#77808a}*{box-sizing:border-box}html{direction:rtl}body{margin:0;background:var(--bg);color:var(--t);font-family:Tahoma,"Vazirmatn",Arial,sans-serif;line-height:1.9}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 30px));margin:auto}.header-top{background:var(--p);color:#fff}.header-inner{min-height:108px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0}.brand-name{font-size:42px;font-weight:900;letter-spacing:-2px;white-space:nowrap}.brand-wave{display:block;height:4px;width:90px;background:var(--a);margin:2px 0 0 auto;border-radius:8px}.header-image{width:100%;max-height:180px;object-fit:cover;display:block}.header-tools{display:flex;align-items:center;gap:10px}.header-date{font-size:13px}.search-form{display:flex;order:1;background:#fff;border-radius:5px;overflow:hidden}.search-form input{border:0;outline:0;padding:8px 11px;width:190px;font-family:inherit}.search-form button{border:0;background:var(--a);color:#fff;padding:0 14px;font-family:inherit}.main-nav{background:#fff;border-bottom:1px solid var(--b)}.nav-inner{display:flex;position:relative}.menu-toggle{display:none;border:0;background:var(--p);color:#fff;padding:8px 13px;border-radius:4px;font-size:22px}.main-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;width:100%}.main-menu a{display:block;padding:10px 12px;font-size:14px;font-weight:700;white-space:nowrap;border-left:1px solid #edf0f3}.main-menu a:hover,.main-menu .current-menu-item>a{background:var(--p);color:#fff}.breaking{background:#fff;border-bottom:1px solid var(--b);padding:8px 0}.breaking-inner{display:flex;align-items:center;gap:12px}.breaking-label{background:var(--a);color:#fff;font-weight:800;padding:5px 12px;border-radius:3px;white-space:nowrap}.breaking-list{overflow:hidden;white-space:nowrap;flex:1;font-size:13px}.breaking-list a{margin-left:30px}.breaking-list a:before{content:"•";color:var(--a);margin-left:7px}.site-main{padding:22px 0}.grid-home{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(270px,1fr);gap:18px}.hero-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:14px}.card,.widget,.post-card,.story-card,.news-item{background:#fff;border:1px solid var(--b);border-radius:5px;overflow:hidden}.hero-card{position:relative;min-height:385px}.hero-card img{width:100%;height:385px;object-fit:cover;display:block}.hero-overlay{position:absolute;inset:auto 0 0;padding:22px 18px 16px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.9))}.hero-overlay .cat{display:inline-block;background:var(--a);padding:2px 8px;border-radius:3px;font-size:12px}.hero-overlay h1{font-size:24px;line-height:1.6;margin:0}.news-list{display:flex;flex-direction:column;gap:10px}.news-item{display:grid;grid-template-columns:120px 1fr;gap:11px;padding:9px}.news-item img{width:120px;height:82px;object-fit:cover;border-radius:3px}.news-item h3{font-size:14px;line-height:1.65;margin:0 0 6px}.meta{font-size:11px;color:var(--m)}.section{margin-top:20px}.section-title{display:flex;align-items:center;justify-content:space-between;background:var(--p);color:#fff;padding:7px 12px;border-radius:4px 4px 0 0}.section-title h2{font-size:16px;margin:0}.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.story-card img{width:100%;height:145px;object-fit:cover}.story-body{padding:10px}.story-card h3{font-size:14px;line-height:1.65;margin:0 0 7px}.sidebar{display:flex;flex-direction:column;gap:18px}.widget{padding:13px}.widget-title,.footer-title{font-size:17px;border-right:4px solid var(--a);padding-right:8px;margin:0 0 10px}.widget ul,.site-footer ul{list-style:none;padding:0;margin:0}.widget li{border-bottom:1px solid #edf0f3;padding:8px 0;font-size:13px}.ad-box{min-height:170px;display:flex;align-items:center;justify-content:center;background:#f0f3f6;color:#9ba5af;border:1px dashed #ccd4dc}.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.site-footer{background:#082f4d;color:#fff;margin-top:30px}.footer-top{padding:28px 0}.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.footer-title{font-size:16px}.site-footer li{padding:4px 0;font-size:13px;color:#dce7ef}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:10px 0;color:#cbd8e2;font-size:12px}.single-layout{max-width:880px;margin:auto}.breadcrumb{font-size:12px;color:var(--m);margin-bottom:10px}.post-card{padding:20px}.post-title{font-size:31px;line-height:1.55;margin:0 0 8px}.post-meta{font-size:12px;color:var(--m);border-bottom:1px solid var(--b);padding-bottom:10px;margin-bottom:18px}.post-featured img{width:100%;max-height:520px;object-fit:cover;border-radius:4px}.post-content{font-size:17px;line-height:2.2}.shortlink{margin-top:24px;padding:12px;background:#f3f6f8;border:1px solid var(--b);border-radius:4px}.shortlink-row{display:flex;gap:8px;margin-top:7px}.shortlink input{flex:1;border:1px solid #ccd5dd;border-radius:4px;padding:8px;direction:ltr;text-align:left;font-family:Arial}.copy-shortlink{border:0;background:var(--p);color:#fff;border-radius:4px;padding:8px 13px;font-family:inherit;cursor:pointer}.pagination{display:flex;gap:7px;justify-content:center;margin-top:20px}.pagination a,.pagination span{background:#fff;border:1px solid var(--b);padding:6px 11px;border-radius:3px}.pagination .current{background:var(--p);color:#fff}@media(max-width:900px){.brand-name{font-size:34px}.header-date{display:none}.main-menu a{padding:9px 8px;font-size:12px}.grid-home{grid-template-columns:1fr}.cards-4{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.container{width:calc(100% - 18px)}.header-inner{min-height:78px}.brand-name{font-size:28px}.header-tools .search-form{display:none}.menu-toggle{display:block}.main-menu{display:none}.main-menu.is-open{display:flex;position:absolute;z-index:50;right:0;left:0;top:100%;background:#fff;border:1px solid var(--b);box-shadow:0 10px 25px rgba(0,0,0,.15);flex-direction:column}.main-menu a{border-bottom:1px solid #edf0f3;border-left:0;padding:10px 13px}.hero-grid{grid-template-columns:1fr}.hero-card,.hero-card img{min-height:270px;height:270px}.hero-overlay h1{font-size:19px}.news-item{grid-template-columns:95px 1fr}.news-item img{width:95px;height:70px}.cards-4{grid-template-columns:1fr 1fr}.media-grid,.footer-grid{grid-template-columns:1fr}.post-card{padding:14px}.post-title{font-size:23px}.post-content{font-size:16px}.shortlink-row{flex-direction:column}.copy-shortlink{width:100%}}

/* v1.1.1 homepage/news layout */
.hero-placeholder{height:385px;background:#dfe5ea}.latest-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.latest-item{display:grid;grid-template-columns:180px minmax(0,1fr);direction:rtl;gap:16px;background:#fff;border:1px solid var(--b);border-radius:5px;padding:10px}.latest-thumb{display:block}.latest-thumb img,.thumb-placeholder{width:180px;height:112px;object-fit:cover;border-radius:4px;display:flex;align-items:center;justify-content:center;background:#eef2f5;color:#89939c}.latest-body h3{font-size:18px;line-height:1.65;margin:0 0 5px;font-weight:800}.latest-body p{font-size:13px;color:#626d76;line-height:1.8;margin:5px 0 0}.category-news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}.category-box{background:#fff;border:1px solid var(--b);border-radius:5px;overflow:hidden}.category-box>h3{margin:0;padding:9px 12px;background:#f1f4f6;border-right:4px solid var(--a);font-size:16px}.category-row{display:flex;direction:rtl;align-items:center;gap:10px;padding:9px 10px;border-top:1px solid #edf0f3;font-size:13px;font-weight:700;line-height:1.65}.category-row img{width:62px;height:48px;object-fit:cover;border-radius:3px;flex:0 0 62px}.media-section{margin-top:28px}.media-box{background:#fff;border:1px solid var(--b);border-radius:5px;overflow:hidden}.media-label{font-weight:800;font-size:17px;padding:8px 12px;border-right:4px solid var(--a)}.media-box .ad-box{min-height:150px;border:0;border-top:1px solid var(--b)}.popular-list{margin:0;padding:0 24px 0 0}.popular-list li{padding:8px 0;border-bottom:1px solid #edf0f3;font-size:13px}.post-header{margin-bottom:16px}.post-meta-line{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:var(--m);font-size:12px;background:#f5f7f9;border-top:1px solid var(--b);border-bottom:1px solid var(--b);padding:8px 10px}.post-meta-line strong{color:var(--p)}.post-featured{margin:0 0 18px}.post-tags{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid var(--b);margin-top:24px;padding-top:14px;font-size:13px}.post-tags a{background:#eef2f5;border-radius:3px;padding:4px 9px;color:#47515a}.related-posts{margin-top:24px;padding-top:16px;border-top:1px solid var(--b)}.related-posts h2{font-size:18px;margin:0 0 12px;border-right:4px solid var(--a);padding-right:8px}.related-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.related-list a{display:flex;align-items:center;gap:9px;background:#f6f8f9;padding:7px;border:1px solid var(--b);border-radius:4px;font-size:13px;font-weight:700}.related-list img{width:70px;height:50px;object-fit:cover;border-radius:3px}.comments-section{margin-top:28px;padding-top:18px;border-top:1px solid var(--b)}.comments-title,.comments-area h2{font-size:19px;border-right:4px solid var(--a);padding-right:8px}.comment-form input,.comment-form textarea{width:100%;border:1px solid #ccd5dd;border-radius:4px;padding:9px;font-family:inherit}.comment-form textarea{min-height:130px}.comment-form .submit{background:var(--p);color:#fff;border:0;border-radius:4px;padding:9px 16px;font-family:inherit;cursor:pointer}.comment-list{padding-right:20px}.comment-list li{margin-bottom:14px;background:#f7f9fa;padding:10px;border-radius:4px}.comments-area{margin-top:15px}
@media(max-width:650px){.latest-item{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:8px}.latest-thumb img,.thumb-placeholder{width:100px;height:78px}.latest-body h3{font-size:14px;line-height:1.65}.latest-body p{display:none}.latest-body .meta{font-size:10px}.category-news-grid{grid-template-columns:1fr}.related-list{grid-template-columns:1fr}.post-meta-line{gap:6px 14px;font-size:11px}.post-featured{margin-left:-1px;margin-right:-1px}.post-title{font-size:23px}.hero-placeholder{height:270px}}

/* v1.3.0: three-item featured slider, Tabnak-inspired news tabs, and cleaner footer */
.featured-section .section-title{position:relative}.slider-controls{display:flex;gap:5px;direction:ltr}.slider-controls button{width:32px;height:30px;border:0;border-radius:3px;background:rgba(255,255,255,.15);color:#fff;font-size:25px;line-height:1;cursor:pointer}.featured-slider{position:relative;overflow:hidden;background:#111;border-radius:0 0 5px 5px}.featured-track{display:flex;direction:ltr;transition:transform .6s ease}.featured-slide{position:relative;min-width:100%;height:390px;overflow:hidden}.featured-slide>a{display:block;width:100%;height:100%}.featured-slide img,.featured-slide .hero-placeholder{width:100%;height:390px;object-fit:cover;display:block}.featured-slide .hero-overlay{direction:rtl}.featured-slide .hero-overlay h1{font-size:25px}.featured-meta{font-size:11px;margin-top:5px;opacity:.9}.slider-dots{position:absolute;bottom:10px;left:14px;display:flex;gap:5px;direction:ltr;z-index:3}.slider-dot{width:9px;height:9px;border-radius:50%;border:1px solid #fff;background:rgba(255,255,255,.45);padding:0;cursor:pointer}.slider-dot.is-active{background:#fff}.news-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:var(--p);border-radius:4px 4px 0 0;overflow:hidden}.news-tab{border:0;border-left:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;padding:12px 8px;font-family:inherit;font-weight:800;font-size:15px;cursor:pointer}.news-tab:last-child{border-left:0}.news-tab.is-active{background:var(--a)}.news-panel{display:none;background:#fff;border:1px solid var(--b);border-top:0;padding:12px;border-radius:0 0 4px 4px}.news-panel.is-active{display:flex;flex-direction:column;gap:10px}.compact-news a{display:flex;direction:rtl;align-items:center;gap:12px;padding:8px;border:1px solid #edf0f3;border-radius:4px;background:#fff}.compact-news img{width:105px;height:68px;object-fit:cover;border-radius:3px;flex:0 0 105px}.compact-news span{display:flex;flex-direction:column;gap:4px}.compact-news strong{font-size:14px;line-height:1.7}.compact-news small{font-size:11px;color:var(--m)}.editorial-sections{margin-top:28px}.empty-state{padding:25px;text-align:center;color:var(--m);background:#fff;border:1px solid var(--b);border-radius:4px}.site-footer .footer-grid>div:empty{display:none}.site-footer .footer-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:650px){.featured-slide,.featured-slide img,.featured-slide .hero-placeholder{height:270px}.featured-slide .hero-overlay h1{font-size:19px}.news-tabs{grid-template-columns:repeat(3,1fr)}.news-tab{font-size:12px;padding:10px 4px}.compact-news img{width:82px;height:58px;flex-basis:82px}.compact-news strong{font-size:13px}.site-footer .footer-grid{grid-template-columns:1fr}.slider-controls button{width:29px;height:28px;font-size:22px}}

/* v1.3.0 refinements */
.under-featured-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.section-more{color:#fff;font-size:12px;font-weight:700}
.single-category-grid{grid-template-columns:repeat(4,1fr)}
.single-category-grid .category-box{overflow:hidden}
.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:15px}
.desktop-version-link{color:#fff;font-weight:800;border:1px solid rgba(255,255,255,.4);padding:5px 10px;border-radius:4px}
@media(max-width:900px){.single-category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.single-category-grid{grid-template-columns:1fr}.footer-bottom-inner{flex-direction:column;align-items:flex-start}.desktop-version-link{font-size:12px}}
/* Force desktop layout after the user chooses «نسخه دسکتاپ». */
@media(max-width:650px){
body.nm-force-desktop .container{width:min(1180px,calc(100% - 30px))}
body.nm-force-desktop .header-inner{min-height:108px}
body.nm-force-desktop .brand-name{font-size:42px}
body.nm-force-desktop .header-date{display:inline}
body.nm-force-desktop .header-tools .search-form{display:flex}
body.nm-force-desktop .menu-toggle{display:none}
body.nm-force-desktop .main-menu{display:flex;position:static;flex-direction:row;border:0;box-shadow:none}
body.nm-force-desktop .main-menu a{border-left:1px solid #edf0f3;border-bottom:0;padding:10px 12px;font-size:14px}
body.nm-force-desktop .featured-slide,body.nm-force-desktop .featured-slide img,body.nm-force-desktop .featured-slide .hero-placeholder{height:390px}
body.nm-force-desktop .featured-slide .hero-overlay h1{font-size:25px}
body.nm-force-desktop .latest-item{grid-template-columns:180px minmax(0,1fr);gap:16px;padding:10px}
body.nm-force-desktop .latest-thumb img,body.nm-force-desktop .thumb-placeholder{width:180px;height:112px}
body.nm-force-desktop .latest-body h3{font-size:18px}
body.nm-force-desktop .latest-body p{display:block}
body.nm-force-desktop .single-category-grid{grid-template-columns:repeat(4,1fr)}
body.nm-force-desktop .media-grid,body.nm-force-desktop .footer-grid{grid-template-columns:1fr 1fr}
body.nm-force-desktop .footer-grid{grid-template-columns:repeat(3,1fr)}
body.nm-force-desktop .post-card{padding:20px}
body.nm-force-desktop .post-title{font-size:31px}
body.nm-force-desktop .post-content{font-size:17px}
}

/* v1.4.0: breaking-news ticker and left-side header search */
.breaking-list{position:relative;overflow:hidden;white-space:nowrap;direction:rtl}
.breaking-track{display:inline-flex;align-items:center;gap:34px;min-width:max-content;animation:nm-breaking-scroll 28s linear infinite}
.breaking-track:hover{animation-play-state:paused}
.breaking-track a{margin:0;display:inline-block}
.breaking-track a:before{content:"•";color:var(--a);margin-left:7px}
@keyframes nm-breaking-scroll{from{transform:translateX(0)}to{transform:translateX(45%)}}
.header-tools .search-form input{direction:rtl;text-align:right}
@media(max-width:650px){.header-tools .search-form{display:none}}


/* v1.4.1 final corrections */
.header-inner{direction:rtl}
.brand-name{direction:rtl;text-align:right}
.header-tools{direction:rtl;margin-right:auto}
.search-form{display:flex !important;align-items:center;order:0}
.search-label{display:none;background:var(--p);color:#fff;padding:0 9px;font-size:12px;font-weight:800}
.header-tools .search-form input{width:190px}
@keyframes nm-breaking-scroll{from{transform:translateX(0)}to{transform:translateX(100%)}}
.breaking-track{animation-duration:12s}
.footer-bottom-inner{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px}
.desktop-version-link{display:inline-block}
@media(max-width:650px){
  .header-inner{direction:rtl;gap:8px}
  .header-tools{direction:rtl;margin-right:auto}
  .header-tools .search-form{display:flex !important}
  .header-tools .search-form input{width:115px;padding:7px 8px}
  .header-tools .search-form button{padding:0 9px;font-size:12px}
  .header-date{display:none}
  .breaking-track{animation-duration:9s}
  .footer-bottom-inner{align-items:center}
}

/* v1.4.2 corrections */
.header-inner{align-items:center}
.header-tools{display:flex;align-items:center;gap:12px;min-width:0}
.header-date{white-space:nowrap;direction:rtl;display:inline-block;line-height:1.2;font-size:14px}
.header-search-toggle{width:38px;height:38px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:transparent;color:#fff;font-size:25px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;transform:rotate(-20deg)}
.header-search-panel{display:none;position:absolute;top:calc(100% - 5px);left:0;z-index:80;background:#fff;border:1px solid var(--b);box-shadow:0 8px 22px rgba(0,0,0,.15);padding:6px;border-radius:4px}
.header-search-panel.is-open{display:flex}
.header-search-panel input{width:230px}
.header-search-panel button{width:38px;border:0;background:var(--a);color:#fff;font-size:20px;cursor:pointer}
.header-inner{position:relative}
.header-tools{position:relative}
.breaking-track{animation-duration:8s}
.latest-item{grid-template-columns:150px minmax(0,1fr);gap:14px;padding:8px}
.latest-thumb img,.latest-thumb .thumb-placeholder{width:150px;height:96px;object-fit:cover;display:block;border-radius:3px}
.latest-body{display:flex;align-items:center;min-width:0}
.latest-body h3{margin:0;font-size:17px;line-height:1.75}
.latest-body p{display:none!important}
.footer-bottom-inner{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center}
.mobile-version-link{color:#fff;font-weight:800;border:1px solid rgba(255,255,255,.4);padding:5px 10px;border-radius:4px}
@media(max-width:900px){.header-date{font-size:13px}.latest-item{grid-template-columns:130px minmax(0,1fr)}.latest-thumb img,.latest-thumb .thumb-placeholder{width:130px;height:88px}}
@media(max-width:650px){
  .header-inner{min-height:78px;padding:10px 0;gap:8px}
  .brand-name{font-size:28px;letter-spacing:-1px}
  .header-tools{gap:7px;margin-right:auto}
  .header-date{font-size:11px;white-space:nowrap}
  .header-search-toggle{width:34px;height:34px;font-size:22px}
  .header-search-panel{right:auto;left:0;top:calc(100% + 4px);width:calc(100vw - 36px)}
  .header-search-panel input{width:100%;min-width:0}
  .breaking-track{animation-duration:6s}
  .latest-item{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:7px}
  .latest-thumb img,.latest-thumb .thumb-placeholder{width:100px;height:74px}
  .latest-body h3{font-size:14px;line-height:1.7}
}
/* Mobile is the default responsive mode. Only the explicit new nm_view_v2=desktop cookie activates forced desktop. */
@media(max-width:650px){
body.nm-force-desktop .container{width:min(1180px,calc(100% - 30px))}
body.nm-force-desktop .header-inner{min-height:108px}
body.nm-force-desktop .brand-name{font-size:42px}
body.nm-force-desktop .header-date{display:inline}
body.nm-force-desktop .header-search-panel{display:flex;position:static;box-shadow:none;border:0;padding:0}
body.nm-force-desktop .header-search-toggle{display:none}
body.nm-force-desktop .menu-toggle{display:none}
body.nm-force-desktop .main-menu{display:flex;position:static;flex-direction:row;border:0;box-shadow:none}
body.nm-force-desktop .main-menu a{border-left:1px solid #edf0f3;border-bottom:0;padding:10px 12px;font-size:14px}
body.nm-force-desktop .featured-slide,body.nm-force-desktop .featured-slide img,body.nm-force-desktop .featured-slide .hero-placeholder{height:390px}
body.nm-force-desktop .latest-item{grid-template-columns:150px minmax(0,1fr)}
body.nm-force-desktop .latest-thumb img,body.nm-force-desktop .latest-thumb .thumb-placeholder{width:150px;height:96px}
}
/* v1.4.3 draft: separate editorial categories */.nm-editorial-section{margin-top:28px}.nm-editorial-title{background:var(--p);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:4px 4px 0 0;border-right:5px solid var(--a)}.nm-editorial-title h2{margin:0;font-size:17px;font-weight:900}.nm-editorial-title .section-more{color:#fff;font-size:12px;font-weight:700}.nm-editorial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}.nm-editorial-card{background:#fff;border:1px solid var(--b);border-radius:5px;overflow:hidden}.nm-editorial-row{height:100%;min-height:76px}.nm-editorial-row img{width:100px;height:76px;object-fit:cover;border-radius:4px;flex:0 0 100px}.nm-editorial-row>span:last-child{font-size:13px;line-height:1.7;font-weight:800}.nm-editorial-placeholder{width:100px;height:76px;display:flex;align-items:center;justify-content:center;flex:0 0 100px;background:#eef2f5;color:#7a858f;border-radius:4px;font-size:11px}.nm-editorial-empty{grid-column:1/-1;margin-top:0}@media(max-width:900px){.nm-editorial-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.nm-editorial-section{margin-top:22px}.nm-editorial-title{padding:7px 10px}.nm-editorial-title h2{font-size:16px}.nm-editorial-grid{grid-template-columns:1fr 1fr;gap:8px}.nm-editorial-row{display:flex;align-items:center;padding:8px}.nm-editorial-row img,.nm-editorial-placeholder{width:78px;height:62px;flex-basis:78px}.nm-editorial-row>span:last-child{font-size:12px;line-height:1.65}.nm-editorial-empty{grid-column:1/-1}}
/* =========================================================
   v1.4.4 DRAFT - IRNA-style compact header/search/menu
   and IRIB-inspired article typography
   ========================================================= */
.nm-header-v144 .header-meta-bar{background:#fff;border-bottom:1px solid var(--b);color:#59636d}
.nm-header-v144 .header-meta-inner{min-height:36px;display:flex;align-items:center;justify-content:space-between;direction:ltr;font-size:12px}
.nm-header-v144 .header-date-top{white-space:nowrap;direction:rtl;font-weight:700}
.nm-header-v144 .header-meta-links{display:flex;gap:18px;direction:rtl}
.nm-header-v144 .header-meta-links a{color:#56616b;font-weight:700}
.nm-header-v144 .header-meta-links a:hover{color:var(--p)}
.nm-header-v144 .header-top{background:var(--p);color:#fff}
.nm-header-v144 .header-inner{min-height:82px;padding:9px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.nm-header-v144 .brand-name{font-size:34px;letter-spacing:-1.4px;line-height:1.2}
.nm-header-v144 .brand-wave{height:3px;width:72px;margin-top:3px}
.nm-header-v144 .header-actions{display:flex;align-items:center;gap:8px;direction:ltr}
.nm-header-v144 .header-search-toggle,.nm-header-v144 .menu-toggle{height:40px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;border-radius:5px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit}
.nm-header-v144 .header-search-toggle{width:40px;font-size:25px;line-height:1;font-family:Arial,sans-serif;transform:none}
.nm-header-v144 .menu-toggle{display:flex;width:auto;padding:0 11px;font-size:18px;gap:6px}
.nm-header-v144 .menu-toggle span{font-size:13px;font-weight:800}
.nm-header-v144 .header-dropdowns{position:relative;z-index:90}
.nm-header-v144 .header-search-panel{display:none;position:relative;top:auto;left:auto;right:auto;width:100%;margin:0;padding:8px;background:#fff;border:1px solid var(--b);border-top:0;box-shadow:0 8px 20px rgba(0,0,0,.12);border-radius:0 0 5px 5px}
.nm-header-v144 .header-search-panel.is-open{display:flex}
.nm-header-v144 .header-search-panel input{width:100%;height:40px;border:1px solid #d9e0e6;padding:7px 10px;font-family:inherit}
.nm-header-v144 .header-search-panel button{width:48px;border:0;background:var(--a);color:#fff;font-size:20px;cursor:pointer}
.nm-header-v144 .main-nav{display:none;background:#fff;border:1px solid var(--b);border-top:0;box-shadow:0 10px 25px rgba(0,0,0,.12);border-radius:0 0 5px 5px}
.nm-header-v144 .main-nav.is-open{display:block}
.nm-header-v144 .main-menu{display:flex;flex-wrap:wrap;width:100%;list-style:none;margin:0;padding:7px;gap:3px}
.nm-header-v144 .main-menu a{display:block;padding:9px 11px;font-size:13px;font-weight:700;white-space:nowrap;border:1px solid #edf0f3;border-radius:3px;background:#fff}
.nm-header-v144 .main-menu a:hover,.nm-header-v144 .main-menu .current-menu-item>a{background:var(--p);color:#fff;border-color:var(--p)}
.nm-header-v144 .breaking{margin-top:0}

/* The desktop header follows the same compact control pattern as mobile. */
@media(min-width:651px){
  .nm-header-v144 .header-search-toggle,.nm-header-v144 .menu-toggle{height:38px}
  .nm-header-v144 .menu-toggle{font-size:17px}
  .nm-header-v144 .main-menu{justify-content:flex-start}
}

/* Separate category bars: same family as header/footer, with a restrained red accent. */
.nm-editorial-section{margin-top:24px}
.nm-editorial-title{background:var(--p);color:#fff;border-right:0;border-radius:5px 5px 0 0;border-bottom:3px solid var(--a);padding:9px 13px;min-height:46px}
.nm-editorial-title h2{font-size:16px;font-weight:800}
.nm-editorial-title .section-more{color:#fff;font-size:11px}
.nm-editorial-grid{margin-top:0;padding:10px;background:#fff;border:1px solid var(--b);border-top:0;border-radius:0 0 5px 5px}
.nm-editorial-card{border:1px solid #e1e6ea;border-radius:4px}
.nm-editorial-row{display:flex;align-items:center;padding:8px;gap:9px}
.nm-editorial-row img,.nm-editorial-placeholder{width:100px;height:76px;flex:0 0 100px}

/* Single post typography, closer in scale and weight to IRIB News. */
.single-layout{max-width:900px}
.post-card{padding:18px 20px}
.post-title{font-family:Tahoma,Arial,sans-serif;font-size:25px;line-height:1.8;font-weight:800;letter-spacing:0;margin:0 0 10px}
.post-meta-line{font-family:Tahoma,Arial,sans-serif;font-size:12px;line-height:1.8;color:#66717b;background:#f5f7f9;border:1px solid #e2e7ec;border-radius:4px;padding:8px 10px;margin-bottom:16px}
.post-content{font-family:Tahoma,Arial,sans-serif;font-size:16px;line-height:2.15;color:#222;font-weight:400}
.post-content p{margin:0 0 18px}
.post-content h2{font-size:21px;line-height:1.8;margin:24px 0 12px;font-weight:800}
.post-content h3{font-size:18px;line-height:1.8;margin:20px 0 10px;font-weight:800}
.post-content blockquote{border-right:4px solid var(--p);padding:8px 14px;margin:18px 0;background:#f5f7f9}

@media(max-width:650px){
  .nm-header-v144 .header-meta-inner{min-height:32px;font-size:11px}
  .nm-header-v144 .header-meta-links{gap:12px}
  .nm-header-v144 .header-inner{min-height:70px;padding:8px 0}
  .nm-header-v144 .brand-name{font-size:27px;letter-spacing:-1px}
  .nm-header-v144 .brand-wave{width:58px}
  .nm-header-v144 .header-search-toggle,.nm-header-v144 .menu-toggle{height:36px}
  .nm-header-v144 .header-search-toggle{width:36px;font-size:22px}
  .nm-header-v144 .menu-toggle{padding:0 9px;font-size:17px}
  .nm-header-v144 .menu-toggle span{font-size:11px}
  .nm-header-v144 .main-menu{display:flex;flex-direction:column;padding:6px}
  .nm-header-v144 .main-menu a{width:100%;font-size:13px;padding:9px 11px}
  .nm-header-v144 .header-search-panel input{height:38px}
  .nm-header-v144 .header-search-panel button{width:44px}
  .nm-editorial-title{min-height:44px;padding:8px 10px}
  .nm-editorial-title h2{font-size:15px}
  .nm-editorial-grid{padding:8px;gap:8px}
  .nm-editorial-row{padding:7px;gap:7px}
  .nm-editorial-row img,.nm-editorial-placeholder{width:78px;height:62px;flex-basis:78px}
  .nm-editorial-row>span:last-child{font-size:12px;line-height:1.65}
  .post-card{padding:13px}
  .post-title{font-size:20px;line-height:1.85}
  .post-content{font-size:15px;line-height:2.15}
  .post-content h2{font-size:18px}
  .post-content h3{font-size:17px}
}
/* =========================================================
   v1.4.6 - final requested corrections
   ========================================================= */
.nm-header-v146 .header-meta-bar{background:#fff;border-bottom:1px solid var(--b);}
.nm-header-v146 .header-meta-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;direction:ltr;border:1px solid #dfe5ea;border-top:0;padding:0 9px;font-size:11px;}
.nm-header-v146 .header-date-top{direction:rtl;white-space:nowrap;font-weight:700;color:#56616a;}
.nm-header-v146 .header-meta-links{display:flex;align-items:center;gap:0;direction:rtl;}
.nm-header-v146 .header-meta-links a{color:#56616a;font-weight:800;padding:2px 12px;border-right:1px solid #dfe5ea;line-height:1.5;}
.nm-header-v146 .header-meta-links a:last-child{border-left:0;}
.nm-header-v146 .header-top{background:var(--p);}
.nm-header-v146 .header-inner{min-height:70px;padding:7px 0;display:flex;align-items:center;justify-content:space-between;direction:rtl;}
.nm-header-v146 .brand-name{font-size:29px;letter-spacing:-1px;line-height:1.2;}
.nm-header-v146 .brand-wave{width:60px;height:3px;margin-top:4px;}
.nm-header-v146 .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:42px;padding:0;background:transparent;border:0;color:#fff;border-radius:4px;font-family:inherit;cursor:pointer;flex:0 0 44px;}
.nm-header-v146 .menu-icon{width:26px;height:22px;display:flex;flex-direction:column;justify-content:space-between;}
.nm-header-v146 .menu-icon i{display:block;width:26px;height:3px;background:#fff;border-radius:3px;}
.nm-header-v146 .header-dropdowns{position:relative;z-index:90;}
.nm-header-v146 .main-nav{display:none !important;background:#fff;border:1px solid var(--b);border-top:0;box-shadow:0 8px 20px rgba(0,0,0,.10);border-radius:0 0 5px 5px;}
.nm-header-v146 .main-nav.is-open{display:block !important;}
.nm-header-v146 .main-menu{display:flex;flex-wrap:wrap;width:100%;list-style:none;margin:0;padding:7px;gap:3px;}
.nm-header-v146 .main-menu a{display:block;padding:8px 11px;font-size:13px;font-weight:700;white-space:nowrap;border:1px solid #edf0f3;border-radius:3px;background:#fff;}
.nm-header-v146 .main-menu a:hover,.nm-header-v146 .main-menu .current-menu-item>a{background:var(--p);color:#fff;border-color:var(--p);}
.nm-header-v146 .header-search-panel{display:flex;position:relative;top:auto;left:auto;right:auto;width:100%;margin:8px 0 0;padding:8px;background:#fff;border:1px solid var(--b);box-shadow:0 5px 16px rgba(0,0,0,.08);border-radius:5px;}
.nm-header-v146 .header-search-panel input{width:100%;height:40px;border:1px solid #d9e0e6;padding:7px 10px;font-family:inherit;}
.nm-header-v146 .header-search-panel button{width:48px;border:0;background:var(--p);color:#fff;font-size:20px;cursor:pointer;}
.nm-header-v146 .breaking{margin-top:8px;}

/* Independent category sections, with the same family of blue/red accents. */
.nm-category-section{margin-top:26px;}
.nm-category-head{position:relative;min-height:52px;display:flex;align-items:center;justify-content:space-between;background:var(--p);color:#fff;padding:0 18px 0 14px;border-radius:0 18px 0 0;border-bottom:3px solid var(--a);overflow:hidden;}
.nm-category-head:after{content:"";position:absolute;left:-18px;bottom:-27px;width:72px;height:52px;background:var(--bg);border-radius:50%;}
.nm-category-head h2{position:relative;z-index:2;margin:0;font-size:18px;font-weight:900;}
.nm-category-head a{position:relative;z-index:2;color:#fff;font-size:11px;font-weight:700;}
.nm-category-body{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;background:#fff;border:1px solid var(--b);border-top:0;padding:12px;border-radius:0 0 5px 5px;}
.nm-category-card{background:#fff;border:1px solid #e3e7ea;border-radius:4px;overflow:hidden;}
.nm-category-card a{display:flex;flex-direction:column;height:100%;}
.nm-category-card img,.nm-category-placeholder{width:100%;height:140px;object-fit:cover;display:block;}
.nm-category-card span:last-child{padding:9px 10px;font-size:13px;line-height:1.7;font-weight:800;}
.nm-category-placeholder{display:flex;align-items:center;justify-content:center;background:#eef2f5;color:#7b858e;font-size:12px;}

/* Author: one circular avatar only. */
.nm-author-box{margin:24px 0 8px;padding:0;text-align:center;border:0;background:transparent;box-shadow:none;}
.nm-author-avatar{width:76px;height:76px;margin:0 auto 7px;border:0;background:transparent;box-shadow:none;}
.nm-author-avatar img,.nm-author-image{width:76px;height:76px;border-radius:50%;object-fit:cover;display:block;border:0 !important;box-shadow:none !important;outline:0;}
.nm-author-name{font-size:13px;font-weight:800;color:#333;}

/* Per-article reader feedback / comments. */
.nm-article-feedback{margin-top:28px;border-top:1px solid var(--b);padding-top:18px;}
.nm-feedback-head{background:var(--p);color:#fff;border-bottom:3px solid var(--a);padding:9px 13px;border-radius:5px 5px 0 0;}
.nm-feedback-head h2{font-size:16px;margin:0;font-weight:800;}
.nm-feedback-note{background:#f5f7f9;border:1px solid var(--b);border-top:0;padding:9px 12px;font-size:12px;color:#5e6972;}
.nm-article-feedback .comments-area{padding-top:12px;}
.comments-summary{font-size:12px;color:#65717a;margin-bottom:12px;}
.nm-article-feedback .comment-list{list-style:none;margin:0 0 18px;padding:0;}
.nm-comment-card{display:flex;gap:10px;padding:10px;background:#fff;border:1px solid var(--b);border-radius:4px;margin-bottom:8px;}
.nm-comment-avatar img{width:42px;height:42px;border-radius:50%;}
.nm-comment-body{flex:1;min-width:0;}
.nm-comment-meta{display:flex;align-items:center;gap:10px;font-size:12px;margin-bottom:5px;}
.nm-comment-meta time{font-size:10px;color:#89939b;}
.nm-comment-text{font-size:13px;line-height:1.9;}
.nm-comment-text p{margin:0 0 5px;}
.nm-comment-pending{margin-top:6px;color:#8a5d00;font-size:11px;background:#fff7df;padding:5px 7px;border-radius:3px;}
.nm-comment-card .comment-reply-link{font-size:11px;color:var(--p);font-weight:700;}
.nm-comment-form{background:#fff;border:1px solid var(--b);border-radius:4px;padding:12px;}
.nm-comment-form p{margin:0 0 10px;}
.nm-comment-form label{display:block;font-size:12px;font-weight:700;margin-bottom:4px;}
.nm-comment-form input,.nm-comment-form textarea{width:100%;border:1px solid #ccd5dd;border-radius:4px;padding:8px;font-family:inherit;font-size:13px;}
.nm-comment-form input:focus,.nm-comment-form textarea:focus{outline:0;border-color:var(--p);}
.nm-comment-form .required{font-size:10px;color:#8a9299;font-weight:400;}
.nm-comment-form .comment-notes,.nm-comment-form .comment-policy{font-size:11px;color:#6b757d;line-height:1.8;}
.nm-comment-form .submit{background:var(--p);color:#fff;border:0;border-radius:4px;padding:8px 17px;font-family:inherit;cursor:pointer;}

/* Make the single-post meta line put date/time on the right and code on the left. */
.post-meta-line{display:flex;align-items:center;justify-content:space-between;gap:15px;direction:rtl;}
.post-date-time{order:1;white-space:nowrap;}
.post-code{order:2;white-space:nowrap;}

@media(min-width:651px){
  .nm-header-v146 .main-menu{justify-content:flex-start;}
}
@media(max-width:900px){
  .nm-category-body{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:650px){
  .nm-header-v146 .header-meta-inner{min-height:31px;font-size:10px;padding:0 6px;}
  .nm-header-v146 .header-meta-links a{padding:2px 8px;}
  .nm-header-v146 .header-inner{min-height:64px;padding:6px 0;}
  .nm-header-v146 .brand-name{font-size:25px;letter-spacing:-.8px;}
  .nm-header-v146 .brand-wave{width:52px;}
  .nm-header-v146 .menu-toggle{width:42px;height:38px;flex-basis:42px;}
  .nm-header-v146 .menu-icon{width:24px;height:20px;}
  .nm-header-v146 .menu-icon i{width:24px;height:3px;}
  .nm-header-v146 .main-menu{display:flex;flex-direction:column;padding:6px;}
  .nm-header-v146 .main-menu a{width:100%;font-size:13px;padding:9px 11px;}
  .nm-header-v146 .header-search-panel{margin-top:7px;}
  .nm-category-head{min-height:46px;padding-right:13px;border-radius:0 16px 0 0;}
  .nm-category-head h2{font-size:16px;}
  .nm-category-body{grid-template-columns:1fr 1fr;gap:8px;padding:8px;}
  .nm-category-card img,.nm-category-placeholder{height:105px;}
  .nm-category-card span:last-child{font-size:12px;line-height:1.65;padding:8px;}
  .nm-author-avatar,.nm-author-avatar img,.nm-author-image{width:68px;height:68px;}
  .post-meta-line{font-size:11px;gap:10px;}
  .nm-comment-card{padding:8px;}
}
/* =========================================================
   v1.4.7 - requested category/feed corrections
   ========================================================= */
/* News paragraphs: aligned on both right and left edges. */
.post-content p,
.post-content li,
.post-content td,
.post-content blockquote{
  text-align:justify;
  text-justify:inter-word;
}

/* All homepage category headers use the same shape as Film/Photo. */
.nm-category-head{justify-content:flex-start;}
.nm-category-head a{display:none !important;}

/* Media carousel: five stories total, with arrows over the image area. */
.nm-media-carousel{position:relative;padding:12px 46px;background:#fff;border:1px solid var(--b);border-top:0;border-radius:0 0 5px 5px;overflow:hidden;}
.nm-media-viewport{overflow:hidden;width:100%;}
.nm-media-track{display:flex;gap:12px;direction:rtl;transition:transform .35s ease;will-change:transform;}
.nm-media-card{flex:0 0 calc((100% - 36px)/4);min-width:0;}
.nm-media-card a{display:flex;flex-direction:column;height:100%;}
.nm-media-card img,.nm-media-card .nm-category-placeholder{width:100%;height:145px;object-fit:cover;display:block;}
.nm-media-card span:last-child{padding:8px 9px;font-size:13px;line-height:1.7;font-weight:800;}
.nm-media-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:34px;height:42px;border:0;border-radius:5px;background:rgba(7,56,95,.9);color:#fff;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.nm-media-prev{right:8px;}
.nm-media-next{left:8px;}
.nm-media-arrow:disabled{opacity:.35;cursor:default;}

/* Industry categories: five normal cards. */
.nm-industry-body{grid-template-columns:repeat(5,1fr);}

/* Editorial categories: five compact rows with small circular thumbnails. */
.nm-editorial-circle-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;background:#fff;border:1px solid var(--b);border-top:0;padding:12px;border-radius:0 0 5px 5px;}
.nm-editorial-circle-card{background:#fff;border:1px solid #e1e6ea;border-radius:5px;overflow:hidden;}
.nm-editorial-circle-row{display:flex;align-items:center;gap:9px;padding:9px;min-height:76px;}
.nm-editorial-circle-row img,.nm-editorial-circle-placeholder{width:54px;height:54px;flex:0 0 54px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#eef2f5;color:#7a858f;font-size:8px;text-align:center;}
.nm-editorial-circle-text{display:flex;flex-direction:column;gap:2px;min-width:0;}
.nm-editorial-circle-text small{font-size:10px;color:#68737c;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.nm-editorial-circle-text strong{font-size:12px;line-height:1.7;font-weight:800;display:block;}
.nm-editorial-circle-grid>.empty-state{grid-column:1/-1;}

/* Make the special-news section remain visible even when no special story is selected. */
.nm-featured-empty{padding:25px 15px;background:#fff;border:1px solid var(--b);border-top:0;text-align:center;color:#68737c;}

@media(max-width:1100px){
  .nm-media-card{flex-basis:calc((100% - 24px)/3);}
  .nm-industry-body{grid-template-columns:repeat(3,1fr);}
  .nm-editorial-circle-grid{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:700px){
  .nm-media-carousel{padding:10px 38px;}
  .nm-media-card{flex-basis:calc((100% - 8px)/2);}
  .nm-media-card img,.nm-media-card .nm-category-placeholder{height:115px;}
  .nm-media-arrow{width:30px;height:38px;font-size:25px;}
  .nm-industry-body{grid-template-columns:1fr 1fr;}
  .nm-editorial-circle-grid{grid-template-columns:1fr 1fr;gap:8px;padding:8px;}
  .nm-editorial-circle-row{padding:7px;gap:7px;min-height:68px;}
  .nm-editorial-circle-row img,.nm-editorial-circle-placeholder{width:48px;height:48px;flex-basis:48px;}
  .nm-editorial-circle-text strong{font-size:11px;line-height:1.65;}
  .nm-editorial-circle-text small{font-size:9px;}
}
@media(max-width:420px){
  .nm-media-card{flex-basis:100%;}
  .nm-industry-body{grid-template-columns:1fr;}
  .nm-editorial-circle-grid{grid-template-columns:1fr;}
}

/* v1.4.9: پخش مستقیم ویدئوی خبرهای دسته فیلم */
/* v1.4.10: نمایش کامل ویدئو با حفظ نسبت واقعی فایل، بدون برش در موبایل و دسکتاپ */
.nm-direct-video{width:100%;margin:0 0 24px;background:#000;border-radius:8px;overflow:hidden;line-height:0;text-align:center}
.nm-news-video{display:block;width:100% !important;max-width:100%;height:auto !important;max-height:none !important;aspect-ratio:auto;object-fit:contain;object-position:center;margin:0 auto;background:#000}
.nm-direct-video video{width:100% !important;height:auto !important;max-height:none !important;object-fit:contain !important;object-position:center !important}



/* v1.4.11 - homepage media/category presentation and desktop header fixes */
.nm-media-card img,.nm-media-card .nm-category-placeholder{height:230px;object-fit:contain;object-position:center;background:#101010;}
.nm-list-category-body{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--b);border-top:0;padding:10px;border-radius:0 0 5px 5px;}
.nm-list-category-item{display:grid;grid-template-columns:180px minmax(0,1fr);direction:rtl;gap:16px;align-items:center;background:#fff;border:1px solid #e3e7ea;border-radius:5px;padding:10px;}
.nm-list-category-item .nm-list-thumb{display:block;width:180px;height:112px;overflow:hidden;border-radius:4px;background:#eef2f5;}
.nm-list-category-item .nm-list-thumb img,.nm-list-category-item .nm-list-placeholder{display:block;width:100%;height:100%;object-fit:cover;}
.nm-list-category-item h3{margin:0;font-size:16px;line-height:1.8;font-weight:800;}
.nm-author-category-body{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--b);border-top:0;padding:10px;border-radius:0 0 5px 5px;}
.nm-author-category-item{display:flex;align-items:center;direction:rtl;gap:11px;padding:8px;border-bottom:1px solid #edf0f3;}
.nm-author-category-item:last-child{border-bottom:0;}
.nm-author-category-thumb,.nm-author-category-thumb img,.nm-author-category-placeholder{width:58px;height:58px;flex:0 0 58px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#eef2f5;color:#7a858f;font-size:8px;text-align:center;}
.nm-author-category-text{min-width:0;display:flex;flex-direction:column;gap:1px;}
.nm-author-category-text small{font-size:10px;line-height:1.6;color:#68737c;font-weight:700;}
.nm-author-category-text strong{font-size:14px;line-height:1.8;font-weight:800;}
@media(min-width:651px){
  .nm-header-v146 .header-inner{min-height:70px;padding:7px 0;}
  .nm-header-v146 .brand-name{font-size:27px;letter-spacing:-.8px;}
  .nm-header-v146 .menu-toggle{display:flex;width:44px;height:40px;flex-basis:44px;}
  .nm-header-v146 .header-search-panel{display:flex;position:relative;top:auto;left:auto;right:auto;width:100%;margin:8px 0 0;padding:8px;}
  .nm-header-v146 .main-nav{display:none !important;}
  .nm-header-v146 .main-nav.is-open{display:block !important;}
}
body.nm-force-desktop .nm-header-v146 .header-inner{min-height:70px;padding:7px 0;}
body.nm-force-desktop .nm-header-v146 .brand-name{font-size:27px;letter-spacing:-.8px;}
body.nm-force-desktop .nm-header-v146 .menu-toggle{display:flex;width:44px;height:40px;flex-basis:44px;}
body.nm-force-desktop .nm-header-v146 .main-nav{display:none !important;}
body.nm-force-desktop .nm-header-v146 .main-nav.is-open{display:block !important;}
body.nm-force-desktop .nm-header-v146 .header-search-panel{display:flex;position:relative;top:auto;left:auto;right:auto;width:100%;margin:8px 0 0;padding:8px;}
body.nm-force-desktop .nm-header-v146 .header-meta-inner{min-height:34px;font-size:11px;padding:0 9px;}
body.nm-force-desktop .nm-header-v146 .header-meta-links a{padding:2px 12px;}
@media(max-width:650px){
  .nm-media-card img,.nm-media-card .nm-category-placeholder{height:180px;}
  .nm-list-category-body{padding:8px;gap:8px;}
  .nm-list-category-item{grid-template-columns:120px minmax(0,1fr);gap:10px;padding:8px;}
  .nm-list-category-item .nm-list-thumb{width:120px;height:88px;}
  .nm-list-category-item h3{font-size:13px;line-height:1.75;}
  .nm-author-category-body{padding:8px;}
  .nm-author-category-item{gap:8px;padding:7px;}
  .nm-author-category-thumb,.nm-author-category-thumb img,.nm-author-category-placeholder{width:50px;height:50px;flex-basis:50px;}
  .nm-author-category-text small{font-size:9px;}
  .nm-author-category-text strong{font-size:12px;line-height:1.7;}
}


/* =========================================================
   v1.4.12 - final requested homepage/category + desktop header refinements
   ========================================================= */
/* Film / Photo homepage cards: taller frame, never crop the media. */
.nm-media-card img,
.nm-media-card .nm-category-placeholder{
  height:260px;
  object-fit:contain;
  object-position:center;
  background:#101010;
}

/* Oil & Gas, Petrochemical, Conversation and Report: same compact
   rectangular thumbnail + headline layout as Latest News. */
.nm-list-category-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#fff;
  border:1px solid var(--b);
  border-top:0;
  padding:10px;
  border-radius:0 0 5px 5px;
}
.nm-list-category-item{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  direction:rtl;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid #e3e7ea;
  border-radius:5px;
  padding:8px;
}
.nm-list-category-item .nm-list-thumb{
  display:block;
  width:150px;
  height:96px;
  overflow:hidden;
  border-radius:3px;
  background:#eef2f5;
}
.nm-list-category-item .nm-list-thumb img,
.nm-list-category-item .nm-list-placeholder{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.nm-list-category-item h3{
  margin:0;
  font-size:16px;
  line-height:1.8;
  font-weight:800;
}

/* Keep Note / Articles in the Tabnak-like circular-author layout. */
.nm-author-category-body{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--b);border-top:0;padding:10px;border-radius:0 0 5px 5px;}
.nm-author-category-item{display:flex;align-items:center;direction:rtl;gap:11px;padding:8px;border-bottom:1px solid #edf0f3;}
.nm-author-category-item:last-child{border-bottom:0;}
.nm-author-category-thumb,.nm-author-category-thumb img,.nm-author-category-placeholder{width:58px;height:58px;flex:0 0 58px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:#eef2f5;color:#7a858f;font-size:8px;text-align:center;}
.nm-author-category-text{min-width:0;display:flex;flex-direction:column;gap:1px;}
.nm-author-category-text small{font-size:10px;line-height:1.6;color:#68737c;font-weight:700;}
.nm-author-category-text strong{font-size:14px;line-height:1.8;font-weight:800;}

/* Real desktop: keep the same compact header language as mobile,
   but show the three-line menu button on desktop too. */
@media(min-width:651px){
  .nm-header-v146 .header-inner{min-height:64px;padding:6px 0;}
  .nm-header-v146 .brand-name{font-size:25px;letter-spacing:-.8px;}
  .nm-header-v146 .menu-toggle{display:flex;width:42px;height:38px;flex-basis:42px;}
  .nm-header-v146 .main-nav{display:none !important;}
  .nm-header-v146 .main-nav.is-open{display:block !important;}
  .nm-header-v146 .main-menu{flex-direction:row;justify-content:flex-start;}
}

/* Explicit Desktop view on a phone: keep the desktop header controls visible. */
@media(max-width:650px){
  .nm-media-card img,
  .nm-media-card .nm-category-placeholder{height:220px;object-fit:contain;object-position:center;background:#101010;}
  .nm-list-category-item{grid-template-columns:100px minmax(0,1fr);gap:10px;padding:7px;}
  .nm-list-category-item .nm-list-thumb{width:100px;height:74px;}
  .nm-list-category-item h3{font-size:14px;line-height:1.7;}
  .nm-author-category-thumb,.nm-author-category-thumb img,.nm-author-category-placeholder{width:50px;height:50px;flex-basis:50px;}
  .nm-author-category-text small{font-size:9px;}
  .nm-author-category-text strong{font-size:12px;line-height:1.7;}
  body.nm-force-desktop .nm-header-v146 .brand-name{font-size:25px;letter-spacing:-.8px;}
  body.nm-force-desktop .nm-header-v146 .menu-toggle{display:flex;width:42px;height:38px;flex-basis:42px;}
  body.nm-force-desktop .nm-header-v146 .main-nav{display:none !important;}
  body.nm-force-desktop .nm-header-v146 .main-nav.is-open{display:block !important;}
  body.nm-force-desktop .nm-header-v146 .main-menu{display:flex;flex-direction:row;flex-wrap:wrap;}
}

/* v1.4.13 final cascade fixes: these rules intentionally come last so older
   force-desktop rules cannot override the new requested sizes. */
.featured-slide,.featured-slide img,.featured-slide .hero-placeholder{height:300px;}
.featured-slide .hero-overlay h1{font-size:18px;line-height:1.7;}
.nm-visual-card img,.nm-visual-placeholder{height:220px;object-fit:contain;object-position:center;background:#eef2f5;}
.nm-note-card img,.nm-note-placeholder{height:180px;object-fit:cover;}
body.nm-force-desktop .featured-slide,
body.nm-force-desktop .featured-slide img,
body.nm-force-desktop .featured-slide .hero-placeholder{height:300px;}
body.nm-force-desktop .featured-slide .hero-overlay h1{font-size:18px;line-height:1.7;}
body.nm-force-desktop .post-title{font-size:24px;line-height:1.75;}
body.nm-force-desktop .nm-visual-card img,
body.nm-force-desktop .nm-visual-placeholder{height:220px;object-fit:contain;object-position:center;background:#eef2f5;}
@media(max-width:900px){
  .featured-slide,.featured-slide img,.featured-slide .hero-placeholder{height:270px;}
  .nm-visual-card img,.nm-visual-placeholder{height:195px;}
  .nm-note-card img,.nm-note-placeholder{height:165px;}
}
@media(max-width:650px){
  .featured-slide,.featured-slide img,.featured-slide .hero-placeholder{height:245px;}
  .featured-slide .hero-overlay h1{font-size:16px;line-height:1.65;}
  .nm-visual-card img,.nm-visual-placeholder{height:175px;}
  .nm-note-card img,.nm-note-placeholder{height:150px;}
  body.nm-force-desktop .featured-slide,
  body.nm-force-desktop .featured-slide img,
  body.nm-force-desktop .featured-slide .hero-placeholder{height:300px;}
  body.nm-force-desktop .featured-slide .hero-overlay h1{font-size:18px;}
  body.nm-force-desktop .nm-visual-card img,
  body.nm-force-desktop .nm-visual-placeholder{height:220px;}
}


/* =========================================================
   v1.4.15 - final editorial layout refinements
   ========================================================= */
/* Latest News: smaller, formal headline typography. */
.latest-body h3,.latest-body h3 a{font-size:15px;line-height:1.85;font-weight:800;font-family:Tahoma,"Noto Sans Arabic",sans-serif;}
body.nm-force-desktop .latest-body h3,body.nm-force-desktop .latest-body h3 a{font-size:15px;line-height:1.85;}

/* Visual/notes sliders: title stays above; arrows sit on the bordered content frame. */
.nm-carousel-frame{position:relative;margin-top:5px;border:1px solid var(--b);border-radius:5px;background:#fff;padding:18px 12px 10px;}
.nm-border-controls{position:absolute;top:-16px;right:14px;z-index:5;display:flex;gap:5px;background:#fff;padding:0 5px;}
.nm-border-controls button{width:32px;height:30px;border:1px solid var(--b);border-radius:4px;background:#fff;color:var(--p);font:700 22px/26px Tahoma;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.nm-border-controls button:hover:not(:disabled){background:#f3f6f8}
.nm-border-controls button:disabled{opacity:.35;cursor:default}
.nm-carousel-frame .nm-page-carousel{margin:0;}
.nm-visual-section .section-title,.nm-notes-section .section-title{margin-bottom:0;}
.nm-visual-section .nm-visual-card a{display:block;}
.nm-visual-section .nm-visual-title{display:block;margin-top:7px;font-size:14px;line-height:1.8;font-weight:800;color:#222;}
.nm-note-card img,.nm-note-placeholder{height:180px;width:100%;object-fit:contain;background:#f1f3f5;}
.nm-note-card .nm-note-title{font-size:14px;line-height:1.8;font-weight:800;margin-top:7px;}
.nm-note-author{font-size:11px;line-height:1.7;color:#66717a;margin-top:2px;font-weight:700;}

/* ACF editorial fields on single article. */
.nm-roti{font-size:14px;color:#68737c;font-weight:800;line-height:1.8;margin-bottom:2px;}
.nm-news-type{font-size:11px;color:#68737c;border-right:1px solid #cfd7dd;padding-right:10px;}
.nm-news-summary{margin-top:12px;padding:10px 12px;border-right:3px solid var(--a);background:#f6f8f9;color:#4e5962;font-size:14px;line-height:2;}
.nm-news-summary p{margin:0;}

/* Submission panel immediately below Articles. */
.nm-submit-news-section{margin-top:16px;}
.nm-submit-news-strip{display:flex;align-items:center;direction:rtl;gap:12px;min-height:64px;padding:10px 14px;background:linear-gradient(90deg,#f4f7f9,#fff);border:1px solid var(--b);border-right:5px solid var(--p);border-radius:5px;color:#1e2930;text-decoration:none;box-shadow:0 2px 7px rgba(0,0,0,.04)}
.nm-submit-news-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--p);color:#fff;font-size:21px;flex:0 0 38px}
.nm-submit-news-strip span:nth-child(2){display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.nm-submit-news-strip strong{font-size:16px;line-height:1.7}
.nm-submit-news-strip small{font-size:11px;line-height:1.7;color:#69747d}
.nm-submit-news-strip>b{font-size:27px;color:var(--p);line-height:1}
@media(max-width:650px){
 .latest-body h3,.latest-body h3 a{font-size:13px;line-height:1.75}
 .nm-carousel-frame{padding:16px 7px 8px;margin-top:5px}
 .nm-border-controls{right:9px;top:-15px}
 .nm-border-controls button{width:29px;height:28px;font-size:20px;line-height:24px}
 .nm-visual-section .nm-visual-title,.nm-note-card .nm-note-title{font-size:12px;line-height:1.75}
 .nm-note-card img,.nm-note-placeholder{height:150px}
 .nm-note-author{font-size:10px}
 .nm-roti{font-size:12px}
 .nm-news-summary{font-size:12px}
 .nm-submit-news-strip{min-height:58px;padding:9px 10px;gap:9px}
 .nm-submit-news-icon{width:32px;height:32px;flex-basis:32px;font-size:18px}
 .nm-submit-news-strip strong{font-size:14px}
 .nm-submit-news-strip small{font-size:9px}
}


/* v1.4.18: editorial category cards and social footer */
.nm-visual-section .nm-carousel-frame{border:1px solid #d6e3ed;background:#fff;padding:12px 12px 14px;margin-top:0;box-shadow:0 2px 8px rgba(7,56,95,.06)}
.nm-visual-section .nm-page-slide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.nm-visual-card{min-width:0;background:#fff;border:1px solid #e2e8ed;border-radius:5px;padding:8px;overflow:hidden}
.nm-visual-card img,.nm-visual-placeholder{display:block;width:100%;height:210px;object-fit:contain;object-position:center;background:#f2f4f6;border-radius:3px}
.nm-visual-section .nm-visual-title{font-size:15px;line-height:1.85;margin:9px 2px 2px;color:#17212a}
.nm-visual-section .nm-border-controls,.nm-notes-section .nm-border-controls{position:absolute;inset:0;top:50%;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;align-items:center;width:100%;height:0;padding:0 3px;background:transparent;pointer-events:none;z-index:9}
.nm-visual-section .nm-border-controls button,.nm-notes-section .nm-border-controls button{pointer-events:auto;width:34px;height:42px;border:0;border-radius:4px;background:rgba(7,56,95,.88);color:#fff;font:700 27px/1 Tahoma;box-shadow:0 2px 8px #0003}
.nm-notes-section .nm-carousel-frame{background:#fff;border:1px solid #d6e3ed;padding:12px;}
.nm-notes-section .nm-page-slide{display:flex;flex-direction:column;gap:0}
.nm-note-card{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 12px;align-items:center;padding:12px 4px;border-bottom:1px solid #e8edf1}
.nm-note-card:last-child{border-bottom:0}
.nm-note-card>a{grid-row:1 / span 2;grid-column:1}
.nm-note-card img,.nm-note-placeholder{width:112px;height:92px;object-fit:contain;background:#f1f3f5;border-radius:4px}
.nm-note-card .nm-note-title{grid-column:2;grid-row:1;font-size:15px;line-height:1.9;margin:0;font-weight:800}
.nm-note-author{grid-column:2;grid-row:2;font-size:11px;color:#687680}
.nm-social-band{border-bottom:1px solid rgba(255,255,255,.13);background:#062844;padding:15px 0}
.nm-social-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.nm-social-inner>strong{font-size:14px;color:#fff}
.nm-social-links{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.nm-social{display:inline-flex;align-items:center;gap:7px;color:#fff;border:1px solid rgba(255,255,255,.24);border-radius:24px;padding:5px 11px;font-size:12px;line-height:1.5;transition:background .2s}
.nm-social:hover{background:rgba(255,255,255,.12)}
.nm-social-mark{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:#07385f;font-weight:900;font-size:15px}
@media(max-width:650px){.nm-visual-section .nm-page-slide{gap:8px}.nm-visual-card{padding:5px}.nm-visual-card img,.nm-visual-placeholder{height:145px}.nm-visual-section .nm-visual-title{font-size:12px;line-height:1.75}.nm-visual-section .nm-border-controls button,.nm-notes-section .nm-border-controls button{width:29px;height:36px;font-size:23px}.nm-note-card{grid-template-columns:86px minmax(0,1fr);gap:3px 9px;padding:10px 2px}.nm-note-card img,.nm-note-placeholder{width:86px;height:76px}.nm-note-card .nm-note-title{font-size:12px;line-height:1.75}.nm-note-author{font-size:10px}.nm-social-inner{justify-content:center;text-align:center}.nm-social-inner>strong{width:100%}.nm-social-links{gap:6px}.nm-social{font-size:10px;padding:4px 8px}.nm-social-mark{width:22px;height:22px}}

/* v1.4.19: remove slider arrows from specified editorial categories; social brand marks */
.nm-visual-oil-gas .nm-border-controls,
.nm-visual-petrochemical .nm-border-controls,
.nm-notes-section .nm-border-controls,
.nm-articles-section .nm-border-controls{display:none!important}
.nm-social-mark svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nm-mark-instagram .nm-svg-dot{fill:currentColor;stroke:none}
.nm-mark-whatsapp svg{width:18px;height:18px}
.nm-mark-telegram svg{width:17px;height:17px;fill:currentColor;stroke:#fff;stroke-width:.6}
.nm-mark-eitaa{font-size:10px;letter-spacing:-1px}
@media(max-width:650px){.nm-social-mark svg{width:15px;height:15px}}
