/**
 * Resources section styles
 * Used by resources.php (listing) and resource.php (article pages)
 * No inline styles – all styling here for maintainability and SEO-friendly pages.
 */

/* ---------- Resources listing page ---------- */
.resources-hero {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.92) 0%, rgba(139, 92, 246, 0.92) 100%);
  color: #fff;
  margin-bottom: 2rem;
}

.resources-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.resources-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.resources-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.resources-hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.resource-card:hover {
  box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.15);
  border-color: rgba(67, 56, 202, 0.3);
  transform: translateY(-2px);
}

.resource-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #1f2937;
}

/* ---------- Single resource article page ---------- */
.resource-article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.resource-article-header {
  margin-bottom: 2rem;
}

.resource-article-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.resource-article-meta {
  font-size: 0.95rem;
  color: #6b7280;
}

.resource-article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
}

.resource-article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.resource-article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.resource-article-body p {
  margin-bottom: 1.25rem;
}

.resource-article-body ul,
.resource-article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.resource-article-body li {
  margin-bottom: 0.5rem;
}

.resource-article-body strong {
  color: #1f2937;
}

.resource-article-body a {
  color: #4338ca;
  text-decoration: none;
}

.resource-article-body a:hover {
  text-decoration: underline;
}

/* FAQ section */
.resource-faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.resource-faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.resource-faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-faq-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #4338ca;
}

.resource-faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.resource-faq-answer {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

/* Breadcrumb */
.resource-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #6b7280;
}

.resource-breadcrumb a {
  color: #4338ca;
  text-decoration: none;
}

.resource-breadcrumb a:hover {
  text-decoration: underline;
}

.resource-breadcrumb-sep {
  margin: 0 0.4rem;
  color: #9ca3af;
}

/* Back to resources link */
.resource-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.resource-back-link:hover {
  text-decoration: underline;
}

/* Card on article page (wrap content) */
.resource-article-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resource-article-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .resource-article-card {
    padding: 1.25rem;
  }
}
