.new-layout-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 30px 0 0 0;
  }
  .new-layout-sidebar {
    width: 250px;
    padding: 30px;
  }
  .new-layout-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }
  .new-layout-sidebar-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
  }
  .new-layout-sidebar-item {
    width: auto;
  }
  .new-layout-sidebar-item-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
  }
  .new-layout-sidebar-item-wrapper .iconsax {
    font-size: 22px;
    line-height: 24px;
    color: #1d1d1f;
  }
  .new-layout-sidebar-item-wrapper .new-layout-sidebar-item-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #1d1d1f;
  }
  .new-layout-sidebar-item-wrapper.active .new-layout-sidebar-item-text,
  .new-layout-sidebar-item-wrapper:hover .new-layout-sidebar-item-text {
    color: #06c;
  }
  .new-layout-sidebar-item-wrapper.active .iconsax,
  .new-layout-sidebar-item-wrapper:hover .iconsax {
    color: #06c;
  }
  .new-layout-content-banner {
    width: 100%;
    overflow: hidden;
  }
  .new-layout-content-banner img {
    width: 100%;
    height: 315px;
    object-fit: cover;
    border-radius: 16px;
  }
  .new-layout-content-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    padding: 4px 24px 8px 24px;
  }
  .new-layout-content-detail-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .new-layout-content-detail-title h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    color: #1D1D1F;
  }
  .new-layout-content-detail-date {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
  .new-layout-content-detail-date .iconsax {
    font-size: 22px;
    line-height: 24px;
    color: #86868B;
  }
  .new-layout-content-detail-date span {
    font-size: 16px;
    line-height: 24px;
    color: #86868B;
  }
  .new-layout-content-detail-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .new-layout-content-detail-body img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  @media (max-width: 1240px) {
    .new-layout-wrapper {
      padding: 0 20px;
    }
    .new-layout-sidebar {
      padding-top: 10px;
    }
  }
  
  @media (max-width: 1024px) {
    .new-layout-wrapper {
      padding: 0 15px;
    }
    .new-layout-sidebar {
      width: 220px;
      padding: 20px;
    }
    .new-layout-content-banner img {
      height: 280px;
    }
  }
  
  @media (max-width: 768px) {
    .new-layout-wrapper {
      padding: 0 10px;
      flex-direction: column;
      gap: 15px;
    }
    .new-layout-sidebar {
      width: 100%;
      padding: 0;
      order: 1;
      margin-bottom: 20px;
    }
    .new-layout-content {
      order: 2;
    }
    .new-layout-content-banner img {
      height: 200px;
    }
    .new-layout-content-detail {
      padding: 15px;
    }
    .new-layout-content-detail-title h1 {
      font-size: 20px;
      line-height: 28px;
    }
    .new-layout-sidebar-list {
      display: flex;
      flex-direction: row;
      gap: 10px;
      overflow-x: auto;
      padding: 10px 0;
      scrollbar-width: thin;
      scrollbar-color: #ccc transparent;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }
    
    .new-layout-sidebar-list::-webkit-scrollbar {
      height: 4px;
    }
    
    .new-layout-sidebar-list::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 2px;
    }
    
    .new-layout-sidebar-list::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 2px;
    }
    
    .new-layout-sidebar-list::-webkit-scrollbar-thumb:hover {
      background: #999;
    }
    
    .new-layout-sidebar-item {
      flex-shrink: 0;
      min-width: fit-content;
    }
    
    .new-layout-sidebar-item-wrapper {
      white-space: nowrap;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }

    /* .new-layout-sidebar-item-wrapper i {
      display: none;
    } */
    
    .new-layout-sidebar-item-wrapper:hover {
      background: #e9ecef;
      transform: translateY(-1px);
    }
    
    .new-layout-sidebar-item-wrapper.active {
      border-bottom: 2px solid #06c;
    }
    
    .new-layout-sidebar-item-wrapper.active .iconsax,
    .new-layout-sidebar-item-wrapper.active .new-layout-sidebar-item-text {
      color: #06c;
    }
    
    .new-layout-sidebar-item-wrapper .iconsax {
      font-size: 16px;
      margin-right: 6px;
    }
    
    .new-layout-sidebar-item-wrapper .new-layout-sidebar-item-text {
      font-size: 13px;
      font-weight: 500;
    }
  }
  
  @media (max-width: 480px) {
    .new-layout-wrapper {
      padding: 0 5px;
    }
    .new-layout-sidebar {
      padding: 0;
      margin-bottom: 15px;
    }
    .new-layout-content-banner img {
      height: 180px;
    }
    .new-layout-content-detail {
      padding: 12px;
    }
    .new-layout-content-detail-title h1 {
      font-size: 18px;
      line-height: 26px;
    }
    .new-layout-sidebar-list {
      gap: 2px;
      padding: 8px 0;
    }
    .new-layout-sidebar-item-wrapper {
      padding: 6px 10px;
    }
    .new-layout-sidebar-item-wrapper .iconsax {
      font-size: 14px;
      margin-right: 4px;
    }
    .new-layout-sidebar-item-wrapper .new-layout-sidebar-item-text {
      font-size: 12px;
    }
  }

/* =============================================
   LOADING PAGE STYLES
   ============================================= */

/* Loading Overlay */
.blog-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.blog-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading Container */
.blog-loading-container {
    text-align: center;
    padding: 40px;
}

/* Loading Spinner */
.blog-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: blog-spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Loading Text */
.blog-loading-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-loading-subtext {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Loading Animation */
@keyframes blog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Dots Animation */
.blog-loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.blog-loading-dots::after {
    content: '';
    animation: blog-dots 1.5s infinite;
}

@keyframes blog-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Alternative Loading Styles */
.blog-loading-pulse {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 50%;
    animation: blog-pulse 1.5s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes blog-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Loading Bar */
.blog-loading-bar {
    width: 200px;
    height: 4px;
    background: #f3f3f3;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.blog-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #000, #333);
    border-radius: 2px;
    animation: blog-progress 2s ease-in-out infinite;
}

@keyframes blog-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Page Content Hidden During Loading */
.blog-content-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-content-loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .blog-pagination,
    .blog-social-share,
    .blog-related-posts,
    .blog-loading-overlay {
        display: none;
    }
    
    .blog-post,
    .blog-detail-content {
        border: 1px solid #ddd;
    }
    
    .blog-header {
        background: none;
        color: #333;
    }
}

/* Related Posts Section */
.blog-related-posts {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.blog-related-posts h4 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.blog-related-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-related-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-related-item:hover .blog-related-image img {
    transform: scale(1.05);
}

.blog-related-content {
    padding: 20px;
}

.blog-related-title {
    margin-bottom: 15px;
}

.blog-related-title a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-related-title a:hover {
    color: #007bff;
}

.blog-related-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

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

.blog-related-meta i {
    font-size: 14px;
    color: #999;
}

/* Empty State for Related Posts */
.blog-related-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.blog-related-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

.blog-related-empty p {
    font-size: 16px;
    margin: 0;
    color: #888;
}

/* Responsive Design for Related Posts */
@media (max-width: 1024px) {
    .blog-related-posts {
        max-width: 100%;
        padding: 25px 15px;
    }
    
    .blog-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .blog-related-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .blog-related-posts {
        margin-top: 30px;
        padding: 20px 10px;
    }
    
    .blog-related-posts h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .blog-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .blog-related-image {
        height: 160px;
    }
    
    .blog-related-content {
        padding: 15px;
    }
    
    .blog-related-title a {
        font-size: 15px;
    }
    
    .blog-related-meta {
        font-size: 12px;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog-related-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-related-posts {
        padding: 15px 5px;
    }
    
    .blog-related-posts h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .blog-related-image {
        height: 180px;
    }
    
    .blog-related-content {
        padding: 12px;
    }
    
    .blog-related-title a {
        font-size: 14px;
    }
    
    .blog-related-meta {
        font-size: 11px;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .blog-related-posts {
        padding: 10px 5px;
    }
    
    .blog-related-posts h4 {
        font-size: 16px;
    }
    
    .blog-related-image {
        height: 160px;
    }
    
    .blog-related-content {
        padding: 10px;
    }
    
    .blog-related-title a {
        font-size: 13px;
    }
}
