/* ===========================================================
   ASKIN Softech — Blog stylesheet (additive to style.css)
   Scoped to /blogs/ pages. Uses the same design tokens as the
   main site (:root vars defined in style.css).
   =========================================================== */

/* ---- Post hero ---- */
.post-hero{
  position: relative;
  padding: 180px 0 56px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.post-hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,33,61,0.90) 0%, rgba(20,33,61,0.86) 55%, rgba(20,33,61,0.92) 100%);
}
.post-hero .container{ position: relative; z-index: 1; }
.post-breadcrumb{ font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 18px; display:flex; gap:8px; align-items:center; }
.post-breadcrumb a{ color: rgba(255,255,255,0.8); }
.post-breadcrumb a:hover{ color: #fff; }
.post-breadcrumb span{ color: rgba(255,255,255,0.4); }

.badge{
  display:inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.badge--navy{ background: rgba(43,76,140,0.35); color: #cdd8f2; border: 1px solid rgba(205,216,242,0.35); }
.badge--green{ background: rgba(30,159,76,0.28); color: #b7ecc4; border: 1px solid rgba(183,236,196,0.4); }

.post-hero h1{
  color: #fff;
  font-size: 40px;
  line-height: 1.18;
  max-width: 820px;
  margin-bottom: 20px;
}
.post-meta{
  display:flex; align-items:center; gap:10px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}
.post-meta .dot-sep{ color: rgba(255,255,255,0.4); }

/* ---- Post body layout ---- */
.post-body-section{ padding: 72px 0 96px; }
.post-container{ max-width: 800px; }

.post-content{ font-size: 17px; line-height: 1.75; color: var(--text); }
.post-content h2{
  font-size: 24px;
  margin-top: 44px;
  margin-bottom: 16px;
  color: var(--ink);
}
.post-content h3{ font-size: 19px; margin-top: 28px; margin-bottom: 12px; color: var(--ink); }
.post-content p{ margin-bottom: 18px; }
.post-content .post-lead{
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 28px;
}
.post-content ul, .post-content ol{
  margin: 0 0 22px 0;
  padding-left: 22px;
}
.post-content ul{ list-style: none; padding-left: 0; }
.post-content ul li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.post-content ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.post-content ol{ list-style: decimal; }
.post-content ol li{ margin-bottom: 12px; padding-left: 4px; }
.post-content ol li::marker{ font-weight: 600; color: var(--navy-700); }
.post-content a{ color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover{ color: var(--green-600); }
.post-content .post-closing{
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

/* ---- CTA card ---- */
.post-cta-card{
  margin-top: 56px;
  padding: 32px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  text-align: center;
}
.post-cta-card h3{ color: #fff; font-size: 22px; margin-bottom: 10px; }
.post-cta-card p{ color: rgba(255,255,255,0.75); margin-bottom: 20px; font-size: 15px; }

/* ---- Tags & nav ---- */
.post-tags{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 32px; }
.post-tags .tag{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--navy-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.post-nav{ margin-top: 32px; }

/* ---- Blog index / listing page ---- */
.blog-index-hero{ padding: 160px 0 56px; }
.blog-filter-bar{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-bottom: 40px;
}
.blog-filter-bar button{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.blog-layout{
  display:grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items:start;
}
.blog-main{ min-width: 0; }

.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 640px){ .blog-grid{ grid-template-columns: 1fr; } }

/* ---- Sidebar (WordPress-style widgets) ---- */
.blog-sidebar{
  display:flex;
  flex-direction:column;
  gap: 24px;
  position: sticky;
  top: 100px;
}
.widget{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.category-list{ list-style:none; }
.category-list li{ border-bottom: 1px solid var(--border); }
.category-list li:last-child{ border-bottom:none; }
.category-list button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  width:100%;
  background:none;
  border:none;
  padding: 11px 2px;
  font-size: 14px;
  text-align:left;
  color: var(--text-muted);
  cursor:pointer;
  transition: color .2s var(--ease);
}
.category-list button:hover{ color: var(--navy-700); }
.category-list li.is-active button{ color: var(--navy-700); font-weight: 600; }
.category-list .count{
  flex-shrink:0;
  font-size: 11.5px;
  font-weight:600;
  color: var(--text-faint);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.category-list li.is-active .count{ background: var(--navy-100); color: var(--navy-700); }

.recent-list{ list-style:none; display:flex; flex-direction:column; gap: 16px; }
.recent-list a{ display:flex; gap: 12px; }
.recent-list .thumb{ width: 56px; height:56px; border-radius:8px; overflow:hidden; flex-shrink:0; }
.recent-list .thumb img{ width:100%; height:100%; object-fit:cover; }
.recent-meta{ display:flex; flex-direction:column; gap:4px; }
.recent-title{ font-size: 13.5px; font-weight:600; line-height:1.35; color: var(--ink); }
.recent-list a:hover .recent-title{ color: var(--navy-700); }
.recent-date{ font-size: 12px; color: var(--text-faint); }

.widget-cta{ background: var(--navy); text-align:center; }
.widget-cta h3{ color:#fff; font-size: 17px; margin-bottom: 8px; }
.widget-cta p{ color: rgba(255,255,255,0.75); font-size: 13.5px; margin-bottom: 18px; }

@media (max-width: 980px){
  .blog-layout{ grid-template-columns: 1fr; }
  .blog-sidebar{ position:static; }
}

.blog-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card .thumb{ position:relative; aspect-ratio: 16/10; overflow:hidden; }
.blog-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-card-body{ padding: 20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.blog-card-body .badge{ margin-bottom: 12px; }
.blog-card-body .badge--navy{ background: var(--navy-100); color: var(--navy-700); border: none; }
.blog-card-body .badge--green{ background: var(--green-100); color: var(--green-600); border: none; }
.blog-card-body h3{ font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.blog-card-body h3 a{ color: var(--ink); }
.blog-card-body h3 a:hover{ color: var(--navy-700); }
.blog-card-meta{ margin-top: auto; font-size: 13px; color: var(--text-muted); padding-top: 12px; }

.blog-pagination{ display:flex; justify-content:center; gap: 8px; margin-top: 48px; }
.blog-pagination button{
  border: 1px solid var(--border);
  background:#fff;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-weight:600;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor:pointer;
}
.blog-pagination button.is-active{ background: var(--navy); border-color: var(--navy); color:#fff; }
.blog-pagination button:hover:not(.is-active){ border-color: var(--navy-700); color: var(--navy-700); }

@media (max-width: 640px){
  .post-hero h1{ font-size: 30px; }
  .post-hero{ padding-top: 150px; }
}
