/* Harouga Pro Blog — layout follows the site palette; logical properties so RTL (ar) and LTR (fr/en) both work. */
.hb-blog{--hb-orange:#F97316;--hb-orange-d:#EA580C;--hb-orange-dd:#C2410C;--hb-ink:#0F172A;--hb-muted:#475569;--hb-line:#E2E8F0;--hb-soft:#F8FAFC;--hb-radius:14px;
  box-sizing:border-box;width:100%;max-width:1340px;margin-inline:auto;padding:56px 50px 72px;color:var(--hb-ink);font-family:"IBM Plex Sans Arabic",system-ui,sans-serif}
.hb-blog *,.hb-blog *::before,.hb-blog *::after{box-sizing:border-box}
.hb-blog a{text-decoration:none}
.hb-blog .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Intro */
.hb-intro{margin-bottom:32px}
.hb-kicker{display:flex;align-items:center;gap:12px;margin:0 0 12px;color:var(--hb-orange-dd);font-size:17px;font-weight:700}
.hb-kicker::before{content:"";width:28px;height:3px;border-radius:3px;background:var(--hb-orange)}
.hb-title{margin:0 0 14px;font-size:clamp(30px,4.2vw,46px);line-height:1.25;font-weight:700;color:var(--hb-ink)}
.hb-lead{margin:0;font-size:clamp(16px,1.6vw,19px);line-height:1.7;color:var(--hb-muted)}

/* Toolbar: categories + search */
.hb-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:34px}
.hb-cats ul{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none}
.hb-pill{display:inline-flex;align-items:center;min-height:44px;padding:9px 20px;border:1px solid var(--hb-line);border-radius:8px;background:#fff;color:var(--hb-ink);font-size:15px;font-weight:600;line-height:1.2;transition:border-color .2s,color .2s,background-color .2s,box-shadow .2s}
.hb-pill:hover{border-color:var(--hb-orange);color:var(--hb-orange-dd)}
.hb-pill.is-active{background:var(--hb-orange);border-color:var(--hb-orange);color:#fff;box-shadow:0 10px 22px -14px rgba(249,115,22,.9)}
.hb-pill:focus-visible,.hb-blog a:focus-visible,.hb-search__btn:focus-visible{outline:3px solid var(--hb-ink);outline-offset:3px;border-radius:8px}
.hb-search{position:relative;flex:0 1 340px;min-width:240px;margin:0}
.hb-search input[type=search]{width:100%;height:46px;margin:0;padding-block:0;padding-inline:16px 50px;border:1px solid #CBD5E1;border-radius:8px;background:#fff;color:var(--hb-ink);font:inherit;font-size:15px;transition:border-color .2s,box-shadow .2s}
.hb-search input[type=search]::placeholder{color:#94A3B8}
.hb-search input[type=search]:focus{outline:none;border-color:var(--hb-orange);box-shadow:0 0 0 3px rgba(249,115,22,.22)}
.hb-search__btn{position:absolute;inset-block:3px;inset-inline-end:3px;display:grid;place-items:center;width:40px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--hb-muted);cursor:pointer}
.hb-search__btn:hover{color:var(--hb-orange-dd);background:var(--hb-soft)}

/* Shared meta */
.hb-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}
.hb-badge{display:inline-flex;padding:4px 12px;border-radius:6px;background:#FFF1E6;color:var(--hb-orange-dd);font-size:13px;font-weight:700;line-height:1.5}
.hb-badge:hover{background:#FFE4CC}
.hb-meta__info{display:inline-flex;align-items:center;gap:6px;color:#64748B;font-size:13px}
.hb-time{display:inline-flex;align-items:center;gap:5px}
.hb-ico{flex:0 0 auto}
.hb-more{display:inline-flex;align-items:center;gap:8px;color:var(--hb-orange-dd);font-weight:700;font-size:15px}
.hb-more .hb-arrow{transition:transform .2s ease}
.hb-more:hover{color:var(--hb-orange)}
.hb-blog[dir=ltr] .hb-more:hover .hb-arrow{transform:translateX(3px)}
.hb-blog[dir=rtl] .hb-more:hover .hb-arrow{transform:translateX(-3px)}

/* Featured */
.hb-featured{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:stretch;margin-bottom:48px;border:1px solid var(--hb-line);border-radius:var(--hb-radius);background:#fff;overflow:hidden;box-shadow:0 18px 40px -32px rgba(15,23,42,.35)}
.hb-featured__body{display:flex;flex-direction:column;justify-content:center;padding:32px 36px}
.hb-featured__title{margin:4px 0 14px;font-size:clamp(24px,2.6vw,32px);line-height:1.35;font-weight:700}
.hb-featured__title a{color:var(--hb-ink)}
.hb-featured__title a:hover{color:var(--hb-orange-dd)}
.hb-featured__excerpt{margin:0 0 20px;color:var(--hb-muted);font-size:16px;line-height:1.8}
.hb-featured__media{display:block;min-height:300px;background:var(--hb-ink)}
.hb-featured__media img{display:block;width:100%;height:100%;object-fit:cover}

/* Section heading */
.hb-head{margin-bottom:22px}
.hb-head h2{display:flex;align-items:center;gap:12px;margin:0;font-size:clamp(22px,2.2vw,28px);font-weight:700;color:var(--hb-ink)}
.hb-head h2::before{content:"";flex:0 0 24px;height:3px;border-radius:3px;background:var(--hb-orange)}
.hb-head--line h2::after{content:"";flex:1 1 auto;height:1px;background:var(--hb-line)}
.hb-count{margin:8px 0 0;color:var(--hb-muted);font-size:14px}
.hb-count a{color:var(--hb-orange-dd);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* Grid */
.hb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hb-card{display:flex;flex-direction:column;border:1px solid var(--hb-line);border-radius:var(--hb-radius);background:#fff;overflow:hidden;transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease}
.hb-card:hover{box-shadow:0 22px 40px -30px rgba(15,23,42,.45);transform:translateY(-3px);border-color:#CBD5E1}
.hb-card__media{display:block;aspect-ratio:16/9;background:var(--hb-ink);overflow:hidden}
.hb-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.hb-card:hover .hb-card__media img{transform:scale(1.03)}
.hb-card__body{display:flex;flex-direction:column;flex:1 1 auto;padding:18px 20px 20px}
.hb-card__title{margin:0 0 10px;font-size:19px;line-height:1.45;font-weight:700}
.hb-card__title a{color:var(--hb-ink)}
.hb-card__title a:hover{color:var(--hb-orange-dd)}
.hb-card__excerpt{flex:1 1 auto;margin:0 0 16px;color:var(--hb-muted);font-size:15px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Placeholder image (no featured image) */
.hb-ph{display:grid;place-items:center;width:100%;height:100%;min-height:inherit;aspect-ratio:16/9;color:rgba(255,255,255,.55);
  background:linear-gradient(135deg,#0F172A 0%,#1E293B 60%,#334155 100%)}
.hb-featured__media .hb-ph{aspect-ratio:auto;min-height:300px}

/* Pagination */
.hb-pages{margin-top:40px}
.hb-pages ul{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.hb-page{display:grid;place-items:center;min-width:44px;height:44px;padding:0 10px;border:1px solid var(--hb-line);border-radius:8px;background:#fff;color:var(--hb-ink);font-weight:600;font-size:15px;transition:border-color .2s,color .2s}
a.hb-page:hover{border-color:var(--hb-orange);color:var(--hb-orange-dd)}
.hb-page.is-current{background:var(--hb-orange);border-color:var(--hb-orange);color:#fff}
.hb-page--nav{font-size:22px;line-height:1}
.hb-page.is-disabled{opacity:.4}
.hb-page--gap{border-color:transparent;background:transparent}

/* Empty states */
.hb-empty{max-width:640px;margin:8px auto 0;padding:44px 32px;border:1px dashed #CBD5E1;border-radius:var(--hb-radius);background:var(--hb-soft);text-align:center}
.hb-empty__icon .hb-ph{width:84px;height:84px;margin:0 auto 18px;border-radius:18px;aspect-ratio:1}
.hb-empty__title{margin:0 0 10px;font-size:22px;line-height:1.4;font-weight:700;color:var(--hb-ink)}
.hb-empty p{margin:0 0 22px;color:var(--hb-muted);line-height:1.8}
.hb-empty--small{padding:32px 24px}
.hb-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 22px;border-radius:8px;background:var(--hb-orange);color:#fff!important;font-weight:700;transition:background-color .2s}
.hb-btn:hover{background:var(--hb-orange-d)}

/* Tablet: 2 columns */
@media (max-width:1024px){
  .hb-blog{padding:44px 24px 60px}
  .hb-toolbar{flex-direction:column;align-items:stretch}
  .hb-search{flex:1 1 auto;min-width:0}
  .hb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .hb-featured__body{padding:26px 26px}
}
/* Mobile: 1 column, featured stacked (image first) */
@media (max-width:767px){
  .hb-blog{padding:32px 16px 48px}
  .hb-cats ul{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .hb-pill{flex:0 0 auto}
  .hb-featured{grid-template-columns:1fr}
  .hb-featured__media{order:-1;min-height:0;aspect-ratio:16/9}
  .hb-featured__media .hb-ph{min-height:0}
  .hb-featured__body{padding:20px}
  .hb-grid{grid-template-columns:1fr}
  .hb-empty{padding:32px 20px}
}
@media (prefers-reduced-motion:reduce){.hb-card,.hb-card__media img,.hb-more .hb-arrow{transition:none}.hb-card:hover{transform:none}}
