/* Blog-specific styles — extends theme.css */

/* BLOG INDEX */
.blog-main {
  padding-top: 90px;
  min-height: 100vh;
  background: #f0f9ff;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.blog-hero {
  text-align: center;
  margin-bottom: 56px;
}

.blog-hero .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  font-size: 1rem;
  color: #1d4ed8;
  max-width: 560px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(29, 78, 216, 0.06);
}

.post-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 24px rgba(29, 78, 216, 0.12);
  transform: translateY(-2px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 100px;
}

.post-date {
  font-size: 0.8rem;
  color: #60a5fa;
  font-weight: 500;
}

.post-link { text-decoration: none; }

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.post-link:hover .post-title { color: #1d4ed8; }

.post-excerpt {
  font-size: 0.9rem;
  color: #3b82f6;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e0f2fe;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 500;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d4ed8;
  transition: color 0.2s;
}

.read-more:hover { color: #1e3a8a; }

/* ARTICLE PAGE */
.article-main {
  padding-top: 90px;
  min-height: 100vh;
  background: #f0f9ff;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #1e3a8a; }

.article {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.08);
  overflow: hidden;
}

.article-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  padding: 40px 40px 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #93c5fd;
}

.article-byline strong { color: #ffffff; }

.article-body {
  padding: 40px;
  color: #1d4ed8;
  font-size: 1rem;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 28px 0 12px;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 20px 0 8px;
}

.article-body p { margin-bottom: 16px; }

.article-body ul, .article-body ol {
  margin: 0 0 16px 20px;
  color: #1d4ed8;
}

.article-body li { margin-bottom: 6px; }

.article-footer {
  border-top: 1px solid #e0f2fe;
  padding: 28px 40px;
  background: #eff6ff;
}

.article-cta {
  text-align: center;
}

.article-cta p {
  font-size: 0.95rem;
  color: #1d4ed8;
  margin-bottom: 14px;
}

/* Blog section (embedded on homepage) */
.blog-section {
  padding: 80px 24px;
  background: #eff6ff;
}

.blog-section .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.blog-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 2rem;
  text-align: center;
}

.blog-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(29, 78, 216, 0.06);
}

.blog-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.1);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h3 a:hover { color: #1d4ed8; }

.blog-card p {
  font-size: 0.85rem;
  color: #3b82f6;
  line-height: 1.55;
  margin-bottom: 14px;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.blog-card-link:hover { color: #1e3a8a; }

.blog-all-link {
  text-align: center;
  margin-top: 36px;
}

/* Active nav state */
.active-nav { color: #ffffff !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .blog-container { padding: 40px 20px 60px; }
  .posts-grid { grid-template-columns: 1fr; }
  .article-header { padding: 28px 24px 24px; }
  .article-body { padding: 28px 24px; }
  .article-footer { padding: 24px; }
  .header-nav a:not(.btn):not(.active-nav) { display: none; }
}

@media (max-width: 480px) {
  .blog-section { padding: 60px 16px; }
}