/* ===============================
   USEFUL RESOURCES
================================= */

.useful-resources {
  background: #f2f2f2;
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #111;
}

/* Grid: 3 across on desktop, stacked on mobile */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.resource-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;

  border-radius: 14px;
  overflow: hidden;

  /* subtle depth */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

/* Top half image */
.resource-image {
  width: 100%;
  height: 170px; /* top half-ish */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bottom half white content */
.resource-body {
  background: #ffffff;
  padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  flex: 1;
}

.resource-body h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #111;
}

.resource-body p {
  color: #333;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-image {
    height: 190px;
  }
}