.blog-sidebar-row {
  display: flex;
  align-items: center;
}
.blog-sidebar-row .products-sidebar-link {
  flex: 1;
  min-width: 0;
}

.blog-sidebar-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: none;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  transition: color 0.15s ease;
}
.blog-sidebar-toggle i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.blog-sidebar-toggle:not(.collapsed) i {
  transform: rotate(180deg);
}
.blog-sidebar-toggle:hover {
  color: var(--theme-primary-color);
}
.blog-sidebar-toggle:focus {
  outline: none;
  box-shadow: none;
}

.blog-sidebar-link--child {
  padding-left: 1.5rem;
  font-size: 0.875rem;
}

.blog-sidebar-link--grandchild {
  padding-left: 2.25rem;
  font-size: 0.85rem;
}

.badge-theme-primary {
  background-color: var(--theme-primary-color);
  color: #fff;
}

.blog-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-card-img-placeholder {
  height: 200px;
}

.blog-related-img {
  height: 150px;
  object-fit: cover;
  width: 100%;
}

.blog-related-img-placeholder {
  height: 150px;
}

.blog-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--theme-border-color, #e9ecef);
}

.blog-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-meta {
  font-size: 0.95rem;
}
.blog-meta span {
  display: inline-block;
}
.blog-meta i {
  margin-right: 5px;
}

.blog-cover-image {
  text-align: center;
}
.blog-cover-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}
.blog-content p {
  margin-bottom: 1.5em;
}
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.3;
}
.blog-content h1 {
  font-size: 2em;
}
.blog-content h2 {
  font-size: 1.75em;
}
.blog-content h3 {
  font-size: 1.5em;
}
.blog-content h4 {
  font-size: 1.25em;
}
.blog-content h5 {
  font-size: 1.1em;
}
.blog-content h6 {
  font-size: 1em;
}
.blog-content ul, .blog-content ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}
.blog-content li {
  margin-bottom: 0.5em;
}
.blog-content blockquote {
  border-left: 4px solid #007bff;
  padding-left: 1.5em;
  margin: 2em 0;
  color: #6c757d;
  font-style: italic;
  font-size: 1.05em;
}
.blog-content a {
  color: #007bff;
  text-decoration: underline;
  transition: color 0.2s;
}
.blog-content a:hover {
  color: #0056b3;
  text-decoration: none;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.blog-content code {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
  color: #e83e8c;
  padding: 2px 6px;
  font-family: "Courier New", "Consolas", "Monaco", monospace;
  font-size: 0.9em;
}
.blog-content pre {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
}
.blog-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9em;
}
.blog-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 2em 0;
  border: 1px solid var(--theme-border-color, #dee2e6);
}
.blog-content td, .blog-content th {
  border: 1px solid var(--theme-border-color, #dee2e6);
  padding: 12px 15px;
  text-align: left;
}
.blog-content th {
  background-color: var(--theme-section-alt-bg-color, #f8f9fa);
  font-weight: 600;
}
.blog-content hr {
  border: 0;
  border-top: 2px solid var(--theme-border-color, #dee2e6);
  margin: 3em 0;
}

.blog-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.blog-lightbox.is-open {
  display: flex;
}
.blog-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.blog-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.blog-lightbox-close:hover {
  opacity: 1;
}

.blog-lightbox-trigger {
  cursor: zoom-in;
}

.blog-images h5 {
  font-weight: 600;
  color: #495057;
}
.blog-images img {
  transition: transform 0.2s;
}
.blog-images img:hover {
  transform: scale(1.05);
}

.blog-footer {
  font-size: 0.9rem;
}

.related-blogs h4 {
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 1.5rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-meta span {
    display: block;
    margin-bottom: 0.5rem;
  }
}
