/* ============================================================
   BLOG PAGE — HERO
============================================================ */
.hrb-blog-hero {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 40%, #0F172A 100%);
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hrb-blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hrb-blog-hero__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hrb-blog-hero__label {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); border-radius: 9999px;
  padding: 5px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px;
}
.hrb-blog-hero__label::before {
  content: ''; width: 7px; height: 7px;
  background: #4ADE80; border-radius: 50%;
}
.hrb-blog-hero h1 {
  color: white; font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px; line-height: 1.2;
}
.hrb-blog-hero__sub {
  font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.6;
}
@media (max-width: 767px) {
  .hrb-blog-hero { padding: 100px 0 32px; }
  .hrb-blog-hero h1 { font-size: 1.8rem; }
  .hrb-blog-hero__sub { font-size: 15px; }
}

/* ============================================================
   CATEGORY FILTER BAR
============================================================ */
.hrb-blog-filter-wrap {
  background: white;
  border-bottom: 1px solid #E2E8F0;
  position: sticky; top: 72px; z-index: 100;
}
.hrb-blog-filter {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.hrb-blog-filter::-webkit-scrollbar { display: none; }
.hrb-filter-btn {
  display: inline-flex; align-items: center;
  padding: 7px 18px; border-radius: 9999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: all 0.18s; border: 1px solid #E2E8F0;
  background: white; color: #475569; flex-shrink: 0;
  font-family: inherit;
}
.hrb-filter-btn:hover { border-color: #0D9488; color: #0D9488; }
.hrb-filter-btn--active {
  background: #0D9488; color: white; border-color: #0D9488;
}
.hrb-filter-btn--active:hover {
  background: #14B8A6; color: white; border-color: #14B8A6;
}

/* ============================================================
   BLOG BODY — GRID + SIDEBAR
============================================================ */
.hrb-blog-body { padding: 56px 0 96px; background: #F8FAFC; }
.hrb-blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .hrb-blog-layout { grid-template-columns: 1fr 280px; }
}

/* ============================================================
   CATEGORY TAGS
============================================================ */
.hrb-cat-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 3px 11px; border-radius: 9999px;
  margin-bottom: 14px;
}
.hrb-cat-tag--payroll              { background: #ECFDF5; color: #065F46; }
.hrb-cat-tag--hrms                 { background: #EEF2FF; color: #3730A3; }
.hrb-cat-tag--karnataka-compliance { background: #FFF7ED; color: #92400E; }
.hrb-cat-tag--hr-best-practices    { background: #FFF1F2; color: #9F1239; }
.hrb-cat-tag--hr-technology        { background: #F0F9FF; color: #0369A1; }
.hrb-cat-tag--employee-management  { background: #FDF4FF; color: #7E22CE; }

/* ============================================================
   BLOG CARDS GRID
============================================================ */
.hrb-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .hrb-blog-grid { grid-template-columns: 1fr 1fr; }
}

.hrb-blog-card {
  display: block; text-decoration: none;
  background: white; border: 1px solid #E2E8F0;
  border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.hrb-blog-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.hrb-blog-card__img {
  height: 180px; position: relative; overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.hrb-blog-card__img-inner {
  position: absolute; inset: 0;
}
.hrb-blog-card__img-inner--payroll              { background: linear-gradient(135deg, #059669, #065F46); }
.hrb-blog-card__img-inner--hrms                 { background: linear-gradient(135deg, #4F46E5, #3730A3); }
.hrb-blog-card__img-inner--karnataka-compliance { background: linear-gradient(135deg, #D97706, #92400E); }
.hrb-blog-card__img-inner--hr-best-practices    { background: linear-gradient(135deg, #DB2777, #9F1239); }
.hrb-blog-card__img-inner--hr-technology        { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.hrb-blog-card__img-inner--employee-management  { background: linear-gradient(135deg, #A855F7, #7E22CE); }
.hrb-blog-card__img-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hrb-blog-card__body { padding: 20px 20px 24px; }
.hrb-blog-card__title {
  font-size: 17px; font-weight: 700; color: #0F172A;
  line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hrb-blog-card__excerpt {
  font-size: 14px; color: #64748B; line-height: 1.65; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hrb-blog-card--hidden { display: none !important; }

/* Author */
.hrb-blog-author {
  display: flex; align-items: center; gap: 10px;
}
.hrb-blog-author__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0D9488, #065F46);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.hrb-blog-author__avatar--sm {
  width: 28px; height: 28px; font-size: 11px;
}
.hrb-blog-author__meta {
  font-size: 13px; color: #94A3B8;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.hrb-blog-author__name { font-weight: 600; color: #64748B; }
.hrb-blog-author__sep { color: #CBD5E1; }

/* ============================================================
   SIDEBAR
============================================================ */
.hrb-blog-sidebar { position: sticky; top: 136px; }
.hrb-sidebar-block {
  background: white; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 24px;
  margin-bottom: 20px;
}
.hrb-sidebar-block__heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #1E293B; margin-bottom: 16px;
}

/* Search */
.hrb-blog-search { position: relative; }
.hrb-blog-search__input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border: 1px solid #E2E8F0; border-radius: 12px;
  font-family: inherit; font-size: 14px; color: #0F172A;
  background: #F8FAFC;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.hrb-blog-search__input:focus {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
  background: white;
}
.hrb-blog-search__input::placeholder { color: #94A3B8; }
.hrb-blog-search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #94A3B8; pointer-events: none;
}

/* Popular articles */
.hrb-popular-list { display: flex; flex-direction: column; gap: 14px; }
.hrb-popular-item {
  display: flex; align-items: flex-start; gap: 12px;
  text-decoration: none; color: inherit;
  transition: opacity 0.15s;
}
.hrb-popular-item:hover { opacity: 0.75; }
.hrb-popular-num {
  width: 22px; height: 22px; border-radius: 50%; background: #F0FDFA;
  color: #0D9488; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 2px;
}
.hrb-popular-title {
  font-size: 14px; font-weight: 600; color: #1E293B; line-height: 1.4; margin-bottom: 3px;
}
.hrb-popular-meta { font-size: 12px; color: #94A3B8; }

/* Free tools */
.hrb-tools-list { display: flex; flex-direction: column; gap: 8px; }
.hrb-tool-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #334155;
  text-decoration: none; border: 1px solid #E2E8F0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hrb-tool-link:hover { border-color: #0D9488; color: #0D9488; background: #F0FDFA; }
.hrb-tool-link__icon {
  width: 30px; height: 30px; border-radius: 7px;
  background: #F0FDFA; color: #0D9488;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Book a Demo CTA */
.hrb-sidebar-demo-cta {
  background: linear-gradient(135deg, #0A7075 0%, #064E52 100%);
  border-radius: 16px; padding: 28px 24px; text-align: center;
}
.hrb-sidebar-demo-cta__icon {
  width: 48px; height: 48px; background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.hrb-sidebar-demo-cta__title {
  color: white; font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.hrb-sidebar-demo-cta__sub {
  color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.6; margin-bottom: 20px;
}
.hrb-sidebar-demo-cta__btn {
  display: block; background: #F59E0B; color: #0F172A;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 8px;
  text-decoration: none; transition: background 0.2s;
}
.hrb-sidebar-demo-cta__btn:hover { background: #FBBF24; color: #0F172A; }
.hrb-sidebar-demo-cta__note {
  color: rgba(255,255,255,0.45); font-size: 11px; margin-top: 12px;
}

/* ============================================================
   MOBILE RESPONSIVE
============================================================ */
@media (max-width: 1023px) {
  .hrb-blog-sidebar { position: static; }
}
@media (max-width: 767px) {
  .hrb-blog-body { padding: 36px 0 72px; }
}
