.resources-page {
  padding-bottom: 34px;
}

.resources-hero {
  padding: 42px 0 20px;
  text-align: center;
}

.resources-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.resources-hero p {
  max-width: 62ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.resources-section {
  padding: 18px 0;
}

.resources-card {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.category-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.category-card,
.article-card {
  border-radius: 22px;
  border: 1px solid #dce8f8;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,252,255,0.98) 100%);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card {
  padding: 24px;
}

.category-card:hover,
.article-card:hover {
  border-color: #a6c9ff;
  box-shadow: 0 16px 34px rgba(15,23,42,0.09);
  transform: translateY(-1px);
}

.category-card h3,
.article-card h3 {
  margin: 0 0 8px;
  color: #173a66;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.category-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.article-image {
  display: block;
  height: 190px;
  background: #eef4fb;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 22px;
}

.article-category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #cfe0fb;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
}

.article-card h3 a {
  color: #173a66;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--primary);
}

@media (max-width: 960px) {
  .category-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .resources-card {
    padding: 20px 16px;
  }

  .category-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
}
