/* Theme Name: Middle East News 24 Pro
Theme URI: https://www.middleeastnews24.com/
Author: Ownerserv
Description: قالب إخباري عربي بتصميم RTL، سايدبار أيسر، وإعدادات إعلانات وسوشيال.
Version: 2.2.0
Requires PHP: 7.4
Text Domain: men24
*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--red:#d90019;--dark:#171a20;--muted:#6b7280;--border:#e9edf2;--surface:#fff;--bg:#f4f6f9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:#15171c;font:500 14px/1.85 Cairo,Tahoma,Arial,sans-serif;direction:rtl}a{text-decoration:none;color:inherit}a:hover{color:var(--red)}img{max-width:100%;height:auto}button,input{font:inherit}.wrap{width:min(1260px,calc(100% - 40px));margin:auto}.topbar{background:#17191d;color:#d5d8dd;font-size:11px}.topbar>.wrap{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar a{margin-inline:8px}.top-social,.footer-social{display:flex;gap:7px;align-items:center}.social-link{display:inline-grid;place-items:center;width:30px;height:30px;background:#343943;color:white!important;border-radius:5px;font-size:15px;font-weight:900}.social-facebook{background:#1877f2}.social-youtube{background:#f00}.social-instagram{background:#b52b88}.social-telegram{background:#229ed9}.masthead{background:white}.masthead>.wrap{display:flex;align-items:center;gap:24px;min-height:133px;justify-content:space-between}.brand{flex:0 0 330px;display:flex;align-items:center}.brand-logo{display:block;width:100%;height:115px;object-fit:contain;object-position:right center}.mast-banner{flex:1;max-width:620px;min-width:0}.masthead .search-form{flex:0 0 215px}.search-form{display:flex;min-width:0}.search-form label{flex:1;min-width:0}.search-field{width:100%;min-width:0;border:1px solid #e5e7eb;background:#fafafa;padding:10px;border-radius:0 5px 5px 0}.search-submit{border:0;background:var(--red);color:white;padding:9px 13px;cursor:pointer}.mainnav{background:#17191e;border-bottom:3px solid var(--red);color:white}.nav-inner{display:flex;align-items:center;min-height:49px}.mainnav ul{display:flex;align-items:center;list-style:none;padding:0;margin:0;flex-wrap:wrap}.mainnav li{position:relative}.mainnav a{display:block;padding:11px 12px;font-weight:800;font-size:12px}.mainnav a:hover,.mainnav .current-menu-item>a{background:var(--red);color:#fff}.mainnav .sub-menu{display:none;position:absolute;right:0;top:100%;min-width:190px;z-index:30;background:#20242a;box-shadow:0 8px 18px #0002}.mainnav li:hover>.sub-menu,.mainnav li:focus-within>.sub-menu{display:block}.mainnav .sub-menu li{width:100%}.menu-toggle{display:none;background:transparent;color:white;border:0;padding:12px;cursor:pointer}.ticker{background:#fff;border-bottom:1px solid var(--border)}.ticker>.wrap{display:flex;align-items:center;gap:14px;min-height:44px;overflow:hidden}.ticker-label{flex:none;background:var(--red);color:white;font-weight:900;padding:7px 17px;border-radius:4px}.ticker-window{overflow:hidden;flex:1;min-width:0;mask-image:linear-gradient(to left,transparent,black 3%,black 97%,transparent)}.ticker-items{display:flex;gap:38px;align-items:center;width:max-content;animation:men24ticker 42s linear infinite}.ticker-items a{flex:none;font-size:12px;font-weight:700;white-space:nowrap}.ticker-items a:before{content:'●';color:var(--red);font-size:9px;margin-left:12px}.ticker:hover .ticker-items,.ticker:focus-within .ticker-items{animation-play-state:paused}@keyframes men24ticker{from{transform:translateX(-35%)}to{transform:translateX(65%)}}@media(prefers-reduced-motion:reduce){.ticker-items{animation:none;flex-wrap:wrap;width:auto}}.layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:22px;align-items:start;padding-block:22px}.primary{min-width:0}.sidebar{min-width:0}.hero{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:9px;margin-bottom:24px;height:375px}.hero-main,.hero-secondary{position:relative;overflow:hidden;border-radius:5px;background:#242a32}.hero-main>a,.hero-secondary>a{display:block;height:100%;position:relative;color:white}.hero img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.hero a:hover img{transform:scale(1.035)}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:9px;min-height:0}.hero-overlay{position:absolute;inset:auto 0 0;padding:45px 20px 16px;background:linear-gradient(transparent,rgba(0,0,0,.9));color:white}.hero-overlay h2{font-size:21px;line-height:1.55;margin:8px 0;font-weight:900}.hero-secondary h2{font-size:15px}.category-label{display:inline-block;background:var(--red);padding:2px 10px;color:white;font-size:11px;font-weight:800;border-radius:3px}.panel,.widget{background:#fff;border:1px solid var(--border);border-radius:5px;box-shadow:0 2px 12px #1c263008}.news-section{padding:15px 17px 18px;margin-bottom:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);margin-bottom:14px;padding-bottom:10px}.section-heading h2,.widget-title{margin:0;border-right:4px solid var(--red);padding-right:10px;font-size:19px;font-weight:900;line-height:1.45}.more{background:var(--red);color:white!important;padding:4px 15px;border-radius:4px;font-size:11px;font-weight:800}.post-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.post-card{min-width:0}.post-card>a{display:block}.post-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;border-radius:4px;background:#e8edf3}.post-card h3{font-size:12px;line-height:1.7;font-weight:800;margin:7px 0 3px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.post-meta{font-size:10px;color:#87909d}.section-feature .post-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,auto)}.section-feature .post-card:first-child{grid-column:1/3;grid-row:1/3}.section-feature .post-card:first-child img{aspect-ratio:16/12}.section-feature .post-card:first-child h3{font-size:17px}.section-list .post-grid{grid-template-columns:1.2fr 1fr 1fr;gap:12px}.section-list .post-card:first-child{grid-row:1/3}.section-list .post-card:first-child img{aspect-ratio:4/3}.section-list .post-card:not(:first-child) a{display:flex;align-items:center;gap:9px}.section-list .post-card:not(:first-child) img{width:86px;aspect-ratio:1.3;flex:none}.section-list .post-card:not(:first-child) h3{margin:0}.widget{padding:15px;margin-bottom:16px}.widget-title{font-size:16px;margin-bottom:14px}.widget ul{list-style:none;padding:0;margin:0}.widget li{border-bottom:1px solid var(--border);padding:8px 0}.widget li:last-child{border:0}.ranked{list-style:none;padding:0;counter-reset:rank}.ranked li{display:flex;gap:10px;align-items:center;counter-increment:rank;position:relative}.ranked li:before{content:counter(rank);position:absolute;right:-6px;top:3px;background:var(--red);color:white;border-radius:50%;width:21px;height:21px;text-align:center;line-height:21px;font-size:11px}.ranked li a:first-of-type{flex:0 0 76px}.ranked img{width:76px;height:58px;object-fit:cover;border-radius:4px}.ranked li a:last-child{font-size:11px;font-weight:800;line-height:1.6}.category-list a{font-weight:700}.men24-image-ad img{width:100%;height:auto;display:block;border-radius:5px}.men24-image-ad{margin-bottom:15px}.footer{background:#191c20;color:#cdd1d7;margin-top:26px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:30px;padding:38px 0}.footer h3{color:#fff;font-size:15px;margin:0 0 13px;border-right:3px solid var(--red);padding-right:9px}.footer p{font-size:12px}.footer ul{padding:0;list-style:none;margin:0;columns:1}.footer li{margin:4px 0;font-size:12px}.footer-logo{width:230px;height:115px;object-fit:contain;background:white;border-radius:4px;padding:4px}.footer-social{margin-top:12px}.copyright{text-align:center;background:#111317;padding:12px;font-size:11px}.entry-title{font-size:32px;line-height:1.65;font-weight:900;margin:18px 0}.primary>article.panel{padding:28px}.breadcrumbs{font-size:12px;color:#737b87}.entry-cover{display:block;width:100%;height:auto;max-height:530px;object-fit:cover;border-radius:7px;margin:22px 0}.entry-content{font-size:17px;line-height:2.2;overflow-wrap:anywhere}.entry-content p{margin:0 0 22px}.entry-content img{border-radius:5px}.share-links{display:flex;flex-wrap:wrap;gap:9px;border-top:1px solid var(--border);padding-top:18px;margin-top:25px}.share-links a{background:#f1f3f6;padding:7px 13px;border-radius:4px;font-weight:800}.primary>.panel:not(.news-section){margin-bottom:20px}.primary>.panel>.post-grid{padding:0 16px 16px}.primary>.panel>.section-heading{margin:15px}.pagination{margin:25px 0}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
@media(max-width:1050px){.layout{grid-template-columns:minmax(0,1fr) 240px;gap:14px}.masthead>.wrap{gap:12px}.brand{flex-basis:260px}.post-grid{gap:8px}.mainnav a{padding:10px 8px}}
@media(max-width:780px){.wrap{width:min(100% - 24px,650px)}.topbar>.wrap{justify-content:center;flex-wrap:wrap;padding:5px}.topbar>.wrap>div:last-child{display:none}.masthead>.wrap{min-height:96px;gap:10px}.brand{flex:0 0 52%;max-width:250px}.brand-logo{height:80px}.mast-banner{display:none}.masthead .search-form{flex:1;min-width:0}.mainnav .menu-toggle{display:block}.mainnav ul{display:none;flex-direction:column;align-items:stretch;width:100%}.mainnav ul.is-open{display:flex}.mainnav .nav-inner{display:block}.mainnav li{width:100%}.mainnav .sub-menu{display:block;position:static;box-shadow:none;padding-right:15px}.layout{display:flex;flex-direction:column}.primary,.sidebar{width:100%}.hero{height:320px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-feature .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-feature .post-card:first-child{grid-column:1/3;grid-row:auto}.section-list .post-grid{grid-template-columns:1fr 1fr}.section-list .post-card:first-child{grid-row:auto;grid-column:1/3}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entry-title{font-size:25px}}
@media(max-width:480px){.hero{height:auto;display:flex;flex-direction:column}.hero-main{height:270px}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:none;height:150px}.hero-overlay h2{font-size:17px}.hero-secondary h2{font-size:11px}.hero-secondary .hero-overlay{padding:25px 8px 8px}.masthead .search-form{flex:1}.search-field{padding:7px;font-size:11px}.footer-grid{grid-template-columns:1fr 1fr;gap:18px}.post-grid{gap:10px}.news-section{padding:12px}.section-heading h2{font-size:16px}.section-list .post-grid{grid-template-columns:1fr}.section-list .post-card:first-child{grid-column:auto}.section-list .post-card:not(:first-child) img{width:100px}.primary>article.panel{padding:17px}.entry-content{font-size:16px}}

/* v2.1 - Editorial reference layout, not an alternative visual identity */
:root{--red:#df001a;--bg:#fafafa;--border:#e9e9e9}
body{background:#fafafa;font-size:13px;line-height:1.75}
.wrap{width:min(1200px,calc(100% - 40px))}
.masthead>.wrap{min-height:112px}
.brand{flex-basis:280px}.brand-logo{height:104px;object-fit:contain}
.mast-banner{max-width:560px;min-height:80px;display:flex;align-items:center;justify-content:center}
.mainnav{background:#101115}.mainnav a{font-weight:800}
.layout{grid-template-columns:minmax(0,1fr) 265px;gap:16px;padding-block:18px}
.hero-editorial{height:390px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr 1fr 0.9fr;gap:7px;margin-bottom:16px}
.hero-editorial .hero-story{position:relative;overflow:hidden;border-radius:3px;background:#222}
.hero-editorial .hero-story a{height:100%;display:block;position:relative;color:#fff}
.hero-editorial .hero-story img{width:100%;height:100%;display:block;object-fit:cover}
.hero-editorial .hero-story-1{grid-column:2/6;grid-row:1/3}
.hero-editorial .hero-story-2{grid-column:1;grid-row:1}
.hero-editorial .hero-story-3{grid-column:1;grid-row:2}
.hero-editorial .hero-story-4{grid-column:4/6;grid-row:3}
.hero-editorial .hero-story-5{grid-column:2/4;grid-row:3}
.hero-editorial .hero-story .hero-overlay{position:absolute;inset:auto 0 0;padding:26px 12px 9px;background:linear-gradient(transparent,rgba(0,0,0,.88));color:#fff}
.hero-editorial .hero-story h2{font-size:12px;line-height:1.6;margin:6px 0 2px;font-weight:900}
.hero-editorial .hero-story-1 h2{font-size:23px;line-height:1.55}
.hero-editorial .hero-time{display:block;font-size:10px;opacity:.85}
.news-section{padding:11px 12px;margin-bottom:14px;border-radius:2px}
.section-heading{padding-bottom:6px;margin-bottom:9px}
.section-heading h2{font-size:17px}.post-grid{gap:9px}
.post-card h3{font-size:11px;line-height:1.65}
.widget{padding:12px;margin-bottom:13px;border-radius:2px}.widget-title{font-size:15px}
.sidebar-social{display:flex;gap:7px;flex-wrap:wrap}
.sidebar-social .social-link{width:40px;height:38px;font-size:18px}
.footer{background:#15191e}.footer-logo{background:transparent;filter:none;width:190px;height:100px;object-fit:contain}
.footer-brand{background:white;border-radius:3px;max-width:200px}
.footer-grid{grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:22px}
.entry-title{font-size:31px}.entry-content{font-size:17px}
@media(max-width:1000px){.hero-editorial{height:350px}.layout{grid-template-columns:minmax(0,1fr) 230px}.mast-banner{min-height:50px}}
@media(max-width:780px){.layout{display:flex;flex-direction:column}.hero-editorial{height:360px}.mast-banner{display:none}.brand{flex-basis:53%}.hero-editorial .hero-story-1 h2{font-size:17px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.hero-editorial{height:480px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:200px 130px 130px}.hero-editorial .hero-story-1{grid-column:1/3;grid-row:1}.hero-editorial .hero-story-2{grid-column:1;grid-row:2}.hero-editorial .hero-story-3{grid-column:2;grid-row:2}.hero-editorial .hero-story-4{grid-column:1;grid-row:3}.hero-editorial .hero-story-5{grid-column:2;grid-row:3}.hero-editorial .hero-story-1 h2{font-size:17px}.hero-editorial .hero-story h2{font-size:10px}.hero-editorial .hero-story .hero-overlay{padding:24px 7px 6px}.wrap{width:calc(100% - 22px)}}

/* v2.2 – reference matching & archive/article corrections */
:root{--red:#e0001b;--bg:#f7f8fa}
body{font-family:Cairo,Tahoma,Arial,sans-serif;font-weight:500}
.hero-editorial{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));height:420px}
.hero-editorial .hero-story-1{grid-column:2/6;grid-row:1/3}
.hero-editorial .hero-story-2{grid-column:1;grid-row:1}
.hero-editorial .hero-story-3{grid-column:1;grid-row:2}
.hero-editorial .hero-story-4{grid-column:2/4;grid-row:3}
.hero-editorial .hero-story-5{grid-column:4/6;grid-row:3}
.hero-editorial .hero-story-1 h2{font-size:22px}
.hero-editorial .hero-story-4 h2,.hero-editorial .hero-story-5 h2{font-size:13px}
.news-section{padding:15px 15px 17px;box-shadow:0 2px 14px #17203008}
.post-card img{aspect-ratio:16/10;background:#eff2f5}
.post-card h3{font-size:12px;line-height:1.65}
.section-feature .post-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,auto))}
.section-feature .post-card:first-child{grid-column:1/3;grid-row:1/3}
.section-list .post-grid{grid-template-columns:minmax(0,1.25fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,auto))}
.section-list .post-card:first-child{grid-column:1;grid-row:1/3}
.section-list .post-card:not(:first-child) img{width:80px;height:65px;aspect-ratio:unset;object-fit:cover}
.section-list .post-card:not(:first-child) h3{font-size:11px}
.men24-small-sections{padding:18px;margin:18px 0}
.men24-mini-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.men24-mini-categories a{display:flex;align-items:center;gap:8px;background:#f7f8fa;border:1px solid var(--border);border-radius:5px;padding:11px 12px;font-weight:800}
.men24-mini-categories small{margin-inline-start:auto;font-size:10px;color:var(--muted);white-space:nowrap}
.men24-mini-categories a>span:last-child{color:var(--red)}
.listing-intro{padding:23px 26px;margin-bottom:18px!important;border-top:4px solid var(--red)}
.listing-intro-main{display:flex;justify-content:space-between;align-items:center;gap:20px}
.listing-intro h1{font-size:31px;line-height:1.35;margin:7px 0 4px;color:#16191e}
.eyebrow{font-size:12px;font-weight:800;color:var(--red)}
.listing-count{font-size:26px;color:var(--red);font-weight:900;line-height:1.2;text-align:center;min-width:85px}
.listing-count small{display:block;color:#707987;font-size:10px;font-weight:700;margin-top:5px}
.archive-description{font-size:13px;color:#68707b}
.listing-results{padding:20px 22px!important}
.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
.archive-grid .post-card img{aspect-ratio:16/10}
.archive-grid .post-card h3{font-size:14px;margin:9px 0 4px;line-height:1.65}
.archive-grid .post-card{border-bottom:1px solid var(--border);padding-bottom:12px}
.pagination{display:flex;justify-content:center;padding:18px 0 5px}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px}
.pagination .page-numbers{display:inline-flex;justify-content:center;align-items:center;min-width:35px;min-height:35px;padding:4px 10px;border:1px solid var(--border);border-radius:4px;font-size:12px;font-weight:800}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:var(--red);border-color:var(--red);color:white}
.empty-news{padding:24px}
.article-panel{padding:25px 31px 30px!important}
.breadcrumbs{font-size:11px;color:#7b8592;margin-bottom:17px;line-height:1.8}
.breadcrumbs a:hover{color:var(--red)}
.article-head .category-label{font-size:12px;padding:4px 11px}
.article-head .entry-title{font-size:31px;line-height:1.7;margin:14px 0 12px;letter-spacing:-.35px}
.article-meta{display:flex;gap:20px;flex-wrap:wrap;color:#707987;font-size:12px;border-bottom:1px solid var(--border);padding-bottom:17px}
.article-cover{margin:22px 0 28px}
.article-cover .entry-cover{width:100%;height:auto;max-height:510px;object-fit:cover;display:block;border-radius:5px;margin:0}
.article-cover figcaption{font-size:11px;color:#737e8b;margin-top:7px;text-align:center}
.entry-content{color:#242a32;font-size:17px;line-height:2.15}
.entry-content h2{font-size:24px;line-height:1.6;border-right:4px solid var(--red);padding-right:12px;margin:27px 0 15px}
.entry-content h3{font-size:20px;margin:23px 0 10px}
.entry-content blockquote{background:#f5f7fa;padding:14px 18px;border-right:4px solid var(--red);margin:20px 0}
.entry-content img{max-width:100%;height:auto}
.article-bottom{border-top:1px solid var(--border);margin-top:28px;padding-top:15px}
.article-tags{font-size:12px;margin:7px 0;color:#6b7280}
.share-links{margin-top:10px;border-top:0;padding:4px 0;align-items:center}
.share-links strong{font-size:13px;margin-left:5px}
.share-links a{background:#f0f2f5;color:#1d2530;padding:7px 15px}
.share-links a:hover{background:var(--red);color:white}
.related-news{padding:16px 20px!important}.related-news .post-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:0!important}
@media(max-width:1000px){.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-editorial{height:360px}}
@media(max-width:780px){.hero-editorial{height:360px}.men24-mini-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.listing-intro h1{font-size:26px}.article-head .entry-title{font-size:25px}}
@media(max-width:480px){.hero-editorial{height:475px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:200px 130px 130px}.hero-editorial .hero-story-1{grid-column:1/3;grid-row:1}.hero-editorial .hero-story-2{grid-column:1;grid-row:2}.hero-editorial .hero-story-3{grid-column:2;grid-row:2}.hero-editorial .hero-story-4{grid-column:1;grid-row:3}.hero-editorial .hero-story-5{grid-column:2;grid-row:3}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.archive-grid .post-card h3{font-size:12px}.listing-intro{padding:15px!important}.listing-results{padding:14px!important}.listing-intro h1{font-size:24px}.listing-count{font-size:21px}.article-panel{padding:17px!important}.article-head .entry-title{font-size:23px}.article-meta{gap:10px}.men24-mini-categories{grid-template-columns:1fr}.related-news .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
