.home-boxes {
  padding: 30px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
}

.container-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 45%;        /* ✅ Fix width for two-column layout */
  height: 400px;     /* ✅ Fixed height */
  min-width: 350px;
}

.card-header {
  padding: 15px 20px;
  font-size: 18px;
  color: white;
  font-weight: bold;
}

.latest-header {
  background: #007BFF;
}

.notify-header {
  background: #e63946;
}

.card-body {
  padding: 15px 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-body ul li h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
  line-height: 1.4;
}

.card-body ul li a {
  color: #333;
  text-decoration: none;
}

.card-body ul li a:hover {
  text-decoration: underline;
}

.card-footer {
  background: #f1f1f1;
  padding: 10px 20px;
  text-align: right;
}

.view-all {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.view-all:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container-box {
    flex-direction: column;
  }

  .card-box {
    width: 100%; /* full width on small screens */
  }
}
