/* ========== resources.css ========== */
/* Responsive grid helpers */
.grid-cols-1-sm {
  /* fallback for mobile */
}

@media (max-width: 800px) {
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Add spacing below hero section */
.resources-hero {
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
  text-align: center;
}
.resources-hero h1 {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
}
.resources-hero p {
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  color: var(--color-neutral-200);
}

.resources-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.resources-search input[type="search"] {
  max-width: 280px;
}
@media (max-width: 600px) {
  .resources-search {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  .resources-search input[type="search"] {
    max-width: 100%;
  }
}

.resources-section {
  margin-top: var(--space-10);
  margin-bottom: var(--space-10);
}
.resources-section h2 {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
}

.resource-card, .resource-article, .resource-tool, .resource-event, .resource-review, .resource-interview, .resource-infographic {
  min-height: 220px;
  background: var(--color-surface);
  transition: transform .16s cubic-bezier(.4,1.1,.7,1.2), box-shadow .14s;
}
.resource-card:hover, .resource-article:hover, .resource-tool:hover, .resource-event:hover, .resource-review:hover, .resource-interview:hover, .resource-infographic:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: var(--shadow-lg);
}
.resource-card h3, .resource-article h3, .resource-tool h3, .resource-event h3, .resource-review h3, .resource-interview h3 {
  font-size: var(--font-size-lg);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

/* Resource Article Buttons */
.resource-article .button,
.resource-tool .button,
.resource-interview .button,
.resource-event .button {
  margin-top: var(--space-3);
}

/* Resource Infographics */
.resource-infographic img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-1);
  box-shadow: var(--shadow-sm);
}
.resource-infographic figcaption {
  color: var(--color-neutral-300);
  font-size: var(--font-size-xs);
  text-align: center;
  margin-top: 6px;
}

/* Recommended Reading */
.recommended-reading-list {
  list-style: disc inside;
  color: var(--color-neutral-100);
  padding-left: var(--space-3);
}
.recommended-reading-list cite {
  font-style: italic;
}

/* Resource reviews */
.resource-review .review-rating {
  color: var(--color-success);
  font-weight: bold;
  margin-bottom: var(--space-2);
}

/* CTA under sections */
.resources-section-cta {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--color-neutral-200);
}
.resources-section-cta a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Webinar list */
.resource-webinars-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}
.resource-event h3 {
  color: var(--color-primary);
}
.resource-event p {
  margin-bottom: var(--space-2);
}

/* Grid gap for mobile */
@media (max-width: 600px) {
  .resources-section {
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
  }
  .grid, .resource-webinars-list {
    gap: var(--space-3);
  }
}

/* Extra tweaks */
.resource-infographic, .resource-interview, .resource-article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ========== END resources.css ========== */