/*
Theme Name: Bayan Nova
Theme URI: https://bayanelm.com/
Author: Bayan Al Elm
Description: قالب عربي حديث ومتجاوب للأخبار والمقالات التعليمية؛ متوافق مع Rank Math ومهيأ لإعلانات AdSense.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bayan-nova
*/
:root{--ink:#10233b;--muted:#63758a;--blue:#1958db;--navy:#0b2241;--teal:#13a69a;--bg:#f5f8fc;--line:#e5ebf3;--white:#fff;--radius:20px;--shadow:0 12px 35px rgba(20,43,83,.065)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,'Segoe UI',Arial,sans-serif;line-height:1.85;font-size:16px}img,video,iframe{max-width:100%;height:auto}iframe{border:0}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}button,input{font:inherit}button{cursor:pointer}.wrap{width:min(1220px,calc(100% - 40px));margin-inline:auto}.skip{position:absolute;top:-80px;right:20px;z-index:999;background:#fff;padding:10px}.skip:focus{top:0}.topstrip{background:#091d35;color:#c9d8e9;font-size:12px}.topstrip .wrap{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-block:7px}.topstrip span{color:#62ddce}.main-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:50}.head-inner{min-height:92px;display:flex;align-items:center;gap:25px;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-mark{background:linear-gradient(145deg,#1b64e9,#0b315e);color:#fff;font-size:29px;font-weight:900;border-radius:15px;width:54px;height:54px;display:grid;place-items:center}.brand strong{display:block;font-size:25px;letter-spacing:-1px;line-height:1.25}.brand small{display:block;color:var(--muted);font-size:12px}.brand .custom-logo{max-width:170px;max-height:65px;width:auto;height:auto}.nav{display:flex;gap:23px;align-items:center}.nav ul{padding:0;margin:0;list-style:none;display:flex;gap:22px;align-items:center}.nav a{font-size:14px;font-weight:700}.nav .current-menu-item>a{color:var(--blue)}.head-actions{display:flex;align-items:center;gap:10px}.searchform{display:flex;align-items:center;background:#f3f6fb;border:1px solid var(--line);border-radius:12px;overflow:hidden;max-width:250px}.searchform input{background:none;border:0;outline:0;padding:10px 13px;width:175px;min-width:0}.searchform button{border:0;background:var(--blue);color:white;padding:10px 13px}.menu-toggle{display:none;border:1px solid var(--line);background:#fff;padding:10px;border-radius:10px}.ticker{background:#ecf4ff;border-bottom:1px solid #dceafd}.ticker .wrap{display:flex;align-items:center;gap:16px;padding-block:10px}.ticker b{background:var(--blue);color:#fff;border-radius:9px;padding:3px 14px;white-space:nowrap;font-size:12px}.ticker p{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.main-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:27px;align-items:start}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:34px 0 17px}.section-head h1,.section-head h2{font-size:25px;line-height:1.4;margin:0;letter-spacing:-.5px}.section-head p{color:var(--muted);margin:4px 0 0;font-size:13px}.section-head a{color:var(--blue);font-size:13px;font-weight:700}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:26px}.hero-main{height:405px}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:18px}.hero-card{position:relative;display:block;overflow:hidden;border-radius:var(--radius);background:#d9e8f8;isolation:isolate;min-height:0}.hero-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.hero-card:hover img{transform:scale(1.04)}.hero-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,18,39,.89),rgba(5,18,39,.03) 82%)}.hero-content{position:absolute;bottom:0;right:0;left:0;padding:23px;color:#fff;z-index:1}.hero-content h2{font-size:25px;line-height:1.55;margin:10px 0}.hero-side h2{font-size:17px}.pill{display:inline-block;background:#e8f1ff;color:#1958db;border-radius:8px;padding:2px 10px;font-weight:700;font-size:11px}.hero .pill{background:#fff;color:#1452c3}.meta{display:flex;flex-wrap:wrap;gap:11px;color:#94a4bb;font-size:12px}.hero .meta{color:#e3e9f2}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.post-card,.panel,.article,.side-widget,.empty-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.post-card .thumb{display:block;aspect-ratio:16/10;overflow:hidden;background:#e2edf9}.post-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}.post-card:hover img{transform:scale(1.04)}.card-body{padding:17px}.card-body h3{font-size:16px;line-height:1.65;margin:8px 0;font-weight:800;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-body p{color:var(--muted);font-size:13px;line-height:1.8;margin:8px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sidebar{padding-top:34px}.side-widget{padding:20px;margin-bottom:19px}.side-widget h3{font-size:18px;margin:0 0 14px}.side-widget ul{padding:0;list-style:none;margin:0}.side-widget li{border-top:1px solid var(--line);padding:10px 0;font-size:14px}.side-widget li:first-child{border-top:0}.side-widget .searchform{max-width:none}.side-widget .searchform input{width:100%}.category-chips{display:flex;flex-wrap:wrap;gap:9px}.category-chips a{border:1px solid #dbe6f7;background:#f2f7ff;color:#2252a1;border-radius:11px;padding:5px 10px;font-size:13px}.ad-unit{width:100%;min-width:0;overflow:hidden;text-align:center;clear:both;margin:20px auto}.ad-label{display:block;color:#99a4b5;font-size:10px;letter-spacing:1px;margin-bottom:5px}.ad-unit ins{display:block;width:100%}.article-layout{margin-top:28px}.article{padding:clamp(20px,4vw,43px);overflow:visible;min-width:0}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:16px}.breadcrumbs a{color:var(--blue)}.article h1{font-size:clamp(26px,3.6vw,38px);line-height:1.5;letter-spacing:-.65px;margin:13px 0}.article .post-meta{display:flex;gap:17px;flex-wrap:wrap;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:26px}.entry-content{font-size:18px;line-height:2.05;overflow-wrap:anywhere}.entry-content h2,.entry-content h3,.entry-content h4{line-height:1.5;margin:1.8em 0 .75em;scroll-margin-top:25px}.entry-content h2{font-size:27px;border-right:4px solid var(--blue);padding-right:12px}.entry-content h3{font-size:22px}.entry-content p{margin:0 0 1.25em}.entry-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.entry-content img{max-width:100%;height:auto;border-radius:12px}.entry-content figure{max-width:100%;margin-inline:0}.entry-content figcaption{text-align:center;color:var(--muted);font-size:13px}.entry-content table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:20px 0;border:1px solid var(--line);font-size:15px;-webkit-overflow-scrolling:touch}.entry-content th,.entry-content td{border:1px solid var(--line);padding:11px 15px;min-width:100px;white-space:normal}.entry-content th{background:#ecf4ff}.entry-content blockquote{border-right:4px solid var(--teal);padding:8px 20px;background:#f1fbf9;border-radius:12px;margin-inline:0}.entry-content pre,.entry-content .wp-block-code{overflow-x:auto;max-width:100%;direction:ltr;text-align:left;background:#13243b;color:#fff;padding:18px;border-radius:12px}.entry-content .wp-block-embed,.entry-content .wp-block-video{max-width:100%;overflow:hidden}.entry-content .wp-block-embed iframe{width:100%;aspect-ratio:16/9;height:auto}.entry-content .wp-block-image img{height:auto}.entry-content .alignwide{max-width:100%}.entry-content .wp-block-buttons{flex-wrap:wrap}.entry-content ul,.entry-content ol{padding-right:24px}.article-tax{border-top:1px solid var(--line);margin-top:25px;padding-top:17px}.pagination{margin:28px 0;display:flex;gap:8px;flex-wrap:wrap}.pagination .page-numbers{padding:6px 14px;border:1px solid var(--line);border-radius:9px;background:#fff}.pagination .current{background:var(--blue);color:#fff}.footer{margin-top:48px;background:#0b223d;color:#d5e3f1}.footer-main{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px;padding:48px 0}.footer h3{color:white;margin:0 0 15px}.footer p{color:#b7c7d9;font-size:14px}.footer ul{list-style:none;padding:0;margin:0}.footer li{margin:8px 0;font-size:14px}.footer-bottom{border-top:1px solid #28415b;padding:16px 0;text-align:center;color:#a5bbd1;font-size:12px}.footer a:hover{color:#6ae3d4}.sr-only,.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}.featured-visual{aspect-ratio:16/9;object-fit:cover;width:100%;border-radius:15px;margin-bottom:25px}.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.related-grid .post-card h3{font-size:14px}.no-image{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#0c345c,#2374bc);color:white;font-weight:900;font-size:36px}.hero-card>.no-image{height:100%}.page-title{margin-top:0}.site-main{min-width:0}.wp-caption{max-width:100%}.wp-caption-text,.gallery-caption{color:var(--muted)}.aligncenter{display:block;margin-inline:auto}.alignleft{float:left;margin:0 15px 12px 0}.alignright{float:right;margin:0 0 12px 15px}.sticky{outline:0}.bypostauthor{font-weight:inherit}#wpadminbar{z-index:99999}@media(max-width:1050px){.nav{gap:10px}.nav ul{gap:13px}.nav a{font-size:12px}.main-layout{grid-template-columns:minmax(0,1fr) 260px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:820px){.wrap{width:min(100% - 28px,680px)}.head-inner{min-height:72px;flex-wrap:wrap;gap:10px}.brand strong{font-size:21px}.brand-mark{width:44px;height:44px;font-size:23px}.menu-toggle{display:block}.nav{display:none;order:3;width:100%;padding:8px 0 18px}.nav.open{display:block}.nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0}.nav li{border-bottom:1px solid var(--line)}.nav li a{display:block;padding:11px 3px;font-size:15px}.head-actions .searchform{display:none}.main-layout{grid-template-columns:1fr;gap:0}.sidebar{padding-top:18px}.hero{grid-template-columns:1fr;gap:12px}.hero-main{height:335px}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:none;gap:12px}.hero-side .hero-card{height:200px}.hero-side .hero-content{padding:15px}.hero-side h2{font-size:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.footer-main{grid-template-columns:1fr 1fr}.article{padding:22px}.entry-content{font-size:17px}}@media(max-width:520px){.topstrip .wrap{font-size:10px}.topstrip .wrap div:last-child{display:none}.hero-main{height:325px}.hero-content h2{font-size:22px}.hero-side .hero-card{height:175px}.hero-side h2{font-size:13px;line-height:1.5}.hero-side .meta{display:none}.hero-content{padding:17px}.cards{grid-template-columns:1fr;gap:14px}.post-card{display:grid;grid-template-columns:125px minmax(0,1fr);min-height:125px;border-radius:14px}.post-card .thumb{aspect-ratio:auto;height:100%}.post-card .card-body{padding:11px}.card-body h3{font-size:14px;margin:5px 0;line-height:1.55;-webkit-line-clamp:3}.card-body p{display:none}.card-body .meta{font-size:11px}.section-head h1,.section-head h2{font-size:22px}.section-head{margin:25px 0 13px}.article h1{font-size:27px}.article{padding:18px;border-radius:15px}.entry-content{font-size:17px;line-height:1.95}.entry-content h2{font-size:22px}.entry-content h3{font-size:19px}.related-grid{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr;gap:16px;padding:30px 0}.ticker p{font-size:12px}.ticker b{padding:3px 8px}.meta{gap:6px}.side-widget{padding:17px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}} 

/* Bayan Nova 1.1 editorial refinement */
:root{--blue:#0f54c3;--navy:#092c5b;--bg:#f4f7fc;--shadow:0 6px 22px rgba(20,48,89,.07)}
.main-header{box-shadow:0 2px 15px rgba(15,45,85,.035)}
.head-inner{gap:22px}
.brand-mark{position:relative;overflow:hidden;width:55px;height:55px;border-radius:16px;background:linear-gradient(135deg,#278aff 0%,#0b4caa 50%,#09244d 100%);box-shadow:0 8px 18px rgba(12,79,172,.18);font-family:Tahoma,Arial,sans-serif;line-height:1;letter-spacing:0}
.brand-mark span{position:relative;z-index:2;transform:translateY(-2px);font-size:34px}
.brand-mark i{position:absolute;width:90%;height:3px;right:-15%;top:13%;background:rgba(255,255,255,.25);transform:rotate(-35deg)}
.brand strong{font-size:24px;letter-spacing:-.45px;color:#082e5d;font-weight:900}
.brand small{font-size:12px;letter-spacing:0;color:#6a7e94}
.nav a{transition:color .18s ease}
.hero{height:430px;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);gap:16px;align-items:stretch}
.hero-main{height:100%;min-height:0}
.hero-side{height:100%;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
.hero-card{height:100%;min-width:0;min-height:0;box-shadow:0 3px 12px rgba(15,42,87,.08)}
.hero-card>img,.hero-card>.no-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-card:after{background:linear-gradient(0deg,rgba(3,20,45,.93) 0%,rgba(3,20,45,.53) 26%,rgba(3,20,45,.03) 76%)}
.hero-content{padding:21px 24px}
.hero-content h2{font-size:clamp(20px,2.1vw,28px);line-height:1.42;margin:9px 0 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.hero-side h2{font-size:clamp(15px,1.3vw,18px);line-height:1.45;-webkit-line-clamp:2}
.hero-side .hero-content{padding:17px 19px}
.hero-side .pill{font-size:10px}
.side-widget{padding:18px;border-radius:18px}
.side-widget h3{display:flex;align-items:center;gap:9px;color:#0b2b55;font-size:18px;line-height:1.45;margin-bottom:15px}
.widget-dot{width:31px;height:31px;border-radius:9px;display:inline-grid;place-items:center;flex:none;background:#e8f1ff;color:#0a54b1;font-size:19px}
.bayan-mini-list{display:flex;flex-direction:column}
.bayan-mini-item{display:flex;align-items:center;gap:11px;min-width:0;padding:11px 0;border-top:1px solid #e7edf6;transition:background .2s}
.bayan-mini-item:first-child{border-top:0;padding-top:0}
.bayan-mini-item:last-child{padding-bottom:0}
.bayan-mini-thumb{flex:0 0 83px;width:83px;height:67px;display:block;border-radius:10px;overflow:hidden;background:#e7eff9}
.bayan-mini-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.bayan-mini-placeholder{height:100%;width:100%;display:grid;place-items:center;background:linear-gradient(135deg,#1b69c8,#092950);font-size:30px;color:white;font-weight:900}
.bayan-mini-copy{flex:1;display:flex;min-width:0;flex-direction:column;gap:6px}
.bayan-mini-copy strong{font-size:13px;font-weight:800;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#102e51}
.bayan-mini-item:hover .bayan-mini-copy strong{color:var(--blue)}
.bayan-mini-copy small{color:#77899d;font-size:11px}
.bayan-mini-rank{background:#1055af;border-radius:8px;color:#fff;font-weight:800;font-size:12px;display:grid;place-items:center;flex:0 0 23px;height:25px}
.is-popular .bayan-mini-thumb{flex-basis:66px;width:66px;height:58px}
.widget-footnote{font-size:11px;color:#718299;margin:14px 0 0}
.category-chips a{font-size:12px;border-radius:9px;padding:6px 11px;transition:.18s}
.category-chips a:hover{background:#1557bb;color:white;border-color:#1557bb}
@media(max-width:1050px){.hero{height:395px}.hero-content h2{font-size:21px}.hero-side h2{font-size:15px}}
@media(max-width:820px){.hero{height:auto;grid-template-columns:1fr;gap:12px}.hero-main{height:350px}.hero-side{height:auto;grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero-side .hero-card{height:208px}.hero-content h2{font-size:22px}.hero-side h2{font-size:15px}.brand strong{font-size:21px}.brand-mark{width:46px;height:46px;border-radius:13px}.brand-mark span{font-size:29px}}
@media(max-width:520px){.hero{margin-top:15px}.hero-main{height:310px}.hero-side{grid-template-columns:1fr;grid-template-rows:repeat(2,175px)}.hero-side .hero-card{height:175px}.hero-content h2{font-size:20px;line-height:1.43}.hero-side h2{font-size:16px}.hero-side .hero-content{padding:13px 15px}.hero .pill{padding:1px 8px}.bayan-mini-thumb{flex-basis:100px;width:100px;height:74px}.bayan-mini-copy strong{font-size:14px}.is-popular .bayan-mini-thumb{flex-basis:82px;width:82px;height:65px}.side-widget{padding:17px}.brand strong{font-size:19px}}

/* Bayan Nova 1.2 — fluid desktop viewport */
@media (min-width: 821px) {
  /* Replace the original 1220px centered cap with a near edge-to-edge layout. */
  .wrap {
    width: calc(100% - 48px);
    max-width: none;
    margin-inline: auto;
  }
  .main-layout {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 360px);
    gap: clamp(20px, 1.8vw, 32px);
  }
  .hero {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero, .cards, .main-layout, .site-main { min-width: 0; }
}
@media (min-width: 1440px) {
  .wrap { width: calc(100% - 64px); }
  .hero { height: clamp(430px, 31vw, 580px); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 2100px) {
  .wrap { width: calc(100% - 80px); }
  .hero { height: clamp(550px, 28vw, 720px); }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Images, embeds and ad units may never expand the viewport. */
.hero-card, .post-card, .article, .side-widget, .ad-unit,
.entry-content, .entry-content figure { max-width: 100%; min-width: 0; }
.entry-content img, .entry-content video, .entry-content iframe,
.entry-content table, .entry-content .wp-block-table { max-width: 100%; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 28px); max-width: 680px; }
}


/* Bayan Nova 1.3 — mobile overflow repair. Desktop full width unchanged. */
html { max-width:100%; }
body { width:100%; max-width:100%; overflow-x:clip; }
.wrap, .head-inner, .main-layout, .site-main, .sidebar, .article,
.entry-content, .footer-main, .hero, .hero-side, .cards, .section-head,
.post-card, .card-body, .side-widget, .brand, .head-actions, .ticker .wrap {
  min-width:0;
  max-width:100%;
}
/* Long URLs, code snippets, article headings and post titles must wrap. */
.article h1, .entry-content, .entry-content p, .entry-content h2,
.entry-content h3, .entry-content h4, .card-body, .card-body h3,
.side-widget, .bayan-mini-copy, .bayan-mini-copy strong, .section-head,
.hero-content h2 { overflow-wrap:anywhere; word-break:normal; }
.entry-content > *, .entry-content .wp-block-group,
.entry-content .wp-block-columns, .entry-content .wp-block-column,
.entry-content .wp-block-media-text,
.entry-content .wp-block-media-text__content,
.entry-content .wp-block-cover, .entry-content .wp-block-image,
.entry-content .wp-block-gallery, .entry-content figure,
.entry-content .wp-block-embed, .entry-content .wp-block-html {
  min-width:0;
  max-width:100%;
}
.entry-content img, .entry-content video, .entry-content svg,
.entry-content canvas, .entry-content embed, .entry-content object {
  max-width:100%;
}
.entry-content table, .entry-content .wp-block-table,
.entry-content .wp-block-table table, .entry-content .table-responsive {
  max-width:100%;
}
.entry-content pre, .entry-content code, .entry-content .wp-block-preformatted {
  max-width:100%;
}
.entry-content .wp-block-table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.entry-content .wp-block-table table { width:100%; min-width:0; }
/* Horizontal scrolling stays inside the specific long table/formula. */
.entry-content .MathJax_Display, .entry-content mjx-container[display="true"],
.entry-content .katex-display, .entry-content .bayan-scroll-table {
  max-width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
}
@media (max-width:820px) {
  .wrap { width:calc(100% - 28px); max-width:680px; margin-inline:auto; }
  .head-inner { flex-wrap:nowrap; }
  .brand { flex:1 1 auto; min-width:0; }
  .brand > span:last-child { min-width:0; }
  .brand strong, .brand small { overflow-wrap:anywhere; }
  .head-actions { flex:0 0 auto; }
  .main-layout, .site-main, .sidebar { width:100%; }
  .hero, .hero-side, .cards { width:100%; }
  .hero-card, .post-card { min-width:0; }
  .article { width:100%; overflow:hidden; }
  .entry-content { width:100%; min-width:0; }
  .entry-content .alignwide, .entry-content .alignfull { width:100%; max-width:100%; margin-inline:0; }
  .entry-content iframe { max-width:100%; }
  .entry-content .wp-block-columns { flex-wrap:wrap!important; }
  .entry-content .wp-block-column { flex-basis:100%!important; }
  .entry-content [style*="width:"] { max-width:100%; }
  .entry-content [style*="min-width:"] { min-width:0; }
  .ad-unit, .ad-unit ins.adsbygoogle { width:100%!important; max-width:100%!important; min-width:0!important; }
  .section-head { flex-wrap:wrap; }
}
@media (max-width:520px) {
  .wrap { width:calc(100% - 24px); }
  .brand { gap:8px; }
  .brand strong { font-size:clamp(15px,4.6vw,19px); }
  .brand small { font-size:10px; }
  .brand-mark { flex:none; width:42px; height:42px; }
  .article { padding:16px; }
  .hero-main, .hero-side .hero-card { max-width:100%; }
  .hero-content { max-width:100%; }
  .post-card { grid-template-columns: minmax(0,120px) minmax(0,1fr); }
  .post-card .thumb { min-width:0; }
  .bayan-mini-thumb { flex-shrink:0; }
  .entry-content th, .entry-content td { min-width:0; }
}


/* Bayan Nova 1.4 desktop sidebar, header, and heading typography refinements */
body{font-family:"Tajawal",Tahoma,"Segoe UI",Arial,sans-serif}
h1,h2,h3,h4,h5,h6,.section-head h1,.section-head h2,.hero-content h2,.card-body h3,.side-widget h3,.article h1,.entry-content h2,.entry-content h3,.entry-content h4,.brand strong,.nav a,.pill{font-family:"Cairo","Tajawal",Tahoma,"Segoe UI",Arial,sans-serif}
.wrap{width:min(1560px,calc(100% - 44px))}
.main-header{background:rgba(255,255,255,.96);backdrop-filter:saturate(140%) blur(10px);box-shadow:0 10px 35px rgba(8,33,71,.06)}
.head-inner{min-height:110px;gap:26px}
.brand{position:relative;display:flex;align-items:center;gap:15px;padding:12px 18px;border-radius:24px;background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%);border:1px solid #dce7f4;box-shadow:0 12px 28px rgba(14,47,94,.08);min-width:0;max-width:460px}
.brand:hover{transform:translateY(-1px);transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 16px 34px rgba(14,47,94,.12)}
.brand-mark{width:64px;height:64px;border-radius:18px;font-size:33px;box-shadow:0 12px 24px rgba(16,79,173,.22);background:linear-gradient(145deg,#2374ef 0%,#0a2f61 100%)}
.brand-mark i{position:absolute;inset:auto 8px 8px auto;width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.26)}
.brand-logo-wrap{display:grid;place-items:center;flex:0 0 auto;min-width:76px;min-height:76px;padding:8px 12px;border-radius:18px;background:linear-gradient(180deg,#fff,#f4f8ff);border:1px solid #e2eaf6}
.brand .custom-logo{max-width:220px;max-height:72px;width:auto;height:auto;display:block}
.brand-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand strong{font-size:31px;line-height:1.12;letter-spacing:-.7px;background:linear-gradient(90deg,#0c2e5d 0%,#145ac8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand small{display:block;font-size:13px;color:#5d7288;line-height:1.55;font-weight:700}
.nav a{font-size:15px;font-weight:700}
.searchform{max-width:300px;border-radius:14px;background:#f7f9fd}
.searchform input{width:210px;padding-block:11px}
.searchform button{padding:11px 14px}
.main-layout{grid-template-columns:minmax(0,1fr) 360px;gap:32px}
.sidebar{padding-top:34px}
.side-widget{padding:22px 24px;border-radius:22px}
.side-widget h3{font-size:20px;display:flex;align-items:center;gap:10px;line-height:1.4}
.widget-dot{width:34px;height:34px;border-radius:11px}
.bayan-mini-thumb{flex-basis:92px;width:92px;height:72px}
.is-popular .bayan-mini-thumb{flex-basis:74px;width:74px;height:62px}
.bayan-mini-copy strong{font-size:14px}
.category-chips a{font-weight:700}
.section-head h1,.section-head h2{font-size:31px}
.card-body h3{font-size:18px}
.article h1{font-size:clamp(30px,3vw,42px)}
.entry-content h2{font-size:29px}
.entry-content h3{font-size:24px}
.footer h3{font-family:"Cairo","Tajawal",Tahoma,sans-serif}
@media (max-width:1350px){.main-layout{grid-template-columns:minmax(0,1fr) 340px}.wrap{width:min(1460px,calc(100% - 36px))}.brand strong{font-size:28px}}
@media (max-width:1150px){.main-layout{grid-template-columns:minmax(0,1fr) 310px}.head-inner{gap:18px}.brand{padding:10px 14px}.brand strong{font-size:26px}.searchform{max-width:255px}.searchform input{width:165px}}
@media (max-width:820px){.wrap{width:min(100% - 28px,720px)}.head-inner{min-height:80px}.brand{max-width:none;width:auto;flex:1;padding:10px 12px;border-radius:18px}.brand-logo-wrap{min-width:58px;min-height:58px;padding:6px 8px;border-radius:14px}.brand .custom-logo{max-height:50px;max-width:150px}.brand-mark{width:50px;height:50px;border-radius:15px;font-size:27px}.brand strong{font-size:22px}.brand small{font-size:12px}.nav a{font-size:15px}.main-layout{grid-template-columns:1fr;gap:0}}
@media (max-width:520px){.wrap{width:calc(100% - 20px)}.brand{gap:10px;padding:9px 10px}.brand strong{font-size:19px;line-height:1.18}.brand small{font-size:11px}.brand-mark{width:44px;height:44px;font-size:23px;border-radius:13px}.brand-logo-wrap{min-width:50px;min-height:50px;padding:5px 7px}.brand .custom-logo{max-height:42px;max-width:128px}.side-widget{padding:17px 16px}.side-widget h3{font-size:18px}.section-head h1,.section-head h2{font-size:24px}.card-body h3{font-size:15px}.entry-content h2{font-size:23px}.entry-content h3{font-size:20px}}
