/* Resources Section Specific Styles */

:root {
  --primary-blue: #4f46e5;
  --primary-blue-hover: #4338ca;
  --text-dark: #1f2937;
  --bg-light: #eef2ff;
}

/* Override main margin for resources page */
main {
  margin-top: 80px !important;
}

/* Category filter buttons */
.category-filter {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-filter:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.category-filter.active {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* Article cards */
.article-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category cards */
.category-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

/* Search input styling */
#search-input {
  transition: all 0.2s ease;
}

#search-input:focus {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Article content typography */
.article-content {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: #374151;
}

.article-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  color: var(--text-dark);
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-blue);
  background-color: var(--bg-light);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.article-content code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.article-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Article meta information */
.article-meta {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Table of contents */
.table-of-contents {
  background-color: var(--bg-light);
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: var(--text-dark);
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin: 0.5rem 0;
}

.table-of-contents a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

/* Related articles */
.related-articles {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 3rem 0;
}

.related-articles h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text-dark);
}

/* Newsletter signup in articles */
.article-newsletter {
  background: linear-gradient(135deg, var(--primary-blue), #7c3aed);
  color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  margin: 3rem 0;
}

.article-newsletter h3 {
  color: white;
  margin: 0 0 1rem 0;
}

.article-newsletter p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .category-filter {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .article-content h1 {
    font-size: 2rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-content p,
  .article-content li {
    font-size: 1rem;
  }

  .table-of-contents {
    margin: 1rem 0;
    padding: 1rem;
  }

  .related-articles {
    padding: 1.5rem;
    margin: 2rem 0;
  }
}

/* Print styles */
@media print {
  .category-filter,
  .related-articles,
  .article-newsletter,
  footer {
    display: none;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }

  .article-content h1 {
    font-size: 24pt;
  }

  .article-content h2 {
    font-size: 18pt;
  }

  .article-content h3 {
    font-size: 14pt;
  }
}

.py-20 {
  margin-top: 70px;
}
