/* ===== BLOG ARTICLE STYLES ===== */

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.article-meta .category-tag {
  background: var(--navy);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-meta .reading-time::before {
  content: "⏱ ";
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-700);
}

.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
  line-height: 1.4;
}

.article-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 24px 0 10px;
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 20px 4px;
  padding-left: 24px;
}

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

.article-body strong {
  color: var(--navy);
  font-weight: 700;
}

.article-body a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gray-300);
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--navy);
  text-decoration-color: var(--blue);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.article-body table tbody tr:hover {
  background: var(--gray-50);
}

.article-body table tbody tr:last-child td {
  border-bottom: none;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}

.article-body .callout {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body .callout strong {
  color: var(--blue);
}

.article-body .warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body .warning strong {
  color: #b45309;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 90px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.article-sidebar h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
}

.article-sidebar li {
  margin-bottom: 10px;
}

.article-sidebar a {
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  line-height: 1.5;
}

.article-sidebar a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  gap: 16px;
  flex-wrap: wrap;
}

.article-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all .2s;
}

.article-nav a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== BLOG INDEX STYLES ===== */

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 28px 24px;
  position: relative;
}

.blog-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.blog-card-category {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-card-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}

.blog-card-header h3 a {
  color: var(--white);
  text-decoration: none;
}

.blog-card-header h3 a:hover {
  color: var(--accent);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}

.blog-card-read {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.blog-card-read:hover {
  color: var(--navy);
}

@media (max-width: 968px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  .blog-list-grid {
    grid-template-columns: 1fr;
  }
}
