/* =====================================================================
   HOME BLOG SECTION — editorial hover-to-preview layout
   Prefix: "hb-"
===================================================================== */

.hb-section {
  background: var(--bg-color-main);
  padding: 100px 0 120px;
}

.hb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Head ---------- */
.hb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink-07);
}

@media (max-width: 700px) {
  .hb-head { flex-direction: column; align-items: flex-start; }
}

.hb-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.hb-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 14px;
  max-width: 620px;
  letter-spacing: -0.01em;
}

.hb-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.hb-sub {
  font-size: 0.95rem;
  color: var(--ink-45);
  text-transform: none;
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

.hb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink-15);
  transition: gap .25s ease, border-color .25s ease, color .25s ease;
}

.hb-cta:hover {
  gap: 14px;
  border-color: var(--red);
  color: var(--red);
}

/* ---------- Layout ---------- */
.hb-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hb-layout { grid-template-columns: 1fr; }
}

/* ---------- List ---------- */
.hb-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-07);
}

.hb-row {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 4px;
  border: none;
  border-bottom: 1px solid var(--ink-07);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: padding-left .3s ease, background .3s ease;
}

.hb-row:hover,
.hb-row:focus-visible,
.hb-row.is-active {
  background: #fff;
  padding-left: 18px;
  border-radius: 4px;
}

.hb-row-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-15);
  transition: color .3s ease;
}

.hb-row.is-active .hb-row-num,
.hb-row:hover .hb-row-num {
  color: var(--red);
}

.hb-row-mid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hb-row-date {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hb-row-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 500px) {
  .hb-row-title { white-space: normal; }
}

.hb-row-arrow {
  color: var(--ink-15);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}

.hb-row.is-active .hb-row-arrow,
.hb-row:hover .hb-row-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--red);
}

/* ---------- Preview panel ---------- */
.hb-panel {
  position: sticky;
  top: 110px;
  align-self: start;
}

@media (max-width: 900px) { .hb-panel { position: static; } }

.hb-panel-link {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) { .hb-panel-link { aspect-ratio: 16 / 10; } }

.hb-panel-imgwrap {
  position: absolute;
  inset: 0;
}

.hb-panel-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .5s ease;
}

.hb-panel-link:hover .hb-panel-imgwrap img {
  transform: scale(1.04);
}

.hb-panel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 26px 26px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.hb-panel-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.hb-panel-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-transform: none;
  margin: 0 0 10px;
}

.hb-panel-excerpt {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 9px 16px;
  border-radius: 30px;
  backdrop-filter: blur(6px);
  transition: background .25s ease, gap .25s ease;
}

.hb-panel-link:hover .hb-panel-btn {
  background: var(--red);
  border-color: var(--red);
  gap: 12px;
}
