/**
 * resource-categories-grid.css
 */

/* ── Resources Hero ──────────────────────────────────────────── */
.resources-hero {
  position: relative;
  background: linear-gradient(135deg, #213C60 0%, #00877a 100%);
  background-size: cover;
  background-position: center;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.resources-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.resources-hero__content {
  position: relative;
  z-index: 1;
  padding: 56px 16px;
}

.resources-hero__title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 8px 0;
  line-height: 1.15;
}

.resources-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Support BOTH our custom template wrapper and default Views output */
.resource-categories-grid,
.view-resource-categories .view-content {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
}

@media (min-width: 576px) {

  .resource-categories-grid,
  .view-resource-categories .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {

  .resource-categories-grid,
  .view-resource-categories .view-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px 20px;
  }
}

/* Card shell: support our custom row template and default Views row wrapper */
.resource-category-card,
.view-resource-categories .views-row {
  background: #1b666b38;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  padding: 18px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.resource-category-card:hover,
.view-resource-categories .views-row:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

/* Default Views output often has multiple .views-field blocks; tighten it up */
.view-resource-categories .views-row .views-field {
  margin: 0;
}

.resource-category-card__title {
  margin: 0 0 14px 0;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.resource-category-card__cta-wrap {
  margin-top: auto;
}

/* Let Bootstrap button classes control CTA styling */
.resource-category-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  border-radius: 4px;
  background: #6fa12f;
  border: 1px solid #6fa12f;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.resource-category-card__cta:hover {
  background: #5e8d28;
  border-color: #5e8d28;
  color: #ffffff;
  text-decoration: none;
}

.view.view-resource.view-id-resource h1.mb-0.text-dark.font-weight-bold {
    margin-bottom: 15px !important;
}