.homely-knowledge-hub {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 0 48px;
}

.homely-knowledge-hero {
  margin: 0 0 30px;
  padding: 28px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #122b59 0%, #2f3d78 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 43, 89, .12);
}

.homely-knowledge-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.homely-knowledge-hero p {
  max-width: 900px;
  margin: 0;
  opacity: .92;
  font-size: 1.05rem;
  line-height: 1.7;
}

.homely-knowledge-grid {
  display: grid;
  grid-template-columns: repeat(var(--hk-columns, 3), minmax(0, 1fr));
  gap: 28px;
}

.homely-knowledge-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 35, 70, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.homely-knowledge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 35, 70, .12);
}

.homely-knowledge-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f8;
}

.homely-knowledge-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.homely-knowledge-card:hover .homely-knowledge-card__image img {
  transform: scale(1.025);
}

.homely-knowledge-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef3f9, #dde6f3);
  color: #18356a;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .08em;
}

.homely-knowledge-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.homely-knowledge-card__eyebrow {
  margin-bottom: 9px;
  color: #b87518;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.homely-knowledge-card__title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.42;
}

.homely-knowledge-card__title a {
  color: #15366e;
  text-decoration: none;
}

.homely-knowledge-card__title a:hover {
  text-decoration: underline;
}

.homely-knowledge-card__summary {
  margin: 0 0 20px;
  color: #4d5968;
  line-height: 1.75;
}

.homely-knowledge-card__more {
  margin-top: auto;
  color: #173d7b;
  font-weight: 700;
  text-decoration: none;
}

.homely-knowledge-card__more:hover {
  text-decoration: underline;
}

.homely-knowledge-empty {
  padding: 28px;
  border: 1px dashed #cad2de;
  border-radius: 14px;
  background: #fafbfd;
  text-align: center;
}

@media (max-width: 991.98px) {
  .homely-knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .homely-knowledge-hub {
    padding-top: 8px;
  }

  .homely-knowledge-hero {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .homely-knowledge-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
