/* ==========================================================================
   Direct Homes – Blog teaser (3 cards)
   ========================================================================== */

section.dh-blog {
  padding: 4.6rem 0;
  background-color: var(--dh-bg);
}

.dh-blog .cs_gap_y_30 {
  row-gap: 30px;
}

.dh-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dh-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(var(--dh-primary-rgb), 0.12);
}

/* Image zoom */
.dh-post__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.dh-post__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}

.dh-post:hover .dh-post__img img {
  transform: scale(1.08);
}

.dh-post__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 26px;
}

.dh-post__time {
  margin-bottom: 8px;
  font-family: var(--dh-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dh-accent);
}

.dh-post__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  font-family: var(--dh-font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

/* Underline grows on hover */
.dh-post__title a {
  color: var(--dh-primary);
  text-decoration: none;
  background-image: linear-gradient(90deg, currentColor 0, currentColor 100%);
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 1.5px;
  transition: background-size 0.4s cubic-bezier(0.49, 0.49, 0.08, 1);
}

.dh-post__title a:hover {
  color: var(--dh-primary);
  text-decoration: none;
  background-position: 0 100%;
  background-size: 100% 1.5px;
}

.dh-post__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
  font-family: var(--dh-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: #666;
}

.dh-post__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--dh-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: none;
  text-underline-offset: 4px;
}

.dh-post__more svg {
  transition: transform 0.25s ease;
}

.dh-post:hover .dh-post__more {
  color: var(--dh-primary);
  text-decoration: underline;
}

.dh-post:hover .dh-post__more svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .dh-post,
  .dh-post__img img {
    transition: none;
  }
}
