/* ============================================
   KareShift — Blog Styles
   Listing page cards + article prose layout
   ============================================ */

/* ── Blog Listing Page ── */
.blog-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.blog-hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  padding-bottom: 80px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-tag--ndis {
  background: #eef2ff;
  color: #4f46e5;
}

.blog-card-tag--aged-care {
  background: #ecfdf5;
  color: #059669;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-read {
  font-size: 0.8rem;
  color: var(--text-light);
}

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card-link {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card-link:hover {
  color: var(--primary-dark);
}

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.article-hero {
  margin-bottom: 2rem;
}

.article-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-meta .blog-card-tag {
  font-size: 0.7rem;
}

.article-meta-date,
.article-meta-read {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Prose ── */
.article-prose {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.article-prose ul,
.article-prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }

.article-prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-prose strong {
  font-weight: 600;
  color: var(--dark);
}

.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-prose a:hover {
  color: var(--primary-dark);
}

.article-prose blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Sidebar ── */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-cta {
  background: var(--primary-light);
  border: 1px solid #c7d2fe;
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-cta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 10px 16px;
}

.sidebar-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}

.sidebar-toc h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sidebar-toc a {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all var(--ease);
}

.sidebar-toc a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

/* ── Related Articles ── */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.related-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  transition: all var(--ease);
}

.related-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.related-card h4 {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Bottom CTA ── */
.article-bottom-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff;
}

.article-bottom-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-bottom-cta p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.article-bottom-cta .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.article-bottom-cta .btn:hover {
  background: #f0f0ff;
  transform: translateY(-1px);
}

/* ── Resources Section (on vertical landing pages) ── */
.blog-resources {
  padding: 60px 0;
  background: var(--bg-alt);
}

.blog-resources h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.blog-resources-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  transition: all var(--ease);
}

.blog-resources-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.blog-resources-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.blog-resources-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .blog-hero { padding: 60px 0 30px; }
  .blog-hero h1 { font-size: 1.75rem; }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
  }

  .article-sidebar {
    position: static;
    order: -1;
    display: none;
  }

  .article-hero h1 { font-size: 1.5rem; }
  .article-prose { font-size: 1rem; }

  .related-articles-grid {
    grid-template-columns: 1fr;
  }

  .article-bottom-cta {
    padding: 2rem 1.5rem;
  }

  .article-bottom-cta h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .blog-card { padding: 1.25rem; }
  .blog-card h2 { font-size: 1.1rem; }
  .article-bottom-cta .btn { width: 100%; }
}
