/* ===== BLOG ARTICLE STYLES ===== */
/* Match VTM brand: primary #003D6B, accent #D32F2F */

/* --- Article Container --- */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  line-height: 1.8;
}
.article-wrap h1 {
  font-size: 34px;
  font-weight: 800;
  color: #003D6B;
  line-height: 1.3;
  margin-bottom: 10px;
}
.article-wrap .article-meta {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
}
.article-wrap .article-meta span {
  margin-right: 20px;
}
.article-wrap .article-meta i {
  margin-right: 5px;
  color: #D32F2F;
}
.article-wrap .article-intro {
  font-size: 17px;
  color: #475569;
  background: #F1F5F9;
  padding: 20px 24px;
  border-radius: 10px;
  border-left: 4px solid #D32F2F;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* --- TOC (Table of Contents) --- */
.article-toc {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 35px;
}
.article-toc h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003D6B;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}
.article-toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
  font-size: 15px;
}
.article-toc ol li::before {
  content: counter(toc-counter) ". ";
  color: #D32F2F;
  font-weight: 700;
  margin-right: 6px;
}
.article-toc ol li a {
  color: #003D6B;
  text-decoration: none;
  border-bottom: 1px dashed #CBD5E1;
  transition: all 0.3s;
}
.article-toc ol li a:hover {
  color: #D32F2F;
  border-color: #D32F2F;
}

/* --- Section Headings --- */
.article-wrap h2 {
  font-size: 26px;
  font-weight: 700;
  color: #003D6B;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #003D6B;
}
.article-wrap h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin: 30px 0 14px;
}
.article-wrap h4 {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 20px 0 10px;
}

/* --- Body Text --- */
.article-wrap p {
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #334155;
}
.article-wrap ul, .article-wrap ol {
  margin: 12px 0 20px 24px;
  line-height: 1.8;
  color: #334155;
}
.article-wrap li {
  margin-bottom: 8px;
  font-size: 15px;
}
.article-wrap strong {
  color: #1e293b;
}

/* --- Data Tables --- */
/* Bare tables inside articles (no wrapper) */
.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 24px 0;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.article-wrap thead th {
  background: #003D6B;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.article-wrap tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
}
.article-wrap tbody tr:nth-child(even) {
  background: #F8FAFC;
}
.article-wrap tbody tr:hover {
  background: #F1F5F9;
}
.article-wrap tbody td:first-child {
  font-weight: 500;
  color: #1e293b;
}

/* Wrapped tables */
.article-table-wrap,
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}
.article-table-wrap table,
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article-table-wrap thead th,
.table-wrap thead th {
  background: #003D6B;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.article-table-wrap tbody td,
.table-wrap tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: top;
}
.article-table-wrap tbody tr:nth-child(even),
.table-wrap tbody tr:nth-child(even) {
  background: #F8FAFC;
}
.article-table-wrap tbody tr:hover,
.table-wrap tbody tr:hover {
  background: #EFF6FF;
}
.article-table-wrap tbody td:first-child,
.table-wrap tbody td:first-child {
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}
.article-table-wrap tbody td:last-child,
.table-wrap tbody td:last-child {
  color: #475569;
}

/* --- Highlight / Note Boxes --- */
.article-note {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid #003D6B;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: #1e40af;
}
.article-note strong {
  color: #003D6B;
}
.article-tip {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid #16A34A;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: #166534;
}
.article-warning {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid #D32F2F;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  color: #991B1B;
}

/* --- FAQ Section --- */
.article-faq {
  margin: 30px 0;
}
.article-faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.article-faq-q {
  padding: 16px 20px;
  background: #F8FAFC;
  font-weight: 600;
  color: #003D6B;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}
.article-faq-q:hover {
  background: #EFF6FF;
}
.article-faq-q i {
  color: #D32F2F;
  transition: transform 0.3s;
}
.article-faq-a {
  padding: 16px 20px;
  border-top: 1px solid #E2E8F0;
  color: #475569;
  line-height: 1.7;
  font-size: 14.5px;
}

/* --- Image / Figure --- */
.article-wrap figure {
  margin: 24px 0;
  text-align: center;
}
.article-wrap figure img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.article-wrap figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #94A3B8;
  font-style: italic;
}

/* --- Call to Action (post-article) --- */
.article-cta {
  background: linear-gradient(135deg, #003D6B, #005A9E);
  color: #fff;
  padding: 36px 40px;
  border-radius: 14px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,61,107,0.2);
}
.article-cta h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.article-cta h4 {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 0;
}
.article-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  margin-bottom: 14px;
}
.article-cta .cta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  margin-bottom: 20px;
}
.article-cta .cta-info span {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.article-cta .cta-info a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.article-cta .cta-info a:hover {
  text-decoration: underline;
}
.article-cta .btn-cta {
  display: inline-block;
  background: #D32F2F;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}
.article-cta .btn-cta:hover {
  background: #B71C1C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211,47,47,0.4);
  text-decoration: none !important;
}

/* --- Article images --- */
.article-img {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.article-img img {
  width: 100%;
  height: auto;
  display: block;
}
.article-img figcaption {
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #64748B;
  font-style: italic;
  background: #F8FAFC;
}

/* --- Hero banner image --- */
.article-hero {
  margin: 24px 0 28px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  position: relative;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: right;
  padding: 40px 20px 12px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 12px;
}

/* --- Related Articles --- */
.article-related {
  margin: 40px 0;
  padding: 24px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}
.article-related h3 {
  font-size: 18px;
  font-weight: 700;
  color: #003D6B;
  margin-bottom: 16px;
}
.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-related ul li {
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
}
.article-related ul li:last-child {
  border-bottom: none;
}
.article-related ul li a {
  color: #003D6B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.article-related ul li a:hover {
  color: #D32F2F;
}
.article-related ul li a::before {
  content: "→ ";
  color: #D32F2F;
}

/* --- Breadcrumb --- */
.article-breadcrumb {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}
.article-breadcrumb a {
  color: #003D6B;
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: #D32F2F;
}

/* --- Pagination / Article Nav --- */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  gap: 20px;
}
.article-nav a {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  color: #1e293b;
}
.article-nav a:hover {
  border-color: #003D6B;
  background: #F8FAFC;
}
.article-nav .nav-prev { text-align: left; }
.article-nav .nav-next { text-align: right; }
.article-nav .nav-label {
  font-size: 12px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-nav .nav-title {
  font-weight: 600;
  font-size: 14px;
  color: #003D6B;
}

/* --- Blog Listing Page Layout (Grid + Sidebar) --- */
.blog-layout {
  display: flex;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  align-items: flex-start;
}

.blog-main {
  flex: 1;
  min-width: 0;
}
.blog-main h1 {
  font-size: 34px;
  font-weight: 800;
  color: #003D6B;
  margin-bottom: 10px;
}
.blog-main .blog-subtitle {
  color: #64748B;
  margin-bottom: 32px;
  font-size: 16px;
}

/* 3-column grid for article cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Blog card in grid mode — vertical */
.blog-grid .blog-card {
  flex-direction: column;
  margin-bottom: 0;
  padding: 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  background: #fff;
  display: flex;
}
.blog-grid .blog-card:hover {
  border-color: #003D6B;
  box-shadow: 0 4px 20px rgba(0,61,107,0.10);
  transform: translateY(-3px);
}
.blog-grid .blog-card-img {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  border-radius: 0;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-grid .blog-card-img .icon-placeholder {
  font-size: 40px;
  color: #94A3B8;
}
.blog-grid .blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-grid .blog-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-grid .blog-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003D6B;
  margin-bottom: 6px;
  line-height: 1.4;
}
.blog-grid .blog-card-body h3 a {
  color: #003D6B;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-grid .blog-card-body h3 a:hover {
  color: #D32F2F;
}
.blog-grid .blog-card-body .card-date {
  font-size: 11px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.blog-grid .blog-card-body p {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Hide tags on grid cards — saved space for compact */
.blog-grid .blog-card-body .card-tags {
  display: none;
}
/* Date badge overlay on image */
.blog-grid .blog-card-img {
  position: relative;
}
.blog-grid .card-date-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,61,107,0.85);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* --- Sidebar --- */
.blog-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}
.blog-sidebar .sidebar-widget {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 24px;
  background: #fff;
}
.blog-sidebar .sidebar-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003D6B;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #003D6B;
}
.blog-sidebar .sidebar-posts li {
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 14px;
  line-height: 1.4;
}
.blog-sidebar .sidebar-posts li:last-child {
  border-bottom: none;
}
.blog-sidebar .sidebar-posts li a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-sidebar .sidebar-posts li a:hover {
  color: #D32F2F;
}
.blog-sidebar .sidebar-posts .post-date {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}
.blog-sidebar .sidebar-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-sidebar .sidebar-tags a {
  background: #F1F5F9;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: all 0.3s;
}
.blog-sidebar .sidebar-tags a:hover {
  background: #003D6B;
  color: #fff;
}
.blog-sidebar .sidebar-cta {
  background: linear-gradient(135deg, #003D6B, #005A9E);
  color: #fff;
  text-align: center;
}
.blog-sidebar .sidebar-cta h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}
.blog-sidebar .sidebar-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  line-height: 1.5;
}
.blog-sidebar .sidebar-cta .btn-cta {
  display: inline-block;
  background: #D32F2F;
  color: #fff;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.blog-sidebar .sidebar-cta .btn-cta:hover {
  background: #B71C1C;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(211,47,47,0.4);
}
.blog-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s;
  background: #fff;
}
.blog-card:hover {
  border-color: #003D6B;
  box-shadow: 0 4px 20px rgba(0,61,107,0.08);
  transform: translateY(-2px);
}
.blog-card-img {
  width: 200px;
  min-height: 140px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-img .icon-placeholder {
  font-size: 48px;
  color: #94A3B8;
}
.blog-card-body {
  flex: 1;
}
.blog-card-body .card-date {
  font-size: 12px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #003D6B;
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-card-body h3 a {
  color: #003D6B;
  text-decoration: none;
  transition: color 0.3s;
}
.blog-card-body h3 a:hover {
  color: #D32F2F;
}
.blog-card-body p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card-body .card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-card-body .card-tags span {
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #64748B;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-sidebar { width: 260px; }
}

@media (max-width: 768px) {
  .article-wrap h1 { font-size: 26px; }
  .article-wrap h2 { font-size: 22px; }
  .article-wrap { padding: 20px 16px 40px; }
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; height: 180px; }
  .article-nav { flex-direction: column; }
  .article-cta { padding: 24px 20px; }
  .article-wrap table,
  .article-table-wrap table,
  .table-wrap table { font-size: 13px; }
  .hero-content h2 { font-size: 32px; }

  /* Blog layout responsive */
  .blog-layout {
    flex-direction: column;
    padding: 24px 16px 40px;
    gap: 28px;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar {
    width: 100%;
    position: static;
  }
}
