/* ============ Theme Variables & Base ============ */
:root{
  --hw-primary:#d63b00;       /* warna aksen (match promo) */
  --hw-text:#222;
  --hw-muted:#6b7280;
  --hw-bg:#fff;
  --hw-card-shadow:0 6px 18px rgba(0,0,0,.08);
  --hw-radius:14px;
}

.section-title{
  text-align:center;
  margin-bottom:1.25rem;
}
.section-title h2,
.section-title .h4{
  margin:0 0 .25rem;
  font-weight:700;
  letter-spacing:.2px;
}
.section-title p{
  margin:0;
  color:var(--hw-muted);
  font-size:.95rem;
}

/* ============ Slider (Promo / Testimoni / Blog) ============ */
.hw-slider{
  display:flex;
  gap:12px;
  overflow:auto;
  padding-bottom:8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.hw-slider > *{ scroll-snap-align:start; }
.hw-slider::-webkit-scrollbar{ height:6px; }
.hw-slider::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.15);
  border-radius:3px;
}

/* ============ Card Base (seragam) ============ */
.hw-card{
  background:var(--hw-bg);
  border-radius:var(--hw-radius);
  box-shadow:var(--hw-card-shadow);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
  border:0;
}
.hw-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.hw-card .hw-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  max-height: 10rem;
}
.hw-card .hw-body{ padding:12px 14px; }
.hw-meta{
  display:flex; gap:8px; align-items:center;
  font-size:.8rem; color:var(--hw-muted); margin-bottom:6px;
}
.hw-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background:#f3f4f6; color:#111827;
  font-size:.75rem; font-weight:600;
}
.hw-title{ font-size:1rem; margin:0 0 .25rem; color:var(--hw-text); font-weight:700; }
.hw-excerpt{ margin:0; color:var(--hw-muted); font-size:.92rem; }
.hw-link{ color:var(--hw-primary); font-weight:600; text-decoration:none; }
.hw-link:hover{ text-decoration:underline; }

/* ============ Blog Card (pakai komponen seragam) ============ */
.blog-card .ratio{ border-bottom:1px solid #f1f1f1; }
.blog-card .hw-body{ padding:12px 14px 14px; }

/* ============ Responsive widths untuk slider item ============ */
@media (max-width:480px){
  .hw-item-w{ width:220px; }
}
@media (min-width:481px) and (max-width:767px){
  .hw-item-w{ width:240px; }
}
@media (min-width:768px){
  .hw-item-w{ width:260px; }
}

/* ===== Blog equal-height & clamps ===== */
.hw-item-w { height: 100%; }              /* wadah item slider */
.blog-card.hw-card{
  display:flex; flex-direction:column; height:100%;
}
.blog-card.hw-card > a{
  display:flex; flex-direction:column; height:100%;
}
.blog-card .ratio{ flex-shrink:0; }       /* gambar tetap 16:9 */
.blog-card .hw-body{
  display:flex; flex-direction:column; gap:6px;
  flex:1;                                  /* isi memanjang */
}

/* line-clamp utilities */
.clamp-1, .clamp-2, .clamp-3{
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden;
}
.clamp-1{ -webkit-line-clamp:1; }
.clamp-2{ -webkit-line-clamp:2; }
.clamp-3{ -webkit-line-clamp:3; }

/* tinggi minimum agar semua kartu seragam */
.blog-card .hw-body{ min-height: 150px; }          /* mobile */
@media (min-width: 576px){
  .blog-card .hw-body{ min-height: 160px; }
}
@media (min-width: 992px){
  .blog-card .hw-body{ min-height: 170px; }
}

/* rapikan meta & link */
.hw-meta{ gap:8px; margin-bottom:4px; }
.hw-title{ line-height:1.25; }
.hw-excerpt{ line-height:1.35; }
