/* DS Immobilier — category hub cards + blog card grid */

.ds-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  width: 100%;
}

.ds-category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(200px, 28vw, 280px);
  padding: 1.35rem 1.25rem;
  overflow: hidden;
  border-radius: 20px;
  background-color: #0d4f4d;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(15 40 45 / 12%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ds-category-card--empty {
  background-image: linear-gradient(135deg, #0d5c5a 0%, #46bdc6 45%, #7ed6d2 100%);
}

.ds-category-card:hover,
.ds-category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgb(15 40 45 / 16%);
  outline: none;
  color: #fff;
}

.ds-category-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 30 34 / 8%) 0%, rgb(10 30 34 / 72%) 100%);
  pointer-events: none;
}

.ds-category-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.ds-category-card__title {
  font-family: var(--ds-font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.ds-category-card__count {
  font-family: var(--ds-font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.9;
}

.ds-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 22px);
  width: 100%;
  align-items: stretch;
}

.ds-blog-grid__item {
  min-width: 0;
  height: 100%;
}

.ds-blog-grid__item .ds-blog-card {
  height: 100%;
}

.ds-blog-archive__header {
  margin-bottom: 1.75rem;
}

.ds-blog-archive__title {
  margin: 0 0 0.5rem;
  color: var(--ds-ink);
  font-family: var(--ds-font-serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.ds-blog-archive__description {
  margin: 0;
  color: var(--ds-text);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
}

.ds-blog-archive__description p:last-child {
  margin-bottom: 0;
}

.ds-blog-archive__empty {
  margin: 0;
  color: var(--ds-muted);
  font-size: 1rem;
}

.ds-blog-categories-page__intro {
  margin-bottom: 1.75rem;
}

.ds-blog-categories-page__intro .ds-entry-content > *:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 560px) {
  .ds-category-grid,
  .ds-blog-grid {
    grid-template-columns: 1fr;
  }

  .ds-category-card {
    min-height: 210px;
  }
}
