/* ============================================================
   HABIB EDUCATION — Blog archive + single post styles
   ============================================================ */
.blog-layout{display:grid; grid-template-columns:1fr 320px; gap:44px; align-items:start;}

/* archive grid */
#blog-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
.blog-card{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-sm); transition:.25s; display:flex; flex-direction:column;}
.blog-card:hover{box-shadow:var(--sh-lg); transform:translateY(-4px); border-color:var(--teal-100);}
.blog-img{height:172px; position:relative;}
.blog-cat{position:absolute; top:12px; left:12px; z-index:3;}
.blog-body{padding:20px 22px 22px; display:flex; flex-direction:column; flex:1;}
.blog-body h3{font-size:19px; line-height:1.3; text-wrap:pretty;}
.blog-body p{color:var(--ink-2); font-size:15px; margin-top:10px; line-height:1.55; flex:1;}
.blog-meta{display:flex; align-items:center; gap:9px; margin-top:18px; color:var(--slate); font-size:13px; font-family:var(--font-head); font-weight:500;}
.blog-meta .av{width:28px;height:28px;border-radius:50%; background:linear-gradient(135deg,var(--teal-300),var(--brand)); color:#fff; display:grid; place-items:center; font-weight:700; font-size:12px;}
.blog-meta .dot2{width:4px;height:4px;border-radius:50%; background:var(--line);}

/* sidebar */
.sidebar{display:flex; flex-direction:column; gap:24px; position:sticky; top:96px;}
.widget{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:24px; box-shadow:var(--sh-sm);}
.widget h4{font-size:16px; margin-bottom:16px; display:flex; align-items:center; gap:9px;}
.widget h4 .bar{width:4px;height:18px;background:var(--brand); border-radius:2px;}
.search-box{display:flex; gap:8px;}
.search-box input{flex:1; padding:11px 14px; border:1.5px solid var(--line); border-radius:var(--r-md); font-family:var(--font-body); font-size:15px;}
.search-box input:focus{outline:none; border-color:var(--brand); box-shadow:0 0 0 4px var(--teal-50);}
.search-box button{width:44px; border-radius:var(--r-md); background:var(--brand); color:#fff; display:grid; place-items:center;}
.search-box button svg{width:18px;height:18px;}
.recent-item{display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line-2);}
.recent-item:last-child{border:none;}
.recent-thumb{width:58px;height:48px;border-radius:10px; flex:none;}
.recent-item b{display:block; font-family:var(--font-head); font-size:14px; font-weight:600; color:var(--ink); line-height:1.3;}
.recent-item small{color:var(--slate); font-size:12.5px;}
.recent-item:hover b{color:var(--brand);}
.cat-item{display:flex; align-items:center; gap:11px; padding:11px 0; border-bottom:1px solid var(--line-2); font-family:var(--font-head); font-size:15px; color:var(--ink-2);}
.cat-item:last-child{border:none;}
.cat-item:hover{color:var(--brand);}
.cat-item .cat-n{margin-left:auto; background:var(--bg-soft); color:var(--slate); font-size:12px; font-weight:600; padding:2px 9px; border-radius:var(--r-pill);}
.cat-item .dot{width:10px;height:10px;border-radius:50%;}
.dot-teal{background:var(--brand);} .dot-amber{background:var(--amber);} .dot-coral{background:var(--coral);} .dot-green{background:var(--green);} .dot-blue{background:var(--blue);}
.widget-cta{background:var(--gradient-teal); color:#fff; border:none;}
.widget-cta h4{color:#fff;} .widget-cta p{color:rgba(255,255,255,.85); font-size:14px; margin-bottom:14px;}
.widget-cta input{width:100%; padding:11px 14px; border:none; border-radius:var(--r-md); font-family:var(--font-body); font-size:15px; margin-bottom:10px;}
.widget-cta .btn{width:100%;}

/* single post */
.post-hero{max-width:820px; margin:0 auto; text-align:center;}
.post-hero h1{font-size:44px; margin-top:16px; text-wrap:balance;}
.post-byline{display:flex; align-items:center; justify-content:center; gap:11px; margin-top:22px; color:var(--slate); font-family:var(--font-head); font-size:15px; font-weight:500;}
.post-byline .av{width:38px;height:38px;border-radius:50%; background:linear-gradient(135deg,var(--teal-300),var(--brand)); color:#fff; display:grid; place-items:center; font-weight:700;}
.post-byline .dot2{width:4px;height:4px;border-radius:50%; background:var(--line);}
.post-feat{max-width:980px; margin:36px auto 0; height:420px; border-radius:var(--r-xl); position:relative; overflow:hidden;}
.post-wrap{max-width:760px; margin:0 auto; display:block; grid-template-columns:none; gap:0;}
.prose{font-size:18px; line-height:1.75; color:var(--ink-2);}
.prose h2{font-size:28px; margin:38px 0 14px; color:var(--ink);}
.prose h3{font-size:21px; margin:28px 0 10px; color:var(--ink);}
.prose p{margin:0 0 18px;}
.prose ul{margin:0 0 18px; padding-left:4px; list-style:none;}
.prose ul li{display:flex; gap:11px; align-items:flex-start; padding:6px 0;}
.prose ul li svg{width:20px;height:20px;flex:none;margin-top:3px;color:var(--brand);}
.prose blockquote{border-left:4px solid var(--brand); background:var(--teal-50); padding:18px 24px; border-radius:0 var(--r-md) var(--r-md) 0; margin:24px 0; font-family:var(--font-head); font-size:19px; color:var(--ink); font-style:italic;}
.share-bar{display:flex; align-items:center; gap:12px; margin:38px 0; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.share-bar span{font-family:var(--font-head); font-weight:600; font-size:14px; color:var(--ink-2);}
.share-bar a{width:42px;height:42px;border-radius:11px; border:1.5px solid var(--line); display:grid; place-items:center; transition:.18s; color:var(--ink-2);}
.share-bar a:hover{border-color:var(--brand); color:var(--brand); background:var(--teal-50); transform:translateY(-2px);}
.share-bar a svg{width:19px;height:19px;}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 36px;}
.post-tag{font-family:var(--font-head);font-size:13px;font-weight:600;color:var(--brand);background:var(--teal-50);padding:5px 13px;border-radius:var(--r-pill);transition:.18s;}
.post-tag:hover{background:var(--teal-100);}
.related{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:24px;}

@media(max-width:980px){
  .blog-layout{grid-template-columns:1fr;}
  .sidebar{position:static; flex-direction:row; flex-wrap:wrap;}
  .sidebar .widget{flex:1; min-width:240px;}
  #blog-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  #blog-grid{grid-template-columns:1fr;}
  .related{grid-template-columns:1fr;}
  .post-hero h1{font-size:31px;}
  .post-feat{height:240px;}
  .prose{font-size:16.5px;}
  .sidebar{flex-direction:column;}
}
