/* ==========================================================
   كتل الصفحة الرئيسية — تُحمّل مع كل الثيمات
   (g-* من الثيم العالمي + hb-* لأشكال الأقسام)
   ========================================================== */
.g-home { padding-bottom: 10px; }
.g-cat { display: inline-block; color: var(--c, var(--primary)); font-weight: 800; font-size: 13.5px; margin-bottom: 6px; font-family: var(--font-head); }
.g-cat:hover { color: var(--text); }
.g-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.g-img { display: block; position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.g-img:hover img { opacity: .88; }
.g-noimg { background: linear-gradient(135deg, var(--primary), var(--deep)); }
.g-play { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .78); color: #fff; width: 40px; height: 40px; display: grid; place-items: center; font-size: 15px; padding-left: 3px; }
.g-home h2 a:hover, .g-home h3 a:hover, .g-video h2 a:hover, .g-video h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; color: inherit; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 4px solid var(--c, var(--text)); padding-top: 8px; margin: 30px 0 16px; }
.g-head h2 { font-size: 22px; }
.g-head a { font-weight: 700; font-size: 14px; color: var(--muted); }
.g-head-dark { --c: #fff; color: #fff; }
.g-top { display: grid; grid-template-columns: 2.1fr 1fr; gap: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.g-lead .g-img { aspect-ratio: 16 / 9; }
.g-lead .g-body { padding-top: 14px; }
.g-lead h2 { font-size: 34px; line-height: 1.4; margin-bottom: 8px; letter-spacing: -.3px; }
.g-lead p { margin: 0; color: var(--muted); font-size: 17.5px; }
.g-side { display: flex; flex-direction: column; }
.g-thumb { display: flex; gap: 14px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.g-thumb:first-child { padding-top: 0; }
.g-thumb:last-child { border-bottom: 0; }
.g-thumb h3 { font-size: 17px; line-height: 1.55; }
.g-thumb .g-img { width: 130px; flex-shrink: 0; aspect-ratio: 4 / 3; }
.g-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 20px 0; }
.g-std h3 { font-size: 17.5px; line-height: 1.55; margin-top: 10px; }
.g-std .g-cat { margin-top: 10px; margin-bottom: 0; }
.g-std p { color: var(--muted); font-size: 15px; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-text { padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-text:last-child { border-bottom: 0; }
.g-text h3 { font-size: 16.5px; line-height: 1.55; }
.g-popular { background: var(--surface-2); padding: 18px 22px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin: 8px 0 6px; }
.g-popular-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.3; }
.g-popular ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.g-popular li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 15px; line-height: 1.55; }
.g-popular .n { font-family: var(--font-head); font-size: 40px; line-height: .9; color: var(--accent); font-weight: 800; }
.g-popular a { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.g-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.g-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.g-list .g-thumb:first-child { padding-top: 14px; }
.g-list .g-thumb:last-child { border-bottom: 1px solid var(--line); }
.g-box { margin-top: 8px; }
.g-video { background: #111; color: #fff; margin: 34px 0 10px; padding: 6px 0 34px; }
.g-video .g-head { border-color: #fff; }
.g-video-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.g-video-grid .g-lead { grid-row: span 1; }
.g-video .g-lead h2 { font-size: 24px; }
.g-video h2 a, .g-video h3 a { color: #fff; }
.g-video p, .g-video .g-meta { color: #aaa; }
.g-video .g-cat { color: #ff8a8a; }
.g-section-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.g-stack { display: flex; flex-direction: column; }
.g-stack .g-text:first-child { padding-top: 0; }
.g-opinions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-opinion { display: flex; gap: 12px; align-items: flex-start; padding-top: 4px; }
.g-opinion img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; filter: grayscale(.2); }
.g-opinion b { color: var(--accent); font-size: 14px; }
.g-opinion h3 { font-size: 16.5px; line-height: 1.55; }
.g-newsletter { margin: 40px 0 10px; padding: 28px 30px; background: var(--text); color: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.g-newsletter h2 { font-size: 24px; }
.g-newsletter p { margin: 4px 0 0; opacity: .75; }
.g-newsletter form { display: flex; min-width: 320px; flex: 0 1 460px; }
.g-newsletter input { flex: 1; border: 0; padding: 13px 16px; font: inherit; min-width: 0; }
.g-newsletter button { border: 0; background: var(--accent); color: #fff; padding: 0 26px; font-weight: 800; font-family: var(--font-head); }
@media (max-width: 1100px) {
  .g-row4, .g-opinions { grid-template-columns: repeat(2, 1fr); }
  .g-popular { grid-template-columns: 1fr; }
  .g-popular ol { grid-template-columns: repeat(3, 1fr); }
  .g-columns { grid-template-columns: 1fr; }
  .g-video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .g-top { grid-template-columns: 1fr; }
  .g-lead h2 { font-size: 26px; }
  .g-list, .g-section-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-row4, .g-opinions, .g-video-grid { grid-template-columns: 1fr; }
  .g-popular ol { grid-template-columns: 1fr; gap: 10px; }
  .g-popular .n { font-size: 30px; }
  .g-thumb .g-img { width: 110px; }
  .g-newsletter form { min-width: 0; flex-basis: 100%; }
}
.g-lead h2, .g-thumb h3, .g-std h3, .g-text h3, .g-opinion h3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.g-lead h2 { -webkit-line-clamp: 3; }
.g-thumb h3 { -webkit-line-clamp: 4; }
.g-std h3, .g-text h3, .g-opinion h3 { -webkit-line-clamp: 3; }
.g-top .g-lead .g-img { max-height: 470px; aspect-ratio: auto; height: 470px; }
@media (max-width: 860px) { .g-top .g-lead .g-img { height: auto; aspect-ratio: 16 / 9; } }

/* ==========================================================
   أشكال الأقسام hb-*
   ========================================================== */
.hb-wrap { margin-bottom: 8px; }
.hb { margin-bottom: 10px; }
.hb-main > .hb:first-child > .section-head:first-child { margin-top: 0; }
.home > .hb-wrap:first-child > .hb:first-child > .section-head:first-child { margin-top: 0; }
.hb-cat { color: var(--c, var(--primary)); font-weight: 800; font-size: 13px; font-family: var(--font-head); }
.hb .meta time { white-space: nowrap; }

/* بطاقة بسيطة */
.hb-simple { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hb-simple .thumb { aspect-ratio: var(--card-ratio, 16 / 10); border-radius: calc(var(--radius) * .6); }
.hb-simple h3 { font-size: 17px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-simple .meta { font-size: 13.5px; margin-top: auto; }
.hb-simple:hover .thumb img, .hb-feature:hover .thumb img, .hb-big:hover .thumb img, .hb-dark-card:hover .thumb img, .hb-split-top:hover .thumb img { transform: scale(1.04); }

/* صف بطاقات بفواصل عمودية */
.hb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hb-cols > * { padding: 0 14px; border-inline-start: 1px solid var(--line); }
.hb-cols > *:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hb-cols > *:last-child { padding-inline-end: 0; }
.hb-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(4n+1) { padding-inline-start: 0; border-inline-start: 0; }
.hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(4n) { padding-inline-end: 0; }
.hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(n+5) { margin-top: 24px; }

/* خبر بارز */
.hb-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.hb-feature .thumb { aspect-ratio: 16 / 10.5; border-radius: calc(var(--radius) * .6); }
.hb-f-body { display: flex; flex-direction: column; gap: 10px; }
.hb-f-body h3, .hb-f-body h2 { font-size: 26px; line-height: 1.55; font-weight: 800; }
.hb-f-body p { margin: 0; color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-f-body .meta { gap: 10px; }
.hb-f-body .meta .hb-cat { padding-inline-end: 10px; border-inline-end: 1px solid var(--line); line-height: 1; }

/* صندوق ملوّن */
.hb-hl { background: var(--hl, var(--surface-2)); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
[data-theme="dark"] .hb-hl { background: color-mix(in srgb, var(--hl, var(--surface-2)) 14%, var(--surface)); }

/* خبر كبير + الأكثر قراءة */
.hb-columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 34px; }
.hb-big .thumb { aspect-ratio: 16 / 9.5; border-radius: calc(var(--radius) * .6); }
.hb-big h3 { font-size: 26px; line-height: 1.55; margin: 14px 0 8px; font-weight: 800; }
.hb-big p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.hb-col-more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.hb-thumb-item { display: flex; gap: 14px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hb-thumb-item:last-child { border-bottom: 0; }
.hb-thumb-item h4 { font-size: 15.5px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-thumb-item .meta { font-size: 13px; margin-top: 4px; }
.hb-thumb-item .thumb { width: 120px; height: 90px; border-radius: 8px; flex-shrink: 0; }

/* فسيفساء بعدد أقل من 5 */
.hb-mosaic.hb-n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.hb-mosaic.hb-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; }
.hb-mosaic.hb-n1 .card-overlay:first-child, .hb-mosaic.hb-n2 .card-overlay:first-child { grid-row: auto; }
.hb-mosaic.hb-n3 { grid-template-columns: 1.6fr 1fr; }
.hb-mosaic.hb-n4 { grid-template-columns: 1.6fr 1fr 1fr; }
.hb-mosaic.hb-n4 .card-overlay:nth-child(4) { grid-column: span 2; }

/* شريط قابل للسحب */
.hb-carousel { position: relative; }
.hb-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-track > * { scroll-snap-align: start; }
.hb-nav { position: absolute; top: 28%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-size: 24px; line-height: 1; display: grid; place-items: center; }
.hb-prev { right: -14px; }
.hb-next { left: -14px; }
.hb-nav[disabled] { opacity: 0; pointer-events: none; }

/* عناوين مرقّمة */
.hb-titles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.hb-titles li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.hb-titles .n { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; color: var(--c, var(--accent)); min-width: 30px; }
.hb-titles a { font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-titles .meta { font-size: 12.5px; }
.hb-main .hb-titles { grid-template-columns: 1fr 1fr; }

/* شريط داكن */
.hb-band { margin: 34px 0; }
.hb-band-dark { background: radial-gradient(ellipse at top, #1d2733, #0e1113 70%); color: #fff; padding: 20px 0 46px; }
.hb-band-dark .section-head, .hb-main .hb-dark .section-head { border-color: rgba(255, 255, 255, .15); }
.hb-band-dark .section-head h2, .hb-main .hb-dark .section-head h2 { color: #fff; }
.hb-band-dark .section-head a { color: rgba(255, 255, 255, .7); }
.hb-dark-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.hb-dark-card { background: #121519; border: 1px solid #262b31; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.hb-dark-card .thumb { aspect-ratio: 16 / 10; border-radius: 0; }
.hb-dark-card h3 { font-size: 16.5px; line-height: 1.65; padding: 14px 16px 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-dark-card h3 a { color: #fff; }
.hb-dark-card h3 a:hover { color: var(--topbar-bg, #f8c55a); }
.hb-dark-cat { padding: 0 16px 14px; font-size: 13px; color: #c9ced6; font-weight: 700; margin-top: auto; }
.hb-main .hb-dark { background: #0e1113; padding: 4px 16px 18px; border-radius: var(--radius); margin: 30px 0; }
.hb-main .hb-dark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* بطاقات الكتّاب */
.hb-band-opinion { background: var(--surface-2); padding: 14px 0 40px; }
.hb-opinions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hb-opinion { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hb-opinion h3 { font-size: 17px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-op-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.hb-op-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.hb-op-author b { font-size: 14px; }
.hb-main .hb-opinions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* الواجهة: صورة + عنوان + النسخة الرقمية */
.hb-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.hb-split-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.hb-split-top .thumb { aspect-ratio: 16 / 10.4; border-radius: calc(var(--radius) * .5); order: 2; }
.hb-split-top h2 { font-size: 32px; line-height: 1.55; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hb-split-side .ed-box { position: sticky; top: 76px; }

/* ==========================================================
   النسخة الرقمية ed-*
   ========================================================== */
.ed-box .ed-tabs { margin-bottom: 14px; }
.ed-cover { display: block; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface-2); box-shadow: 0 4px 18px rgba(0, 0, 0, .14); aspect-ratio: 0.72; transition: transform .25s, box-shadow .25s; }
.ed-cover:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.ed-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ed-nocover { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--deep)); }
.ed-info { display: flex; flex-direction: column; text-align: center; margin: 12px 0 10px; gap: 2px; }
.ed-info b { font-family: var(--font-head); font-size: 15.5px; }
.ed-info span { color: var(--muted); font-size: 13.5px; }
.ed-actions { display: flex; gap: 8px; }
.ed-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: var(--btn-radius, 10px); font-weight: 700; font-size: 14.5px; font-family: var(--font-head); transition: .15s; }
.ed-read { background: var(--primary); color: #fff !important; }
.ed-dl { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.ed-btn:hover { filter: brightness(1.08); }
.ed-dl:hover { border-color: var(--primary); color: var(--primary); }
.ed-archive { list-style: none; margin: 0; padding: 0; }
.ed-archive li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ed-archive li:last-child { border-bottom: 0; }
.ed-arc-t { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.ed-arc-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-arc-t small { color: var(--muted); font-size: 12.5px; }
.ed-arc-dl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex-shrink: 0; transition: .15s; }
.ed-arc-dl:hover { background: var(--primary); color: #fff; }
.ed-all { display: block; text-align: center; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--primary); }
.ed-hero { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ed-hero .ed-title { font-size: 20px; border: 0; padding: 0; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ed-hero .ed-title::before, .ed-hero .ed-title::after { content: ""; width: 9px; height: 9px; background: var(--text); flex-shrink: 0; }
.ed-covers, .ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.ed-cover-card { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.ed-cover-card b { font-family: var(--font-head); font-size: 15px; margin-top: 6px; }
.ed-cover-card small { color: var(--muted); font-size: 13px; }
.ed-cover-card .ed-actions { margin-top: 4px; }
.ed-cover-card .ed-btn { padding: 7px 8px; font-size: 13.5px; }
.ed-covers .ed-cover-card .ed-dl { flex: 0 0 42px; }
.ed-covers .is-current .ed-cover { outline: 3px solid var(--accent); outline-offset: 3px; }
.ed-filter { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.ed-filter select { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.ed-filter a { color: var(--primary); font-weight: 700; font-size: 14px; }
.menu > li.quick > a { display: flex; align-items: center; gap: 6px; }
.hb-newsletter { border-radius: var(--radius); }

@media (max-width: 1100px) {
  .hb-split { grid-template-columns: 1fr; }
  .hb-split-side .ed-box { position: static; }
  .hb-split-side .ed-hero .tab-pane.on { display: grid; grid-template-columns: 150px 1fr; gap: 0 18px; align-items: center; }
  .hb-split-side .ed-hero .ed-cover { grid-row: span 2; }
  .hb-cols:not(.hb-cols-3), .hb-dark-grid, .hb-opinions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(n) { padding-inline-start: 14px; padding-inline-end: 0; border-inline-start: 1px solid var(--line); margin-top: 0; }
  .hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(2n+1) { padding-inline-start: 0; padding-inline-end: 14px; border-inline-start: 0; }
  .hb-cols:not(.hb-cols-3) > .hb-simple:nth-child(n+3) { margin-top: 24px; }
  .hb-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 860px) {
  .hb-feature, .hb-split-top { grid-template-columns: 1fr; gap: 14px; }
  .hb-split-top .thumb { order: 0; }
  .hb-split-top h2 { font-size: 25px; }
  .hb-f-body h3, .hb-big h3 { font-size: 21px; }
  .hb-columns { grid-template-columns: 1fr; gap: 0; }
  .hb-titles, .hb-main .hb-titles { grid-template-columns: 1fr; }
  .hb-cols-3 { grid-template-columns: 1fr 1fr; }
  .hb-cols-3 > :nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .hb-cols:not(.hb-cols-3), .hb-cols-3, .hb-dark-grid, .hb-opinions, .hb-main .hb-opinions, .hb-main .hb-dark-grid, .hb-col-more { grid-template-columns: 1fr; }
  .hb-cols > .hb-simple:nth-child(n) { padding: 0; border: 0; margin: 0; }
  .hb-cols > .hb-simple + .hb-simple { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .hb-cols-3 > :nth-child(3) { display: flex; }
  .hb-hl { padding: 14px; }
  .hb-track { grid-auto-columns: 78%; }
  .hb-nav { display: none; }
  .hb-split-side .ed-hero .tab-pane.on { grid-template-columns: 120px 1fr; }
  .ed-covers, .ed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hb-thumb-item .thumb { width: 100px; height: 76px; }
}

/* ==========================================================
   الاستشارات القانونية والإدارية (قسم مميّز) consult-*
   ========================================================== */
.consult-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 12%, var(--surface)); padding: 3px 11px; border-radius: 30px; font-family: var(--font-head); }
.consult-chip-lg { font-size: 14px; padding: 6px 16px; }
.consult-qmark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; margin-inline-end: 8px; flex-shrink: 0; }

/* الواجهة المميّزة للصفحة */
.consult-hero { background: linear-gradient(120deg, #0b2b5c, #1f6feb 60%, #0f9d58); color: #fff; padding: 46px 0 40px; margin-bottom: 26px; position: relative; overflow: hidden; }
.consult-hero::after { content: "⚖"; position: absolute; left: -10px; bottom: -40px; font-size: 220px; opacity: .08; }
.consult-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 5px 14px; border-radius: 30px; font-weight: 700; font-size: 13.5px; }
.consult-hero h1 { font-size: 34px; margin: 14px 0 6px; }
.consult-hero-tag { font-size: 19px; opacity: .92; margin: 0 0 18px; }
.consult-hero-btn { display: inline-block; background: #fff; color: #0b2b5c; font-weight: 800; padding: 11px 26px; border-radius: 30px; font-family: var(--font-head); }
.consult-hero-btn:hover { color: #0b2b5c; transform: translateY(-2px); transition: .2s; }

/* نموذج السؤال */
.consult-ask { padding: 24px; border-top: 4px solid var(--primary); }
.consult-ask h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin-bottom: 4px; }
.consult-kinds { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.consult-kind-opt input { display: none; }
.consult-kind-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 2px solid var(--line); border-radius: 30px; cursor: pointer; font-weight: 700; transition: .15s; }
.consult-kind-opt input:checked + span { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.consult-form .field { margin-bottom: 12px; }
.consult-form label { display: block; margin-bottom: 5px; font-weight: 700; font-size: 14px; }
.consult-form input, .consult-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; box-sizing: border-box; }
.consult-form textarea { resize: vertical; }
.btn-lg { padding: 12px 30px; font-size: 16px; }

/* الفلترة */
.consult-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 4px; }
.consult-filter a { padding: 7px 16px; border-radius: 30px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px; }
.consult-filter a.on { background: var(--c, var(--primary)); color: #fff; }

/* بطاقات الاستشارات */
.consult-list { display: flex; flex-direction: column; gap: 14px; }
.consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.consult-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.consult-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.consult-card.is-feat { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow); }
.consult-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.consult-star { color: #f0a500; }
.consult-q { font-size: 18px; line-height: 1.6; margin: 0 0 8px; display: flex; align-items: baseline; }
.consult-q a { display: inline; }
.consult-card:hover .consult-q a { color: var(--primary); }
.consult-a { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.consult-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.consult-more { color: var(--primary); font-weight: 700; }
.consult-card-sm { padding: 14px 16px; }
.consult-card-sm .consult-q { font-size: 16px; }

/* الاستشارة المفردة */
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--primary); }
.consult-single { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.consult-single h1 { font-size: 27px; line-height: 1.5; margin: 12px 0 22px; }
.consult-block { border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.consult-block-q { background: var(--surface-2); border: 1px solid var(--line); }
.consult-block-a { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line)); }
.consult-block-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-family: var(--font-head); font-size: 17px; margin-bottom: 10px; }
.consult-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--muted); color: #fff; font-weight: 800; }
.consult-ic-a { background: var(--primary); }
.consult-block-body { font-size: 17px; line-height: 2; }
.consult-meta { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.consult-disclaimer { background: #fff8e6; color: #8a6400; border: 1px solid #f0d98a; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 18px 0; }
[data-theme="dark"] .consult-disclaimer { background: #2a2410; color: #e8c874; border-color: #4a3f1a; }
.consult-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border-radius: 12px; padding: 16px 20px; flex-wrap: wrap; }
.consult-cta span { font-weight: 700; }

/* كتلة الرئيسية المميّزة */
.consult-feature { background: linear-gradient(120deg, #0b2b5c, #1f6feb); color: #fff; border-radius: 16px; padding: 26px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; margin: 10px 0; overflow: hidden; position: relative; }
.consult-feature::after { content: "⚖"; position: absolute; left: 10px; top: -30px; font-size: 150px; opacity: .08; }
.consult-feat-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 30px; font-weight: 700; font-size: 12.5px; }
.consult-feature-head h2 { font-size: 26px; margin: 12px 0 4px; }
.consult-feature-head p { opacity: .9; margin: 0 0 16px; font-size: 16px; }
.consult-feat-cta { display: inline-block; background: #fff; color: #0b2b5c; font-weight: 800; padding: 10px 22px; border-radius: 30px; font-family: var(--font-head); }
.consult-feat-list { display: flex; flex-direction: column; gap: 10px; }
.consult-feat-item { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; display: block; transition: .15s; }
.consult-feat-item:hover { background: rgba(255,255,255,.2); color: #fff; }
.consult-feat-item .consult-chip { background: rgba(255,255,255,.22); color: #fff; }
.consult-feat-item b { display: block; margin: 6px 0 3px; color: #fff; font-size: 15.5px; }
.consult-feat-a { font-size: 13px; opacity: .8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ودجة الشريط الجانبي */
.consult-widget { border-top: 4px solid var(--primary); }
.consult-widget .widget-title { display: flex; align-items: center; gap: 6px; }
.consult-w-tag { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.consult-ask-btn { display: block; text-align: center; background: var(--primary); color: #fff !important; font-weight: 800; padding: 10px; border-radius: 10px; font-family: var(--font-head); margin-bottom: 12px; }
.consult-w-list { list-style: none; margin: 0; padding: 0; }
.consult-w-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.consult-w-list li:last-child { border-bottom: 0; }
.consult-w-list b { display: block; font-size: 14px; line-height: 1.6; margin-top: 4px; font-weight: 600; }
.consult-w-list a:hover b { color: var(--primary); }

@media (max-width: 760px) {
  .consult-feature { grid-template-columns: 1fr; }
  .consult-hero h1 { font-size: 26px; }
  .consult-hero-tag { font-size: 16px; }
  .consult-single { padding: 20px 16px; }
}
