/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

:root {
  --color-white: #fff;
  --color-blue: #1b9fe0;
  --bg-blue: #1b9fe0;
  --bg-blue-hover: #188fc9;
  --color-orange: #f29015;
  --bg-orange: #f29015;
  --bg-orange-hover: #d87c0c;
  --color-gray: #000000;
  --color-title: #000000;
  --radius: 24px;
}

/* TOC Headers */
.js-toc-content h1, 
.js-toc-content h2, 
.js-toc-content h3, 
.js-toc-content h4, 
.js-toc-content h5, 
.js-toc-content h6 {
  scroll-margin-top: 85px;
}

/* Banner Section */
.news-detail-banner-header {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 60vh;
  border-bottom-right-radius: 8rem;
  display: flex;
  margin: 0;
}

.news-detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    #359ed9 0%,
    rgba(53, 158, 217, 0.95) 50%,
    rgba(53, 158, 217, 0.7) 60%,
    rgba(53, 158, 217, 0) 100%
  );
  opacity: 0.6;
  pointer-events: none;
  border-bottom-right-radius: 8rem;
}

.news-detail-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-bottom-right-radius: 8rem;
}

.news-detail-header-content {
  position: absolute;
  max-width: 1200px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  z-index: 4;
  box-sizing: border-box;
}

.news-detail-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
}

.news-detail-title {
  color: #fff;
  margin-bottom: 0.2rem;
}

.news-detail-company {
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-size: 1rem;
  flex-wrap: wrap;
}

.news-detail-meta i {
  margin-right: 0.3rem;
  color: #fff;
}

.dot-separator {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0.2rem;
}

/* Main Section dengan 12 Column Layout */
.news-detail-section {
  padding: 2rem 6rem;
  border-radius: var(--radius);
  width: 100%;
  position: relative;
  margin: 0;
  box-sizing: border-box;
}

.news-detail-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Main Content - 9 kolom */
.news-detail-main-content {
  width: 100%;
  min-width: 0; /* Prevent overflow */
  box-sizing: border-box;
}

.news-detail-desc {
  margin-top: 1.5rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-detail-desc img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
  .news-detail-desc img {
    max-width: 600px;
  }
}

/* Sidebar - 3 kolom */
.news-detail-sidebar {
  width: 100%;
  min-width: 0; /* Prevent overflow */
  box-sizing: border-box;
}

.sidebar-content {
  position: sticky;
  top: 2rem;
}

.sidebar-title {
  color: #505050;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: start;
}

.recent-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Recent News Card */
.recent-news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.recent-news-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.recent-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-news-card:hover .recent-news-image img {
  transform: scale(1.05);
}

.recent-news-category {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--bg-orange);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.recent-news-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
  box-sizing: border-box;
}

.recent-news-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.recent-news-date {
  color: #505050 !important;
  font-size: 0.8rem;
  font-weight: 500;
}

.recent-news-label {
  color: #666;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.recent-news-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.recent-news-title a {
  color: #505050 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  font-weight: 600 !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recent-news-title a:hover {
  color: var(--bg-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-detail-container {
    gap: 2rem;
    max-width: 100%;
  }
  
  
  .recent-news-image {
    height: 120px;
  }
}

@media (max-width: 768px) {
  .news-detail-header-content {
    padding: 1rem 2rem;
    padding-top: 4rem;
  }
  
  .news-detail-section {
    padding: 1rem 2rem;
  }
  
  .news-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }
  
  .news-detail-sidebar {
    order: 2;
  }
  
  .news-detail-hero-overlay {
      background: linear-gradient(
          135deg,
          #359ed9 0%,
          rgba(53, 158, 217, 0.9) 40%,
          rgba(53, 158, 217, 0.4) 100%
        );
        opacity: 0.6;
      border-bottom-right-radius: 8rem;
    }
  
  
  
  .sidebar-content {
    position: static;
  }
  
  .recent-news-image {
    height: 100%;
  }
  
  .sidebar-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  
  .news-detail-section {
    padding: 1rem 2rem;
  }
  
  
  .recent-news-content {
    padding: 1rem;
  }
  
  .sidebar-title {
    font-size: 1.2rem;
  }
}

/* ===== BREADCRUMB STYLES START ===== */
.breadcrumb-container {
  margin-bottom: 2rem;
  position: relative;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  flex-wrap: wrap;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  position: relative;
}
.breadcrumb-item:not(.breadcrumb-current) {
  cursor: pointer;
}
.breadcrumb-item i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.breadcrumb-item:hover i {
  transform: scale(1.1);
}
.breadcrumb-separator {
  color: #adb5bd;
  font-size: 0.7rem;
  margin: 0 0.2rem;
  transition: color 0.3s ease;
}
.breadcrumb-current {
  color: #505050 ;
  font-weight: 500;
  position: relative;
}
.breadcrumb-current span {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}


 .js-toc {
    position: relative;
    left: 0;
    top: 1rem;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #505050;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* Styling link di TOC */
  .js-toc a {
    color: #616161 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400 !important;
  }

  .js-toc a:hover {
    color: black;
    text-decoration: none !important;
  }

  /* Hilangkan SEMUA garis dan elemen visual Tocbot */
  .toc-list-item.is-active-li::before,
  .toc-list::before,
  .toc-list-item::before,
  .toc-list::after,
  .toc-list-item::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
  }

  /* Hilangkan border dan background pada semua elemen TOC */
  .toc-list,
  .toc-list-item {
    border: none !important;
    border-left: none !important;
    background: none !important;
    position: relative !important;
  }

  /* Reset padding untuk list */
  .toc-list {
    padding-left: 0 !important;
    margin: 0 !important;
  }

  /* Reset padding untuk nested list */
  .toc-list .toc-list {
    padding-left: 15px !important;
  }

  /* Hilangkan semua pseudo-element yang mungkin membuat garis */
  .js-toc *::before,
  .js-toc *::after {
    display: none !important;
  }





