/*
Theme Name: Astra Child - Mobezone
Theme URI: https://mobezone.com/
Description: Child theme of Astra for Mobezone. All custom modifications for mobezone.com live in this child theme so the parent Astra theme can be updated safely.
Author: Mobezone
Template: astra
Version: 1.6.16
Text Domain: astra-child-mobezone
*/

/* ===== Brand colour: warm orange #E8590C (hover #D9480F) ===== */
:root {
    --ast-global-color-0: #E8590C;
    --ast-global-color-1: #D9480F;
    --mz-orange: #E8590C;
    --mz-orange-dark: #D9480F;
}

/* Header bar: orange background, white text */
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
    background-color: #E8590C;
    border-bottom: none;
}
.ast-primary-header-bar .site-title a,
.ast-primary-header-bar .site-description,
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link,
.ast-primary-header-bar .ast-search-menu-icon,
.ast-primary-header-bar .ast-header-search,
.ast-primary-header-bar .menu-toggle,
.ast-primary-header-bar a.ast-header-button-link {
    color: #fff;
}
.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-primary-header-bar .main-header-menu > .menu-item.current-menu-item > .menu-link {
    color: #FFE8CC;
}
.ast-primary-header-bar .menu-toggle svg,
.ast-primary-header-bar .ast-search-menu-icon svg {
    fill: #fff;
}
/* Sub-menus keep readable dark text on white */
.main-header-menu .sub-menu {
    background: #fff;
}
.main-header-menu .sub-menu .menu-link {
    color: #212529;
}
.main-header-menu .sub-menu .menu-link:hover {
    color: #D9480F;
}

/* Links and accents */
.entry-content a,
.comment-content a {
    color: #D9480F;
}
.entry-title a:hover,
.widget a:hover,
.ast-pagination .page-numbers.current {
    color: #E8590C;
}
.ast-pagination .page-numbers.current {
    background: #E8590C;
    border-color: #E8590C;
    color: #fff;
}

/* Buttons */
.ast-button,
.button,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
    background: #E8590C;
    border-color: #E8590C;
    color: #fff;
}
.ast-button:hover,
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: #D9480F;
    border-color: #D9480F;
    color: #fff;
}

/* Footer link accents */
.site-footer a:hover {
    color: #E8590C;
}
/* Footer page links: one row, side by side on all screens (owner request).
   Astra renders the footer menu as ul#astra-footer-menu with
   astra-footer-mobile-vertical-menu, so target that exact markup. */
.site-footer ul#astra-footer-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.site-footer ul#astra-footer-menu > li {
    display: inline-block;
    margin: 0;
    width: auto;
}
/* Narrow phones: guarantee the 3 footer links stay on ONE row */
@media (max-width: 480px) {
    .site-footer ul#astra-footer-menu {
        flex-wrap: nowrap;
        gap: 4px 10px;
    }
    .site-footer ul#astra-footer-menu .menu-link {
        font-size: 13px;
        white-space: nowrap;
        padding-left: 2px;
        padding-right: 2px;
    }
    .site-below-footer-wrap .ast-builder-grid-row-container-inner {
        padding-left: 6px;
        padding-right: 6px;
    }
}
.site-footer .ast-footer-copyright {
    text-align: center;
}
/* Article readability: larger body text (owner request 2026-11-30) */
.single-post .entry-content {
    font-size: 19px;
    line-height: 1.95;
}
.single-post .entry-content p {
    margin-bottom: 1.15em;
}
@media (max-width: 544px) {
    .single-post .entry-content {
        font-size: 18px;
        line-height: 1.9;
    }
}
/* Brands strip («ماركات الموبايلات») — homepage top + end of articles */
/* Strip placed directly under the site header (all article pages) */
.mz-brands-underheader {
    padding-top: 12px;
}
.mz-brands {
    margin: 4px 0 26px;
}
.mz-brands-inpost {
    margin: 34px 0 6px;
}
.mz-brands-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
/* Circular badge tiles — Mobezone's own presentation (not card-style) */
.mz-brand-card {
    padding: 6px 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    text-decoration: none;
}
.mz-brand-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #E9EAEE;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mz-brand-card:hover .mz-brand-logo-wrap {
    border-color: #E8590C;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(232, 89, 12, .18);
}
.mz-brand-logo {
    max-height: 46px;
    max-width: 68%;
    width: auto;
    height: auto;
}
.mz-brand-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
}
@media (max-width: 700px) {
    .mz-brands {
        padding-right: 6px;
        padding-left: 6px;
    }
    .mz-brands-grid {
        gap: 6px;
    }
    .mz-brand-card {
        padding: 4px 2px 0;
        gap: 6px;
    }
    .mz-brand-logo-wrap {
        width: 58px;
        height: 58px;
    }
    .mz-brand-logo {
        max-height: 32px;
        max-width: 66%;
    }
    .mz-brand-name {
        font-size: 11.5px;
    }
}
/* Article sub-headings: coloured background bars (owner request 2026-11-30)
   H2 = warm orange tint + brand-orange side bar
   H3 = soft blue-grey tint + steel-blue side bar */
.single-post .entry-content h2:not(.mz-cat-title) {
    background: #FFF1E7;
    border-right: 5px solid #E8590C;
    border-radius: 10px;
    padding: 10px 16px;
    margin: 1.5em 0 .7em;
    font-size: 1.45em;
    line-height: 1.5;
    color: #212529;
}
.single-post .entry-content h3 {
    background: #EAF1F8;
    border-right: 5px solid #2F6690;
    border-radius: 10px;
    padding: 8px 14px;
    margin: 1.35em 0 .6em;
    font-size: 1.2em;
    line-height: 1.55;
    color: #212529;
}

/* ===== Phone specs block (مواصفات الهاتف) — approved preview design ===== */
.mz-phone-data {
    display: flex;
    gap: 16px;
    margin: 0 0 20px;
    align-items: flex-start;
}
.mz-phone-thumb {
    flex: 0 0 46%;
}
.mz-phone-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.mz-phone-info {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mz-phone-info .mz-pi-row {
    display: flex;
    align-items: stretch;
    background: #F5F5F9;
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
    min-height: 46px;
}
.mz-phone-info .mz-pi-icon {
    background: #E8590C;
    flex: 0 0 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mz-phone-info .mz-pi-icon svg {
    display: block;
}
.mz-phone-info .mz-pi-text {
    padding: 8px 10px;
    align-self: center;
    /* Smaller than the article body text (owner request 2026-11-30) */
    font-size: 15.5px;
    line-height: 1.6;
}
/* Desktop: icon boxes just as clear as on mobile (owner request) */
@media (min-width: 768px) {
    .mz-phone-info .mz-pi-icon {
        flex-basis: 52px;
        min-width: 52px;
    }
    .mz-phone-info .mz-pi-icon svg {
        width: 23px;
        height: 23px;
    }
    .mz-phone-info .mz-pi-row {
        min-height: 50px;
    }
}
/* Mobile (<=767px): stacked — featured image first, specs list UNDER it */
@media (max-width: 767px) {
    .mz-phone-data {
        flex-direction: column;
    }
    .mz-phone-thumb {
        flex: none;
        width: 100%;
    }
    .mz-phone-info {
        width: 100%;
    }
}
/* The block already shows the featured image, so hide Astra's own one on those posts */
.mz-has-phone-specs .ast-blog-featured-section,
.mz-has-phone-specs .post-thumb-img-content {
    display: none;
}

/* ===== Homepage v2: professional magazine layout ===== */
body.home .site-content {
    background: #F6F6F8;
}
.mz-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 15px 16px;
}
/* Homepage H1: kept in the markup for SEO/screen readers, visually
   hidden (owner decision 2026-11-30 — clean homepage like competitors) */
.mz-home-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.mz-cat-block {
    margin-bottom: 34px;
}
.mz-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.mz-cat-head::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #E9E9EE;
}
.mz-cat-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}
.mz-chip {
    display: inline-block;
    background: #E8590C;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
}
a.mz-chip:hover {
    background: #D9480F;
    color: #fff;
}
.mz-cat-more {
    color: #D9480F;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    order: 3;
}
.mz-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.mz-card,
.mz-hero-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}
.mz-card:hover,
.mz-hero-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}
.mz-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}
.mz-hero-card .mz-card-media {
    aspect-ratio: 16 / 8;
}
.mz-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mz-card-body {
    display: block;
    padding: 10px 12px 12px;
}
.mz-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.65;
    color: #212529;
}
.mz-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}
.mz-hero-grid {
    grid-template-columns: repeat(2, 1fr);
}
.mz-post-chip {
    display: inline-block;
    background: #FFF1E7;
    color: #D9480F;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.mz-hero-title {
    display: block;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.6;
    color: #212529;
}
@media (max-width: 991px) {
    .mz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mz-hero {
        grid-template-columns: 1fr;
    }
    .mz-home-h1 {
        font-size: 21px;
    }
    .mz-hero-title {
        font-size: 17px;
    }
}

/* ===== Sidebar widget: أحدث الهواتف ===== */
.mz-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mz-latest-item {
    margin-bottom: 12px;
}
.mz-latest-item a {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
}
.mz-latest-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 64px;
}
.mz-latest-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
}
.mz-latest-item a:hover .mz-latest-title {
    color: #E8590C;
}

/* ===== v1.6.0: breadcrumbs + category pages ===== */
.mz-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;font-size:13px;color:#8a8a93;margin:14px 0 10px;overflow:hidden}
.mz-breadcrumb a{color:#8a8a93;text-decoration:none;white-space:nowrap}
.mz-breadcrumb a:hover{color:#D9480F}
.mz-breadcrumb .mz-crumb-sep{color:#c6c6cd;flex:0 0 auto}
.mz-crumb-current{color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mz-archive-head{display:block;padding:4px 0 6px}
.mz-archive-head .mz-breadcrumb{margin:2px 0 8px}
.mz-cat-head-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mz-cat-h1{font-size:30px;font-weight:800;color:#212529;margin:0;line-height:1.3}
.mz-cat-count{background:#FFF1E7;color:#D9480F;font-size:12.5px;font-weight:700;padding:3px 11px;border-radius:20px}
.mz-cat-desc{font-size:15px;color:#555;line-height:1.9;margin:8px 0 4px;max-width:660px}
body.category .ast-archive-description{display:none}
body.category #main.site-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
body.category #main.site-main > article{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 5px rgba(0,0,0,.06);height:100%}
body.category #main.site-main > .ast-pagination,
body.category #main.site-main > .pagination,
body.category #main.site-main > nav.pagination{grid-column:1/-1}
body.category article .entry-meta{display:none}
body.category article .entry-content{display:none}
body.category article .post-thumb-img-content img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
body.category article .entry-header{margin:0;padding:0}
body.category article .entry-title{font-size:16.5px;line-height:1.65;margin:0;padding:12px 14px 14px}
body.category article .entry-title a{color:#212529;text-decoration:none}
body.category article .entry-title a:hover{color:#D9480F}
body.category .ast-pagination,body.category .pagination{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:10px 0 4px}
body.category .ast-pagination .page-numbers,body.category .pagination .page-numbers{background:#fff;color:#333;font-size:13.5px;min-width:34px;height:34px;padding:0 8px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e3e8;text-decoration:none}
body.category .ast-pagination .page-numbers.current,body.category .pagination .page-numbers.current{background:#E8590C;color:#fff;border-color:#E8590C;font-weight:700}
body.category .ast-pagination a.page-numbers:hover,body.category .pagination a.page-numbers:hover{color:#D9480F;border-color:#E8590C}
@media (max-width:700px){
  body.category #main.site-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.category article .entry-title{font-size:14px;padding:9px 10px 11px}
  .mz-cat-h1{font-size:25px}
  .mz-cat-desc{font-size:14px}
  .mz-breadcrumb{font-size:12px}
}

/* ===== v1.6.1: prev/next side by side, bigger ===== */
.single-post .post-navigation .nav-links,
.single-post .navigation.post-navigation .nav-links{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next{flex:0 1 48%;max-width:48%;margin:0}
.single-post .post-navigation .nav-previous{text-align:right}
.single-post .post-navigation .nav-next{text-align:left}
.single-post .post-navigation a{font-size:16.5px;font-weight:700;line-height:1.7;color:#212529;text-decoration:none}
.single-post .post-navigation a:hover{color:#D9480F}
@media (max-width:700px){
  .single-post .post-navigation a{font-size:15px}
}

/* ===== v1.6.2: search box drops BELOW the header, never over the logo =====
   Astra's slide-search centres the form vertically on the icon (top:50%),
   so it expands across the centred logo. Owner asked (2026-11-30) for the
   box to open underneath the lens, clear of the logo. The icon wrapper sits
   centred in the ~80px header bar, so 100% + 36px lands just under the bar. */
.ast-search-menu-icon.slide-search .search-form{
  top:calc(100% + 36px);
  transform:none;
  border-radius:10px;
  box-shadow:0 12px 32px rgba(0,0,0,.20);
}

/* ===== v1.6.3: search results page matches the category cards ===== */
body.search #main.site-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
body.search #main.site-main > article{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 5px rgba(0,0,0,.06);height:100%}
body.search #main.site-main > .ast-pagination,
body.search #main.site-main > .pagination,
body.search #main.site-main > nav.pagination{grid-column:1/-1}
body.search article .entry-meta{display:none}
body.search article .entry-content{display:none}
body.search article .post-thumb-img-content img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
body.search article .entry-header{margin:0;padding:0}
body.search article .entry-title{font-size:16.5px;line-height:1.65;margin:0;padding:12px 14px 14px}
body.search article .entry-title a{color:#212529;text-decoration:none}
body.search article .entry-title a:hover{color:#D9480F}
body.search .ast-pagination,body.search .pagination{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:10px 0 4px}
body.search .ast-pagination .page-numbers,body.search .pagination .page-numbers{background:#fff;color:#333;font-size:13.5px;min-width:34px;height:34px;padding:0 8px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e3e3e8;text-decoration:none}
body.search .ast-pagination .page-numbers.current,body.search .pagination .page-numbers.current{background:#E8590C;color:#fff;border-color:#E8590C;font-weight:700}
body.search .ast-pagination a.page-numbers:hover,body.search .pagination a.page-numbers:hover{color:#D9480F;border-color:#E8590C}
@media (max-width:700px){
  body.search #main.site-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.search article .entry-title{font-size:14px;padding:9px 10px 11px}
}

/* ===== v1.6.4: hide Astra's own search header (theme prints the Arabic one) ===== */
body.search .ast-archive-description{display:none}

/* ===== v1.6.5: desktop menu on ONE line beside the centred logo =====
   Owner approved (2026-11-30): shrink the menu font and spacing so all
   10 sections fit on a single line instead of wrapping to two. */
@media (min-width:922px){
  .ast-primary-header-bar .main-header-menu{flex-wrap:nowrap}
  .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link{
    font-size:13.5px;
    padding-left:8px;
    padding-right:8px;
    white-space:nowrap;
  }
}
@media (min-width:922px) and (max-width:1199px){
  .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link{
    font-size:12.5px;
    padding-left:6px;
    padding-right:6px;
  }
}

/* ===== v1.6.6: archive grid fixed for Astra's real structure =====
   Live DOM check: posts sit inside .ast-row (not directly in #main), the
   excerpt lives in .ast-excerpt-container (not .entry-content), and the
   visible card box is .ast-article-inner. The 1.6.0 rules aimed at #main
   and #main > article, so the grid never applied — worse, #main became a
   3-column grid whose single .ast-row child took only one column. */
body.category #main.site-main,body.search #main.site-main{display:block}
body.category .ast-row,body.search .ast-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
body.category .ast-row > article,body.search .ast-row > article{width:auto;max-width:none;padding:0;margin:0}
body.category .ast-article-inner,body.search .ast-article-inner{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 5px rgba(0,0,0,.06);height:100%}
body.category .ast-article-inner .post-content,body.search .ast-article-inner .post-content{padding:0}
body.category .ast-excerpt-container,body.search .ast-excerpt-container{display:none}
body.category .ast-article-inner .post-thumb-img-content img,body.search .ast-article-inner .post-thumb-img-content img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
@media (max-width:700px){
  body.category .ast-row,body.search .ast-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* ===== v1.6.7: prev/next pulled in from the edges + distinct colour =====
   Owner (2026-12-01): the previous/next links sit too far out at the
   extremes; inset them and give them a different colour - the owner chose the
   site orange (#E8590C), not blue. */
.single-post .navigation.post-navigation{padding:8px 30px}
.single-post .post-navigation a{color:#E8590C}
.single-post .post-navigation a:hover{color:#D9480F}
@media (max-width:700px){
  .single-post .navigation.post-navigation{padding:8px 16px}
}

/* ===== v1.6.9: header icons bigger + vertically centred with the logo =====
   Owner (2026-12-01): the menu (hamburger) and search icons in the header
   look small and sit slightly high next to the logo; they must be larger,
   clearer, and on the same line/level as the logo. */
.site-header-section{align-items:center}
.ast-header-search .ast-search-icon,
.ast-search-menu-icon .ast-search-icon{display:inline-flex;align-items:center;justify-content:center}
.ast-header-search .ast-search-icon svg,
.ast-search-menu-icon .ast-search-icon svg{width:27px;height:27px}
.ast-search-icon .astra-search-icon{font-size:27px;line-height:1}
.menu-toggle,.ast-mobile-menu-trigger{display:inline-flex;align-items:center;justify-content:center}
.menu-toggle .ast-mobile-svg,
.ast-mobile-menu-trigger .ast-mobile-svg{width:31px;height:31px}

/* ===== v1.6.10: breadcrumb gets a soft background bar =====
   Owner (2026-12-01): give the breadcrumb a background, stylish and in
   keeping with the site - the same light-orange tint as the H2 blocks
   and the article-count chip, as a rounded bar. */
.mz-breadcrumb{background:#FFF1E7;border-radius:10px;padding:8px 14px}
.mz-breadcrumb a{color:#6B4A2F}
.mz-breadcrumb a:hover{color:#D9480F}
.mz-breadcrumb .mz-crumb-sep{color:#E0A173}
.mz-crumb-current{color:#D9480F;font-weight:700}

/* ===== v1.6.11: header icons round 2 =====
   Owner (2026-12-01, after seeing the pre-1.6.9 header): both icons still
   read as not in harmony with the logo - the search icon especially - and
   the menu icon still a bit small. Stronger pass: bigger glyphs, matched
   button boxes, wrapper flex-centring with no line-height offset. */
.ast-search-menu-icon{display:inline-flex;align-items:center;justify-content:center;line-height:0}
.ast-header-search .ast-search-icon svg,
.ast-search-menu-icon .ast-search-icon svg{width:29px;height:29px}
.ast-header-search .ast-search-icon,
.ast-search-menu-icon .ast-search-icon{min-height:44px}
.menu-toggle .ast-mobile-svg,
.ast-mobile-menu-trigger .ast-mobile-svg{width:34px;height:34px}

/* ===== v1.6.11b: prev/next vertically centred, sitting lower =====
   Owner (2026-12-01): the previous/next links feel like they ride too
   high; drop them down and centre them. The 1.6.1 rules used
   align-items:flex-start on the row - centre it, centre each link's
   text+arrow, and give the bar more room above. */
.single-post .post-navigation .nav-links,
.single-post .navigation.post-navigation .nav-links{align-items:center}
.single-post .post-navigation a{display:inline-flex;align-items:center;gap:7px}
.single-post .navigation.post-navigation{margin-top:26px;padding-top:16px;padding-bottom:16px}

/* ===== v1.6.12: prev/next centred + lower; shrink the post-comments gap =====
   (a) Owner (2026-12-01): prev/next links ride too high - centre them in
   their bar and sit them lower with room above. (The 1.6.1 rules used
   align-items:flex-start on the row.)
   (b) The "empty box" under the comment form is a ~145px band of pure
   page background (measured): stacked margins of the article column and
   the sidebar in the mobile layout. Tighten them on single posts. */
.single-post .post-navigation .nav-links,
.single-post .navigation.post-navigation .nav-links{align-items:center}
.single-post .post-navigation a{display:inline-flex;align-items:center;gap:7px}
.single-post .navigation.post-navigation{margin-top:26px;padding-top:16px;padding-bottom:16px}
@media (max-width:921px){
  .single-post #primary{margin-bottom:6px}
  .single-post .comments-area{margin-bottom:0;padding-bottom:6px}
  .single-post #secondary{margin-top:6px;padding-top:0}
  .single-post .sidebar-main{margin-top:0;padding-top:0}
  .single-post .sidebar-main .widget:first-child{margin-top:0;padding-top:0}
}

/* ===== v1.6.13: squeeze the post-comments gap further =====
   1.6.12 halved the band (~145px -> ~67px) but Astra's ID-level rules
   (#secondary ...) outrank the class-level ones used there. Re-anchor
   with ID selectors and leave one deliberate small gap. */
@media (max-width:921px){
  .single-post #primary{padding-bottom:0;margin-bottom:0}
  .single-post #main{padding-bottom:0;margin-bottom:0}
  .single-post #secondary{margin-top:14px;padding-top:0}
  .single-post #secondary .sidebar-main{margin-top:0;padding-top:0}
  .single-post #secondary .widget{margin-top:0;padding-top:0}
}

/* ===== v1.6.14: prev/next pulled in from the edges =====
   Owner (2026-12-01): even after v1.6.7 (padding 8px 30px) the previous
   link still sits at the far RIGHT extreme and the next link at the far
   LEFT extreme of their bar. Pull both noticeably INWARD: large side
   padding on the navigation bar itself, plus a centred max-width row,
   so neither link can reach the container edges. Previous stays on the
   right, next on the left, one row, orange, vertically centred. */
.single-post .navigation.post-navigation{
  box-sizing:border-box;
  padding-left:64px;
  padding-right:64px;
}
.single-post .post-navigation .nav-links,
.single-post .navigation.post-navigation .nav-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  max-width:860px;
  width:100%;
  margin-inline:auto;
}
.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next{
  flex:0 1 46%;
  max-width:46%;
  margin:0;
}
.single-post .post-navigation .nav-previous{text-align:right}
.single-post .post-navigation .nav-next{text-align:left}
.single-post .post-navigation a{color:#E8590C}
.single-post .post-navigation a:hover{color:#D9480F}
@media (max-width:700px){
  .single-post .navigation.post-navigation{
    padding-left:26px;
    padding-right:26px;
  }
}


/* ===== v1.6.15: category/search sidebar squeeze + slimmer prev/next bar =====
   (a) Sidebar squeeze (found in the 2026-12-01 performance check, measured
   live at a 1200px container): on category pages the split renders ~80/20
   (#primary 959px / #secondary 211px) instead of the article pages' 70/30
   (840px / 330px). The whole 119px loss lands on the widget title column
   (196px on articles vs 77px on categories), so «أحدث الهواتف» titles wrap
   word by word. Force the article split on archives: sidebar fixed at
   330px, primary takes the rest, archive head spans the full row.
   (b) Prev/next bar (owner, photo from his phone 2026-12-01): the bar is
   too TALL, and «المقالة التالية» does not sit as close to its (left) edge
   as «السابقة» does to the right. Slim the bar (less margin/padding) and
   make each box a flex row so the links hug the padded edges exactly:
   previous -> right edge, next -> left edge (RTL flex start/end). */
@media (min-width:922px){
  body.category .mz-archive-head,body.search .mz-archive-head{flex:0 0 100%;width:100%}
  body.category #primary,body.search #primary{flex:1 1 auto;width:auto;max-width:calc(100% - 360px);min-width:0}
  body.category #secondary,body.search #secondary{flex:0 0 330px;width:330px;max-width:330px}
  body.category #main,body.search #main{width:100%}
}
.single-post .navigation.post-navigation{margin-top:14px;padding-top:10px;padding-bottom:10px}
.single-post .post-navigation .nav-previous{display:flex;justify-content:flex-start}
.single-post .post-navigation .nav-next{display:flex;justify-content:flex-end}

/* ===== v1.6.16: remove the "Read more" link under archive cards =====
   Owner (2026-12-01): the «قراءة المزيد» link under each article card on
   category pages is pointless - the card image and title already link to
   the article. It renders as .ast-read-more-container (10 per archive
   page). Hide it on category and search-results cards (same design). */
body.category .ast-read-more-container,body.search .ast-read-more-container{display:none}

/* ===== v1.6.16b: CORRECT the 1.6.15 archive layout (desktop grid broke) =====
   Root cause found after 1.6.15 broke the desktop archive grid: Astra's
   .ast-container is a NOWRAP flex row, and the theme's .mz-archive-head
   is a flex ITEM in that row, silently stealing ~420px - so archives
   really rendered ~537px primary / ~211px sidebar all along. The 1.6.15
   rules (head flex-basis 100% + sidebar flex-basis 330px, both shrink 0)
   left #primary as the only shrinkable item and crushed it to ~45px.
   Correct approach: let the container WRAP so the head takes its own
   full-width line, and restore Astra's own 70%/30% widths for
   #primary/#secondary (undo the 1.6.15 flex/width overrides). */
@media (min-width:922px){
  body.category .ast-container,body.search .ast-container{flex-wrap:wrap}
  body.category #primary,body.search #primary{flex:0 1 auto;width:70%;max-width:none;min-width:0}
  body.category #secondary,body.search #secondary{flex:0 1 auto;width:30%;max-width:none}
}

/* mz-link-underline-fix: continuous underline on Arabic text links in article body (no skip-ink cuts, no stray dash at word gaps) */
.entry-content p a{text-decoration-skip-ink:none;text-underline-offset:4px}

/* mz-toc: lightweight table of contents (replaces LuckyWP). Look matches the old box: light grey, collapsed, blue links. */
.mz-toc{display:table;max-width:100%;box-sizing:border-box;margin:32px 0;padding:14px 18px 18px;background:#fafafa;color:#333;text-align:right}
.mz-toc__head{cursor:pointer;list-style:none}
.mz-toc__head::-webkit-details-marker{display:none}
.mz-toc__title{font-size:1em;font-weight:700;color:#333}
.mz-toc__tg{font-size:80%;color:#3175e4;margin-right:4px;white-space:nowrap}
.mz-toc[open] .mz-toc__head{margin-bottom:6px}
.mz-toc__hide{display:none}
.mz-toc[open] .mz-toc__show{display:none}
.mz-toc[open] .mz-toc__hide{display:inline}
.entry-content .mz-toc__list{font-size:90%}
.entry-content .mz-toc ul{margin:0;padding:0;list-style:none}
.entry-content .mz-toc li{margin:2px 0 0;padding:0;list-style:none;text-align:right}
.entry-content .mz-toc li:first-child{margin-top:0}
.entry-content .mz-toc ul ul{margin:2px 14px 0 0}
.entry-content .mz-toc a{color:#3175e4;text-decoration:none;box-shadow:none;border:0}
.entry-content .mz-toc a:visited{color:#000394}
.entry-content .mz-toc a:hover,.entry-content .mz-toc a:focus{border-bottom:1px dotted #3175e4}
html:has(.mz-toc){scroll-behavior:smooth}
.entry-content :is(h2,h3,h4,h5,h6){scroll-margin-top:90px}
@media (prefers-reduced-motion:reduce){html:has(.mz-toc){scroll-behavior:auto}}

/* mz-jump: button under the top specs block, scrolls to the spec table */
.mz-spec-jump{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 22px;padding:14px 16px;min-height:48px;background:#c2410c;color:#fff !important;font-weight:800;font-size:18px;line-height:1.4;border-radius:12px;text-decoration:none !important;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.mz-spec-jump:hover,.mz-spec-jump:focus{background:#9a3412;color:#fff !important}
