/*
Theme Name: Astra Child - Akbrna
Template: astra
Description: Akbrna news layout (child of Astra): homepage sections, nav bar, related posts, Arabic labels.
Version: 1.0.7
Text Domain: astra-child-akbrna
*/
:root{--akb-navy:#0f2540;--akb-red:#c8102e;--akb-green:#0a7d3b;--akb-blue:#1d5fd1}
.akb-top{background:#111;color:#ddd;font-size:13px;padding:6px 20px;display:flex;justify-content:space-between}
.akb-nav{background:var(--akb-navy);border-top:3px solid var(--akb-red)}
.akb-nav div{max-width:1200px;margin:auto;padding:0 20px;display:flex;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.akb-nav a{color:#fff;padding:12px 18px;font-weight:700;white-space:nowrap;text-decoration:none}
.akb-nav a.on,.akb-nav a:hover{background:var(--akb-red);color:#fff}
.main-header-menu-toggle,.ast-mobile-menu-buttons,#ast-hf-menu-1,.main-header-bar-navigation,.ast-builder-menu-1,.ast-header-break-point .main-header-bar-navigation{display:none!important}
.akb-home{background:#f4f6f9;padding:22px 0 10px}
.akb-w{max-width:1200px;margin:0 auto;padding:0 20px}
.akb-home a,.akb-rel a{text-decoration:none;color:inherit}
.akb-hero{display:grid;grid-template-columns:2fr 1fr;gap:16px}
.akb-big{position:relative;min-height:430px;border-radius:8px;overflow:hidden;background:var(--akb-navy) center/cover no-repeat;color:#fff!important;display:flex;align-items:flex-end}
.akb-big:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.85))}
.akb-big .t{position:relative;z-index:1;padding:24px}
.akb-big h1{font-size:30px;line-height:1.5;margin:8px 0;color:#fff}
.akb-side{display:flex;flex-direction:column;gap:16px}.akb-side .akb-card{flex:1}
.akb-card{background:#fff;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 4px #0001;color:#111}
.akb-im{height:150px;background:var(--akb-navy) center/cover no-repeat}.akb-side .akb-im{height:120px}
.akb-tx{padding:12px 14px}.akb-tx h3{font-size:17px;line-height:1.6;margin:8px 0;color:#111}.akb-tx small,.akb-big small{color:#667}.akb-big small{color:#e8e8e8}
.akb-k{display:inline-block;color:#fff;font-size:12px;padding:2px 10px;border-radius:3px;background:var(--akb-red)}
.akb-k.sports{background:var(--akb-green)}.akb-k.technology{background:var(--akb-blue)}.akb-k.news{background:var(--akb-red)}
.akb-sh{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--akb-navy);margin:30px 0 14px;padding-bottom:6px}
.akb-sh h2{font-size:24px;margin:0;color:var(--akb-navy)}.akb-sh span{color:#667;font-size:14px}
.akb-sh.sports{border-color:var(--akb-green)}.akb-sh.sports h2{color:var(--akb-green)}
.akb-sh.technology{border-color:var(--akb-blue)}.akb-sh.technology h2{color:var(--akb-blue)}
.akb-sh.news{border-color:var(--akb-red)}.akb-sh.news h2{color:var(--akb-red)}
.akb-g{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.akb-g .akb-im{height:130px}
.akb-rel{margin:30px 0 10px;clear:both}.akb-rel .akb-g{grid-template-columns:repeat(2,1fr)}.akb-rel .akb-sh h2{color:var(--akb-green)}
.akb-rel .akb-sh{border-color:var(--akb-green)}.akb-rel .akb-im{height:150px}
.akb-pg{text-align:center;margin:24px 0}.akb-pg a,.akb-pg span{padding:6px 12px;margin:0 3px;background:#fff;border-radius:4px}
.comment-form .submit,#submit{background:var(--akb-red)!important;color:#fff!important;border-radius:4px;font-weight:700}
@media(max-width:700px){.akb-top{display:none}.akb-hero{grid-template-columns:1fr}.akb-big{min-height:260px}.akb-big h1{font-size:20px}
.akb-g,.akb-rel .akb-g{grid-template-columns:1fr 1fr;gap:10px}.akb-g .akb-im,.akb-rel .akb-im{height:90px}.akb-tx h3{font-size:14px}.akb-tx{padding:8px}
.akb-w{padding:0 12px}.akb-side{display:grid;grid-template-columns:1fr 1fr;gap:10px}.akb-side .akb-im{height:100px}}
.entry-content .akb-rel a,.akb-rel a,.akb-rel a:hover{text-decoration:none!important;color:inherit;border:0}
.akb-rel h3{font-size:17px;margin:8px 0}.akb-rel .akb-k{color:#fff!important}
/* Article readability (v1.0.3) */
.single-post .entry-content{font-size:19px;line-height:2}
.single-post .entry-content p{font-size:19px;line-height:2;margin-bottom:1.1em}
.single-post .entry-content li{font-size:19px;line-height:2}
.single-post .entry-content h2{font-size:28px;line-height:1.6;margin:1.4em 0 .5em}
.single-post .entry-content h3{font-size:23px;line-height:1.6;margin:1.2em 0 .5em}
.single-post .entry-content figcaption,.single-post .entry-content .wp-caption-text{font-size:14px;line-height:1.7}
@media(max-width:700px){.single-post .entry-content,.single-post .entry-content p,.single-post .entry-content li{font-size:18px;line-height:1.95}.single-post .entry-content h2{font-size:24px}.single-post .entry-content h3{font-size:20px}}
/* Share links: plain anchors, no scripts */
.akb-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 8px;padding:14px 0;border-top:1px solid #e2e6ec;border-bottom:1px solid #e2e6ec}
.akb-share-l{font-weight:700;color:var(--akb-navy);margin-inline-end:4px}
.entry-content .akb-share a{display:inline-block;padding:7px 16px;border-radius:4px;color:#fff;font-size:15px;font-weight:700;text-decoration:none;border:0;line-height:1.5}
.akb-share .fb{background:#1877f2}.akb-share .xx{background:#111}.akb-share .wa{background:#1fa855}
.akb-share a:hover{opacity:.88;color:#fff}

/* Byline + dates (v1.0.4) */
.akb-by{margin:0 0 18px;padding:0;font-size:14px;line-height:1.7;color:#545658}
.akb-by .akb-by-a{font-weight:700;color:#222;font-size:15px}
.akb-by time{display:block;font-size:13px;color:#545658}
.post-modified-info{display:none!important}
/* akb-meta-hide: Astra's own author/date line duplicates the new byline */
.single-post .entry-header .entry-meta{display:none!important}
/* akb-bc: breadcrumb above title, home and category only (v1.0.6) */
.single-post .entry-header{display:flex;flex-direction:column}
.single-post .entry-header .ast-breadcrumbs-wrapper{order:-1;margin:0 0 10px}
.single-post .entry-header .ast-breadcrumbs-wrapper .trail-item.trail-end{display:none}
.single-post .entry-header .ast-breadcrumbs-wrapper .trail-item:nth-last-child(2)::after{display:none!important;content:none!important}
.single-post .entry-header .ast-breadcrumbs-wrapper,.single-post .entry-header .ast-breadcrumbs-wrapper a{font-size:13px;line-height:1.4}
/* akb-img: first article figure shows under title/byline instead of inside body (v1.0.7) */
.single-post .ast-article-single>.ast-post-format-,.single-post .ast-article-single>.single-layout-1{display:flex;flex-direction:column}
.single-post article .single-layout-1>.entry-header{order:1}
.single-post article .single-layout-1>.entry-content{display:contents}
.single-post article .single-layout-1>.entry-content>*{order:5}
.single-post article .single-layout-1>.entry-content>.akb-by{order:2}
.single-post article .single-layout-1>.entry-content>figure:first-of-type{order:3;margin-top:0;margin-bottom:1.5em}
