/* ==============================================
   HOMEPAGE: Hero + Stats + Paths + Posts + CTA
   ============================================== */

/* ── Featured series row ── */
.ghit-series-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ghit-series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  padding-top: 21px;
  border-radius: 18px;
  background:
    linear-gradient(155deg, #fff 26%, var(--ghit-series-tint, #F8FAFC) 150%),
    #fff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 18px 34px -18px rgba(15,23,42,.28);
  overflow: hidden;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.ghit-series-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,33,182,.1) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  opacity: .5;
  transition: opacity .3s ease;
  pointer-events: none;
}
.ghit-series-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ghit-series-accent, linear-gradient(90deg,#5B21B6,#2563EB));
  opacity: .55;
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}
.ghit-series-card:hover {
  transform: translateY(-6px);
  border-color: #DDD6FE;
  box-shadow: 0 26px 48px -24px rgba(91,33,182,.5);
}
.ghit-series-card:hover::before { opacity: 1; }
.ghit-series-card:hover::after { opacity: 1; transform: scaleX(1); }
/* Badge "Phổ biến" — viền xoay phát sáng, cùng kỹ thuật với .ghit-topbar__app-link:
   outer = khung viền (padding nhỏ, overflow hidden), spin = conic-gradient xoay
   tràn viền, inner = nội dung thật với nền đặc che phần giữa. */
.ghit-series-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px;
  border-radius: 99px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(251,146,60,.6);
  animation: ghit-badge-pulse 1.4s ease-in-out infinite;
}
@keyframes ghit-badge-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(251,146,60,.5); }
  50%      { box-shadow: 0 0 22px rgba(253,224,71,.9); }
}
@media (prefers-reduced-motion: reduce) {
  .ghit-series-card__badge { animation: none; }
}
.ghit-series-card__badge-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 500%;
  background: conic-gradient(from 0deg, #FDE047, #F97316, #F43F5E, #EC4899, #FDE047);
  animation: ghit-badge-spin 2s linear infinite;
}
@keyframes ghit-badge-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ghit-series-card__badge-spin { animation: none; }
}
.ghit-series-card__badge-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, #F97316, #EA580C 45%, #DB2777);
  overflow: hidden;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ghit-series-card__badge-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, rgba(255,255,255,.35) 50%, transparent 65%);
  background-size: 250% 250%;
  background-position: 200% 0;
  pointer-events: none;
  animation: ghit-badge-shimmer 2s ease-in-out infinite;
}
@keyframes ghit-badge-shimmer {
  0%   { background-position: 200% 0; }
  55%  { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ghit-series-card__badge-inner::after { animation: none; }
}
.ghit-series-card__badge-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  animation: ghit-badge-icon-wiggle 1.8s ease-in-out infinite;
}
@keyframes ghit-badge-icon-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20%      { transform: rotate(-12deg) scale(1.1); }
  40%      { transform: rotate(10deg) scale(1.1); }
  60%      { transform: rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ghit-series-card__badge-icon { animation: none; }
}
.ghit-series-card__badge-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ghit-series-card__glow {
  position: absolute;
  top: -46px;
  right: -34px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .55;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.ghit-series-card:hover .ghit-series-card__glow { opacity: .8; transform: scale(1.15); }
.ghit-series-card__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -6px rgba(15,23,42,.4), 0 0 0 4px rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.3);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.ghit-series-card:hover .ghit-series-card__thumb {
  box-shadow: 0 14px 28px -8px rgba(15,23,42,.5), 0 0 0 4px rgba(255,255,255,.9);
}
.ghit-series-card:hover .ghit-series-card__thumb { transform: scale(1.08) rotate(-2deg); }
.ghit-series-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.ghit-series-card:hover .ghit-series-card__thumb::after { transform: translateX(120%); }
.ghit-series-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.ghit-series-card__name {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #0F172A;
  transition: color .2s ease;
}
.ghit-series-card:hover .ghit-series-card__name { color: #5B21B6; }
.ghit-series-card__desc {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghit-series-card__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
}
.ghit-series-card__count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #94A3B8;
}
.ghit-series-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #5B21B6;
}
.ghit-series-card__cta svg { transition: transform var(--t-fast); }
.ghit-series-card:hover .ghit-series-card__cta svg { transform: translateX(3px); }

@media (max-width: 1100px) { .ghit-series-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 780px)  { .ghit-series-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .ghit-series-row { grid-template-columns: 1fr; } }

/* ── Hero layout ── */
.ghit-hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Featured large card */
.ghit-feat {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg,#1E1B4B,#312E81 45%,#0F766E);
  box-shadow: 0 40px 80px -34px rgba(49,46,129,.8), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform var(--t-slow);
}
.ghit-feat:hover { transform: scale(1.005); }
.ghit-feat .ghit-zoom { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.ghit-feat:hover .ghit-zoom { transform: scale(1.07); }
.ghit-feat__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ghit-feat__body {
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ghit-feat__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  width: fit-content;
}
.ghit-feat__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 520px;
  margin: 0;
}
.ghit-feat__excerpt {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghit-feat__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ghit-feat__readbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  width: fit-content;
  margin-top: 4px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.ghit-feat:hover .ghit-feat__readbtn { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }

/* Side cards column */
.ghit-hero__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ghit-sidecard {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.ghit-sidecard__thumb {
  position: relative;
  width: 90px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* ── Stats bar ── */
.ghit-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: #E2E8F0;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -24px rgba(15,23,42,.3);
  margin-top: 20px;
}
.ghit-stats > div {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ghit-stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg,#5B21B6,#2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ghit-stat-num--b { background-image: linear-gradient(90deg,#2563EB,#0F766E); }
.ghit-stat-num--c { background-image: linear-gradient(90deg,#0F766E,#5B21B6); }
.ghit-stat-num--d { background-image: linear-gradient(90deg,#7C3AED,#2563EB); }
.ghit-stat-lbl { font-size: 13px; color: #64748B; font-weight: 500; }

/* ── Learning paths ── */
.ghit-paths {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.ghit-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  text-decoration: none;
}
.ghit-path__glow {
  position: absolute;
  top: -34px;
  right: -22px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .45;
  pointer-events: none;
}
.ghit-path__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -8px rgba(15,23,42,.35);
  flex-shrink: 0;
}
.ghit-path__icon span {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
}
.ghit-path__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ghit-path__name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #0F172A;
}
.ghit-path__desc { font-size: 13px; color: #64748B; line-height: 1.55; }
.ghit-path__foot {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.ghit-path__count { font-family: var(--font-mono); font-size: 12px; color: #94A3B8; }
.ghit-path__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #5B21B6;
}
.ghit-path__cta svg { transition: transform var(--t-fast); }
.ghit-path:hover .ghit-path__cta svg { transform: translateX(3px); }

/* ── Posts section: 2-col layout ── */
.ghit-posts-section {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 40px;
  align-items: start;
}
.ghit-posts-col-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.ghit-app-promo-mobile { display: none;
}
.ghit-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── Pagination ── */
.ghit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ghit-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ghit-pagination .page-numbers:hover {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}
.ghit-pagination .page-numbers.current {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}
.ghit-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
}
.ghit-pagination .page-numbers svg { display: block; }

/* Post card */
.ghit-pcard {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ghit-pcard__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.ghit-pcard__img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease; }
.ghit-pcard:hover .ghit-pcard__img img { transform: scale(1.06); }
.ghit-pcard__initials {
  position: absolute;
  bottom: -16px;
  right: 14px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 80px;
  color: rgba(255,255,255,.16);
  line-height: 1;
  pointer-events: none;
}
.ghit-pcard__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #5B21B6;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.ghit-pcard__diff {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.ghit-pcard__diff-dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex-shrink: 0; }

.ghit-pcard__diff--new       { color: #BE123C; border-color: rgba(190,18,60,.3); }
.ghit-pcard__diff--hot       { color: #EA580C; border-color: rgba(234,88,12,.3); }
.ghit-pcard__diff--updated   { color: #2563EB; border-color: rgba(37,99,235,.3); }
.ghit-pcard__diff--rated     { color: #B45309; border-color: rgba(180,83,9,.3); }
.ghit-pcard__diff--discussed { color: #7C3AED; border-color: rgba(124,58,237,.3); }
.ghit-pcard__body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.ghit-pcard__series {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0F766E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ghit-pcard__series svg { flex-shrink: 0; }
.ghit-pcard__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.34;
  letter-spacing: -.01em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghit-pcard__title a.ghit-ttl { color: #0F172A; }
.ghit-pcard__title a.ghit-ttl:hover { color: var(--color-purple) !important; }
.ghit-pcard__excerpt {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.ghit-pcard__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #F1F5F9;
  font-size: 12px;
  color: #94A3B8;
  font-family: var(--font-mono);
}
.ghit-pcard__author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-weight: 600;
}
.ghit-pcard__date { color: #94A3B8; font-family: var(--font-mono); font-size: 12px; }
.ghit-pcard__meta-spacer { flex: 1; }
.ghit-pcard__read,
.ghit-pcard__views {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Sidebar ── */
.ghit-posts-col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 20px);
}
.ghit-sidebar-box {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
}
.ghit-sidebar-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: #0F172A;
  margin: 0 0 15px;
  padding: 0;
  border: none;
}
/* ── Trending box ── */
.ghit-trending-item {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #F1F5F9;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.ghit-trending-item:last-child { border-bottom: none; }
.ghit-trending-item:hover { opacity: .7; }

.ghit-trending-rank {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #E2E8F0;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.ghit-trending-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ghit-trending-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.34;
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghit-trending-meta {
  font-size: 11.5px;
  color: #94A3B8;
  font-family: var(--font-mono);
}

/* ── Continue reading ── */
.ghit-continue-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.ghit-continue-head__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ECFDF5;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ghit-continue-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
.ghit-continue-item:hover { opacity: .8; }
.ghit-continue-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 54px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.ghit-continue-item__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ghit-continue-item__title {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.32;
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ghit-continue-item__meta {
  font-size: 11.5px;
  color: #94A3B8;
  font-family: var(--font-mono);
}
.ghit-continue-bar {
  height: 6px;
  border-radius: 99px;
  background: #F1F5F9;
  overflow: hidden;
}
.ghit-continue-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5B21B6, #2563EB);
  transition: width .4s ease;
}

/* ── Categories ── */
.ghit-cats-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ghit-cats-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: #F8FAFC;
  border: 1px solid #EEF2F7;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.ghit-cats-item:hover {
  background: #F1ECFB;
  border-color: #C4B5FD;
}
.ghit-cats-item__dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  flex-shrink: 0;
}
.ghit-cats-item__name {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  flex: 1;
}
.ghit-cats-item__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* ── Tags ── */
.ghit-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ghit-tags-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.ghit-tags-pill:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: #fff;
}
.ghit-tags-pill__hash {
  font-family: var(--font-mono);
  color: #A78BFA;
  transition: color var(--t-fast);
}
.ghit-tags-pill:hover .ghit-tags-pill__hash { color: rgba(255,255,255,.7); }
.ghit-tags-pill__count {
  font-size: 11px;
  color: #94A3B8;
  transition: color var(--t-fast);
}
.ghit-tags-pill:hover .ghit-tags-pill__count { color: rgba(255,255,255,.6); }

/* ── CTA band ── */
.ghit-ctaband {
  border-radius: 22px;
  background: var(--grad-hero);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 40px 90px -40px rgba(49,46,129,.75);
}
.ghit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}
.ghit-btn--outline {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(8px);
}
.ghit-btn--outline:hover { background: rgba(255,255,255,.2); color: #fff; }
.ghit-btn--solid {
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.ghit-btn--solid:hover { background: rgba(255,255,255,.26); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ghit-paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .ghit-posts-section { grid-template-columns: 1fr; }
  .ghit-posts-col-side { position: static; max-height: none; overflow-y: visible; flex-flow: row wrap; }
  .ghit-posts-col-side > * { flex: 1 1 260px; }
  /* Bản sidebar bị đẩy xuống rất xa ở mobile — ẩn, dùng bản .ghit-app-promo-mobile
     đặt ngay sau danh sách bài thay thế (xem home.php). */
  .ghit-posts-col-side > .ghit-app-promo { display: none; }
  .ghit-app-promo-mobile { display: block; margin-top: 24px; }
}
@media (max-width: 860px) {
  .ghit-hero { grid-template-columns: 1fr; }
  .ghit-feat { min-height: 350px; }
  .ghit-stats { grid-template-columns: 1fr 1fr; }
  .ghit-hero__side { flex-direction: column; }
}
@media (max-width: 680px) {
  .ghit-posts-grid { grid-template-columns: 1fr; }
  .ghit-paths { grid-template-columns: 1fr; }
  .ghit-ctaband { padding: 32px 24px; flex-direction: column; }
  .ghit-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ghit-stats { grid-template-columns: 1fr 1fr; }
  .ghit-feat__title { font-size: 22px; }
  .ghit-feat { min-height: 300px; }
}
