.qdp-home-blog-section {
  width: 100%;
  padding: 90px 20px 105px;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.qdp-home-blog-section *,
.qdp-home-blog-section *::before,
.qdp-home-blog-section *::after {
  box-sizing: border-box;
}

.qdp-home-blog-heading {
  position: relative;
  max-width: 820px;
  margin: 0 auto 58px;
  padding: 0 20px;
  text-align: center;
}

.qdp-section-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #d8a329;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qdp-home-blog-heading h2 {
  position: relative;
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.qdp-blog-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 28px auto 30px;
}

.qdp-blog-title-divider::before,
.qdp-blog-title-divider::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  background: rgba(31, 31, 31, 0.22);
}

.qdp-blog-title-divider span {
  display: block;
  width: 42px;
  height: 2px;
  background: #C99429;
}

.qdp-home-blog-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: #4c4c4c;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.qdp-home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.qdp-home-blog-card,
.qdp-home-blog-card:link,
.qdp-home-blog-card:visited,
.qdp-home-blog-card:hover,
.qdp-home-blog-card:focus,
.qdp-home-blog-card:active {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 470px;
  padding: 34px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none !important;
  isolation: isolate;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.qdp-home-blog-card * {
  text-decoration: none !important;
}

.qdp-home-blog-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--qdp-blog-img);
  background-size: cover;
  background-position: center;
  transition: transform 0.85s ease, filter 0.85s ease;
}

.qdp-home-blog-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(22, 18, 15, 0.06) 0%,
      rgba(22, 18, 15, 0.42) 44%,
      rgba(22, 18, 15, 0.88) 100%
    );
  transition: background 0.35s ease;
}

.qdp-home-blog-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.qdp-home-blog-content {
  position: relative;
  z-index: 4;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.qdp-home-blog-content span {
  display: inline-block;
  margin-bottom: 13px;
  color: #d8a329;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.qdp-home-blog-content h3 {
  min-height: 96px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.16;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.qdp-home-blog-content p {
  min-height: 82px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  line-height: 1.6;
}

.qdp-home-blog-content strong {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qdp-home-blog-content strong::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.qdp-home-blog-card:hover .qdp-home-blog-bg {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.qdp-home-blog-card:hover .qdp-home-blog-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(22, 18, 15, 0.12) 0%,
      rgba(22, 18, 15, 0.48) 42%,
      rgba(22, 18, 15, 0.92) 100%
    );
}

.qdp-home-blog-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.qdp-home-blog-card:hover .qdp-home-blog-content {
  transform: translateY(-8px);
}

.qdp-home-blog-card:hover .qdp-home-blog-content strong::after {
  transform: translateX(5px);
}

.qdp-home-blog-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.qdp-secondary-button,
.qdp-secondary-button:link,
.qdp-secondary-button:visited,
.qdp-secondary-button:hover,
.qdp-secondary-button:focus,
.qdp-secondary-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 170px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid #1f1f1f;
  color: #1f1f1f !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.qdp-secondary-button::after {
  content: "→";
  margin-left: 9px;
  transition: transform 0.3s ease;
}

.qdp-secondary-button:hover {
  background: #1f1f1f;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.qdp-secondary-button:hover::after {
  transform: translateX(5px);
}

.qdp-home-blog-empty {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.qdp-home-blog-empty p {
  color: #4c4c4c;
  font-size: 17px;
  line-height: 1.7;
}

.qdp-single-extra-media {
  margin-top: 42px;
}

.qdp-single-video {
  margin: 34px 0;
}

.qdp-single-video iframe,
.qdp-single-video video {
  width: 100%;
  max-width: 100%;
  min-height: 420px;
}

.qdp-single-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.qdp-single-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1100px) {
  .qdp-home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qdp-home-blog-card {
    min-height: 430px;
  }

  .qdp-single-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .qdp-home-blog-section {
    padding: 65px 18px 75px;
  }

  .qdp-home-blog-heading {
    margin-bottom: 44px;
    padding: 0;
  }

  .qdp-section-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .qdp-home-blog-heading h2 {
    font-size: 44px;
  }

  .qdp-blog-title-divider {
    margin: 24px auto 26px;
  }

  .qdp-blog-title-divider::before,
  .qdp-blog-title-divider::after {
    width: 46px;
  }

  .qdp-home-blog-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .qdp-home-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qdp-home-blog-card,
  .qdp-home-blog-card:link,
  .qdp-home-blog-card:visited,
  .qdp-home-blog-card:hover,
  .qdp-home-blog-card:focus,
  .qdp-home-blog-card:active {
    min-height: 390px;
    padding: 30px 24px;
  }

  .qdp-home-blog-content h3,
  .qdp-home-blog-content p {
    min-height: 0;
  }

  .qdp-single-video iframe,
  .qdp-single-video video {
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .qdp-home-blog-heading h2 {
    font-size: 38px;
  }

  .qdp-home-blog-card {
    min-height: 365px;
  }

  .qdp-secondary-button {
    width: 100%;
  }

  .qdp-single-gallery {
    grid-template-columns: 1fr;
  }

  .qdp-single-gallery img {
    height: 230px;
  }
}
