/* Resources Blog Post Styling */

.page-resources-single {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* Post Header */
.post-header {
  border-bottom: 3px solid #007bff;
  padding-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .post-title {
    font-size: 1.8rem;
  }
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.post-meta svg {
  margin-right: 0.4rem;
  vertical-align: text-bottom;
}

.post-date,
.post-author {
  display: inline-flex;
  align-items: center;
}

.post-description {
  font-size: 1.25rem;
  color: #555;
  margin-top: 1.5rem;
  font-weight: 400;
}

/* Post Content Typography */
.post-content {
  margin-top: 3rem;
}

.post-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  padding-top: 1rem;
  border-top: 2px solid #e9ecef;
}

.post-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

.post-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
}

.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.post-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* Lists */
.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Blockquotes */
.post-content blockquote {
  border-left: 4px solid #007bff;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background-color: #f8f9fa;
  font-style: italic;
  color: #555;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Links */
.post-content a {
  color: #007bff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: #007bff;
}

/* Code */
.post-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: #d63384;
}

.post-content pre {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 2rem 0;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  color: #333;
}

/* Tables */
.post-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.post-content table th,
.post-content table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
}

.post-content table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

.post-content table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Horizontal Rules */
.post-content hr {
  margin: 3rem 0;
  border: 0;
  border-top: 2px solid #e9ecef;
}

/* Post Footer */
.post-footer {
  margin-top: 4rem;
}

/* Related Resources Section */
.post-content h2:has(+ ul a[href^="/resources/"]) {
  color: #007bff;
}

/* Improve spacing for nested content */
.post-content > *:first-child {
  margin-top: 0;
}

.post-content > *:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-single {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
  }

  .post-content h3 {
    font-size: 1.3rem;
  }

  .post-content blockquote {
    padding: 1rem 1.5rem;
  }

  .post-content table {
    font-size: 0.85rem;
  }
}

/* Print styles */
@media print {
  .post-meta svg,
  .post-footer,
  .header,
  .footer {
    display: none;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-content {
    font-size: 12pt;
  }
}
