
/*
 * HastiGem Blog UI — v1.1.20
 * RTL, glass, light comfort + dark graphite
 */
body.hblog-page-active{
  background:#f6f6f3;
}

body.hblog-page-active .site-main{
  overflow:hidden;
}

.hblog-page{
  --hblog-bg:#f6f6f3;
  --hblog-surface:rgba(255,255,252,.84);
  --hblog-surface-2:rgba(255,255,252,.66);
  --hblog-surface-3:rgba(255,255,252,.48);
  --hblog-text:#202124;
  --hblog-muted:#6f746f;
  --hblog-line:rgba(34,34,34,.075);
  --hblog-line-2:rgba(34,34,34,.045);
  --hblog-primary:#202124;
  --hblog-primary-2:#37393d;
  --hblog-primary-text:#fff;
  --hblog-accent:#4b5563;
  --hblog-accent-soft:rgba(75,85,99,.09);
  --hblog-thumb-1:#33383f;
  --hblog-thumb-2:#16181c;
  --hblog-shadow:0 22px 54px rgba(35,38,36,.08);
  --hblog-shadow-2:0 12px 30px rgba(35,38,36,.045);
  --hblog-shadow-3:0 16px 32px rgba(35,38,36,.065);
  --hblog-glow:rgba(75,85,99,.10);
  --hblog-green:#34c759;
  --hblog-yellow:#ffcc00;
  --hblog-ease:cubic-bezier(.22,.9,.25,1);
  width:min(1240px, calc(100% - 28px));
  margin:0 auto;
  padding:0 0 42px;
  color:var(--hblog-text);
  position:relative;
  direction:rtl;
}

.hblog-page[data-hblog-theme="dark"]{
  --hblog-bg:#101114;
  --hblog-surface:rgba(31,32,36,.76);
  --hblog-surface-2:rgba(255,255,255,.06);
  --hblog-surface-3:rgba(255,255,255,.03);
  --hblog-text:#f4f4f5;
  --hblog-muted:rgba(244,244,245,.60);
  --hblog-line:rgba(255,255,255,.10);
  --hblog-line-2:rgba(255,255,255,.07);
  --hblog-primary:#e5e7eb;
  --hblog-primary-2:#9ca3af;
  --hblog-primary-text:#111114;
  --hblog-accent:#b4bcc9;
  --hblog-accent-soft:rgba(156,163,175,.11);
  --hblog-thumb-1:#303238;
  --hblog-thumb-2:#111114;
  --hblog-shadow:0 30px 84px rgba(0,0,0,.34);
  --hblog-shadow-2:0 16px 40px rgba(0,0,0,.24);
  --hblog-shadow-3:0 18px 36px rgba(0,0,0,.22);
  --hblog-glow:rgba(156,163,175,.13);
  --hblog-yellow:#ffd24d;
}

.hblog-page::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 78% 0%, var(--hblog-glow), transparent 34%),
    radial-gradient(circle at 10% 82%, var(--hblog-accent-soft), transparent 28%),
    var(--hblog-bg);
}

.hblog-page::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(var(--hblog-line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hblog-line-2) 1px, transparent 1px);
  background-size:38px 38px;
  mask-image:radial-gradient(circle at center, black 0%, transparent 72%);
  -webkit-mask-image:radial-gradient(circle at center, black 0%, transparent 72%);
  opacity:.65;
}

.hblog-page *,
.hblog-page *::before,
.hblog-page *::after{
  box-sizing:border-box;
}

.hblog-page a{
  color:inherit;
  text-decoration:none;
}

.hblog-page button,
.hblog-page input,
.hblog-page textarea{
  font-family:inherit;
}

.hblog-page svg{
  width:18px;
  height:18px;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hblog-modebar{
  width:max-content;
  max-width:100%;
  min-height:48px;
  padding:6px;
  border-radius:999px;
  background:var(--hblog-surface);
  border:1px solid var(--hblog-line);
  box-shadow:var(--hblog-shadow-2);
  backdrop-filter:blur(22px) saturate(180%);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin:0 auto 16px;
  position:relative;
  animation:hblogFadeDown .55s var(--hblog-ease) both;
}

.hblog-modebar button{
  min-height:34px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--hblog-muted);
  font-size:11.5px;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  padding:0 14px;
  transition:.18s ease;
}

.hblog-modebar button.is-active{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.hblog-page[data-hblog-theme="dark"] .hblog-modebar button.is-active{
  background:#fff;
  color:#111114;
}

.hblog-glow{
  position:fixed;
  inset:0;
  overflow:hidden;
  z-index:-1;
  pointer-events:none;
}

.hblog-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(3px);
  opacity:.72;
  background:radial-gradient(circle at 36% 34%, var(--hblog-surface), var(--hblog-accent-soft) 45%, transparent 74%);
}

.hblog-orb.one{
  width:180px;
  height:180px;
  right:9%;
  top:110px;
  animation:hblogFloatOne 9s ease-in-out infinite;
}

.hblog-orb.two{
  width:230px;
  height:230px;
  left:7%;
  top:46%;
  animation:hblogFloatTwo 11s ease-in-out infinite;
}

.hblog-card,
.hblog-hero,
.hblog-actionbar,
.hblog-archive-cats,
.hblog-featured,
.hblog-newsletter{
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  box-shadow:var(--hblog-shadow-2);
  backdrop-filter:blur(22px) saturate(180%);
  -webkit-backdrop-filter:blur(22px) saturate(180%);
}

.hblog-hero{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  padding:32px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  gap:22px;
  align-items:center;
  box-shadow:var(--hblog-shadow);
  background:
    radial-gradient(circle at 80% 12%, var(--hblog-accent-soft), transparent 32%),
    radial-gradient(circle at 12% 90%, var(--hblog-surface-2), transparent 30%),
    var(--hblog-surface);
  animation:hblogCardIn .64s var(--hblog-ease) both;
}

.hblog-hero::before{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  top:-135px;
  right:-115px;
  border-radius:999px;
  background:radial-gradient(circle, var(--hblog-surface-2), transparent 68%);
  animation:hblogPulse 4.5s ease-in-out infinite;
  pointer-events:none;
}

.hblog-kicker{
  position:relative;
  z-index:2;
  width:max-content;
  max-width:100%;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  color:var(--hblog-muted);
  font-size:12px;
  font-weight:950;
}

.hblog-kicker i{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--hblog-green);
  box-shadow:0 0 0 6px rgba(52,199,89,.14);
  animation:hblogLiveDot 1.8s ease-in-out infinite;
}

.hblog-hero h1{
  position:relative;
  z-index:2;
  margin:18px 0 0;
  max-width:760px;
  font-size:clamp(34px,4vw,58px);
  line-height:1.13;
  letter-spacing:-1.2px;
  font-weight:990;
}

.hblog-hero h1 span{
  color:var(--hblog-accent);
}

.hblog-hero p{
  position:relative;
  z-index:2;
  margin:14px 0 0;
  max-width:660px;
  color:var(--hblog-muted);
  font-size:14px;
  line-height:2.1;
  font-weight:750;
}

.hblog-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
  position:relative;
  z-index:2;
}

.hblog-stat{
  min-width:112px;
  min-height:64px;
  padding:10px 12px;
  border-radius:20px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  box-shadow:0 10px 24px rgba(0,0,0,.035);
}

.hblog-stat strong{
  display:block;
  font-size:20px;
  font-weight:990;
}

.hblog-stat span{
  display:block;
  color:var(--hblog-muted);
  margin-top:4px;
  font-size:10.5px;
  font-weight:850;
}

.hblog-search-card{
  position:relative;
  z-index:2;
  padding:18px;
  border-radius:28px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  box-shadow:var(--hblog-shadow-2);
  animation:hblogFloatCard 5.5s ease-in-out infinite;
}

.hblog-search-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.hblog-search-title strong{
  font-size:15px;
  font-weight:950;
}

.hblog-search-title span{
  color:var(--hblog-muted);
  font-size:11px;
  font-weight:850;
}

.hblog-searchbox{
  position:relative;
}

.hblog-searchbox svg{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--hblog-muted);
  pointer-events:none;
}

.hblog-searchbox input{
  width:100%;
  min-height:54px;
  border-radius:20px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  color:var(--hblog-text);
  outline:0;
  padding:12px 44px 12px 14px;
  font-size:14px;
  font-weight:800;
  transition:.18s ease;
}

.hblog-searchbox input::placeholder{
  color:var(--hblog-muted);
}

.hblog-searchbox input:focus{
  border-color:var(--hblog-accent);
  box-shadow:0 0 0 4px var(--hblog-accent-soft);
}

.hblog-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin:28px 4px 14px;
  animation:hblogFadeUp .65s var(--hblog-ease) both;
}

.hblog-section-head h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.5px;
  font-weight:980;
}

.hblog-section-head p{
  margin:6px 0 0;
  color:var(--hblog-muted);
  font-size:12px;
  font-weight:800;
}

.hblog-section-head a,
.hblog-mini-link{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 13px;
  border-radius:999px;
  background:var(--hblog-surface);
  border:1px solid var(--hblog-line);
  color:var(--hblog-text);
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 20px rgba(0,0,0,.035);
  white-space:nowrap;
}

.hblog-archive-cats{
  margin:18px 2px;
  padding:14px;
  border-radius:30px;
  animation:hblogFadeUp .68s var(--hblog-ease) both;
}

.hblog-archive-cat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.hblog-archive-cat-head strong{
  display:block;
  font-size:15px;
  font-weight:970;
}

.hblog-archive-cat-head span{
  display:block;
  margin-top:4px;
  color:var(--hblog-muted);
  font-size:11px;
  font-weight:830;
  line-height:1.8;
}

.hblog-cat-scroll{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding:2px 0 3px;
  scrollbar-width:none;
  mask-image:linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.hblog-cat-scroll::-webkit-scrollbar{
  display:none;
}

.hblog-cat-chip{
  flex:0 0 auto;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  color:var(--hblog-text);
  font-size:11.5px;
  font-weight:930;
  box-shadow:0 8px 18px rgba(0,0,0,.025);
  transition:.18s ease;
  white-space:nowrap;
}

.hblog-cat-chip:hover{
  transform:translateY(-1px);
  box-shadow:var(--hblog-shadow-3);
}

.hblog-cat-chip.is-active{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  border-color:transparent;
}

.hblog-page[data-hblog-theme="dark"] .hblog-cat-chip.is-active{
  background:#fff;
  color:#111114;
}

.hblog-cat-chip i{
  width:7px;
  height:7px;
  border-radius:999px;
  background:currentColor;
  opacity:.55;
  flex:0 0 7px;
}

.hblog-cat-chip small{
  min-width:24px;
  min-height:23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--hblog-surface);
  color:var(--hblog-muted);
  border:1px solid var(--hblog-line);
  font-size:10px;
  font-weight:900;
  padding:2px 6px;
}

.hblog-featured-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:16px;
  align-items:stretch;
}

.hblog-featured{
  min-height:365px;
  position:relative;
  overflow:hidden;
  border-radius:32px;
  color:#fff;
  box-shadow:var(--hblog-shadow);
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    radial-gradient(circle at 78% 18%, var(--hblog-accent-soft), transparent 30%),
    linear-gradient(145deg,var(--hblog-thumb-1),var(--hblog-thumb-2));
}

.hblog-featured h3{
  margin:18px 0 0;
  max-width:620px;
  font-size:34px;
  line-height:1.35;
  letter-spacing:-.7px;
  font-weight:980;
}

.hblog-featured p{
  margin:14px 0 0;
  max-width:640px;
  color:rgba(255,255,255,.70);
  font-size:13px;
  line-height:2;
  font-weight:750;
}

.hblog-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.hblog-meta span,
.hblog-meta a{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.78);
  font-size:10.5px;
  font-weight:850;
  backdrop-filter:blur(12px);
}

.hblog-read-btn{
  width:max-content;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:18px;
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  font-size:13px;
  font-weight:980;
  box-shadow:0 16px 32px rgba(0,0,0,.14);
}

.hblog-page[data-hblog-theme="dark"] .hblog-read-btn{
  background:#fff;
  color:#111;
}

.hblog-side-stack{
  display:grid;
  gap:16px;
}

.hblog-side-card{
  border-radius:28px;
  padding:18px;
  min-height:174px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  position:relative;
}

.hblog-side-card strong{
  display:block;
  font-size:16px;
  font-weight:970;
  line-height:1.7;
}

.hblog-side-card p{
  margin:8px 0 0;
  color:var(--hblog-muted);
  font-size:12px;
  line-height:1.9;
  font-weight:750;
}

.hblog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.hblog-post-card{
  min-height:330px;
  padding:14px;
  border-radius:30px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  box-shadow:var(--hblog-shadow-2);
  display:flex;
  flex-direction:column;
  transition:.22s var(--hblog-ease);
  overflow:hidden;
}

.hblog-post-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--hblog-shadow);
}

.hblog-thumb{
  min-height:148px;
  border-radius:22px;
  background:
    radial-gradient(circle at 80% 18%, var(--hblog-accent-soft), transparent 32%),
    linear-gradient(145deg,var(--hblog-thumb-1),var(--hblog-thumb-2));
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:12px;
  color:#fff;
}

.hblog-thumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.10),transparent);
  transform:translateX(120%);
  animation:hblogSoftSweep 5.8s ease-in-out infinite;
}

.hblog-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hblog-thumb.has-image::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg, transparent 20%, rgba(0,0,0,.42));
}

.hblog-thumb-icon{
  position:relative;
  z-index:2;
  width:46px;
  height:46px;
  border-radius:18px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.13);
  display:grid;
  place-items:center;
  backdrop-filter:blur(14px);
  animation:hblogIconFloat 4.6s ease-in-out infinite;
}

.hblog-post-body{
  padding:14px 4px 0;
  display:flex;
  flex-direction:column;
  flex:1;
}

.hblog-post-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.hblog-category{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:var(--hblog-surface-2);
  color:var(--hblog-muted);
  font-size:10.5px;
  font-weight:950;
}

.hblog-time{
  color:var(--hblog-muted);
  font-size:10.5px;
  font-weight:850;
  white-space:nowrap;
}

.hblog-post-card h3{
  margin:0;
  font-size:17px;
  line-height:1.75;
  font-weight:970;
  letter-spacing:-.2px;
}

.hblog-post-card h3 a{
  color:var(--hblog-text);
}

.hblog-post-card p{
  margin:8px 0 0;
  color:var(--hblog-muted);
  font-size:12px;
  line-height:2;
  font-weight:750;
}

.hblog-post-link{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--hblog-text);
  font-size:12px;
  font-weight:950;
}

.hblog-post-link span{
  color:var(--hblog-accent);
}

.hblog-pagination{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.hblog-pagination .page-numbers{
  min-width:38px;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  color:var(--hblog-text);
  font-size:12px;
  font-weight:900;
  padding:8px 10px;
}

.hblog-pagination .page-numbers.current{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  border-color:transparent;
}

.hblog-actionbar{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 2px 18px;
  padding:10px;
  border-radius:26px;
  animation:hblogFadeUp .62s var(--hblog-ease) both;
}

.hblog-actionbar-main{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.hblog-action-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 13px;
  border-radius:17px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  color:var(--hblog-text);
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(0,0,0,.025);
  transition:.18s ease;
  white-space:nowrap;
  cursor:pointer;
}

.hblog-action-btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--hblog-shadow-3);
}

.hblog-action-btn.primary{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  border-color:transparent;
  box-shadow:0 12px 26px rgba(0,0,0,.12);
}

.hblog-page[data-hblog-theme="dark"] .hblog-action-btn.primary{
  background:#fff;
  color:#111114;
}

.hblog-action-note{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 13px;
  border-radius:17px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  color:var(--hblog-muted);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
  margin-inline-start:auto;
}

.hblog-action-note i{
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--hblog-green);
  box-shadow:0 0 0 6px rgba(52,199,89,.12);
  flex:0 0 7px;
}

.hblog-single-hero{
  position:relative;
  overflow:hidden;
  border-radius:34px;
  border:1px solid var(--hblog-line);
  background:
    radial-gradient(circle at 80% 10%, var(--hblog-accent-soft), transparent 30%),
    linear-gradient(145deg,var(--hblog-thumb-1),var(--hblog-thumb-2));
  color:#fff;
  box-shadow:var(--hblog-shadow);
  padding:30px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  gap:20px;
  align-items:end;
  animation:hblogCardIn .65s var(--hblog-ease) both;
}

.hblog-single-hero::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-120px;
  top:-140px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,255,255,.105), transparent 70%);
  animation:hblogPulse 4.8s ease-in-out infinite;
}

.hblog-single-hero > *{
  position:relative;
  z-index:2;
}

.hblog-single-hero h1{
  margin:18px 0 0;
  font-size:clamp(31px,3.7vw,48px);
  line-height:1.32;
  letter-spacing:-1px;
  font-weight:990;
}

.hblog-single-hero p{
  margin:14px 0 0;
  color:rgba(255,255,255,.74);
  font-size:13.5px;
  line-height:2.05;
  font-weight:760;
  max-width:700px;
}

.hblog-ux-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.hblog-ux-meta .hblog-ux-chip{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.105);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.82);
  font-size:10.7px;
  font-weight:900;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  transition:.18s ease;
}

.hblog-ux-meta .hblog-ux-chip:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.15);
  color:#fff;
}

.hblog-ux-meta svg{
  width:14px;
  height:14px;
}

.hblog-author{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:18px;
}

.hblog-author-avatar{
  width:52px;
  height:52px;
  border-radius:20px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.14);
  display:grid;
  place-items:center;
  backdrop-filter:blur(12px);
  box-shadow:0 14px 28px rgba(0,0,0,.14);
  flex:0 0 52px;
}

.hblog-author strong{
  display:block;
  font-size:14px;
  font-weight:960;
}

.hblog-author span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.70);
  font-size:11px;
  font-weight:800;
}

.hblog-hero-info{
  padding:18px;
  border-radius:28px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 14px 28px rgba(0,0,0,.12);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  display:flex;
  flex-direction:column;
  gap:12px;
  animation:hblogFloatCard 6s ease-in-out infinite;
}

.hblog-hero-line{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}

.hblog-hero-line span{
  color:rgba(255,255,255,.68);
  font-size:11px;
  font-weight:850;
}

.hblog-hero-line strong{
  font-size:13px;
  font-weight:960;
  color:#fff;
}

.hblog-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:18px;
  align-items:start;
  margin-top:18px;
}

.hblog-content-stack{
  display:grid;
  gap:16px;
}

.hblog-sidebar{
  position:sticky;
  top:74px;
  display:grid;
  gap:16px;
}

.hblog-card{
  border-radius:30px;
  padding:18px;
  animation:hblogFadeUp .7s var(--hblog-ease) both;
  overflow:hidden;
  position:relative;
}

.hblog-card::before{
  content:"";
  position:absolute;
  width:140px;
  height:140px;
  left:-72px;
  bottom:-72px;
  border-radius:999px;
  background:radial-gradient(circle,var(--hblog-accent-soft),transparent 70%);
  animation:hblogPulse 5s ease-in-out infinite;
  pointer-events:none;
}

.hblog-card > *{
  position:relative;
  z-index:2;
}

.hblog-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.hblog-card-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.hblog-card-icon{
  width:42px;
  height:42px;
  border-radius:16px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line);
  display:grid;
  place-items:center;
  flex:0 0 42px;
  box-shadow:0 8px 18px rgba(0,0,0,.035);
}

.hblog-card-title strong{
  display:block;
  font-size:16px;
  font-weight:970;
  line-height:1.6;
}

.hblog-card-title span{
  display:block;
  margin-top:4px;
  color:var(--hblog-muted);
  font-size:11px;
  font-weight:800;
}

.hblog-article-content{
  font-size:14px;
  line-height:2.25;
  font-weight:760;
  color:var(--hblog-text);
}

.hblog-article-content p{
  margin:0 0 14px;
}

.hblog-article-content h2,
.hblog-article-content h3{
  margin:24px 0 12px;
  line-height:1.55;
  font-weight:980;
  letter-spacing:-.35px;
}

.hblog-article-content h2{
  font-size:22px;
}

.hblog-article-content h3{
  font-size:18px;
}

.hblog-article-content ul,
.hblog-article-content ol{
  margin:0 0 16px;
  padding:0 18px 0 0;
}

.hblog-article-content li{
  margin-bottom:10px;
}

.hblog-article-content a{
  color:var(--hblog-accent);
  font-weight:900;
}

.hblog-rating-layout{
  display:grid;
  grid-template-columns:minmax(250px,.85fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.hblog-rating-summary{
  padding:16px;
  border-radius:24px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  display:grid;
  gap:14px;
  box-shadow:0 12px 26px rgba(0,0,0,.03);
}

.hblog-rating-big{
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.hblog-rating-big strong{
  font-size:42px;
  line-height:1;
  font-weight:990;
  letter-spacing:-1px;
}

.hblog-rating-big span{
  color:var(--hblog-muted);
  font-size:12px;
  font-weight:850;
  margin-bottom:4px;
}

.hblog-stars{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.hblog-star{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  color:var(--hblog-muted);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.03);
}

.hblog-star svg{
  width:18px;
  height:18px;
}

.hblog-star.is-active,
.hblog-star:hover{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  border-color:transparent;
  transform:translateY(-2px);
}

.hblog-page[data-hblog-theme="dark"] .hblog-star.is-active,
.hblog-page[data-hblog-theme="dark"] .hblog-star:hover{
  background:#fff;
  color:#111114;
}

.hblog-rating-note{
  color:var(--hblog-muted);
  font-size:11.5px;
  line-height:1.9;
  font-weight:820;
}

.hblog-rating-bars{
  display:grid;
  gap:10px;
}

.hblog-bar-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 34px;
  align-items:center;
  gap:10px;
}

.hblog-bar-row span,
.hblog-bar-row strong{
  font-size:11px;
  font-weight:900;
  color:var(--hblog-text);
}

.hblog-bar-row span{
  color:var(--hblog-muted);
}

.hblog-bar-track{
  height:10px;
  border-radius:999px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  overflow:hidden;
  position:relative;
}

.hblog-bar-fill{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--w,50%);
  background:linear-gradient(90deg,var(--hblog-primary),var(--hblog-accent));
  border-radius:inherit;
}

.hblog-page[data-hblog-theme="dark"] .hblog-bar-fill{
  background:linear-gradient(90deg,#ffffff,#bfc6d1);
}

.hblog-comments{
  display:grid;
  gap:12px;
}

.hblog-comment{
  padding:14px;
  border-radius:22px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  box-shadow:0 10px 22px rgba(0,0,0,.025);
}

.hblog-comment-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.hblog-comment-user{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.hblog-avatar{
  width:42px;
  height:42px;
  border-radius:16px;
  background:var(--hblog-surface);
  border:1px solid var(--hblog-line);
  display:grid;
  place-items:center;
  box-shadow:0 8px 18px rgba(0,0,0,.03);
  flex:0 0 42px;
}

.hblog-comment-user strong{
  display:block;
  font-size:13px;
  font-weight:950;
}

.hblog-comment-user span{
  display:block;
  margin-top:3px;
  color:var(--hblog-muted);
  font-size:10.5px;
  font-weight:820;
}

.hblog-comment-rate{
  display:flex;
  align-items:center;
  gap:3px;
  color:var(--hblog-yellow);
}

.hblog-comment-rate svg{
  width:14px;
  height:14px;
  fill:currentColor;
  stroke:none;
}

.hblog-comment p{
  margin:0;
  color:var(--hblog-text);
  font-size:12.5px;
  line-height:2.05;
  font-weight:760;
}

.hblog-comment-awaiting{
  display:inline-flex;
  margin-top:8px;
  color:var(--hblog-muted);
  font-size:10.5px;
  font-weight:850;
}

.hblog-comment-form .comment-form{
  display:grid;
  gap:12px;
}

.hblog-comment-form .comment-form-author,
.hblog-comment-form .comment-form-email,
.hblog-comment-form .comment-form-url,
.hblog-comment-form .comment-form-comment,
.hblog-comment-form .comment-form-rating{
  margin:0;
  display:grid;
  gap:7px;
}

.hblog-comment-form label{
  font-size:11.5px;
  font-weight:900;
  color:var(--hblog-text);
}

.hblog-comment-form input:not([type="submit"]),
.hblog-comment-form textarea{
  width:100%;
  border-radius:18px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface-2);
  color:var(--hblog-text);
  outline:0;
  padding:12px 14px;
  font-size:12.5px;
  font-weight:820;
  transition:.18s ease;
}

.hblog-comment-form textarea{
  min-height:130px;
  resize:vertical;
  line-height:2;
}

.hblog-comment-form input:focus,
.hblog-comment-form textarea:focus{
  border-color:var(--hblog-accent);
  box-shadow:0 0 0 4px var(--hblog-accent-soft);
}

.hblog-comment-form .form-submit{
  margin:0;
}

.hblog-comment-form .submit{
  min-height:44px;
  padding:10px 16px;
  border-radius:17px;
  border:0;
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  font-size:12.5px;
  font-weight:960;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.hblog-page[data-hblog-theme="dark"] .hblog-comment-form .submit{
  background:#fff;
  color:#111114;
}

.hblog-form-stars{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.hblog-form-stars button{
  width:34px;
  height:34px;
  border-radius:13px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  color:var(--hblog-muted);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.18s ease;
}

.hblog-form-stars button.is-active{
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  border-color:transparent;
}

.hblog-page[data-hblog-theme="dark"] .hblog-form-stars button.is-active{
  background:#fff;
  color:#111114;
}

.hblog-share-list,
.hblog-toc-list{
  display:grid;
  gap:10px;
}

.hblog-share-btn,
.hblog-toc-item{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:18px;
  background:var(--hblog-surface-2);
  border:1px solid var(--hblog-line-2);
  box-shadow:0 10px 22px rgba(0,0,0,.03);
  transition:.18s ease;
  cursor:pointer;
}

.hblog-share-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--hblog-shadow-3);
}

.hblog-share-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.hblog-share-ico{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--hblog-surface);
  border:1px solid var(--hblog-line);
  box-shadow:0 8px 18px rgba(0,0,0,.03);
  flex:0 0 36px;
}

.hblog-share-right strong{
  display:block;
  font-size:12.5px;
  font-weight:950;
}

.hblog-share-right span{
  display:block;
  margin-top:3px;
  color:var(--hblog-muted);
  font-size:10.5px;
  font-weight:820;
}

.hblog-toc-item{
  color:var(--hblog-text);
  font-size:11.5px;
  font-weight:900;
  cursor:default;
}

.hblog-toc-item span{
  color:var(--hblog-muted);
  font-size:10px;
}

.hblog-newsletter{
  margin-top:16px;
  padding:20px;
  border-radius:32px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.5fr);
  gap:16px;
  align-items:center;
  background:
    radial-gradient(circle at 12% 16%, var(--hblog-accent-soft), transparent 26%),
    var(--hblog-surface);
}

.hblog-newsletter h2{
  margin:0;
  font-size:24px;
  font-weight:980;
  letter-spacing:-.5px;
}

.hblog-newsletter p{
  margin:8px 0 0;
  color:var(--hblog-muted);
  font-size:12px;
  line-height:2;
  font-weight:750;
}

.hblog-subscribe{
  display:flex;
  gap:8px;
  padding:8px;
  border-radius:22px;
  background:var(--hblog-surface);
  border:1px solid var(--hblog-line);
}

.hblog-subscribe input{
  min-width:0;
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  padding:8px 10px;
  font-size:13px;
  font-weight:800;
  color:var(--hblog-text);
}

.hblog-subscribe button{
  min-height:42px;
  border:0;
  border-radius:16px;
  background:var(--hblog-primary);
  color:var(--hblog-primary-text);
  padding:8px 14px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}

.hblog-mobile-nav{
  display:none;
}

.hblog-empty{
  padding:22px;
  border-radius:26px;
  border:1px solid var(--hblog-line);
  background:var(--hblog-surface);
  color:var(--hblog-muted);
  text-align:center;
  font-size:13px;
  font-weight:850;
}

@media(max-width:980px){
  .hblog-hero,
  .hblog-featured-layout,
  .hblog-newsletter,
  .hblog-single-hero,
  .hblog-layout{
    grid-template-columns:1fr;
  }

  .hblog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .hblog-sidebar{
    position:static;
  }

  .hblog-actionbar{
    display:flex;
  }

  .hblog-action-note{
    display:none;
  }

  .hblog-actionbar-main{
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }

  .hblog-action-btn{
    min-width:0;
    padding-inline:8px;
  }
}

@media(max-width:640px){
  body.hblog-page-active{
    padding-bottom:86px;
  }

  body.hblog-page-active .mobile-nav{
    display:none!important;
  }

  .hblog-page{
    width:min(100% - 14px,100%);
    padding-bottom:28px;
  }

  .hblog-modebar{
    width:100%;
    margin-bottom:10px;
  }

  .hblog-hero{
    margin-top:0;
    border-radius:28px;
    padding:18px;
    min-height:auto;
  }

  .hblog-hero h1{
    font-size:29px;
  }

  .hblog-hero p{
    font-size:12.5px;
    line-height:1.95;
  }

  .hblog-search-card{
    padding:12px;
    margin-top:14px;
    border-radius:22px;
    animation:none;
  }

  .hblog-search-title{
    display:none;
  }

  .hblog-searchbox input{
    min-height:48px;
    border-radius:17px;
    font-size:13px;
  }

  .hblog-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }

  .hblog-stat{
    min-width:0;
    min-height:58px;
    border-radius:18px;
    padding:9px;
  }

  .hblog-stat strong{
    font-size:17px;
  }

  .hblog-stat span{
    font-size:9px;
  }

  .hblog-section-head{
    align-items:center;
    margin-top:20px;
  }

  .hblog-section-head h2{
    font-size:19px;
  }

  .hblog-section-head p{
    display:none;
  }

  .hblog-archive-cats{
    border-radius:24px;
    padding:12px;
    margin:12px 0 16px;
  }

  .hblog-archive-cat-head{
    align-items:flex-start;
    margin-bottom:10px;
  }

  .hblog-archive-cat-head strong{
    font-size:13.5px;
  }

  .hblog-archive-cat-head span{
    display:none;
  }

  .hblog-cat-chip{
    min-height:36px;
    font-size:10.5px;
    padding:7px 10px;
  }

  .hblog-featured{
    min-height:260px;
    border-radius:27px;
    padding:18px;
  }

  .hblog-featured h3{
    font-size:22px;
  }

  .hblog-featured p{
    font-size:12px;
  }

  .hblog-side-stack{
    display:none;
  }

  .hblog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .hblog-post-card{
    min-height:235px;
    padding:9px;
    border-radius:22px;
  }

  .hblog-thumb{
    min-height:88px;
    border-radius:17px;
    padding:9px;
  }

  .hblog-thumb-icon{
    width:34px;
    height:34px;
    border-radius:13px;
  }

  .hblog-post-body{
    padding:10px 2px 0;
  }

  .hblog-post-top{
    gap:6px;
    margin-bottom:7px;
  }

  .hblog-category{
    max-width:72px;
    min-height:24px;
    padding:5px 8px;
    font-size:9px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .hblog-time{
    font-size:9px;
  }

  .hblog-post-card h3{
    font-size:12.5px;
    line-height:1.65;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .hblog-post-card p{
    font-size:10.2px;
    line-height:1.75;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .hblog-post-link{
    font-size:10.5px;
    padding-top:9px;
  }

  .hblog-single-hero{
    border-radius:28px;
    padding:18px;
    gap:14px;
  }

  .hblog-single-hero h1{
    font-size:27px;
  }

  .hblog-single-hero p{
    font-size:12.5px;
  }

  .hblog-ux-meta .hblog-ux-chip{
    min-height:29px;
    padding:6px 9px;
    font-size:9.5px;
  }

  .hblog-author{
    gap:10px;
  }

  .hblog-author-avatar{
    width:46px;
    height:46px;
    border-radius:17px;
    flex-basis:46px;
  }

  .hblog-hero-info{
    border-radius:24px;
    padding:14px;
    animation:none;
  }

  .hblog-actionbar{
    display:none;
  }

  .hblog-layout{
    margin-top:12px;
    gap:12px;
  }

  .hblog-sidebar{
    display:none;
  }

  .hblog-card{
    border-radius:24px;
    padding:14px;
  }

  .hblog-card-icon{
    width:38px;
    height:38px;
    border-radius:14px;
    flex-basis:38px;
  }

  .hblog-card-title strong{
    font-size:14px;
  }

  .hblog-card-title span{
    font-size:10px;
  }

  .hblog-article-content{
    font-size:12.8px;
    line-height:2.1;
  }

  .hblog-article-content h2{
    font-size:19px;
    margin-top:20px;
  }

  .hblog-rating-layout{
    grid-template-columns:1fr;
  }

  .hblog-rating-summary{
    border-radius:20px;
    padding:14px;
  }

  .hblog-rating-big strong{
    font-size:34px;
  }

  .hblog-star{
    width:34px;
    height:34px;
    border-radius:12px;
  }

  .hblog-comment-top{
    align-items:flex-start;
  }

  .hblog-comment-rate{
    display:none;
  }

  .hblog-newsletter{
    display:none;
  }

  .hblog-mobile-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:max(10px, env(safe-area-inset-bottom));
    z-index:60;
    max-width:360px;
    margin-inline:auto;
    min-height:66px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    padding:8px;
    border-radius:25px;
    background:var(--hblog-surface);
    border:1px solid var(--hblog-line);
    box-shadow:0 18px 46px rgba(0,0,0,.16);
    backdrop-filter:blur(24px) saturate(180%);
    -webkit-backdrop-filter:blur(24px) saturate(180%);
  }

  .hblog-mobile-nav .hblog-mnav-item{
    min-width:0;
    border:0;
    border-radius:18px;
    background:transparent;
    color:var(--hblog-muted);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    font-size:10px;
    font-weight:900;
    cursor:pointer;
    transition:.18s ease;
  }

  .hblog-mobile-nav .hblog-mnav-item svg{
    width:19px;
    height:19px;
  }

  .hblog-mobile-nav .hblog-mnav-item.is-active{
    background:var(--hblog-primary);
    color:var(--hblog-primary-text);
    box-shadow:0 10px 22px rgba(0,0,0,.12);
  }

  .hblog-page[data-hblog-theme="dark"] .hblog-mobile-nav .hblog-mnav-item.is-active{
    background:#fff;
    color:#111114;
  }
}

@media(max-width:365px){
  .hblog-page{
    width:min(100% - 10px,100%);
  }

  .hblog-grid{
    gap:7px;
  }

  .hblog-post-card{
    padding:8px;
    border-radius:20px;
    min-height:222px;
  }

  .hblog-thumb{
    min-height:78px;
  }

  .hblog-post-card h3{
    font-size:11.7px;
  }

  .hblog-post-card p{
    font-size:9.6px;
  }
}

@media(prefers-reduced-motion:reduce){
  .hblog-page *,
  .hblog-page *::before,
  .hblog-page *::after{
    animation:none!important;
    transition:none!important;
  }
}

@keyframes hblogCardIn{
  from{opacity:0;transform:translateY(16px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes hblogFadeDown{
  from{opacity:0;transform:translateY(-10px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes hblogFadeUp{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes hblogFloatOne{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(-18px,24px,0)}
}
@keyframes hblogFloatTwo{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(22px,-18px,0)}
}
@keyframes hblogPulse{
  0%,100%{transform:scale(1);opacity:.75}
  50%{transform:scale(1.08);opacity:1}
}
@keyframes hblogLiveDot{
  0%,100%{box-shadow:0 0 0 6px rgba(52,199,89,.14)}
  50%{box-shadow:0 0 0 10px rgba(52,199,89,.05)}
}
@keyframes hblogFloatCard{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-7px)}
}
@keyframes hblogSoftSweep{
  0%,55%{transform:translateX(120%)}
  82%,100%{transform:translateX(-120%)}
}
@keyframes hblogIconFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}


/* HastiGem v99: use the global header theme toggle only. */
.hblog-modebar{display:none !important;}

/* HastiGem v100: restore breathing room between the global header and blog hero after removing the local theme switcher. */
body.hblog-page-active .hblog-page{
  padding-top:clamp(22px, 2.4vw, 36px);
}

body.hblog-page-active .hblog-hero{
  margin-top:0;
}

@media(max-width:640px){
  body.hblog-page-active .hblog-page{
    padding-top:16px;
  }
}
