/*
Theme Name: صناع المال — Minimal Premium
Theme URI: https://almaal.org/
Author: صناع المال
Description: قالب صناع المال — تنفيذ Minimal Premium متوافق مع PHP 7.4.
Version: 3.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: almaal
*/
:root{
 --blue:#202CC7;--blue2:#3342e5;--ink:#101522;--muted:#737b8c;--bg:#fbfbfa;
 --line:#e9ebf0;--soft:#f2f4ff;--white:#fff;--max:1240px;--r:16px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--ink);font-family:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif;line-height:1.8;font-size:16px}
img{display:block;max-width:100%;height:auto}a{text-decoration:none;color:inherit}.skip-link{position:fixed;top:8px;right:8px;z-index:9999;background:#111318;color:#fff;padding:8px 12px;border-radius:7px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
button,input{font:inherit}.container{width:min(1200px,calc(100% - 48px));margin:auto}
.site-header{height:72px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.header-inner{height:72px;display:flex;align-items:center;gap:28px}
.site-branding{order:1;width:108px;flex:0 0 108px}.site-logo{width:108px;height:auto}
.main-nav{order:2;flex:1}.main-nav ul{display:flex;align-items:center;justify-content:center;gap:25px;list-style:none;padding:0;margin:0}
.main-nav a{font-size:12px;font-weight:600;white-space:nowrap;color:#3e4350}
.main-nav a:hover{color:var(--blue)}
.header-search{order:3;border:0;background:none;width:34px;height:34px;padding:6px;color:var(--ink);cursor:pointer}
.header-search svg{width:19px}.mobile-toggle{display:none}
[data-search-panel]{padding-bottom:12px}.search-form{height:44px;display:flex;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.search-form input{border:0;outline:0;flex:1;min-width:0;padding:0 16px;color:var(--ink);font-size:13px}
.search-form button{border:0;background:var(--blue);color:#fff;width:52px;display:grid;place-items:center}
.hero{padding:26px 0 18px}.hero-grid{display:grid;grid-template-columns:48% 52%;min-height:390px;background:#f6f6f3;overflow:hidden;border-radius:0}
.hero-copy{padding:52px 52px 48px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.eyebrow{font-size:12px;font-weight:700;color:var(--blue);margin-bottom:8px}
.hero h1{font-size:45px;line-height:1.18;letter-spacing:-1.6px;margin:0 0 15px;max-width:520px;font-weight:750}
.hero p{font-size:15px;color:#697181;line-height:1.9;margin:0 0 20px;max-width:510px}
.hero .search-form{width:min(100%,470px)}
.hero-image{min-height:390px;background-size:cover;background-position:center}
.category-strip{padding:18px 0 26px}.category-grid{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--line);padding-bottom:22px}
.category-item{border-inline-start:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 5px;color:#2d3340}
.category-item:first-child{border-inline-start:0}.category-item:hover{color:var(--blue)}
.category-icon{width:34px;height:34px;color:var(--blue);display:grid;place-items:center}.category-icon svg{width:26px;height:26px}
.category-item span:last-child{font-size:12px;font-weight:650}
.section{padding:26px 0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.section-head h2{font-size:21px;margin:0;font-weight:750}.section-link{font-size:12px;color:var(--blue);font-weight:700}
.feature-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px}
.feature-card{height:355px;position:relative;overflow:hidden;border-radius:14px;background:#17202d;color:#fff}
.feature-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feature-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,9,18,.86),rgba(5,9,18,.02) 68%)}
.feature-content{position:absolute;z-index:2;bottom:25px;right:28px;left:28px}.feature-content .post-category{font-size:11px;color:#fff}
.feature-content h3{font-size:27px;line-height:1.35;margin:5px 0 4px}.feature-content p{font-size:13px;color:#d7dae0;margin:0}
.side-list{display:flex;flex-direction:column;gap:9px}.post-mini{display:grid;grid-template-columns:94px 1fr;gap:11px;padding-bottom:9px;border-bottom:1px solid var(--line)}
.post-mini img{width:94px;height:70px;object-fit:cover;border-radius:9px}.post-mini h3{font-size:14px;line-height:1.45;margin:2px 0 3px}.meta{display:flex;gap:8px;color:#8b92a0;font-size:10px}.card-category{color:var(--blue);font-size:10px;font-weight:750}
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.post-card{border:1px solid var(--line);background:#fff;overflow:hidden;border-radius:12px}
.post-card-thumb{display:block;aspect-ratio:1.55;background:#f0f1f4}.post-card-thumb img{width:100%;height:100%;object-fit:cover}
.post-card-body{padding:11px 13px 14px}.post-card h3{font-size:14px;line-height:1.5;margin:3px 0 5px}
.newsletter{margin:30px auto 55px;background:#f7f7f4;border-radius:15px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.newsletter h2{font-size:20px;margin:0 0 2px}.newsletter p{font-size:12px;color:var(--muted);margin:0}
.newsletter-form{display:flex;width:min(450px,100%)}.newsletter-form input{height:43px;flex:1;border:1px solid var(--line);padding:0 14px;outline:0;border-radius:9px 0 0 9px;background:#fff;font-size:12px}.newsletter-form button{border:0;background:var(--blue);color:#fff;border-radius:0 9px 9px 0;padding:0 22px;font-size:12px;font-weight:700}
.site-footer{background:#10131b;color:#fff;padding:45px 0 22px}.footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:35px}.footer-logo{width:105px;filter:brightness(0) invert(1)}.footer-title{font-size:13px;margin:0 0 11px}.footer-links{list-style:none;padding:0;margin:0;display:grid;gap:5px}.footer-links a{font-size:11px;color:#aeb5c3}.footer-bottom{border-top:1px solid rgba(255,255,255,.09);margin-top:30px;padding-top:14px;color:#8d95a5;font-size:10px;display:flex;justify-content:space-between}
.breadcrumbs{font-size:11px;color:#969daa;margin-bottom:14px}.breadcrumbs a{color:var(--blue)}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:45px;max-width:1050px;margin:auto}.article-main{min-width:0}
.article-header{text-align:right}.article-header .eyebrow{display:inline-block}.article-header h1{font-size:43px;line-height:1.25;letter-spacing:-1.3px;margin:0 0 8px}.article-lead{font-size:15px;color:var(--muted);margin:0 auto 12px;max-width:750px}.article-meta{font-size:10px;color:#9299a6;display:flex;justify-content:flex-start;gap:12px;margin-bottom:20px}
.article-cover{width:100%;aspect-ratio:16/8.5;object-fit:cover;border-radius:13px;margin-bottom:24px}.article-content{font-size:17px;line-height:2.05}.article-content h2{font-size:25px;line-height:1.5;margin:35px 0 8px}.article-content h3{font-size:20px;margin:25px 0 7px}.article-content p{margin:0 0 18px}.article-content ul,.article-content ol{padding-inline-start:24px}.article-content blockquote{margin:22px 0;padding:16px 18px;background:var(--soft);border-inline-start:3px solid var(--blue);border-radius:10px}.article-content table{border-collapse:collapse;width:100%;font-size:13px}.article-content th,.article-content td{border:1px solid var(--line);padding:8px}.article-content th{background:#f7f7f4}
.article-sidebar{padding-top:90px}.toc,.share-box{border:1px solid var(--line);border-radius:12px;padding:15px;margin-bottom:12px}.toc-title{font-size:13px;font-weight:750;margin-bottom:7px}.toc ol{font-size:11px;margin:0;padding-inline-start:18px;color:#697181}.share-box{font-size:12px}.share-box a{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#f4f5f8;margin-inline-end:4px;font-size:10px}
.archive-hero{padding:45px 0 25px;background:#f7f7f4}.archive-hero h1{font-size:39px;margin:0 0 7px}.archive-hero p{font-size:14px;color:var(--muted);margin:0}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.pagination{display:flex;justify-content:center;gap:6px;margin:30px 0}.pagination .page-numbers{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;font-size:11px}.pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}
.not-found{text-align:center;padding:100px 20px}.not-found h1{font-size:38px}
@media(max-width:980px){.main-nav ul{gap:12px}.main-nav a{font-size:10px}.hero-grid{grid-template-columns:1fr 1fr}.hero-copy{padding:34px}.hero h1{font-size:36px}.category-grid{grid-template-columns:repeat(4,1fr);row-gap:12px}.category-item:nth-child(5){border-inline-start:0}.card-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){
 .container{width:calc(100% - 28px)}.site-header,.header-inner{height:62px}.site-branding{order:2;flex:1;text-align:center}.site-logo{width:88px}.header-search{order:3}.mobile-toggle{display:block;order:1;border:0;background:none;width:32px;color:var(--ink);padding:4px}.mobile-toggle svg{width:21px}
 .main-nav{display:none;position:absolute;top:62px;right:0;left:0;background:#fff;border-bottom:1px solid var(--line);padding:10px 14px}.main-nav.is-open{display:block}.main-nav ul{display:grid;gap:0}.main-nav a{display:block;padding:9px;font-size:12px}
 .hero{padding-top:14px}.hero-grid{display:flex;flex-direction:column}.hero-image{order:-1;min-height:235px}.hero-copy{padding:27px 22px}.hero h1{font-size:31px;letter-spacing:-.7px}.hero p{font-size:13px}.hero .search-form{width:100%}
 .category-grid{grid-template-columns:repeat(4,1fr);padding-bottom:16px}.category-item{border:0}.category-item span:last-child{font-size:10px}
 .feature-grid{grid-template-columns:1fr}.feature-card{height:275px}.feature-content{right:18px;left:18px;bottom:18px}.feature-content h3{font-size:22px}.post-mini{grid-template-columns:90px 1fr}.post-mini img{width:90px;height:67px}
 .section{padding:20px 0}.section-head h2{font-size:18px}.card-grid{grid-template-columns:repeat(2,1fr);gap:10px}.post-card-body{padding:9px}.post-card h3{font-size:12px}.newsletter{display:block;padding:22px;margin-bottom:35px}.newsletter-form{margin-top:15px}
 .article-layout{display:block}.article-sidebar{padding-top:25px}.article-header h1{font-size:31px}.article-lead{font-size:13px}.article-content{font-size:16px}.article-content h2{font-size:23px}.article-cover{border-radius:10px}.archive-grid{grid-template-columns:1fr 1fr}.archive-hero h1{font-size:31px}.footer-grid{grid-template-columns:1fr 1fr}.footer-bottom{display:block}
}
@media(max-width:420px){.card-grid,.archive-grid{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(4,1fr)}.category-item{padding:4px}.hero h1{font-size:29px}}

.empty-state{border:1px solid var(--line);border-radius:12px;background:#fff;padding:30px;text-align:center;color:var(--muted);font-size:13px}.comments-area{margin-top:45px;padding-top:25px;border-top:1px solid var(--line)}.comments-area ol{padding:0;list-style:none}.comment{padding:15px 0;border-bottom:1px solid var(--line)}.comment-meta{font-size:11px;color:var(--muted)}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* v1.3 editorial refinement */
:root{
  --blue:#202cc7;
  --blue2:#2d3bd3;
  --ink:#111318;
  --muted:#6f7583;
  --paper:#fbfbfa;
  --white:#fff;
  --line:#e6e8ee;
  --soft:#f3f4ff;
  --radius:10px;
}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink)}
.site-header{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.header-inner{height:76px}
.brand-link{display:flex;align-items:center}
.brand-link img,.brand-link svg{max-height:42px;width:auto}
.main-nav .primary-menu{gap:26px}
.main-nav a{font-size:13px;font-weight:600;color:#2b2f39}
.main-nav a:hover{color:var(--blue)}
.header-actions{display:flex;align-items:center;gap:8px}
.search-trigger{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;font-size:23px;line-height:1}
.search-trigger:hover{border-color:#cdd1dc;color:var(--blue)}
.mobile-toggle{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;display:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;cursor:pointer}
.mobile-toggle span{display:block;width:16px;height:1.5px;background:var(--ink)}
.search-panel{position:absolute;left:0;right:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 28px rgba(17,19,24,.06);padding:18px 0}
.header-search-form{display:flex;gap:8px}
.header-search-form input{flex:1;border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:13px 15px;font:inherit;outline:0}
.header-search-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(32,44,199,.08)}
.header-search-form button,.button{border:0;background:var(--blue);color:#fff;border-radius:8px;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer}
.home-hero{padding:42px 0 36px}
.hero-grid{border-bottom:1px solid var(--line);padding-bottom:42px}
.hero-copy{padding:14px 0 10px}
.hero-copy h1{font-size:clamp(34px,4vw,58px);line-height:1.12;letter-spacing:-1.5px;max-width:720px;margin:12px 0 18px}
.hero-excerpt{font-size:17px;line-height:1.9;max-width:650px;color:#555b67}
.hero-media{min-height:410px}
.hero-media img{width:100%;height:100%;min-height:410px;object-fit:cover;border-radius:10px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--blue);text-transform:none;margin-bottom:8px}
.category-strip{border-bottom:1px solid var(--line);background:#fff}
.category-strip-inner{display:grid;grid-template-columns:repeat(7,1fr)}
.category-strip a{padding:16px 10px;border-left:1px solid var(--line);display:flex;justify-content:center;gap:9px;font-size:12px;font-weight:700;color:#333742}
.category-strip a:first-child{border-left:0}
.category-strip a:hover{color:var(--blue);background:var(--soft)}
.section{padding:64px 0}
.section-head{margin-bottom:25px}
.section-head h2{font-size:25px;letter-spacing:-.5px;margin:0}
.featured-layout{grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);gap:28px}
.large-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 8px 24px rgba(17,19,24,.035)}
.large-card .card-media{display:block;aspect-ratio:16/9;overflow:hidden}
.large-card .card-media img{width:100%;height:100%;object-fit:cover}
.large-card .card-body{padding:22px 24px 25px}
.large-card h3{font-size:27px;line-height:1.35;margin:10px 0}
.large-card p{font-size:14px;line-height:1.9;color:var(--muted);margin:0}
.mini-card{border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:16px}
.mini-card:last-child{border-bottom:0;margin-bottom:0}
.card-grid{gap:20px}
.post-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 5px 18px rgba(17,19,24,.025)}
.post-card .card-media{aspect-ratio:16/10}
.post-card .card-body{padding:17px 18px 20px}
.post-card h3{font-size:17px;line-height:1.5}
.newsletter-section{padding:0 0 70px}
.newsletter{background:#111318;color:#fff;border-radius:10px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.newsletter h2{margin:0 0 7px;font-size:25px}
.newsletter p{margin:0;color:#aeb4c2;font-size:13px}
.newsletter .eyebrow{color:#aeb7ff}
.newsletter-form{display:flex;min-width:390px;gap:7px}
.newsletter-form input{flex:1;border:1px solid #343841;background:#1a1d23;color:#fff;border-radius:8px;padding:12px 14px;font:inherit}
.newsletter-form button{background:var(--blue);color:#fff;border:0;border-radius:8px;padding:12px 18px;font:inherit;font-weight:700}
.article-page{padding-top:35px;padding-bottom:70px}
.breadcrumbs{display:flex;gap:9px;font-size:11px;color:var(--muted);margin-bottom:28px}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:60px;align-items:start}
.article-header h1{font-size:clamp(34px,4vw,56px);line-height:1.16;letter-spacing:-1.3px;margin:12px 0 18px}
.article-excerpt{font-size:18px;line-height:1.9;color:#666d7a;max-width:850px}
.article-featured{margin:34px 0 38px}
.article-featured img{width:100%;height:auto;max-height:650px;object-fit:cover;border-radius:10px}
.article-content{font-size:17px;line-height:2.05;color:#262a33}
.article-content h2{font-size:28px;line-height:1.35;margin:42px 0 14px}
.article-content h3{font-size:22px;line-height:1.45;margin:32px 0 12px}
.article-content p{margin:0 0 20px}
.article-content img{max-width:100%;height:auto}
.article-content a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.article-sidebar{position:sticky;top:105px}
.sidebar-box{border:1px solid var(--line);background:#fff;border-radius:10px;padding:18px;margin-bottom:12px}
.sidebar-title{font-size:15px;font-weight:800;margin-bottom:7px}
.sidebar-box p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.share-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.share-links a{border:1px solid var(--line);padding:7px 10px;border-radius:7px;font-size:11px}
.related-section{padding-top:55px;margin-top:45px;border-top:1px solid var(--line)}
.comments-area{padding-top:35px;margin-top:45px;border-top:1px solid var(--line)}
.comments-title{font-size:22px}
.comment-form input,.comment-form textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px 13px;font:inherit;background:#fff;box-sizing:border-box}
.comment-form textarea{min-height:150px}
.comment-form .submit{background:var(--blue);color:#fff;border:0;border-radius:8px;padding:11px 18px;font:inherit;font-weight:700}
.site-footer{background:#111318;color:#fff;margin-top:20px}
.footer-brand p,.footer-note{max-width:340px;color:#aeb4c2;font-size:12px;line-height:1.9}
.footer-title{font-size:12px;margin:0 0 12px}
.footer-links{padding:0;margin:0;list-style:none}
.footer-links li{margin-bottom:8px}
.footer-links a{font-size:12px;color:#c5cad4}
.footer-links a:hover{color:#fff}
.footer-bottom{border-top:1px solid #292d35;color:#777f8f;font-size:10px;padding-top:18px;margin-top:30px}
.empty-state{border:1px solid var(--line);border-radius:10px;background:#fff;padding:40px;text-align:center;color:var(--muted)}
@media(max-width:980px){
  .main-nav{display:none}
  .mobile-toggle{display:flex}
  .main-nav.is-open{display:block;position:absolute;top:76px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:10px 20px;box-shadow:0 15px 30px rgba(17,19,24,.07)}
  .main-nav.is-open .primary-menu{display:block}
  .main-nav.is-open .primary-menu li{border-bottom:1px solid var(--line)}
  .main-nav.is-open .primary-menu a{display:block;padding:13px 4px}
  .category-strip-inner{grid-template-columns:repeat(4,1fr)}
  .featured-layout{grid-template-columns:1fr}
  .article-layout{grid-template-columns:1fr}
  .article-sidebar{position:static}
}
@media(max-width:720px){
  .site-header,.header-inner{height:68px}
  .main-nav.is-open{top:68px}
  .home-hero{padding:24px 0 28px}
  .hero-grid{display:flex;flex-direction:column-reverse;gap:20px;padding-bottom:28px}
  .hero-media,.hero-media img{min-height:250px}
  .hero-copy h1{font-size:35px}
  .hero-excerpt{font-size:15px}
  .category-strip-inner{grid-template-columns:repeat(2,1fr)}
  .category-strip a{border-bottom:1px solid var(--line)}
  .newsletter{display:block;padding:27px 23px}
  .newsletter-form{min-width:0;margin-top:18px}
  .section{padding:45px 0}
}
@media(max-width:420px){
  .container{width:min(100% - 28px,1200px)}
  .header-actions{gap:4px}
  .search-trigger,.mobile-toggle{width:36px;height:36px}
  .hero-copy h1{font-size:31px}
  .newsletter-form{display:block}
  .newsletter-form input,.newsletter-form button{width:100%;box-sizing:border-box}
  .newsletter-form button{margin-top:7px}
}

/* v1.4 accessibility / print / reduced motion */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
img{max-width:100%}
button,input,textarea,select{font-family:inherit}
@media print{
  .site-header,.article-sidebar,.site-footer,.newsletter-section,.category-strip,.comments-area,.related-section{display:none!important}
  .article-layout{display:block!important}
  .article-content{font-size:12pt;line-height:1.8}
  .article-header h1{font-size:28pt}
  a{color:#000!important;text-decoration:none!important}
}

/* v1.5 identity refinement */
.archive-page,.standard-page{padding-top:34px;padding-bottom:70px}
.archive-header{padding:12px 0 35px;border-bottom:1px solid var(--line);margin-bottom:30px}
.archive-header h1{font-size:clamp(32px,4vw,52px);line-height:1.18;letter-spacing:-1px;margin:6px 0 12px}
.archive-description{max-width:720px;color:var(--muted);font-size:14px;line-height:1.9}
.archive-grid{margin-top:0}
.pagination{padding-top:36px;text-align:center}
.pagination .nav-links{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px}
.pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}
.standard-page .page-header{padding-bottom:28px;border-bottom:1px solid var(--line);margin-bottom:34px}
.standard-page .page-header h1{font-size:clamp(34px,4vw,54px);margin:0;line-height:1.2}
.error-page{padding:100px 0 130px}
.error-inner{max-width:700px}
.error-code{font-size:clamp(80px,14vw,170px);line-height:.85;font-weight:900;letter-spacing:-7px;color:var(--blue);margin-bottom:25px}
.error-inner h1{font-size:38px;margin:8px 0 12px}
.error-inner p{color:var(--muted);line-height:1.9}
.error-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.error-actions .search-form{display:flex;gap:7px}
.error-actions .search-field{height:43px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:#fff;min-width:220px}
.error-actions .search-submit{height:43px;border:0;border-radius:8px;background:#111318;color:#fff;padding:0 16px;font:inherit;font-weight:700}
.toc-list{list-style:none;padding:0;margin:10px 0 0}
.toc-list li{margin:0;border-top:1px solid var(--line)}
.toc-list a{display:block;padding:9px 0;font-size:11px;line-height:1.6;color:#343943}
.toc-list a:hover{color:var(--blue)}
.toc-list .toc-sub{padding-right:13px}
.toc-empty{font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 0}
.article-sidebar{min-width:0}
.article-content blockquote{margin:28px 0;padding:18px 22px;border-right:3px solid var(--blue);background:var(--soft);color:#30343d}
.article-content ul,.article-content ol{padding-right:25px;margin:0 0 22px}
.article-content li{margin-bottom:8px}
.article-content table{width:100%;border-collapse:collapse;margin:25px 0;background:#fff}
.article-content th,.article-content td{border:1px solid var(--line);padding:10px 12px;text-align:right}
.article-content th{background:#f6f7fb;font-weight:800}
.article-content hr{border:0;border-top:1px solid var(--line);margin:38px 0}
body.menu-open{overflow:hidden}
@media(max-width:720px){
  .archive-page,.standard-page{padding-top:24px;padding-bottom:55px}
  .archive-header{padding-bottom:24px;margin-bottom:24px}
  .archive-header h1{font-size:32px}
  .error-page{padding:70px 0 90px}
  .error-inner h1{font-size:30px}
  .error-actions{display:block}
  .error-actions .button,.error-actions .search-form{width:100%;box-sizing:border-box}
  .error-actions .search-form{margin-top:9px}
  .error-actions .search-field{min-width:0;flex:1;width:100%;box-sizing:border-box}
  .article-content{font-size:16px;line-height:2}
}

/* v1.6 final polish */
.skip-link{position:fixed;right:18px;top:12px;z-index:9999;background:#111318;color:#fff;padding:9px 13px;border-radius:7px;transform:translateY(-180%);transition:transform .15s ease;font-size:12px}
.skip-link:focus{transform:translateY(0)}
.site-main{min-height:55vh}
.post-category{display:inline-block;font-size:11px;font-weight:800;color:var(--blue);text-decoration:none}
.post-category:hover{text-decoration:underline;text-underline-offset:3px}
.card-media img,.large-card .card-media img,.post-card .card-media img{display:block;transition:transform .35s ease}
.card-media:hover img,.large-card .card-media:hover img,.post-card .card-media:hover img{transform:scale(1.025)}
.article-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:11px}
.comment-list{padding:0;margin:20px 0;list-style:none}
.comment-list .comment{border-top:1px solid var(--line);padding:18px 0}
.comment-list .children{list-style:none;padding-right:35px}
.comment-author{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:800}
.comment-author img{border-radius:50%}
.comment-metadata{font-size:10px;color:var(--muted);margin-top:4px}
.comment-content{font-size:13px;line-height:1.9;color:#333740;margin-top:10px}
.comment-reply-link{font-size:11px;color:var(--blue)}
.comment-notes{font-size:11px;color:var(--muted)}
.comment-form{margin-top:22px}
.comment-form p{margin:0 0 13px}
.comment-form label{display:block;font-size:11px;font-weight:700;margin-bottom:6px}
.comment-form .required{color:var(--blue)}
.comment-form .submit{background:var(--blue);color:#fff;border:0;border-radius:8px;padding:11px 18px;font:inherit;font-weight:700;cursor:pointer}
.comments-pagination{margin-top:20px}
.comments-pagination .nav-links{display:flex;gap:7px;flex-wrap:wrap}
.comments-pagination a,.comments-pagination span{border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-size:11px;background:#fff}
@media(max-width:720px){
  .skip-link{right:10px;top:8px}
  .card-media:hover img,.large-card .card-media:hover img,.post-card .card-media:hover img{transform:none}
}

/* v1.7 brand and editorial polish */
:root{
  --blue:#202cc7;
  --blue-dark:#171fa1;
  --ink:#111318;
  --muted:#6d7482;
  --paper:#fbfbfa;
  --white:#fff;
  --line:#e4e6eb;
  --soft:#f4f5ff;
}
::selection{background:rgba(32,44,199,.14);color:var(--ink)}
.container{max-width:1220px}
.site-header{z-index:100}
.brand-link{min-width:150px}
.hero-copy .text-link,.section-head .text-link{font-weight:800}
.text-link{display:inline-flex;align-items:center;gap:7px}
.text-link span{font-size:14px}
.hero-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.article-author{font-size:12px;margin:0 0 10px;color:var(--muted)}
.article-author a{color:var(--ink);font-weight:800}
.article-header{max-width:980px}
.article-header h1{max-width:930px}
.article-featured{background:#f0f1f4;overflow:hidden;border-radius:10px}
.article-featured img{display:block}
.search-form{display:flex;gap:7px;align-items:stretch}
.search-label{flex:1}
.search-field{width:100%;box-sizing:border-box}
.search-submit{white-space:nowrap}
.footer-brand img,.footer-brand svg{max-height:38px;width:auto}
.site-footer a{transition:color .15s ease}
.site-footer a:hover{color:#fff}
@media(max-width:980px){
  .container{max-width:100%}
}
@media(max-width:720px){
  .brand-link{min-width:0}
  .article-author{margin-bottom:8px}
  .search-form{display:flex}
}

/* v1.8 Arabic typography system
   Primary: IBM Plex Sans Arabic
   Fallbacks: Noto Sans Arabic, Cairo, Tahoma, Arial
*/
:root{
  --font-ar:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif;
  --font-display:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif;
}
html,body,
button,input,textarea,select,optgroup,
.site-header,.site-footer,.site-main,
.primary-menu,.category-strip,.article-content,
.post-card,.large-card,.newsletter,.comments-wrap{
  font-family:var(--font-ar);
}
body{
  font-feature-settings:"kern" 1,"liga" 1;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-.025em;
}
.hero-copy h1,.article-header h1,.archive-header h1,.standard-page .page-header h1{
  font-weight:700;
  letter-spacing:-.035em;
}
.article-content h2,.article-content h3{
  font-weight:700;
  letter-spacing:-.02em;
}
.primary-menu a,.post-category,.eyebrow,.footer-title,.button,
.newsletter-form button,.search-submit{
  font-family:var(--font-ar);
}
.article-content{
  font-weight:400;
  font-size:17px;
  line-height:2.08;
}
.article-content strong{font-weight:700}
@media(max-width:720px){
  .article-content{font-size:16px;line-height:2}
}

/* Arabic editorial type tuning */
.site-header{font-size:13px}
.main-nav a{font-weight:600}
.hero-copy h1{line-height:1.22}
.hero-excerpt{line-height:2}
.section-head h2{font-weight:700}
.large-card h3{line-height:1.45;font-weight:700}
.post-card h3{line-height:1.6;font-weight:700}
.article-header h1{line-height:1.28}
.article-excerpt{line-height:2}
.sidebar-title{font-weight:700}
.footer-title{font-weight:700}

/* v1.9 Readex Pro */
body{font-family:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif}
h1,h2,h3,h4,h5,h6{font-family:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif}

/* v2.0 — Almaal editorial system */
:root{
  --brand:#202CC7;
  --brand-dark:#17209C;
  --ink:#111318;
  --muted:#626875;
  --paper:#FBFBFA;
  --white:#FFFFFF;
  --line:#E4E6EB;
  --soft:#F4F5FF;
  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:22px;
  --shadow-soft:0 12px 35px rgba(17,19,24,.06);
}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  overflow-x:hidden;
}
a{color:inherit}
a:hover{color:var(--brand)}
::selection{background:rgba(32,44,199,.14);color:var(--ink)}
img{max-width:100%;height:auto}
button,input,textarea,select{font-family:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif}

.site-header{
  position:relative;
  z-index:50;
  background:rgba(251,251,250,.96);
  border-bottom:1px solid var(--line);
}
.site-header .header-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:24px;
}
.site-branding{display:flex;align-items:center;flex:0 0 auto}
.site-branding img{max-height:46px;width:auto}
.site-branding .site-title{font-size:20px;font-weight:700;letter-spacing:-.03em}

.main-nav{margin-inline:auto}
.main-nav ul{display:flex;align-items:center;gap:26px;margin:0;padding:0;list-style:none}
.main-nav a{
  display:block;
  padding:10px 0;
  color:#292C35;
  font-size:13px;
  transition:color .2s ease;
}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--brand)}

.header-actions{display:flex;align-items:center;gap:8px}
.header-icon{
  width:42px;height:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--white);
  color:var(--ink);
  cursor:pointer;
  transition:.2s ease;
}
.header-icon:hover{border-color:rgba(32,44,199,.35);color:var(--brand);transform:translateY(-1px)}

.hero{
  padding:70px 0 42px;
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:54px;
  align-items:center;
}
.hero-copy{max-width:650px}
.hero-copy .eyebrow,
.eyebrow{
  color:var(--brand);
  font-size:12px;
  font-weight:600;
  letter-spacing:0;
  margin-bottom:16px;
}
.hero-copy h1{
  max-width:680px;
  margin:0;
  font-size:clamp(34px,4.4vw,62px);
  line-height:1.25;
  letter-spacing:-.045em;
}
.hero-excerpt{
  max-width:590px;
  margin:22px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:2;
}
.hero-media{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-lg);
  background:#eef0f8;
  box-shadow:var(--shadow-soft);
}
.hero-media img{
  display:block;
  width:100%;
  aspect-ratio:1.12/1;
  object-fit:cover;
}
.hero-media:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(17,19,24,.12));
}

.category-strip{
  padding:8px 0 44px;
}
.category-strip-inner{
  display:flex;
  gap:10px;
  overflow:auto;
  scrollbar-width:none;
  padding-bottom:4px;
}
.category-strip-inner::-webkit-scrollbar{display:none}
.category-strip a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 17px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--white);
  font-size:12px;
  color:#3F424B;
  transition:.2s ease;
}
.category-strip a:hover{
  color:var(--brand);
  border-color:rgba(32,44,199,.28);
  background:var(--soft);
}

.section{padding:54px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:24px;
}
.section-head h2{
  margin:0;
  font-size:25px;
  letter-spacing:-.035em;
}
.section-head a{
  color:var(--brand);
  font-size:12px;
  font-weight:600;
}

.feature-grid{
  display:grid;
  grid-template-columns:minmax(0,1.38fr) minmax(300px,.62fr);
  gap:24px;
}
.large-card,.post-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.large-card:hover,.post-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
  border-color:#D9DCE5;
}
.large-card .card-image{display:block}
.large-card .card-image img{
  display:block;
  width:100%;
  aspect-ratio:16/8.8;
  object-fit:cover;
}
.large-card .card-body{padding:26px}
.post-card .card-image img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.post-card .card-body{padding:20px}
.post-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 14px;
  color:#737783;
  font-size:11px;
}
.post-category{color:var(--brand);font-weight:600}
.large-card h3{
  margin:12px 0 10px;
  font-size:25px;
}
.post-card h3{
  margin:10px 0 7px;
  font-size:17px;
}
.card-excerpt{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.95;
}
.side-list{
  display:grid;
  gap:0;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  overflow:hidden;
}
.side-list .side-item{
  padding:20px;
  border-bottom:1px solid var(--line);
}
.side-list .side-item:last-child{border-bottom:0}
.side-item h3{
  margin:7px 0 0;
  font-size:16px;
  line-height:1.6;
}
.side-item .post-meta{font-size:10px}

.posts-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.newsletter{
  margin:54px 0 20px;
  padding:44px;
  background:var(--brand);
  color:#fff;
  border-radius:var(--radius-lg);
  position:relative;
  overflow:hidden;
}
.newsletter:before{
  content:"";
  position:absolute;
  width:300px;height:300px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  left:-130px;bottom:-170px;
}
.newsletter-inner{position:relative;z-index:1;max-width:720px}
.newsletter h2{margin:0 0 10px;font-size:26px}
.newsletter p{margin:0;color:rgba(255,255,255,.82);line-height:1.9;font-size:13px}
.newsletter-form{display:flex;gap:10px;margin-top:22px}
.newsletter-form input{
  flex:1;min-width:0;
  height:48px;padding:0 16px;
  border:0;border-radius:10px;
  background:#fff;color:var(--ink);
}
.newsletter-form button{
  min-width:130px;border:0;border-radius:10px;
  background:#fff;color:var(--brand);
  font-weight:700;cursor:pointer;
}

.archive-header,.standard-page .page-header{
  padding:54px 0 26px;
}
.archive-header h1,.standard-page .page-header h1{
  margin:0;
  font-size:38px;
  letter-spacing:-.04em;
}
.archive-header p,.standard-page .page-header p{
  max-width:680px;
  color:var(--muted);
  line-height:2;
  margin:12px 0 0;
}
.archive-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:34px;
}
.archive-posts{display:grid;gap:18px}
.archive-post{
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:20px;
  padding:16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.archive-post img{
  width:100%;height:150px;object-fit:cover;border-radius:10px;
}
.archive-post h2{margin:8px 0;font-size:20px;line-height:1.55}
.archive-post p{margin:0;color:var(--muted);font-size:13px;line-height:1.9}

.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:54px;
  align-items:start;
}
.article-header{
  max-width:880px;
  padding:52px 0 22px;
}
.article-header .post-category{font-size:12px}
.article-header h1{
  margin:12px 0 18px;
  font-size:clamp(32px,4.2vw,56px);
}
.article-excerpt{
  color:var(--muted);
  font-size:17px;
  line-height:2;
  max-width:800px;
}
.article-meta{
  display:flex;flex-wrap:wrap;gap:10px 18px;
  color:#747884;font-size:11px;
  margin-top:20px;
}
.article-author{font-size:11px;color:#626875}
.article-author a{color:var(--ink);font-weight:600}
.article-cover{
  margin:18px 0 30px;
  overflow:hidden;border-radius:var(--radius-lg);
}
.article-cover img{
  display:block;width:100%;max-height:620px;object-fit:cover;
}
.article-content{
  max-width:820px;
  font-size:17px;
  line-height:2.1;
}
.article-content p{margin:0 0 1.25em}
.article-content h2{
  margin:2em 0 .7em;
  font-size:28px;
  line-height:1.45;
}
.article-content h3{
  margin:1.7em 0 .6em;
  font-size:22px;
  line-height:1.5;
}
.article-content ul,.article-content ol{padding-inline-start:1.4em}
.article-content blockquote{
  margin:1.8em 0;
  padding:20px 24px;
  border-inline-start:3px solid var(--brand);
  background:var(--soft);
  color:#30333B;
  border-radius:0 12px 12px 0;
}
.article-sidebar{
  position:sticky;
  top:28px;
  padding-top:100px;
}
.sidebar-box{
  padding:20px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
}
.sidebar-title{margin:0 0 14px;font-size:14px}
.sidebar-box ul{margin:0;padding:0;list-style:none}
.sidebar-box li{padding:9px 0;border-bottom:1px solid #EEF0F3;font-size:12px;line-height:1.7}
.sidebar-box li:last-child{border-bottom:0}

.pagination{display:flex;gap:8px;justify-content:center;padding:36px 0}
.pagination a,.pagination span{
  min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:12px;
}
.pagination .current{background:var(--brand);border-color:var(--brand);color:#fff}

.site-footer{
  margin-top:70px;
  padding:48px 0 28px;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:40px;
}
.footer-title{font-size:14px;margin:0 0 14px}
.site-footer p,.site-footer li,.site-footer a{font-size:12px;line-height:1.9;color:#656974}
.site-footer ul{list-style:none;margin:0;padding:0}
.footer-bottom{
  margin-top:35px;padding-top:18px;border-top:1px solid var(--line);
  font-size:11px;color:#81858E;
  display:flex;justify-content:space-between;gap:15px;
}

.search-panel{
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 30px rgba(17,19,24,.05);
}
.search-form{display:flex;gap:10px;padding:18px 0}
.search-form label{flex:1}
.search-form input{
  width:100%;height:48px;padding:0 16px;
  border:1px solid var(--line);border-radius:10px;background:var(--paper);
  outline:none;
}
.search-form input:focus{border-color:rgba(32,44,199,.45);box-shadow:0 0 0 3px rgba(32,44,199,.08)}
.search-submit{
  min-width:90px;border:0;border-radius:10px;background:var(--brand);color:#fff;font-weight:600;
}

.mobile-toggle{display:none}

@media(max-width:1000px){
  .hero{padding-top:48px}
  .hero-grid{gap:32px}
  .feature-grid{grid-template-columns:1fr}
  .archive-grid{grid-template-columns:1fr}
  .article-layout{grid-template-columns:1fr}
  .article-sidebar{position:static;padding-top:0}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .site-header .header-inner{min-height:68px}
  .main-nav{display:none}
  .mobile-toggle{display:inline-flex}
  .header-actions{margin-inline-start:auto}
  .hero{padding:38px 0 26px}
  .hero-grid{grid-template-columns:1fr;gap:26px}
  .hero-copy h1{font-size:34px}
  .hero-media img{aspect-ratio:16/10}
  .section{padding:38px 0}
  .posts-grid{grid-template-columns:1fr}
  .large-card h3{font-size:21px}
  .newsletter{padding:30px 22px}
  .newsletter-form{flex-direction:column}
  .newsletter-form button{width:100%}
  .archive-post{grid-template-columns:110px minmax(0,1fr);gap:14px;padding:12px}
  .archive-post img{height:92px}
  .archive-post h2{font-size:16px;margin:3px 0}
  .archive-post p{display:none}
  .article-header{padding-top:35px}
  .article-header h1{font-size:31px}
  .article-excerpt{font-size:15px}
  .article-content{font-size:16px}
  .article-content h2{font-size:24px}
  .article-content h3{font-size:20px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
}

/* v2.1 — production hardening */
html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
body{margin:0;min-width:320px}
.container{width:min(1220px,calc(100% - 40px));margin-inline:auto}
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;
}
.screen-reader-text:focus{
  clip:auto!important;clip-path:none;height:auto;width:auto;margin:5px;
  padding:12px 16px;background:#fff;color:#111318;z-index:100000;
  border:1px solid #E4E6EB;border-radius:8px;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid rgba(32,44,199,.22);
  outline-offset:3px;
}
.skip-link{
  position:absolute;
  inset-inline-start:16px;
  top:10px;
  z-index:100000;
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
@media(max-width:760px){
  .container{width:min(100% - 28px,1220px)}
}

/* v2.3 — refined homepage grid */
.hero--editorial{
  padding-bottom:54px;
}
.latest-section{
  padding-top:34px;
}
.latest-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
}
.latest-card{
  grid-column:span 4;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  min-width:0;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.latest-card:hover,
.category-card:hover,
.popular-feature:hover,
.topic-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
  border-color:#D8DBE4;
}
.latest-card--1{
  grid-column:span 6;
}
.latest-card--2,
.latest-card--3{
  grid-column:span 3;
}
.latest-card-image{
  display:block;
  overflow:hidden;
}
.latest-card-image img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  transition:transform .35s ease;
}
.latest-card--1 .latest-card-image img{
  aspect-ratio:16/9;
}
.latest-card:hover img{
  transform:scale(1.025);
}
.latest-card-body{
  padding:18px;
}
.latest-card h3{
  margin:8px 0 6px;
  font-size:16px;
  line-height:1.65;
}
.latest-card--1 h3{
  font-size:21px;
  line-height:1.55;
}
.latest-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}
.category-section{
  background:#F6F7FA;
}
.category-section:nth-of-type(even){
  background:#FBFBFA;
}
.category-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
}
.category-card{
  grid-column:span 3;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  min-width:0;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.category-card--1{
  grid-column:span 6;
  grid-row:span 2;
}
.category-card--1 .category-card-image img{
  aspect-ratio:16/10;
}
.category-card-image{
  display:block;
  overflow:hidden;
}
.category-card-image img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.category-card-body{
  padding:17px;
}
.category-card h3{
  margin:7px 0 0;
  font-size:15px;
  line-height:1.7;
}
.category-card--1 h3{
  font-size:21px;
  line-height:1.55;
}
.category-card p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}
.popular-section{
  background:#fff;
}
.popular-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr);
  gap:18px;
}
.popular-feature{
  height:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.popular-feature-image{
  display:block;
}
.popular-feature-image img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
.popular-feature-body{
  padding:24px;
}
.popular-feature h3{
  margin:9px 0;
  font-size:25px;
  line-height:1.5;
}
.popular-feature p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.95;
}
.popular-list{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#FBFBFC;
}
.popular-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:13px;
  padding:17px 19px;
  border-bottom:1px solid var(--line);
}
.popular-item:last-child{
  border-bottom:0;
}
.popular-number{
  color:var(--brand);
  font-size:13px;
  font-weight:700;
  padding-top:2px;
}
.popular-item h3{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.75;
}
.topics-section{
  padding-bottom:76px;
}
.topics-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.topic-card{
  min-height:122px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;
}
.topic-card strong{
  font-size:14px;
  line-height:1.7;
}
.topic-count{
  color:#878B94;
  font-size:10px;
}
.topic-arrow{
  color:var(--brand);
  font-size:13px;
}

/* Keep section rhythm consistent across the homepage. */
.home-latest + .category-section,
.latest-section + .category-section{
  padding-top:58px;
}
.category-section + .category-section{
  padding-top:58px;
}
.category-section + .popular-section,
.popular-section + .topics-section{
  padding-top:64px;
}

@media(max-width:1000px){
  .latest-card,
  .latest-card--1,
  .latest-card--2,
  .latest-card--3{
    grid-column:span 6;
  }
  .category-card,
  .category-card--1{
    grid-column:span 6;
    grid-row:auto;
  }
  .category-card--1 .category-card-image img{
    aspect-ratio:16/10;
  }
  .popular-grid{
    grid-template-columns:1fr;
  }
  .topics-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .latest-grid,
  .category-grid{
    grid-template-columns:1fr;
  }
  .latest-card,
  .latest-card--1,
  .latest-card--2,
  .latest-card--3,
  .category-card,
  .category-card--1{
    grid-column:auto;
  }
  .latest-card--1 h3,
  .category-card--1 h3,
  .popular-feature h3{
    font-size:20px;
  }
  .popular-feature-body{
    padding:19px;
  }
  .topics-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:420px){
  .topics-grid{
    grid-template-columns:1fr;
  }
}

/* v2.4 — structural polish */
.site-main{min-height:40vh}
.article-page,.archive-page,.standard-page,.error-page{padding-top:8px}
.hero-media img{display:block}
.article-featured{
  margin:18px 0 30px;
  overflow:hidden;
  border-radius:var(--radius-lg);
}
.article-featured img{
  display:block;
  width:100%;
  height:auto;
}
.article-meta-separator{color:#B0B4BD}
.article-author{
  margin-top:17px;
  color:#6B707B;
  font-size:11px;
}
.article-author .author-label{margin-inline-end:4px}
.article-author a:hover{text-decoration:underline;text-underline-offset:3px}
.related-section{margin-top:52px}
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.post-card{
  min-width:0;
}
.post-card-thumb{
  display:block;
  overflow:hidden;
}
.post-card-thumb img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.post-card-body{padding:18px}
.card-category{
  color:var(--brand);
  font-size:11px;
  font-weight:600;
}
.post-card-body h3{
  margin:8px 0;
  font-size:16px;
  line-height:1.7;
}
.post-card-body .meta,
.post-mini .meta{
  color:#858A94;
  font-size:10px;
}
.archive-page .archive-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
}
.archive-description{
  color:var(--muted);
  line-height:1.9;
  font-size:13px;
  margin-top:10px;
}
.pagination .nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}
.pagination .page-numbers{
  min-width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  font-size:11px;
}
.pagination .page-numbers.current{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.empty-state{
  padding:54px 20px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.empty-state h1,.empty-state h2{
  margin:0 0 10px;
  font-size:25px;
}
.empty-state p{color:var(--muted);font-size:13px;line-height:1.9}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:10px;
  background:var(--brand);
  color:#fff!important;
  font-size:12px;
  font-weight:700;
}
.button:hover{background:var(--brand-dark)}
.error-page{padding-bottom:80px}
.error-inner{
  max-width:720px;
  margin:70px auto;
  padding:55px 30px;
  text-align:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
}
.error-code{
  color:var(--brand);
  font-size:clamp(70px,12vw,130px);
  line-height:.9;
  font-weight:700;
  letter-spacing:-.07em;
}
.error-inner h1{margin:20px 0 10px;font-size:30px}
.error-inner p{margin:0 auto 24px;max-width:520px;color:var(--muted);line-height:1.9}
.error-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.error-actions .search-form{margin:0}
.comments-wrap{
  margin-top:50px;
  padding-top:30px;
  border-top:1px solid var(--line);
}
.comments-title{font-size:21px;margin:0 0 22px}
.comment-list{padding:0;margin:0 0 28px;list-style:none}
.comment-list .comment{
  padding:18px 0;
  border-bottom:1px solid var(--line);
}
.comment-list .comment-body{font-size:13px;line-height:1.9}
.comment-list .comment-meta{font-size:10px;color:#7C818B}
.comment-form-comment label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}
.comment-form-comment textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px;
  resize:vertical;
  background:#fff;
}
.submit{
  border:0;
  min-height:42px;
  padding:0 18px;
  border-radius:9px;
  background:var(--brand);
  color:#fff;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}
@media(max-width:1000px){
  .archive-page .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .archive-page .archive-grid,
  .card-grid{grid-template-columns:1fr}
  .error-inner{margin:40px auto;padding:40px 20px}
}

/* v2.5 — identity refinement */
:root{
  --brand:#202CC7;
  --brand-deep:#1820A1;
  --ink:#111318;
  --muted:#626875;
  --paper:#FBFBFA;
  --surface:#FFFFFF;
  --line:#E5E7EC;
  --line-strong:#D9DCE4;
  --soft:#F3F4FF;
}
body{
  font-family:"Readex Pro","Noto Sans Arabic","Cairo",Tahoma,Arial,sans-serif;
  background:var(--paper);
}
.brand-link{
  display:inline-flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
}
.brand-link .site-logo{
  display:block;
  width:auto;
  max-width:145px;
  max-height:45px;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  gap:1px;
  padding-inline-start:11px;
  border-inline-start:1px solid var(--line);
}
.brand-copy strong{
  font-size:11px;
  color:var(--ink);
  line-height:1.5;
}
.brand-copy small{
  color:#858A94;
  font-size:8px;
  line-height:1.5;
}
.site-header{
  backdrop-filter:saturate(140%) blur(10px);
}
.site-header .header-inner{
  min-height:78px;
}
.search-trigger{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--ink);
  cursor:pointer;
  transition:.2s ease;
}
.search-trigger svg{width:18px;height:18px;display:block}
.search-trigger:hover{
  border-color:rgba(32,44,199,.35);
  color:var(--brand);
}
.mobile-toggle{
  width:40px;
  height:40px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}
.mobile-toggle span{
  width:17px;
  height:1.5px;
  display:block;
  background:currentColor;
  border-radius:2px;
  transition:.2s ease;
}
.menu-open .mobile-toggle span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.menu-open .mobile-toggle span:nth-child(2){opacity:0}
.menu-open .mobile-toggle span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

.hero--editorial{
  padding-top:76px;
  padding-bottom:62px;
}
.hero--editorial .hero-copy{
  padding-inline-end:15px;
}
.hero--editorial .hero-copy:before{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-bottom:22px;
  background:var(--brand);
  border-radius:4px;
}
.hero--editorial .hero-media{
  border-radius:20px;
  box-shadow:0 18px 50px rgba(17,19,24,.08);
}
.hero--editorial .hero-media:after{
  background:linear-gradient(180deg,rgba(17,19,24,0) 52%,rgba(17,19,24,.14));
}
.hero--editorial h1 a{
  text-decoration:none;
}
.hero--editorial h1 a:hover{
  color:var(--ink);
}
.category-strip{
  border-top:1px solid rgba(228,230,235,.7);
  border-bottom:1px solid rgba(228,230,235,.7);
  padding:12px 0;
  background:#fff;
}
.category-strip-inner{
  padding-bottom:0;
}
.section{
  position:relative;
}
.section-head{
  align-items:center;
}
.section-head > div:first-child{
  position:relative;
  padding-inline-start:15px;
}
.section-head > div:first-child:before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:4px;
  bottom:4px;
  width:3px;
  border-radius:3px;
  background:var(--brand);
}
.section-head .eyebrow{
  margin-bottom:4px;
}
.section-head h2{
  font-size:24px;
}
.latest-card,
.category-card,
.popular-feature,
.popular-list,
.topic-card,
.post-card{
  box-shadow:0 1px 0 rgba(17,19,24,.01);
}
.latest-card--1,
.category-card--1{
  position:relative;
}
.latest-card--1 .latest-card-body,
.category-card--1 .category-card-body{
  padding:21px;
}
.latest-card--1 h3,
.category-card--1 h3{
  letter-spacing:-.03em;
}
.category-section{
  background:#F5F6FA;
}
.category-section--2,
.category-section--4{
  background:#FBFBFA;
}
.category-section--1,
.category-section--3{
  background:#F5F6FA;
}
.popular-section{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.popular-feature{
  background:#fff;
}
.popular-feature-body{
  padding:25px 26px 27px;
}
.popular-feature h3{
  letter-spacing:-.03em;
}
.topics-section{
  background:#FBFBFA;
}
.topic-card{
  position:relative;
}
.topic-card:after{
  content:"";
  position:absolute;
  inset-inline-start:0;
  bottom:0;
  width:0;
  height:2px;
  background:var(--brand);
  transition:width .2s ease;
}
.topic-card:hover:after{width:100%}

.article-header--editorial{
  max-width:900px;
  padding-top:60px;
}
.article-header--editorial:before{
  content:"";
  display:block;
  width:44px;
  height:3px;
  margin-bottom:20px;
  background:var(--brand);
  border-radius:4px;
}
.article-header--editorial h1{
  max-width:850px;
  letter-spacing:-.045em;
}
.article-reading-label{
  color:var(--brand);
  font-weight:600;
}
.article-content{
  color:#252831;
}
.article-content a{
  color:var(--brand);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.article-content img{
  border-radius:12px;
}
.article-content figure{
  margin:1.8em 0;
}
.article-content figcaption{
  margin-top:8px;
  color:#7A7F89;
  font-size:11px;
  line-height:1.7;
  text-align:center;
}
.article-content table{
  width:100%;
  border-collapse:collapse;
  margin:1.7em 0;
  font-size:13px;
}
.article-content th,
.article-content td{
  padding:10px 12px;
  border:1px solid var(--line);
  text-align:right;
}
.article-content th{
  background:var(--soft);
  font-weight:700;
}
.toc-box{
  max-height:70vh;
  overflow:auto;
}
.toc-list{
  margin:0;
  padding:0;
  list-style:none;
}
.toc-list li{
  border-bottom:1px solid #EFF0F3;
}
.toc-list a{
  display:block;
  padding:8px 0;
  color:#555A65;
  font-size:11px;
  line-height:1.7;
}
.toc-list a:hover{color:var(--brand)}
.toc-list .toc-sub a{
  padding-inline-start:13px;
  color:#7B808A;
}
.toc-empty{
  margin:0;
  color:#858A94;
  font-size:11px;
  line-height:1.8;
}
.site-footer{
  background:#fff;
}
.footer-brand .site-logo{
  max-width:150px;
  max-height:48px;
  display:block;
  margin-bottom:14px;
}
.footer-note{
  max-width:270px;
}
@media(max-width:760px){
  .brand-copy{display:none}
  .brand-link .site-logo{max-width:125px;max-height:40px}
  .hero--editorial{
    padding-top:42px;
    padding-bottom:38px;
  }
  .hero--editorial .hero-copy:before{
    margin-bottom:17px;
  }
  .section-head h2{font-size:21px}
  .article-header--editorial{padding-top:40px}
  .article-header--editorial:before{margin-bottom:16px}
}


/* v2.6 — final interaction hardening */
.mobile-toggle{display:none}
.search-trigger svg{width:18px;height:18px;display:block}
@media(max-width:760px){
  .mobile-toggle{display:inline-flex}
}


/* v2.7 — production structure, typography and responsive polish */
.site-header{
  position:sticky;
  top:0;
}
.site-header .header-inner{
  width:min(1220px,calc(100% - 40px));
  margin-inline:auto;
}
.brand{
  flex:0 0 auto;
  min-width:0;
}
.brand-link .site-logo{
  flex:0 0 auto;
}
.main-nav{
  min-width:0;
}
.main-nav .primary-menu{
  flex-wrap:nowrap;
}
.header-actions{
  flex:0 0 auto;
}
.search-panel[hidden]{display:none!important}
.search-panel{
  position:absolute;
  inset-inline:0;
  top:100%;
}
.hero--editorial .hero-media{
  min-height:0;
  aspect-ratio:16/10;
}
.hero--editorial .hero-media img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
}
.latest-card,
.category-card,
.popular-feature,
.topic-card{
  min-width:0;
}
.latest-card-image img,
.category-card-image img,
.popular-feature-image img{
  width:100%;
  object-fit:cover;
}
.article-featured img{
  display:block;
  width:100%;
  height:auto;
}
.footer-links .menu-item{
  margin:0;
}

@media(max-width:1000px){
  .site-header .header-inner{width:min(100% - 32px,1220px)}
  .main-nav .primary-menu{gap:15px}
  .main-nav a{font-size:12px}
  .brand-copy{display:none}
}

@media(max-width:760px){
  .site-header .header-inner{
    min-height:68px;
    width:calc(100% - 28px);
  }
  .brand-link .site-logo{
    max-width:125px;
    max-height:40px;
  }
  .header-actions{gap:6px}
  .mobile-toggle{display:inline-flex!important}
  .main-nav{
    top:68px;
    max-height:calc(100vh - 68px);
    overflow:auto;
    box-shadow:0 14px 30px rgba(17,19,24,.06);
  }
  .main-nav.is-open{display:block}
  .main-nav .primary-menu{display:grid;gap:0}
  .main-nav a{padding:12px 10px;font-size:13px;border-bottom:1px solid var(--line)}
  .hero--editorial .hero-grid{display:grid;grid-template-columns:1fr;gap:24px}
  .hero--editorial .hero-media{order:-1;aspect-ratio:16/10;border-radius:14px}
  .hero--editorial .hero-copy{padding-inline:0}
  .hero--editorial h1{font-size:clamp(29px,8vw,38px)}
  .category-strip-inner{padding-bottom:2px}
  .category-strip a{min-height:38px;padding-inline:14px;font-size:11px}
  .section{padding:44px 0}
  .section-head{align-items:flex-end;gap:12px}
  .section-head h2{font-size:21px}
  .latest-grid,
  .category-grid,
  .popular-grid,
  .topics-grid{min-width:0}
  .article-layout{display:block}
  .article-sidebar{margin-top:30px}
  .toc-box{max-height:none}
}

@media(max-width:420px){
  .site-header .header-inner{width:calc(100% - 22px)}
  .brand-link .site-logo{max-width:112px}
  .search-trigger,.mobile-toggle{width:36px;height:36px}
  .hero--editorial{padding-top:30px}
  .hero--editorial .hero-media{border-radius:12px}
}

@media(prefers-reduced-motion:reduce){
  .topic-card:after{transition:none}
  .search-trigger{transition:none}
}


/* v2.9 — approved Almaal logo integration and final header hardening */
.brand-link{
  gap:12px;
  align-items:center;
}
.brand-link .site-logo{
  display:block;
  width:auto;
  max-width:150px;
  height:auto;
  max-height:54px;
  object-fit:contain;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.4;
  white-space:nowrap;
}
.brand-copy small{
  color:#7b8190;
  font-size:10px;
  font-weight:500;
}
.footer-brand .site-logo{
  display:block;
  width:auto;
  max-width:150px;
  max-height:54px;
  height:auto;
  filter:none;
}
/* Desktop: hamburger is never shown. */
.mobile-toggle{display:none!important}

@media(max-width:1000px){
  .brand-copy{display:none}
  .brand-link .site-logo{max-width:142px;max-height:50px}
}

@media(max-width:760px){
  .mobile-toggle{display:inline-flex!important}
  .brand-link .site-logo{max-width:132px;max-height:48px}
}

@media(max-width:420px){
  .brand-link .site-logo{max-width:118px;max-height:44px}
}


/* v3.0 — final production hardening */
.site-header{
  background:rgba(251,251,250,.97);
  border-bottom-color:rgba(17,19,24,.09);
  -webkit-backdrop-filter:saturate(140%) blur(12px);
  backdrop-filter:saturate(140%) blur(12px);
}
.site-header .header-inner{min-height:80px}
.brand-link .site-logo{width:auto;height:auto;max-width:150px;max-height:54px;object-fit:contain}
.brand-copy{border-inline-start:0;padding-inline-start:0}
.search-trigger:focus-visible,.mobile-toggle:focus-visible,.main-nav a:focus-visible,.brand-link:focus-visible,.hero-read-link:focus-visible,.category-strip a:focus-visible,.topic-card:focus-visible,.post-card a:focus-visible{outline:3px solid rgba(32,44,199,.22);outline-offset:3px}
.hero--editorial{border-bottom:1px solid rgba(17,19,24,.06)}
.latest-card,.category-card,.popular-feature{min-height:0}
.latest-card-image,.category-card-image,.popular-feature-image{display:block;overflow:hidden;background:#eef0f8}
.latest-card-image img,.category-card-image img,.popular-feature-image img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.latest-card--1 .latest-card-image img{aspect-ratio:16/8.6}
[data-almaal-image-card][hidden],[data-almaal-image-guard][hidden]{display:none!important}
.post-card-thumb,.post-mini>a,.article-featured{background:#eef0f8}
.post-card-thumb img,.post-mini>a img{display:block}
@media(max-width:760px){
  .site-header .header-inner{min-height:68px}
  .latest-card-image img,.category-card-image img,.popular-feature-image img{aspect-ratio:16/10}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* v3.1 — premium Almaal footer */
.site-footer{
  position:relative;
  margin-top:76px;
  padding:58px 0 24px;
  background:#11162a;
  color:#fff;
  border-top:0;
  overflow:hidden;
}
.site-footer:before{
  content:"";
  position:absolute;
  top:0;
  inset-inline:0;
  height:3px;
  background:linear-gradient(90deg,transparent 0%,var(--blue) 22%,#3342e5 50%,var(--blue) 78%,transparent 100%);
}
.site-footer:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  top:-250px;
  inset-inline-start:-170px;
  border-radius:50%;
  background:rgba(32,44,199,.12);
  pointer-events:none;
}
.site-footer .container{position:relative;z-index:1}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(250px,1.45fr) repeat(3,minmax(0,1fr));
  gap:42px;
  align-items:start;
}
.footer-brand{min-width:0}
.footer-brand-link{
  display:inline-flex;
  align-items:center;
  min-height:54px;
  margin-bottom:13px;
}
.footer-brand .site-logo{
  display:block;
  width:auto;
  max-width:165px;
  max-height:58px;
  height:auto;
  filter:none;
}
.footer-description,.footer-note{
  max-width:330px;
  margin:0;
  color:#aeb5c7!important;
  font-size:12px!important;
  line-height:2!important;
}
.footer-title{
  position:relative;
  display:inline-block;
  margin:3px 0 16px;
  padding-bottom:7px;
  color:#fff!important;
  font-size:13px!important;
  font-weight:700;
  line-height:1.5;
}
.footer-title:after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:24px;
  height:2px;
  border-radius:2px;
  background:var(--blue);
}
.footer-links{
  display:grid;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.footer-links li{margin:0!important;padding:0!important;border:0!important}
.footer-links a{
  display:inline-block;
  color:#b8bfce!important;
  font-size:12px!important;
  line-height:1.9!important;
  transition:color .18s ease,transform .18s ease;
}
.footer-links a:hover,.footer-links a:focus-visible{
  color:#fff!important;
  transform:translateX(-3px);
}
.footer-about{min-width:0}
.footer-home-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:15px;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700;
}
.footer-home-link span{
  color:#8f9aff;
  transition:transform .18s ease;
}
.footer-home-link:hover span,.footer-home-link:focus-visible span{transform:translateX(-3px)}
.footer-bottom{
  margin-top:44px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.10)!important;
  color:#7f8799!important;
  font-size:10px!important;
  line-height:1.8;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
@media(max-width:1000px){
  .footer-grid{grid-template-columns:1.35fr 1fr 1fr;gap:30px}
  .footer-about{grid-column:1 / -1;max-width:560px}
}
@media(max-width:760px){
  .site-footer{margin-top:55px;padding:46px 0 22px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:34px 24px}
  .footer-brand{grid-column:1 / -1}
  .footer-about{grid-column:1 / -1;max-width:none}
  .footer-bottom{margin-top:34px;align-items:flex-start;flex-direction:column;gap:5px}
}
@media(max-width:420px){
  .footer-grid{grid-template-columns:1fr;gap:26px}
  .footer-brand,.footer-about{grid-column:auto}
  .footer-brand .site-logo{max-width:150px}
}
@media(prefers-reduced-motion:reduce){
  .footer-links a,.footer-home-link span{transition:none}
}

/* v3.2 — Financial Magazine art direction */
.magazine-home{background:#fff}
.magazine-topline{background:#11162a;color:#dce2ff;border-top:3px solid var(--blue);font-size:11px}
.magazine-topline-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.magazine-topline a{color:#fff;font-weight:700}
.magazine-nav{border-bottom:1px solid var(--line);background:#fff}
.magazine-nav-inner{display:flex;align-items:center;gap:26px;overflow:auto;white-space:nowrap;scrollbar-width:none;min-height:48px}
.magazine-nav-inner::-webkit-scrollbar{display:none}
.magazine-nav a{font-size:12px;font-weight:650;color:#3f4654;padding:14px 0;position:relative}
.magazine-nav a:first-child{color:var(--blue)}
.magazine-nav a:hover{color:var(--blue)}
.magazine-cover{padding:34px 0 42px;background:linear-gradient(180deg,#fff 0%,#f7f8fc 100%)}
.magazine-section-kicker{display:flex;align-items:center;gap:12px;margin-bottom:18px;color:var(--blue);font-size:12px;font-weight:800}
.magazine-section-kicker i{height:1px;background:var(--blue);width:58px;display:block;opacity:.5}
.magazine-cover-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.8fr);gap:22px;align-items:stretch}
.cover-main{display:grid;grid-template-columns:1.12fr .88fr;min-height:470px;background:#11162a;color:#fff;overflow:hidden;border-radius:2px;box-shadow:0 18px 45px rgba(16,21,34,.10)}
.cover-main-image{min-height:470px;overflow:hidden;background:#e9ebf2}
.cover-main-image img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.cover-main:hover .cover-main-image img{transform:scale(1.025)}
.cover-main-copy{padding:42px 38px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;position:relative}
.cover-main-copy:before{content:"";position:absolute;inset-inline-start:0;top:42px;width:4px;height:74px;background:var(--blue)}
.cover-label{font-size:11px;color:#9da9ff;font-weight:800;margin-bottom:12px}
.cover-main h1{font-size:clamp(30px,3.1vw,49px);line-height:1.18;letter-spacing:-1.2px;margin:0 0 16px;font-weight:780}
.cover-main h1 a:hover{color:#fff}
.cover-main-copy p{font-size:14px;line-height:2;color:#bdc4d2;margin:0 0 24px;max-width:470px}
.cover-meta{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:auto;color:#8e97aa;font-size:10px}
.cover-meta a{color:#fff;font-weight:750}
.cover-side{display:grid;grid-template-rows:repeat(4,1fr);border-top:1px solid var(--line)}
.cover-side-item{display:grid;grid-template-columns:96px 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.cover-side-thumb{display:block;aspect-ratio:1/1;overflow:hidden;background:#f0f1f5}
.cover-side-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cover-side-item:hover .cover-side-thumb img{transform:scale(1.04)}
.cover-side-copy{display:grid;grid-template-columns:25px 1fr;gap:10px;min-width:0}
.cover-side-index{font-size:10px;color:var(--blue);font-weight:800;padding-top:2px}
.cover-side-copy .post-meta{font-size:9px;color:#8a91a0}
.cover-side-copy h2{font-size:14px;line-height:1.65;margin:4px 0 0;font-weight:700}
.cover-side-copy h2 a:hover{color:var(--blue)}
.magazine-latest{padding:62px 0 20px}
.magazine-section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;border-bottom:1px solid var(--ink);padding-bottom:14px;margin-bottom:22px}
.magazine-section-heading > div > span{display:block;font-size:10px;color:var(--blue);font-weight:800;margin-bottom:4px}
.magazine-section-heading h2{font-size:25px;line-height:1.35;margin:0;letter-spacing:-.6px}
.magazine-section-heading > a{font-size:11px;color:#666d7a;font-weight:700;white-space:nowrap}
.magazine-section-heading > a:hover{color:var(--blue)}
.latest-mag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px 18px}
.latest-mag-card{min-width:0}
.latest-mag-image{display:block;aspect-ratio:16/10;overflow:hidden;background:#f0f1f5;margin-bottom:12px}
.latest-mag-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.latest-mag-card:hover .latest-mag-image img{transform:scale(1.025)}
.latest-mag-copy .post-category,.channel-copy .post-category{font-size:10px;color:var(--blue);font-weight:750}
.latest-mag-copy h3{font-size:18px;line-height:1.5;margin:5px 0 6px;letter-spacing:-.35px}
.latest-mag-copy h3 a:hover{color:var(--blue)}
.latest-mag-copy p{font-size:12px;color:#737b8c;line-height:1.9;margin:0 0 7px}
.mag-date{font-size:9px;color:#949aa7}
.magazine-channel{padding:42px 0 20px}
.channel-grid{display:grid;grid-template-columns:1.55fr repeat(3,1fr);gap:18px;align-items:start}
.channel-card{min-width:0}
.channel-card--1{grid-row:span 2;border-bottom:0}
.channel-card--1 .channel-image{aspect-ratio:16/10}
.channel-card:not(.channel-card--1) .channel-image{aspect-ratio:4/3}
.channel-image{display:block;overflow:hidden;background:#f0f1f5;margin-bottom:11px}
.channel-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.channel-card:hover .channel-image img{transform:scale(1.025)}
.channel-copy h3{font-size:16px;line-height:1.55;margin:5px 0 5px;letter-spacing:-.25px}
.channel-card--1 .channel-copy h3{font-size:24px;line-height:1.4}
.channel-copy h3 a:hover{color:var(--blue)}
.channel-copy p{font-size:12px;line-height:1.9;color:#727a89;margin:0 0 6px}
.magazine-discover{padding:64px 0 78px}
.magazine-discover-inner{background:#11162a;color:#fff;padding:38px 40px;display:grid;grid-template-columns:.8fr 1.2fr;gap:38px;align-items:center;position:relative;overflow:hidden}
.magazine-discover-inner:after{content:"";position:absolute;width:230px;height:230px;border:1px solid rgba(116,129,255,.22);border-radius:50%;inset-inline-end:-80px;bottom:-110px}
.magazine-discover-inner > div:first-child{position:relative;z-index:1}
.magazine-discover-inner > div:first-child > span{font-size:10px;color:#a9b2ff;font-weight:800}
.magazine-discover-inner h2{font-size:27px;line-height:1.4;margin:8px 0 8px}
.magazine-discover-inner p{font-size:12px;line-height:1.9;color:#bac1ce;margin:0;max-width:440px}
.discover-links{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:rgba(255,255,255,.1);position:relative;z-index:1}
.discover-links a{background:#11162a;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.discover-links strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.discover-links span{font-size:9px;color:#8992a4;white-space:nowrap}
.discover-links a:hover strong{color:#aab3ff}

/* Keep the mobile control truly mobile. */
.mobile-toggle{display:none!important}
@media(max-width:760px){
  .mobile-toggle{display:inline-flex!important}
  .magazine-topline-inner{min-height:32px;font-size:9px}
  .magazine-topline-inner span:nth-child(2){display:none}
  .magazine-nav-inner{gap:20px}
  .magazine-nav a{font-size:10px}
  .magazine-cover{padding:24px 0 30px}
  .magazine-cover-grid{grid-template-columns:1fr;gap:24px}
  .cover-main{grid-template-columns:1fr;min-height:0}
  .cover-main-image{min-height:280px;aspect-ratio:16/10}
  .cover-main-copy{padding:27px 24px 30px}
  .cover-main-copy:before{top:27px}
  .cover-main h1{font-size:32px}
  .cover-main-copy p{font-size:12px}
  .cover-side{grid-template-rows:none}
  .cover-side-item{grid-template-columns:82px 1fr}
  .cover-side-copy h2{font-size:13px}
  .magazine-latest{padding-top:42px}
  .magazine-section-heading{align-items:flex-start;flex-direction:column;gap:8px}
  .magazine-section-heading h2{font-size:21px}
  .latest-mag-grid{grid-template-columns:1fr 1fr;gap:22px 14px}
  .latest-mag-copy h3{font-size:15px}
  .latest-mag-copy p{font-size:11px}
  .channel-grid{grid-template-columns:1fr 1fr}
  .channel-card--1{grid-column:1 / -1}
  .channel-card--1 .channel-copy h3{font-size:20px}
  .magazine-discover-inner{grid-template-columns:1fr;padding:30px 24px;gap:25px}
}
@media(max-width:460px){
  .magazine-topline-inner span:first-child{font-size:9px}
  .cover-main h1{font-size:28px}
  .cover-side-item{grid-template-columns:74px 1fr;gap:11px}
  .cover-side-copy{grid-template-columns:20px 1fr;gap:7px}
  .cover-side-copy h2{font-size:12px}
  .latest-mag-grid,.channel-grid{grid-template-columns:1fr}
  .channel-card--1{grid-column:auto}
  .channel-card--1 .channel-copy h3{font-size:19px}
  .magazine-discover{padding-bottom:50px}
  .discover-links{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .cover-main-image img,.cover-side-thumb img,.latest-mag-image img,.channel-image img{transition:none}
}

/* v3.3 — Dynamic Minimal art direction */
.dynamic-minimal-home{background:#fbfbfd;color:var(--ink)}
.dynamic-minimal-home .magazine-nav{background:rgba(255,255,255,.96);border-bottom:1px solid #e7e9f0;position:relative;z-index:5}
.dynamic-minimal-home .magazine-nav-inner{min-height:54px;gap:24px}
.dynamic-minimal-home .magazine-nav-brand{font-size:11px;font-weight:850;color:var(--blue);white-space:nowrap;margin-inline-end:6px}
.dynamic-minimal-home .magazine-nav a{font-size:11px;color:#525867;padding:18px 0;font-weight:700}
.dynamic-minimal-home .magazine-nav a:hover{color:var(--blue)}
.dynamic-minimal-home .magazine-nav-all{margin-inline-start:auto;color:var(--ink)!important}
.dynamic-hero{padding:48px 0 26px;background:#fbfbfd}
.dynamic-hero-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:42px;align-items:center;min-height:520px}
.dynamic-hero-copy{order:1;padding:10px 0 12px;max-width:610px}
.dynamic-hero-image{order:2;display:block;aspect-ratio:1.16/1;min-height:430px;overflow:hidden;border-radius:18px;background:#eef0f6;box-shadow:0 24px 60px rgba(17,19,24,.08)}
.dynamic-hero-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.dynamic-hero-image:hover img{transform:scale(1.025)}
.dynamic-kicker{display:flex;align-items:center;gap:12px;color:var(--blue);font-size:11px;font-weight:850;margin-bottom:17px}
.dynamic-kicker i{display:block;width:46px;height:1px;background:var(--blue);opacity:.45}
.dynamic-hero-copy h1{font-size:clamp(38px,4.8vw,68px);line-height:1.08;letter-spacing:-2.2px;margin:0 0 22px;max-width:690px;font-weight:820}
.dynamic-hero-copy h1 a:hover{color:var(--blue)}
.dynamic-hero-copy p{font-size:15px;line-height:2;color:#707787;max-width:560px;margin:0 0 28px}
.dynamic-hero-meta{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:10px;color:#9399a6}
.dynamic-hero-meta a{color:var(--ink);font-weight:850}
.dynamic-hero-meta a:hover{color:var(--blue)}
.dynamic-hero-meta a span{display:inline-block;margin-inline-start:7px;color:var(--blue);transition:transform .2s ease}
.dynamic-hero-meta a:hover span{transform:translateX(-3px)}
.dynamic-topic-row{display:grid;grid-template-columns:1.2fr repeat(4,1fr);border-top:1px solid #e2e5ec;border-bottom:1px solid #e2e5ec;margin-top:34px;background:#fff}
.dynamic-topic-row a{padding:17px 18px;min-width:0;border-inline-start:1px solid #e2e5ec;display:flex;align-items:center;justify-content:space-between;gap:10px}
.dynamic-topic-row a:first-child{border-inline-start:0;background:#f4f6ff}
.dynamic-topic-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dynamic-topic-row span{font-size:9px;color:#9299a7;white-space:nowrap}
.dynamic-topic-row a:hover strong{color:var(--blue)}
.dynamic-latest{padding:58px 0 24px}
.dynamic-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.dynamic-section-head > div > span{display:block;color:var(--blue);font-size:10px;font-weight:850;margin-bottom:5px}
.dynamic-section-head h2{font-size:26px;line-height:1.3;letter-spacing:-.7px;margin:0}
.dynamic-section-head > a{font-size:10px;color:#737a88;font-weight:800;white-space:nowrap}
.dynamic-section-head > a:hover{color:var(--blue)}
.dynamic-latest-grid{display:grid;grid-template-columns:1.45fr repeat(4,1fr);gap:20px;align-items:start}
.dynamic-latest-card{min-width:0}
.dynamic-latest-card--1{grid-row:span 2}
.dynamic-card-image{display:block;aspect-ratio:4/3;overflow:hidden;background:#eef0f5;margin-bottom:12px;border-radius:12px}
.dynamic-latest-card--1 .dynamic-card-image{aspect-ratio:1.18/1;border-radius:16px}
.dynamic-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.dynamic-latest-card:hover .dynamic-card-image img,.dynamic-channel-card:hover .dynamic-card-image img{transform:scale(1.025)}
.dynamic-card-copy .post-category{font-size:9px;color:var(--blue);font-weight:850}
.dynamic-card-copy h3{font-size:15px;line-height:1.55;letter-spacing:-.2px;margin:5px 0 5px}
.dynamic-latest-card--1 .dynamic-card-copy h3,.dynamic-channel-card--1 .dynamic-card-copy h3{font-size:23px;line-height:1.35;letter-spacing:-.5px}
.dynamic-card-copy h3 a:hover{color:var(--blue)}
.dynamic-card-copy p{font-size:11px;line-height:1.9;color:#747c8b;margin:0 0 7px}
.dynamic-channel{padding:42px 0 20px}
.dynamic-channel-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:22px 18px;align-items:start}
.dynamic-channel-card{min-width:0}
.dynamic-channel-card--1{grid-row:span 2}
.dynamic-channel-card--1 .dynamic-card-image{aspect-ratio:1.18/1;border-radius:16px}
.dynamic-channel-card:not(.dynamic-channel-card--1) .dynamic-card-image{aspect-ratio:4/3;border-radius:11px}
.dynamic-discover{padding:66px 0 82px}
.dynamic-discover-grid{display:grid;grid-template-columns:.92fr 1.08fr;background:#11162a;color:#fff;overflow:hidden;border-radius:18px;position:relative;box-shadow:0 22px 55px rgba(17,22,42,.12)}
.dynamic-discover-grid:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(122,137,255,.18);border-radius:50%;inset-inline-end:-170px;bottom:-220px;pointer-events:none}
.dynamic-discover-copy{padding:48px 44px;position:relative;z-index:1}
.dynamic-discover-copy > span{font-size:10px;color:#aab4ff;font-weight:850}
.dynamic-discover-copy h2{font-size:31px;line-height:1.35;letter-spacing:-.7px;margin:8px 0 10px}
.dynamic-discover-copy p{font-size:12px;line-height:1.95;color:#b9c0ce;margin:0 0 22px;max-width:440px}
.dynamic-primary-link{display:inline-flex;align-items:center;gap:9px;color:#fff;font-size:11px;font-weight:850}
.dynamic-primary-link span{color:#9ea9ff}
.dynamic-primary-link:hover{color:#b5bdff}
.dynamic-discover-list{display:grid;grid-template-columns:repeat(2,1fr);align-content:center;padding:1px;background:rgba(255,255,255,.1);position:relative;z-index:1}
.dynamic-discover-list a{min-height:82px;background:#11162a;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.05)}
.dynamic-discover-list strong{font-size:12px}
.dynamic-discover-list span{font-size:9px;color:#7f889a;white-space:nowrap}
.dynamic-discover-list a:hover strong{color:#aeb8ff}
.dynamic-minimal-home .site-footer{margin-top:0}
@media(max-width:1050px){
  .dynamic-hero-grid{gap:28px;grid-template-columns:.9fr 1.1fr}
  .dynamic-hero-copy h1{font-size:clamp(36px,4.6vw,56px)}
  .dynamic-latest-grid{grid-template-columns:1.35fr repeat(3,1fr)}
  .dynamic-latest-card--5,.dynamic-latest-card--6{display:none}
}
@media(max-width:820px){
  .dynamic-minimal-home .magazine-nav-inner{gap:18px}
  .dynamic-hero{padding-top:32px}
  .dynamic-hero-grid{grid-template-columns:1fr;min-height:0;gap:25px}
  .dynamic-hero-image{order:1;min-height:0;aspect-ratio:16/10;border-radius:15px}
  .dynamic-hero-copy{order:2}
  .dynamic-hero-copy h1{font-size:clamp(36px,7vw,54px)}
  .dynamic-topic-row{grid-template-columns:repeat(3,1fr)}
  .dynamic-topic-row a{padding:14px 12px}
  .dynamic-topic-row a:nth-child(4),.dynamic-topic-row a:nth-child(5){display:none}
  .dynamic-latest-grid{grid-template-columns:1fr 1fr}
  .dynamic-latest-card--1{grid-column:1/-1;grid-row:auto}
  .dynamic-latest-card--1 .dynamic-card-image{aspect-ratio:16/9}
  .dynamic-channel-grid{grid-template-columns:1fr 1fr}
  .dynamic-channel-card--1{grid-column:1/-1;grid-row:auto}
  .dynamic-channel-card--1 .dynamic-card-image{aspect-ratio:16/9}
  .dynamic-discover-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .dynamic-minimal-home .magazine-nav-inner{min-height:48px;gap:16px}
  .dynamic-minimal-home .magazine-nav a{padding:15px 0;font-size:10px}
  .dynamic-minimal-home .magazine-nav-brand{font-size:10px}
  .dynamic-hero-copy h1{font-size:33px;letter-spacing:-1.1px}
  .dynamic-hero-copy p{font-size:13px}
  .dynamic-topic-row{grid-template-columns:1fr 1fr}
  .dynamic-topic-row a{border-bottom:1px solid #e2e5ec}
  .dynamic-topic-row a:nth-child(3){border-inline-start:0}
  .dynamic-latest-grid,.dynamic-channel-grid{grid-template-columns:1fr}
  .dynamic-latest-card--1,.dynamic-channel-card--1{grid-column:auto}
  .dynamic-latest-card--1 .dynamic-card-image,.dynamic-channel-card--1 .dynamic-card-image{aspect-ratio:16/10}
  .dynamic-latest-card--1 .dynamic-card-copy h3,.dynamic-channel-card--1 .dynamic-card-copy h3{font-size:20px}
  .dynamic-section-head{align-items:flex-start;flex-direction:column;gap:7px}
  .dynamic-section-head h2{font-size:22px}
  .dynamic-discover-copy{padding:34px 25px}
  .dynamic-discover-copy h2{font-size:25px}
  .dynamic-discover-list{grid-template-columns:1fr}
  .dynamic-discover-list a{min-height:66px}
}
@media(prefers-reduced-motion:reduce){
  .dynamic-hero-image img,.dynamic-card-image img,.dynamic-hero-meta a span{transition:none}
}
