/* DILACAK Home: latest posts grid. Pairs with lacak-home-latest.php. Card style mirrors .dlu-card on /blog/. */
.dlh { --dlh-ink: #14202E; --dlh-body: #475263; --dlh-muted: #5D6876; --dlh-line: #E6E9EE; --dlh-soft: #F6F7F9;
  --dlh-blue: #2A9CD7; --dlh-blue-ink: #1C79AB; --dlh-amber-tint: #FFF3DA; --dlh-amber-ink: #8A5100;
  padding-block: 80px; background: #fff; font-family: 'Inter', 'Barlow', system-ui, sans-serif; }
/* width comes from the boxed Elementor container (same settings as the Partner Kami section) */
.dlh { width: 100%; }
.dlh__wrap { max-width: none; margin: 0; padding-inline: 0; }
.dlh__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.dlh__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dlh-blue-ink); }
.dlh .dlh__title { margin: 0; font-family: inherit; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: var(--dlh-ink); text-transform: none; }
.dlh__all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--dlh-ink);
  color: var(--dlh-ink) !important; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.dlh__all:hover { background: var(--dlh-ink); color: #fff !important; }
.dlh__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.dlh-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dlh-line); border-radius: 16px; overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease; }
.dlh-card:hover { box-shadow: 0 18px 40px rgba(20,32,46,.12); transform: translateY(-3px); }
.dlh-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dlh-soft); }
.dlh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dlh-card:hover .dlh-card__media img { transform: scale(1.04); }
.dlh-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #E3F2FA, var(--dlh-amber-tint)); }
.dlh-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.dlh-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--dlh-muted); }
.dlh-card__tag { padding: 3px 10px; border-radius: 999px; background: var(--dlh-amber-tint); color: var(--dlh-amber-ink); font-size: 12px; font-weight: 800; }
.dlh .dlh-card__title { margin: 0; font-family: inherit; font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--dlh-ink); text-wrap: pretty; text-transform: none; }
.dlh-card__title a { color: var(--dlh-ink) !important; text-decoration: none; }
.dlh-card__title a::after { content: ""; position: absolute; inset: 0; }
.dlh-card__title a:focus-visible, .dlh__all:focus-visible { outline: 2px solid var(--dlh-blue); outline-offset: 2px; }
.dlh-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--dlh-blue-ink); }
.dlh-card__more svg { transition: transform .2s ease; }
.dlh-card:hover .dlh-card__more svg { transform: translateX(3px); }

/* 5 posts: one row of five equal cards; below 1024px the row scrolls sideways with snap */
.dlh__grid--row5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.dlh__grid--row5 .dlh-card__body { padding: 16px 16px 18px; gap: 8px; }
.dlh .dlh__grid--row5 .dlh-card__title { font-size: 16px; }

@media (max-width: 1024px) {
  .dlh__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlh__grid--row5 { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding-bottom: 12px; scrollbar-width: thin; }
  .dlh__grid--row5 > .dlh-card { flex: 0 0 42%; scroll-snap-align: start; }
  .dlh__grid--row5 > .dlh-card:hover { transform: none; }
}
@media (max-width: 600px) {
  .dlh { padding-block: 56px; }
  .dlh__grid { grid-template-columns: 1fr; gap: 16px; }
  .dlh__grid--row5 > .dlh-card { flex-basis: 80%; }
}
@media (prefers-reduced-motion: reduce) { .dlh-card, .dlh-card__media img, .dlh-card__more svg { transition: none; } .dlh-card:hover { transform: none; } }
