/* Blog Layout */
.blog-container {
  display: flex;
  gap: 80px;
  max-width: 100%;
  margin: 0;
  padding: 120px 8vw 80px 8vw;
  box-sizing: border-box;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  flex-shrink: 0;
  width: 280px;
}

.blog-main-title {
  font-family: 'Inria Serif', serif;
  font-size: 48px;
  font-weight: 400;
  margin: 0 0 48px 0;
  color: #111;
  line-height: 1;
}

.blog-nav {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.blog-nav-link {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s ease;
  font-family: 'Manrope', Arial, sans-serif;
}

.blog-nav-link:hover {
  color: #111;
}

.blog-nav-link.active {
  color: #111;
  font-weight: 400;
}

/* Blog Content */
.blog-content {
  flex: 1;
  max-width: 900px;
  margin: 0;
  min-height: calc(100vh - 400px);
}

.blog-post {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f0f0f0;
}

.blog-post:first-child {
  margin-top: 0;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-title {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 12px 0;
  color: #111;
  line-height: 1.3;
  font-family: 'Manrope', Arial, sans-serif;
  transition: opacity 0.2s ease;
}

.blog-post-link:hover .blog-post-title {
  opacity: 0.7;
}

.blog-post-description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 16px 0;
  font-weight: 400;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.blog-post-category {
  color: #999;
  font-weight: 400;
}

.blog-post-separator {
  color: #ddd;
}

.blog-post-date {
  color: #999;
  font-weight: 400;
}

/* Individual Blog Post Page */
.blog-post-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 8vw 80px 8vw;
}

.blog-post-header {
  margin-bottom: 48px;
}

.blog-breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
}

.blog-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
  color: #111;
}

.blog-post-page-title {
  font-size: 48px;
  font-weight: 400;
  margin: 0 0 16px 0;
  color: #111;
  line-height: 1.2;
  font-family: 'Manrope', Arial, sans-serif;
}

.blog-post-page-meta {
  font-size: 14px;
  color: #999;
}

.blog-post-featured-image {
  width: 100%;
  height: auto;
  margin-bottom: 48px;
  background: #e8e8e8;
  border-radius: 8px;
}

.blog-post-toc {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.blog-post-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.blog-post-toc-title {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin: 0;
}

.blog-post-toc-toggle {
  font-size: 12px;
  color: #999;
  transition: transform 0.3s ease;
}

.blog-post-toc.collapsed .blog-post-toc-toggle {
  transform: rotate(180deg);
}

.blog-post-toc-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.blog-post-toc.collapsed .blog-post-toc-list {
  display: none;
}

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

.blog-post-toc-list a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-toc-list a:hover {
  color: #111;
}

.blog-post-body {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

.blog-post-body h2 {
  font-size: 32px;
  font-weight: 400;
  margin: 48px 0 20px 0;
  color: #111;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-size: 24px;
  font-weight: 400;
  margin: 32px 0 16px 0;
  color: #111;
  line-height: 1.3;
}

.blog-post-body p {
  margin: 0 0 20px 0;
}

.blog-post-body a {
  color: #111;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.blog-post-body a:hover {
  opacity: 0.7;
}

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

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

.blog-post-body code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.blog-post-body pre {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 20px 0;
}

.blog-post-body pre code {
  background: none;
  padding: 0;
}

/* Previous/Next Post Navigation */
.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid #f0f0f0;
}

.blog-post-nav-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.blog-post-nav-link:hover {
  opacity: 0.7;
}

.blog-post-nav-link.prev {
  text-align: left;
}

.blog-post-nav-link.next {
  text-align: right;
}

.blog-post-nav-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.blog-post-nav-title {
  font-size: 18px;
  color: #111;
  font-weight: 400;
  line-height: 1.3;
}

/* Mobile responsive */
@media screen and (max-width: 780px) {
  .blog-container {
    flex-direction: column;
    gap: 40px;
    padding: 100px 5vw 60px 5vw;
  }

  .blog-sidebar {
    position: static;
    width: 100%;
  }

  .blog-main-title {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .blog-post {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .blog-post-title {
    font-size: 22px;
  }

  .blog-post-page {
    padding: 100px 5vw 60px 5vw;
  }

  .blog-post-page-title {
    font-size: 32px;
  }

  .blog-post-navigation {
    flex-direction: column;
    gap: 32px;
  }

  .blog-post-nav-link.next {
    text-align: left;
  }
}

/* Blog Footer Styles */
.footer-section {
  margin: 80px 0 0 0;
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 0;
  padding: 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 8vw;
  box-sizing: border-box;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  color: #111;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.footer-column-header {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin: 0 0 8px 0;
  font-family: 'Manrope', Arial, sans-serif;
  text-transform: uppercase;
}

.footer-link {
  font-size: 15px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  overflow: visible;
}

.footer-link:hover {
  color: #111;
}

.footer-bottom {
  padding: 24px 8vw;
}

.footer-copyright {
  font-size: 13px;
  color: #999;
  margin: 0;
  font-weight: 400;
}

@media screen and (max-width: 780px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
    padding: 40px 5vw;
  }

  .footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    padding: 20px 5vw;
  }
}

@media screen and (min-width: 781px) and (max-width: 1024px) {
  .footer-container {
    padding: 50px 6vw;
  }

  .footer-columns {
    gap: 60px;
  }

  .footer-bottom {
    padding: 22px 6vw;
  }
}

/* Tablet responsive */
@media screen and (min-width: 781px) and (max-width: 1024px) {
  .blog-container {
    gap: 60px;
    padding: 110px 6vw 70px 6vw;
  }

  .blog-sidebar {
    width: 220px;
  }

  .blog-main-title {
    font-size: 40px;
  }
}
