/* =========================
   BLOG POST – BASE (MOBILE)
   ========================= */

.blog-post-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- TITLE & META ---------- */

.blog-title {
  font-size: 1.9rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--cn-navy);
}

.blog-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.blog-category-pill {
  background-color: rgba(10, 45, 100, 0.08);
  color: var(--cn-navy);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- HERO IMAGE ---------- */

.blog-hero-image {
  width: 90%;
  height: auto;
  border-radius: 14px;
  margin: 1.25rem 0 2rem;
}

/* ---------- MARKDOWN CONTENT ---------- */

.blog-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f2937;
}

/* Headings */
.blog-content h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--cn-navy);
}

.blog-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--cn-navy);
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.25rem;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

/* Inline emphasis */
.blog-content strong {
  font-weight: 600;
}

.blog-content em {
  font-style: italic;
}

/* Blockquotes */
.blog-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--cn-teal);
  background-color: #f8fafc;
  font-style: italic;
  color: #374151;
}

/* Links */
.blog-content a {
  color: var(--cn-teal);
  text-decoration: underline;
}

.blog-content a:hover {
  text-decoration: none;
}

/* ---------- TAGS ---------- */

.blog-tags {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag-pill {
  background-color: #f1f5f9;
  color: #334155;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ---------- RELATED POSTS ---------- */

.related-posts-wrapper {
  margin-top: 4rem;
}

.related-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--cn-navy);
}

.related-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.related-card {
  text-decoration: none;
  color: inherit;
}

.related-card-content {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.related-card-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.related-card-image {
  width: 90%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.related-card-category {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.related-card-title {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--cn-navy);
}

/* ---------- FEEDBACK ---------- */

.user-feedback-container {
  margin-top: 4rem;
  padding: 1.75rem;
  border-radius: 14px;
  background-color: #f8fafc;
  text-align: center;
}

.helpful-text {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.helpful-button {
  background-color: var(--cn-teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.helpful-button:hover {
  background-color: #168f8b;
}

.helpful-count {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #374151;
  text-align: center;
}

/* ---------- BACK LINK ---------- */

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--cn-navy);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {

  .blog-post-container {
    padding: 3rem 2rem 5rem;
  }

  .blog-title {
    font-size: 2.3rem;
  }

  .blog-content {
    font-size: 1.05rem;
  }

  .related-cards {
    flex-direction: row;
  }

  .related-card {
    flex: 1;
  }
}

@media (min-width: 1024px) {

  .blog-post-container {
    max-width: 820px;
  }

  .blog-title {
    font-size: 2.6rem;
  }

  .blog-content {
    font-size: 1.1rem;
  }
}

@media (min-width: 1263px) {

  .blog-post-container {
    max-width: 880px;
  }
}
