/* ==========================================================================
   Direct Homes – Homepage extras (body.dh-home2b)
   Benefits strip under the hero, add-on services under the
   packages, PROFI intro with curved photo,
   property card labels, full width hero photo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero: no search bar any more, the strip follows directly
   -------------------------------------------------------------------------- */
/* Fixed height (no 100vh): 720px, 780px from 1600px. Header room on top,
   open space around the content, text and Cockpit card centered. */
@media (min-width: 992px) {
  /* (css/directhomes-elegance.css adds 70px under the hero for its own
     benefits bar; not needed here) */
  .dh-home2b .h2h {
    padding-bottom: 0;
  }

  .dh-home2b .h2h__grid {
    min-height: 720px;
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .dh-home2b .h2h__glance {
    align-self: center;
    margin-top: 0;
  }

  /* photo over the full width, fading out smoothly under the text */
  .dh-home2b .h2h__photo {
    width: 100%;
  }

  .dh-home2b .h2h__photo img {
    object-position: 70% center;
  }

  .dh-home2b .h2h__photo::before {
    background: linear-gradient(90deg,
      rgb(246, 244, 238) 0%,
      rgba(246, 244, 238, 0.97) 22%,
      rgba(246, 244, 238, 0.88) 32%,
      rgba(246, 244, 238, 0.66) 40%,
      rgba(246, 244, 238, 0.38) 48%,
      rgba(246, 244, 238, 0.14) 56%,
      rgba(246, 244, 238, 0) 64%);
  }
}

@media (min-width: 1600px) {
  .dh-home2b .h2h__grid {
    min-height: 780px;
  }
}

/* Cockpit card floats gently up and down */
.dh-home2b .h2h__glance {
  animation: h2b-float 6s ease-in-out 1s infinite;
  will-change: translate;
}

@keyframes h2b-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* --------------------------------------------------------------------------
   2. Benefits strip
   -------------------------------------------------------------------------- */
.h2b-strip {
  position: relative;
  z-index: 2;
  background: #EFE8DB;
  border-top: 1px solid rgba(var(--dh-primary-rgb), 0.06);
  border-bottom: 1px solid rgba(var(--dh-primary-rgb), 0.06);
}

.h2b-strip__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.h2b-strip__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px 34px;
}

.h2b-strip__item:first-child {
  padding-left: 0;
}

.h2b-strip__item + .h2b-strip__item::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 1px;
  background: rgba(168, 128, 63, 0.3);
}

.h2b-strip__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #E5DAC6;
  color: var(--dh-primary);
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.h2b-strip__icon svg {
  width: 28px;
  height: 28px;
}

.h2b-strip__icon svg circle[fill="#fff"] {
  fill: #E5DAC6;
  transition: fill 0.4s ease;
}

.h2b-strip__item:hover .h2b-strip__icon {
  background: var(--dh-primary);
  color: #fff;
  transform: rotate(-8deg);
}

.h2b-strip__item:hover .h2b-strip__icon svg circle[fill="#fff"] {
  fill: var(--dh-primary);
}

.h2b-strip__title {
  margin: 0 0 6px;
  font-family: var(--dh-font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--dh-primary);
  text-transform: none;
}

.h2b-strip__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6f6a60;
}

@media (max-width: 991px) {
  .h2b-strip__list {
    grid-template-columns: 1fr;
  }

  .h2b-strip__item,
  .h2b-strip__item:first-child {
    padding: 22px 0;
  }

  .h2b-strip__item + .h2b-strip__item::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* --------------------------------------------------------------------------
   3. SELF / PREMIUM cards: gold line under the label
   -------------------------------------------------------------------------- */
.dh-home2b .h2-path__label {
  position: relative;
  padding-bottom: 14px;
}

.dh-home2b .h2-path__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--dh-accent);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dh-home2b .h2-path:hover .h2-path__label::after {
  width: 64px;
}

/* 4. Add-on services: css/directhomes-addons.css */

/* --------------------------------------------------------------------------
   5. Services at a glance
   -------------------------------------------------------------------------- */
.h2b-compare__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: 26px;
  padding: 0 20px;
  border: 1px solid var(--dh-sand);
  border-radius: var(--dh-btn-radius, 6px);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--dh-primary);
}

.h2b-compare__badge svg {
  color: var(--dh-accent);
}

.h2b-table {
  max-width: 1100px;
  margin: 0 auto;
}

.h2b-table__scroll {
  overflow: hidden;
  border: 1px solid var(--dh-sand);
  border-radius: 20px 20px 0 0;
  background: #fff;
}

.h2b-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.h2b-table th,
.h2b-table td {
  padding: 13px 24px;
  border-bottom: 1px solid #F0E9DC;
  font-size: 15.5px;
  line-height: 1.4;
  vertical-align: middle;
}

.h2b-table thead th:first-child {
  width: 50%;
}

.h2b-table tbody th {
  font-weight: 400;
  color: #444;
  text-align: left;
}

.h2b-table td {
  text-align: center;
  color: #666;
}

.h2b-table__corner {
  font-family: var(--dh-font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--dh-primary);
  text-align: left;
}

.h2b-table__plan {
  background: #F4ECE0;
  font-family: var(--dh-font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dh-primary);
  text-align: center;
}

.h2b-table__plan small {
  display: block;
  margin-top: 4px;
  font-family: var(--dh-font-body);
  font-size: 13.5px;
  color: #6b6b6b;
}

.h2b-table__plan--premium {
  background: var(--dh-primary);
  color: #fff;
}

.h2b-table__plan--premium small {
  color: #D9B77A;
}

.h2b-table__group th {
  background: #F7F1E7;
  font-family: var(--dh-font-heading);
  font-size: 17px;
  font-weight: 400;
  color: #8a6a35;
}

.h2b-table td.is-premium {
  background: #EEF3F1;
}

.h2b-table__tick {
  display: inline-flex;
  color: var(--dh-primary);
}

.h2b-table__incl {
  font-weight: 700;
  color: var(--dh-primary) !important;
}

.h2b-table tbody tr:not(.h2b-table__group) {
  transition: background-color 0.3s ease;
}

.h2b-table tbody tr:not(.h2b-table__group):hover th,
.h2b-table tbody tr:not(.h2b-table__group):hover td {
  background-color: #FBF8F2;
}

.h2b-table tbody tr:not(.h2b-table__group):hover td.is-premium {
  background-color: #E3ECE8;
}

.h2b-table__total {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
  border: 1px solid var(--dh-sand);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #F4ECE0;
}

.h2b-table__gift {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--dh-accent);
}

.h2b-table__total-title {
  margin: 0 0 4px;
  font-family: var(--dh-font-heading);
  font-size: clamp(19px, calc(14px + 0.9vw), 28px);
  line-height: 1.25;
  color: var(--dh-primary);
}

.h2b-table__total-text {
  margin: 0;
  font-size: 15px;
  color: #666;
}

/* smooth animation: rows slide in one after the other, the ticks pop,
   the gift wiggles once (html.dh-motion = JS running) */
html.dh-motion .h2b-table tbody tr {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.6s ease calc(0.25s + var(--r, 0) * 0.05s),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(0.25s + var(--r, 0) * 0.05s),
              background-color 0.3s ease;
}

html.dh-motion .h2b-table.is-visible tbody tr {
  opacity: 1;
  transform: none;
}

html.dh-motion .h2b-table .h2b-table__tick {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) calc(0.55s + var(--r, 0) * 0.05s);
}

html.dh-motion .h2b-table.is-visible .h2b-table__tick {
  transform: scale(1);
}

html.dh-motion .h2b-table.is-visible .h2b-table__gift {
  animation: h2b-gift 1s ease 1.4s 1 both;
}

@keyframes h2b-gift {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-10deg) scale(1.08); }
  50%      { transform: rotate(8deg) scale(1.08); }
  75%      { transform: rotate(-4deg); }
}

@media (max-width: 767px) {
  .h2b-table th,
  .h2b-table td {
    padding: 11px 10px;
    font-size: 13.5px;
  }

  .h2b-table thead th:first-child {
    width: 44%;
  }

  .h2b-table__plan small {
    font-size: 11.5px;
  }

  .h2b-table__corner {
    font-size: 20px;
  }

  .h2b-table__plan {
    font-size: 18px;
  }

  .h2b-table__total {
    align-items: flex-start;
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   6. Intro with curved photo (Services + PROFI): button under the text,
      photo zooms a little on hover
   -------------------------------------------------------------------------- */
.dh-home2b .h2-intro__text .h2-btn {
  margin-top: 26px;
}

.dh-home2b .h2-intro__img img {
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dh-home2b .h2-intro__img:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Property cards on this page: both labels on the left, same dark glass,
      no star
   -------------------------------------------------------------------------- */
.dh-home2b .dh-ocard__tag--featured {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 35, 30, 0.55);
  color: #fff;
}

.dh-home2b .dh-ocard__tag--featured svg {
  display: none;
}

.dh-home2b .dh-ocard__tag--status {
  margin-left: 0;
}

/* the photo stays the same on hover (no second photo) */
.dh-home2b .dh-ocard .dh-prop-card__photo--hover {
  display: none;
}

/* the whole card opens the detail page: the title link stretches over the
   card; share + favourite stay clickable above it */
.dh-home2b .dh-ocard {
  cursor: pointer;
}

.dh-home2b .dh-ocard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.dh-home2b .dh-ocard__actions {
  z-index: 3;
}

/* Title underline: on hover it grows from the
   left; when the mouse leaves it slides out to the right (not back).
   Used on the property cards and the blog cards of this page. */
.dh-home2b .dh-ocard__title a,
.dh-home2b .h2-bcard__title a {
  display: inline;
  background-image: linear-gradient(to bottom, currentColor 0%, currentColor 98%);
  background-repeat: no-repeat;
  background-position: right 94%;
  background-size: 0 2px;
  text-decoration: none;
  transition: background-size 0.5s ease;
}

.dh-home2b .dh-ocard:hover .dh-ocard__title a,
.dh-home2b .dh-ocard__title a:focus-visible,
.dh-home2b .h2-bcard:hover .h2-bcard__title a,
.dh-home2b .h2-bcard__title a:focus-visible {
  background-position: left 94%;
  background-size: 100% 2px;
}

/* details in the site secondary colour (gold #A8803F) */
.dh-home2b .dh-ocard__address svg,
.dh-home2b .dh-ocard__facts b i,
.dh-home2b .dh-ocard__more {
  color: var(--dh-accent);
}

.dh-home2b .dh-ocard__more:hover,
.dh-home2b .dh-ocard__more:focus-visible {
  color: #fff;
}

.dh-home2b .dh-ocard:hover .dh-ocard__more svg {
  transform: translateX(3px);
}

.dh-home2b .dh-ocard__title a:focus-visible {
  outline: none;
}

.dh-home2b .dh-ocard:focus-within {
  box-shadow: 0 0 0 3px rgba(var(--dh-accent-rgb), 0.55), 0 28px 56px rgba(var(--dh-primary-rgb), 0.22);
}

/* --------------------------------------------------------------------------
   9. Small screens
   -------------------------------------------------------------------------- */
/* PROFI: button labels never break */
.dh-home2b .h2-profi .h2-btn {
  white-space: nowrap;
}

/* PROFI: no photo below 992px */
@media (max-width: 991px) {
  .dh-home2b .h2-profi .h2-intro__img {
    display: none;
  }
}

/* PROFI 2.9 % bar: one line from 670px, centred button below 670px */
@media (min-width: 670px) {
  .dh-home2b .h2-banner--profi {
    flex-wrap: nowrap;
  }

  .dh-home2b .h2-banner--profi > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dh-home2b .h2-banner--profi .h2-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 669px) {
  .dh-home2b .h2-banner--profi {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-home2b .h2-banner--profi .h2-btn {
    align-self: center;
    margin-left: 0;
  }
}

/* property cards: 2.5 cards between 992 and 1099px
   (JS shows 2, the padding leaves half of the next one: 0.5 / 2.5) */
@media (min-width: 992px) and (max-width: 1099px) {
  .dh-home2b .dh-ocard-slider--peek .slick-list {
    padding-right: 20% !important;
  }
}

/* property cards: 1.5 cards between 500 and 767px (0.5 / 1.5) */
@media (min-width: 500px) and (max-width: 767px) {
  .dh-home2b .dh-ocard-slider--peek .slick-list {
    padding-right: 33.333% !important;
  }
}

/* "2.9 %" never breaks */
.dh-home2b .h2-banner__big {
  white-space: nowrap;
}

/* heading + button / arrows on one line from 576px (button on the right) */
@media (min-width: 576px) and (max-width: 767px) {
  .dh-home2b .h2-head.h2-head--split {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* FAQ intro below 992px: text left, "Contact us" on the right */
@media (min-width: 576px) and (max-width: 991px) {
  .dh-home2b .h2-faq .col-lg-5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    align-items: end;
  }

  .dh-home2b .h2-faq .col-lg-5 > * {
    grid-column: 1;
  }

  .dh-home2b .h2-faq .col-lg-5 > .h2-faq__cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin: 0 0 4px;
    white-space: nowrap;
  }
}

/* more space between the sections on tablets (was 56px) */
@media (min-width: 576px) and (max-width: 991px) {
  .dh-home2b .h2-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }
}

/* SELF / PREMIUM cards stacked (photo under the text): the photo fades in
   from the top instead of the left */
@media (max-width: 575px) {
  .dh-home2b .h2-path--light .h2-path__img::before,
  .dh-home2b .h2-path--dark .h2-path__img::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 45%;
  }

  .dh-home2b .h2-path--light .h2-path__img::before {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
  }

  .dh-home2b .h2-path--dark .h2-path__img::before {
    background: linear-gradient(180deg, var(--dh-primary), rgba(19, 75, 62, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.dh-motion .h2b-table tbody tr,
  html.dh-motion .h2b-table .h2b-table__tick {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.dh-motion .h2b-table.is-visible .h2b-table__gift {
    animation: none;
  }

  .dh-home2b .h2h__glance {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   10. SELF / PREMIUM cards: smoother fade from the card colour into the photo
       (more colour stops, so no visible edge)
   -------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .dh-home2b .h2-path--light .h2-path__img::before,
  .dh-home2b .h2-path--dark .h2-path__img::before {
    inset: 0 auto 0 -1px;
    width: 65%;
  }

  .dh-home2b .h2-path--light .h2-path__img::before {
    background: linear-gradient(90deg,
      #fff 0%,
      rgba(255, 255, 255, 0.9) 14%,
      rgba(255, 255, 255, 0.7) 30%,
      rgba(255, 255, 255, 0.45) 48%,
      rgba(255, 255, 255, 0.22) 66%,
      rgba(255, 255, 255, 0.07) 84%,
      rgba(255, 255, 255, 0) 100%);
  }

  .dh-home2b .h2-path--dark .h2-path__img::before {
    background: linear-gradient(90deg,
      rgb(19, 75, 62) 0%,
      rgba(19, 75, 62, 0.9) 14%,
      rgba(19, 75, 62, 0.7) 30%,
      rgba(19, 75, 62, 0.45) 48%,
      rgba(19, 75, 62, 0.22) 66%,
      rgba(19, 75, 62, 0.07) 84%,
      rgba(19, 75, 62, 0) 100%);
  }
}

@media (max-width: 575px) {
  .dh-home2b .h2-path--light .h2-path__img::before,
  .dh-home2b .h2-path--dark .h2-path__img::before {
    top: -1px;
    height: 60%;
  }

  .dh-home2b .h2-path--light .h2-path__img::before {
    background: linear-gradient(180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.85) 18%,
      rgba(255, 255, 255, 0.55) 40%,
      rgba(255, 255, 255, 0.25) 65%,
      rgba(255, 255, 255, 0) 100%);
  }

  .dh-home2b .h2-path--dark .h2-path__img::before {
    background: linear-gradient(180deg,
      rgb(19, 75, 62) 0%,
      rgba(19, 75, 62, 0.85) 18%,
      rgba(19, 75, 62, 0.55) 40%,
      rgba(19, 75, 62, 0.25) 65%,
      rgba(19, 75, 62, 0) 100%);
  }
}

/* --------------------------------------------------------------------------
   11. Property cards (Featured + Discover): photo in its own box on top,
       the details sit on a light frosted glass panel that overlaps the
       bottom of the photo and fades into it
   -------------------------------------------------------------------------- */
.dh-home2b .dh-ocard {
  background: linear-gradient(180deg, #fff 0%, var(--dh-bg) 100%);
  color: var(--dh-primary);
  box-shadow: 0 6px 18px rgba(var(--dh-primary-rgb), 0.07);
}

/* light shadow, a bit stronger on hover */
.dh-home2b .dh-ocard:hover {
  box-shadow: 0 16px 36px rgba(var(--dh-primary-rgb), 0.14);
}

/* title: only the colour changes on hover, no underline */
.dh-home2b .dh-ocard__title a,
.dh-home2b .dh-ocard:hover .dh-ocard__title a,
.dh-home2b .dh-ocard__title a:focus-visible {
  background-size: 0 2px;
  text-decoration: none;
}

/* no dark fade any more */
.dh-home2b .dh-ocard__media::after {
  display: none;
}

/* share + favourite move to the top right (the bottom is covered by the glass) */
.dh-home2b .dh-ocard__actions {
  top: 16px;
  bottom: auto;
}

.dh-home2b .dh-ocard__body {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding-top: 54px;
}

/* the glass: blurred photo + white tint, starting soft above the text */
.dh-home2b .dh-ocard__body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.45) 24px,
    rgba(255, 255, 255, 0.82) 44px,
    rgba(255, 255, 255, 0.85) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  mask-image: linear-gradient(180deg, transparent 0, #000 44px);
  pointer-events: none;
}

.dh-home2b .dh-ocard__title a,
.dh-home2b .dh-ocard__title a:hover {
  color: var(--dh-primary);
}

.dh-home2b .dh-ocard__desc {
  color: #3f4a46;
}

.dh-home2b .dh-ocard__address {
  color: #3f4a46;
}

.dh-home2b .dh-ocard__facts li + li {
  border-left-color: rgba(var(--dh-primary-rgb), 0.18);
}

.dh-home2b .dh-ocard__facts b {
  color: var(--dh-primary);
}

.dh-home2b .dh-ocard__facts span {
  color: #55605c;
}

.dh-home2b .dh-ocard__footer {
  border-top-color: rgba(var(--dh-primary-rgb), 0.18);
}

.dh-home2b .dh-ocard__price {
  color: var(--dh-primary);
}

.dh-home2b .dh-ocard__more:hover,
.dh-home2b .dh-ocard__more:focus-visible {
  color: var(--dh-primary);
}

/* share + favourite readable on light photos */
.dh-home2b .dh-ocard__icon {
  background: rgba(22, 35, 30, 0.35);
}

/* --------------------------------------------------------------------------
   12. Property cards: "View details" green by default; on card hover the
       title and "View details" turn gold and the link gets an underline
   -------------------------------------------------------------------------- */
.dh-home2b .dh-ocard__more {
  color: var(--dh-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.dh-home2b .dh-ocard__title a {
  transition: color 0.3s ease, background-size 0.5s ease;
}

.dh-home2b .dh-ocard:hover .dh-ocard__title a,
.dh-home2b .dh-ocard:focus-within .dh-ocard__title a,
.dh-home2b .dh-ocard:hover .dh-ocard__more,
.dh-home2b .dh-ocard:focus-within .dh-ocard__more,
.dh-home2b .dh-ocard__more:hover,
.dh-home2b .dh-ocard__more:focus-visible {
  color: var(--dh-accent);
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   13. Property cards: location above the title, no description, taller
       photo and a shorter details panel
   -------------------------------------------------------------------------- */
.dh-home2b .dh-ocard__media {
  height: 310px;
}

.dh-home2b .dh-ocard__desc {
  display: none;
}

.dh-home2b .dh-ocard__address {
  order: -1;
  margin: 0 0 6px;
}

.dh-home2b .dh-ocard__title {
  margin-bottom: 14px;
}

.dh-home2b .dh-ocard__body {
  padding-top: 50px;
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   14. Blog cards: photo on top with the reading time as a pill, title
       (2 lines), text (1 line), "Read article" button
   -------------------------------------------------------------------------- */
.h2-blogcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.h2-blogcard__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 2.5;
  border-radius: 18px;
}

.h2-blogcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.h2-blogcard:hover .h2-blogcard__img img {
  transform: scale(1.05);
}

.h2-blogcard__time {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dh-primary);
}

.h2-blogcard__title {
  display: -webkit-box;
  margin: 20px 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--dh-font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
}

.h2-blogcard__title a {
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* hover: title turns gold, no underline */
.h2-blogcard:hover .h2-blogcard__title a,
.h2-blogcard__title a:hover,
.h2-blogcard__title a:focus-visible {
  color: var(--dh-accent);
  text-decoration: none;
}

.h2-blogcard__text {
  margin: 0 0 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.h2-blogcard__btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dh-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* underline only on hover (text only, not the arrow) */
.h2-blogcard__btn span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s ease;
}

.h2-blogcard__btn svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.h2-blogcard__btn:hover,
.h2-blogcard__btn:focus-visible,
.h2-blogcard:hover .h2-blogcard__btn {
  color: var(--dh-accent);
  text-decoration: none;
}

.h2-blogcard__btn:hover span,
.h2-blogcard__btn:focus-visible span,
.h2-blogcard:hover .h2-blogcard__btn span {
  text-decoration-color: currentColor;
}

.h2-blogcard:hover .h2-blogcard__btn svg {
  transform: translateX(4px);
}

