/* =========================
   BLOG LAYOUT
========================= */
.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-nav a {
  color: #3b82f6;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

.blog-page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.blog-page-header h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 780px;
}

.blog-meta {
  font-size: 14px;
  color: #64748b;
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.blog-article {
  background: #fff;
  border-radius: 18px;
  padding: 36px 40px;
  border: 1px solid #e9edf3;
}

.blog-article .lead {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 28px;
}

.blog-article h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 14px;
  color: #1e293b;
}

.blog-article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #334155;
}

.blog-article p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 20px 24px;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
}

.blog-article th,
.blog-article td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
}

.blog-article th {
  background: #f8fafc;
  font-weight: 600;
}

.blog-conclusion {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-top: 8px;
}

.blog-faq {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e9edf3;
}

.blog-faq h2 {
  margin-top: 0;
}

.blog-faq details {
  margin-bottom: 12px;
  border: 1px solid #e9edf3;
  border-radius: 10px;
  padding: 14px 18px;
  background: #fafbfc;
}

.blog-faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.blog-faq details p {
  margin-top: 12px;
  margin-bottom: 0;
}

.blog-cta {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 14px;
  color: #e2e8f0;
}

.blog-cta h2 {
  color: #fff;
  margin-top: 0;
  font-size: 20px;
}

.blog-cta p {
  color: #cbd5e1;
  margin-bottom: 0;
}

.blog-cta a {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.blog-cta a:hover {
  background: #2563eb;
}

/* Sidebar */
.sidebar-banners {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 20px;
}

.sidebar-banner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border: 1px solid #e9edf3;
  border-radius: 14px;
  padding: 22px 18px 18px;
  transition: all 0.3s ease;
}

.sidebar-banner-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sidebar-banners img {
  width: 100%;
  height: auto;
  min-height: 88px;
  max-height: 110px;
  display: block;
  margin: 0 auto 14px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  object-fit: contain;
}

.sidebar-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 6px;
}

.sidebar-banner-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
}

.sidebar-banner-card:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.sidebar-banner-card:hover .sidebar-banner-title {
  color: #2563eb;
}

.sidebar-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #1e40af;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Blog index */
.blog-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

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

.blog-card-link {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e9edf3;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.blog-card-link h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

.blog-card-link p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-banners {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-banner-card {
    flex: 1 1 180px;
  }
}

@media (max-width: 600px) {
  .blog-article {
    padding: 24px 20px;
  }

  .blog-page-header h1 {
    font-size: 26px;
  }
}
