.houses-overview-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--brand-dark);
}

.overview-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--brand-dark);
  margin-bottom: 50px;

}

.section-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  margin-top: 60px;
  margin-bottom: 1rem;
}

.houses-heading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 80px;
  margin-bottom: 1rem;
}

.overview-intro,
.overview-paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #374151;
}

.emblems-list {
  list-style: disc outside;
  margin-bottom: 1.5rem;
  color: #374151;
}

.yellow-card {
  background-color: var(--brand-yellow);
  color: #000;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-style: italic;
}

.yellow-card small {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.houses-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* Always 3 columns */
  gap: 2rem;
  margin: 2rem 0;
  justify-items: center;
}

.house-card {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.house-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.house-card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.house-card:hover .house-card-image {
  transform: scale(1.1);
}

.house-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

.house-card:hover .house-card-overlay {
  opacity: 1;
}


.house-card-name {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}





















