/* ============================= */
/* Notice Cards Styling */
/* ============================= */

.card-img-wrapper {
  height: 220px;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop images uniformly */
  transition: transform 0.3s ease;
}

.card-img-wrapper img:hover {
  transform: scale(1.05);
}

.notice-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.card-body {
  display: flex;
  flex-direction: column;
}

.card-body .btn {
  margin-top: auto;
}

.card-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .card-img-wrapper {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .card-img-wrapper {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .card-img-wrapper {
    height: 150px;
  }
}
