/* ==========================================================
   blog.css — Blog Post Pages (article template)
   Dependencies: common.css variables & base
   ========================================================== */

/* ========== POST HERO ========== */
.post-hero {
  background: var(--white);
  padding: 60px 0 0;
}

.post-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-category {
  background: var(--lime);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.hero-date,
.hero-read-time {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.post-hero h1 {
  color: var(--navy);
  font-size: 2.5rem;
  font-weight: 800;
  max-width: 800px;
  margin-bottom: 16px;
}

.hero-author {
  color: var(--navy);
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

.hero-author strong {
  color: var(--navy);
}

.hero-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.hero-image img {
  width: 100%;
  display: block;
}

/* ========== CONTENT AREA (article + sidebar grid) ========== */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* ========== ARTICLE BODY ========== */
.article-body h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--lime);
  display: inline-block;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--gray-800);
  font-size: 1.0625rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--gray-800);
  font-size: 1.0625rem;
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
}

.comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}

.comparison-table tbody tr:hover {
  background: rgba(167, 188, 13, 0.08);
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
  background: linear-gradient(135deg, rgba(167, 188, 13, 0.1) 0%, rgba(167, 188, 13, 0.05) 100%);
  border-left: 4px solid var(--lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.highlight-box p {
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0;
}

/* ========== ARTICLE IMAGE ========== */
.article-image {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-image img {
  width: 100%;
}

.article-image figcaption {
  background: var(--gray-50);
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  text-align: center;
}

/* ========== CTA BOX (in-article) ========== */
.cta-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.cta-box h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.cta-box p {
  color: var(--navy);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lime);
}

/* ========== RELATED POSTS (sidebar) ========== */
.related-post {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-100);
}

.related-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-post-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-info h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s var(--ease);
}

.related-post:hover .related-post-info h5 {
  color: var(--navy);
}

.related-post-info span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ========== SIDEBAR CTA ========== */
.sidebar-cta {
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.sidebar-cta h4 {
  color: var(--navy);
  border-bottom-color: var(--lime);
}

.sidebar-cta p {
  color: var(--navy);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

/* ========== BLOG INLINE FORM (extracted from 27 post inline styles) ========== */
.blog-form {
  background: var(--navy);
  padding: 48px;
  border-bottom: 2px solid var(--lime);
}
.blog-form-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.blog-form h2 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.blog-form .form-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}
.blog-form form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.blog-form input,
.blog-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--fb);
  font-size: .95rem;
  outline: none;
}
.blog-form select { cursor: pointer; appearance: none; color: rgba(255,255,255,.6); }
.blog-form select option { color: #333; background: var(--white); }
.blog-form button[type="submit"] {
  padding: 12px 28px;
  background: var(--lime);
  color: var(--white);
  font-family: var(--fd);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.blog-form button[type="submit"]:hover { background: var(--lime-dark); }
.blog-form .form-legal {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin-top: 12px;
}
.blog-form .form-legal a { color: var(--lime); text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .content-area {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-hero h1 {
    font-size: 1.75rem;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }

  .cta-box {
    padding: 28px 20px;
  }

  .blog-form { padding: 36px 24px; }
  .blog-form form { grid-template-columns: 1fr; }
}
