.resources-section {
  padding: 85px 0 25px;
  background-color: #ffffff;
  position: relative;
}

.resources-heading {
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  color: #0f172a;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.resource-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.resource-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.resource-card-body {
  padding: 24px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.resource-tag {
  padding: 0;
  color: #64748b;
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: block;
}

.resource-title {
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  color: #0f172a;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.resource-card:hover .resource-title {
  color: var(--as-color-primary-red, #ca4441);
}

.resource-desc {
  font-family: var(--as-font-body, 'Poppins', sans-serif);
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.resource-read-more {
  padding: 0;
  color: var(--as-color-primary-red, #ca4441);
  font-family: var(--as-font-heading, 'Lato', sans-serif);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.resource-card:hover .resource-read-more {
  color: #b33936;
  transform: translateX(3px);
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .resources-section {
    padding: 65px 0 20px;
  }

  .resources-heading {
    font-size: 30px;
  }

  .resource-card .card-img-top {
    height: 180px;
  }

  .resource-title {
    font-size: 17px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .resources-section {
    padding: 50px 0 15px;
  }

  .resources-heading {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .resource-card .card-img-top {
    height: 190px;
  }

  .resource-card-body {
    padding: 18px 16px;
  }

  .resource-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

