.blog-search-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.blog-search-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
}

.blog-search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--body-text);
  transition: border-color 0.3s ease;
  background: var(--white);
}

.blog-search-form input:focus {
  outline: none;
  border-color: var(--steel-blue);
}

.blog-search-form button {
  padding: 12px 24px;
  background: var(--steel-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-search-form button:hover {
  background: var(--steel-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 124, 155, 0.35);
}

.blog-categories-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-categories-filter a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--off-white);
  color: var(--body-text);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--light-grey);
}

.blog-categories-filter a:hover,
.blog-categories-filter a.active {
  background: var(--steel-blue);
  color: var(--white);
  border-color: var(--steel-blue);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--light-grey);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--steel-blue);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--off-white);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-image .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--steel-blue);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.blog-card-content h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--dark-text);
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: var(--steel-blue);
}

.blog-card-excerpt {
  color: var(--mid-grey);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--mid-grey);
  padding-top: 16px;
  border-top: 1px solid var(--light-grey);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-no-posts {
  text-align: center;
  padding: 80px 0;
  color: var(--mid-grey);
}

.blog-no-posts h3 {
  color: var(--dark-text);
  margin-bottom: 12px;
}

.blog-no-posts p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination a {
  background: var(--off-white);
  color: var(--body-text);
  border: 1px solid var(--light-grey);
}

.blog-pagination a:hover {
  background: var(--steel-blue);
  color: var(--white);
  border-color: var(--steel-blue);
}

.blog-pagination .active {
  background: var(--steel-blue);
  color: var(--white);
  border: 1px solid var(--steel-blue);
}

.blog-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.blog-breadcrumbs {
  padding: 100px 0 0;
  margin-top: 72px;
}

.blog-breadcrumbs nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--mid-grey);
}

.blog-breadcrumbs a {
  color: var(--steel-blue);
}

.blog-breadcrumbs a:hover {
  color: var(--steel-blue-light);
}

.blog-breadcrumbs .separator {
  color: var(--mid-grey);
}

.blog-breadcrumbs .current {
  color: var(--dark-text);
  font-weight: 500;
}

.blog-article-header {
  padding: 32px 0 40px;
}

.blog-article-header .category-badge {
  margin-bottom: 16px;
}

.blog-article-header h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--mid-grey);
}

.blog-article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-author-byline-link {
  color: #4a7c9b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-author-byline-link:hover {
  color: #1a2332;
  text-decoration: underline;
}

.blog-article-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-article-tags a {
  display: inline-block;
  padding: 2px 10px;
  background: var(--off-white);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--steel-blue);
  transition: all 0.3s ease;
}

.blog-article-tags a:hover {
  background: var(--steel-blue);
  color: var(--white);
}

.blog-featured-image {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-featured-image figcaption {
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--mid-grey);
  font-style: italic;
  text-align: center;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-bottom: 60px;
}

.blog-article-content {
  min-width: 0;
}

.blog-article-content h2 {
  font-size: 1.75rem;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-grey);
}

.blog-article-content h3 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.blog-article-content h4 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.blog-article-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-bottom: 20px;
  padding-left: 28px;
  line-height: 1.8;
}

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

.blog-article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--steel-blue);
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--body-text);
  line-height: 1.8;
}

.blog-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.blog-article-content pre {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--navy);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.6;
}

.blog-article-content pre code {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  background: none;
  padding: 0;
  border-radius: 0;
}

.blog-article-content code {
  background: var(--off-white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  color: var(--steel-blue);
}

.blog-article-content a {
  color: var(--steel-blue);
  text-decoration: underline;
}

.blog-article-content a:hover {
  color: var(--steel-blue-light);
}

.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.blog-article-content th,
.blog-article-content td {
  padding: 12px 16px;
  border: 1px solid var(--light-grey);
  text-align: left;
}

.blog-article-content th {
  background: var(--off-white);
  font-weight: 600;
}

.blog-sidebar {
  position: relative;
}

.blog-sidebar-inner {
  position: sticky;
  top: 100px;
}

.blog-sidebar-widget {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.blog-sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-grey);
  color: var(--dark-text);
}

.blog-toc-list {
  list-style: none;
  padding: 0;
}

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

.blog-toc-list li a {
  color: var(--body-text);
  font-size: 0.88rem;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: block;
}

.blog-toc-list li a:hover {
  color: var(--steel-blue);
}

.blog-toc-list li.toc-h3 {
  padding-left: 16px;
}

.blog-share-buttons {
  display: flex;
  gap: 12px;
}

.blog-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.3s ease;
  color: var(--white);
  text-decoration: none;
}

.blog-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.blog-share-btn.facebook {
  background: #1877f2;
}

.blog-share-btn.linkedin {
  background: #0077b5;
}

.blog-share-btn.twitter {
  background: #000000;
}

.blog-sidebar-categories {
  list-style: none;
  padding: 0;
}

.blog-sidebar-categories li {
  margin-bottom: 4px;
}

.blog-sidebar-categories li a {
  display: block;
  padding: 8px 12px;
  color: var(--body-text);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.blog-sidebar-categories li a:hover {
  background: var(--off-white);
  color: var(--steel-blue);
}

.blog-cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel-blue-dark, #3a6580) 100%);
  color: var(--white);
  padding: 48px;
  border-radius: 12px;
  text-align: center;
  margin: 48px 0;
}

.blog-cta-block h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.blog-cta-block p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.blog-related-section {
  padding: 60px 0;
  border-top: 1px solid var(--light-grey);
}

.blog-related-section h2 {
  margin-bottom: 32px;
  font-size: 1.75rem;
}

.blog-category-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}

.blog-category-main {
  min-width: 0;
}

@media (max-width: 968px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-sidebar {
    order: -1;
  }

  .blog-sidebar-inner {
    position: static;
  }

  .blog-article-header h1 {
    font-size: 2rem;
  }

  .blog-category-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-cta-block {
    padding: 36px 24px;
  }
}

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

  .blog-search-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-form {
    max-width: 100%;
  }

  .blog-article-header h1 {
    font-size: 1.75rem;
  }

  .blog-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-cta-block {
    padding: 32px 20px;
  }

  .blog-breadcrumbs {
    padding: 90px 0 0;
  }

  .blog-related-section .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-author-box-inner {
    flex-direction: column;
    text-align: center;
  }

  .blog-author-photo, .blog-author-photo-placeholder {
    margin: 0 auto;
  }
}

/* Comments Section */
.blog-comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e8ecf1;
}

.blog-comments-section h2 {
  font-size: 1.75rem;
  margin-bottom: 30px;
  color: #1a2332;
}

.comment-list {
  margin-bottom: 50px;
}

.comment-item {
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e8ecf1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 700;
  color: #1a2332;
  font-size: 1rem;
}

.comment-date {
  font-size: 0.85rem;
  color: #8a95a5;
}

.comment-content {
  color: #4a5568;
  line-height: 1.6;
  white-space: pre-wrap;
}

.no-comments {
  color: #8a95a5;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}

.comment-form-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.comment-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1a2332;
}

.comment-note {
  font-size: 0.85rem;
  color: #8a95a5;
  margin-bottom: 24px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.comment-form .form-group {
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a2332;
  font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #4a7c9b;
  box-shadow: 0 0 0 4px rgba(74, 124, 155, 0.1);
}

.comment-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.comment-status.success {
  display: block;
  background: #e6f7ed;
  color: #1a7d3e;
  border: 1px solid #c6f6d5;
}

.comment-status.error {
  display: block;
  background: #fde8e8;
  color: #c53030;
  border: 1px solid #fed7d7;
}

@media (max-width: 768px) {
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
}

.blog-author-box {
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}

.blog-author-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.blog-author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8ecf1;
  flex-shrink: 0;
}

.blog-author-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #4a7c9b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-author-info {
  flex: 1;
}

.blog-author-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a95a5;
  margin-bottom: 4px;
}

.blog-author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 8px;
}

.blog-author-bio {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-author-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a7c9b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-author-link:hover {
  color: #1a2332;
  text-decoration: underline;
}
