/* ===================================
   BLOG PAGE STYLES — Warm Orange Theme
   =================================== */

/* Blog Header */
.blog-header {
  background: var(--bg-secondary);
  color: var(--text-color);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-header .badge {
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8125rem;
  background: var(--primary-bg) !important;
  color: var(--primary-dark) !important;
  border: 1px solid var(--primary-border);
}

.blog-header h1 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-header .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-header .fw-semibold {
  color: var(--text-color);
}

.blog-header small {
  color: var(--text-secondary);
}

/* Author Avatars */
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

/* Blog Content wrapper */
.blog-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #2c2825;
  background: var(--bg-color);
}

/* Featured Image */
.featured-image {
  margin: 0 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.02);
}

/* Headings */
.blog-content h2 {
  color: var(--primary-dark);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 1.75rem;
  scroll-margin-top: 100px;
}

.blog-content h3 {
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
  font-size: 1.25rem;
  scroll-margin-top: 100px;
}

.blog-content h4,
.blog-content h5 {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Body text */
.blog-content p {
  margin-bottom: 1.25rem;
  color: #2c2825;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.625rem;
  color: #2c2825;
}

.blog-content strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Author Box */
.author-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
}

.author-box p {
  margin: 0;
  color: #2c2825;
}

.author-box strong {
  color: var(--primary-dark);
}

/* Table of Contents */
.table-of-contents {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.table-of-contents h4 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

.table-of-contents ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.table-of-contents ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.table-of-contents ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.table-of-contents a:hover {
  color: var(--primary-dark);
}

/* Key Takeaway */
.key-takeaway {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-border);
}

.key-takeaway h5 {
  color: var(--primary-dark);
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.key-takeaway p,
.key-takeaway li {
  color: #2c2825;
  margin-bottom: 0;
}

.key-takeaway ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Section Divider */
.section-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 2.5rem 0;
}

/* Chart Container */
.chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* External Links */
.external-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-color);
  transition: color 0.2s;
}

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

/* ===================================
   TABLES
   =================================== */

.blog-content .table {
  width: 100%;
  margin: 1.5rem 0;
  background: #fff;
  color: #2c2825;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.table-responsive .table {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.blog-content .table thead th {
  background: var(--primary-color) !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.blog-content .table tbody td {
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  color: #2c2825 !important;
  background: #fff !important;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.blog-content .table tbody tr:last-child td {
  border-bottom: none;
}

.blog-content .table tbody tr:hover td {
  background: var(--primary-bg) !important;
  color: var(--text-color) !important;
}

.blog-content .table tbody td strong {
  color: var(--text-color) !important;
}

/* Comparison table */
.comparison-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
}

.comparison-table .table {
  margin: 0;
}

/* ===================================
   ACCORDION (FAQ)
   =================================== */

.accordion-item {
  background: #fff;
  border: 1px solid var(--border-color) !important;
  margin-bottom: 0.625rem;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.accordion-button {
  background: #fff !important;
  color: var(--text-color) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1.125rem 1.25rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-bg) !important;
  color: var(--primary-dark) !important;
}

.accordion-button::after {
  filter: none !important;
}

.accordion-body {
  background: #fff;
  color: #2c2825;
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ===================================
   BUTTONS
   =================================== */

.blog-content .btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
  color: #fff;
  transition: all 0.25s;
}

.blog-content .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.blog-content .btn-outline-primary {
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.blog-content .btn-outline-primary:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.blog-content .btn-outline-secondary {
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  background: transparent;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.blog-content .btn-outline-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-color);
}

/* ===================================
   UTILITIES
   =================================== */

.blog-content .border-top {
  border-top: 1px solid var(--border-color) !important;
}

.blog-content .text-muted {
  color: var(--text-secondary) !important;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .blog-header { padding: 2.5rem 0 2rem; }
  .blog-header h1 { font-size: 1.625rem; }
  .blog-content { padding: 2rem 1rem; font-size: 0.9375rem; }
  .blog-content h2 { font-size: 1.375rem; margin-top: 2rem; }
  .blog-content h3 { font-size: 1.125rem; }
  .author-avatar { width: 40px; height: 40px; }
  .author-avatar-large { width: 64px; height: 64px; }
  .blog-content .table thead th,
  .blog-content .table tbody td { padding: 0.625rem 0.75rem; font-size: 0.875rem; }
}

@media (max-width: 576px) {
  .blog-content .table thead th,
  .blog-content .table tbody td { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
}
