/* ===== HOUSE SYSTEM ===== */
.houses {
  background: linear-gradient(to bottom, #f5f8ff, #ffffff);
  padding: 70px 20px;
}

.houses-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.houses h2 {
  font-size: 36px;
  color: #0e45bc;
  font-weight: 800;
  margin-bottom: 10px;
}

.houses-sub {
  font-size: 17px;
  color: #555;
  margin-bottom: 50px;
}

/* Grid */
.house-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Card */
.house-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover */
@media (hover: hover) {
  .house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  }
}

/* Badge */
.house-badge {
  font-size: 42px;
  margin-bottom: 15px;
}

/* Title */
.house-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Ideal */
.house-ideal {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
}

/* Text */
.house-card p {
  font-size: 15.5px;
  color: #333;
  line-height: 1.6;
}

/* Color Themes */
.agni h3,
.agni .house-ideal { color: #c62828; }

.prathvi h3,
.prathvi .house-ideal { color: #2e7d32; }

.akash h3,
.akash .house-ideal { color: #1565c0; }

.vayu h3,
.vayu .house-ideal { color: #f9a825; }

/* Accent Bar */
.house-card::after {
  content: "";
  height: 5px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.agni::after { background: #c62828; }
.prathvi::after { background: #2e7d32; }
.akash::after { background: #1565c0; }
.vayu::after { background: #f9a825; }

/* Responsive */
@media (max-width: 1024px) {
  .house-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .houses h2 {
    font-size: 28px;
  }

  .houses-sub {
    font-size: 15px;
  }

  .house-grid {
    grid-template-columns: 1fr;
  }
}
