
.blog-details-modern {
  padding-top: 160px;
  font-family: "Montserrat", sans-serif;
}

/* .blog-details-modern .container {
  max-width: 1600px;
} */

/* Loading & Error States */
.loading-wrapper,
.error-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

/* Blog Header */
.blog-header-modern {
  text-align: center;
  padding: 0 0 40px;
  margin-bottom: 48px;
}

.blog-title-modern {
  font-family: "Clash Display", sans-serif;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: #DD630F;
  margin-bottom: 32px;
}

.blog-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 24px;
}

.meta-item-modern {
  display: flex;
  align-items: center;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meta-item-modern svg {
  margin-right: 8px;
}

/* Blog Image */
.blog-image-modern {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 48px;
}

.blog-image-modern img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

/* Blog Content */
.blog-content {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #000000;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: "Clash Display", sans-serif;
  font-weight: 300;
  color: #DD630F;
  margin: 48px 0 24px;
  letter-spacing: -0.01em;
}

.blog-content h2 {
  font-size: 48px;
  line-height: 1.2;
  scroll-margin-top: 100px;
}

.blog-content h3 {
  font-size: 36px;
  line-height: 1.3;
}

.blog-content h4 {
  font-size: 28px;
  line-height: 1.3;
}

.blog-content p {
  margin-bottom: 24px;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

.blog-content a {
  color: #f96805;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.blog-content a:hover {
  opacity: 0.8;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 32px 0;
}

.blog-content ul,
.blog-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.blog-content li {
  margin-bottom: 16px;
  color: #000000;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}

.blog-content blockquote {
  border-left: 4px solid #f96805;
  padding: 24px 32px;
  margin: 32px 0;
  background: #fff4ed;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #000000;
}

.blog-content code {
  background: #fff4ed;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 18px;
  color: #f96805;
  font-family: 'Courier New', monospace;
}

.blog-content pre {
  background: #000000;
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  overflow-x: auto;
  margin: 32px 0;
}

.blog-content pre code {
  background: transparent;
  color: #fff;
  padding: 0;
}

/* Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.sidebar-scroll-wrapper {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar-card-modern {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}

.sidebar-card-modern:hover {
  transform: translateY(-5px);
}

.sidebar-title-modern {
  font-family: "Clash Display", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

.sidebar-title-modern svg {
  margin-right: 8px;
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  padding: 16px 20px;
  margin-bottom: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000000;
  font-weight: 500;
  font-size: 18px;
  border-left: 3px solid transparent;
}

.toc-item:hover {
  background: #fff4ed;
  color: #f96805;
  border-left-color: #f96805;
}

.toc-item.active {
  background: #fff4ed;
  color: #f96805;
  border-left-color: #f96805;
  font-weight: 600;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  color: white;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.linkedin {
  background: #0a66c2;
}

.share-btn.copy {
  background: #f96805;
}

/* Alert */
.alert {
  border-radius: 12px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-title-modern {
    font-size: 60px;
  }

  .blog-content h2 {
    font-size: 40px;
  }

  .blog-content h3 {
    font-size: 32px;
  }
}

@media (max-width: 991px) {
  .blog-details-modern {
    padding: 60px 0;
  }

  .blog-title-modern {
    font-size: 48px;
  }

  .blog-content {
    font-size: 18px;
  }

  .blog-content h2 {
    font-size: 36px;
  }

  .blog-content h3 {
    font-size: 28px;
  }

  .blog-content h4 {
    font-size: 24px;
  }

  .blog-content p,
  .blog-content li {
    font-size: 18px;
  }

  .sidebar-sticky {
    position: static;
    margin-top: 48px;
  }

  .meta-item-modern {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .blog-title-modern {
    font-size: 40px;
  }

  .blog-header-modern {
    padding: 0 0 32px;
    margin-bottom: 32px;
  }

  .blog-meta-modern {
    gap: 16px;
    font-size: 16px;
  }

  .meta-item-modern {
    font-size: 16px;
  }

  .blog-content h2 {
    font-size: 32px;
  }

  .blog-content h3 {
    font-size: 24px;
  }

  .sidebar-card-modern {
    padding: 24px;
  }

  .sidebar-title-modern {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .blog-details-modern {
    padding: 40px 0;
  }

  .blog-title-modern {
    font-size: 32px;
  }

  .blog-content {
    font-size: 16px;
  }

  .blog-content h2 {
    font-size: 28px;
    margin: 32px 0 16px;
  }

  .blog-content h3 {
    font-size: 22px;
  }

  .blog-content h4 {
    font-size: 20px;
  }

  .blog-content p,
  .blog-content li {
    font-size: 16px;
  }

  .blog-meta-modern {
    flex-direction: column;
    gap: 12px;
  }

  .sidebar-card-modern {
    padding: 20px;
  }

  .share-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .toc-item {
    font-size: 16px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .blog-title-modern {
    font-size: 26px;
  }

  .blog-content h2 {
    font-size: 24px;
  }

  .blog-content h3 {
    font-size: 20px;
  }

  .sidebar-title-modern {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  .blog-title-modern {
    font-size: 22px;
  }

  .blog-content {
    font-size: 15px;
  }

  .blog-content h2 {
    font-size: 22px;
  }

  .share-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-header-modern,
.blog-image-modern,
.blog-content,
.sidebar-card-modern {
  animation: fadeInUp 0.6s ease-out;
}

.blog-content {
  animation-delay: 0.2s;
}

.sidebar-card-modern {
  animation-delay: 0.3s;
}

.sidebar-blog {
 display: block;   
}

@media (max-width:768px) {
    .sidebar-blog {
        display: none;
    }
}