.committees-page {
  padding: 2rem 0 3rem;
}

/* Extra separation between boxes on all screens (in addition to Bootstrap g-4) */
.committees-grid .col-md-4,
.committees-grid .col-sm-6 {
  margin-bottom: 1.5rem;
}

/* Card / Box styling */
.committee-card {
  position: relative;
  height: 160px;
  border-radius: 0.75rem;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Dark overlay */
.committee-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.committee-card-content {
  position: relative;
  z-index: 1;
}

.committee-card h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

/* Link behaviour */
.committee-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.committee-link:hover,
.committee-link:focus {
  text-decoration: none;
  outline: none;
}

/* Hover effect (desktop / devices with hover) */
@media (hover: hover) {
  .committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
}

/* Tablets and below */
@media (max-width: 991.98px) {
  .committee-card {
    height: 150px;
  }

  .committee-card h6 {
    font-size: 0.9rem;
  }
}

/* Small devices / large phones */
@media (max-width: 767.98px) {
  /* Make each box full-width on small screens */
  .committees-grid .col-md-4,
  .committees-grid .col-sm-6,
  .committees-grid .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .committee-card {
    height: auto;
    min-height: 140px;
    padding: 1.25rem;
  }

  .committee-card h6 {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* Extra small devices */
@media (max-width: 575.98px) {
  .committees-page {
    padding: 1.5rem 0 2.5rem;
  }

  .committee-card {
    min-height: 130px;
    padding: 1rem;
    border-radius: 0.6rem;
  }

  .committee-card h6 {
    font-size: 0.9rem;
  }
}
