.detail-news-container {
  width: 80%;
  margin: 0 auto;
  padding: 20px 0 80px 0; /* Added bottom padding to prevent footer collision */
  margin-top: 50px;
  min-height: calc(100vh - 200px); /* Subtract footer height to prevent overflow */
}

.breadcrumb {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-news-title {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-black-default);
  font-size: 40px;
  width: 65%;
  margin: 50px auto 30px;
  text-align: center;
}

.detail-news-header {
  font-family: var(--font-family-main);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.detail-news-header img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.news-source {
  font-weight: var(--font-weight-semi-bold);
  font-weight: bold;
  font-size: 20px;
  color: #030303;
}

.bullet {
  font-size: 30px;
  margin: 0 5px 5px 10px;
  color: #6c757d;
}

.news-time {
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  color: #6c757d;
}

.main-content {
  display: flex;
  justify-content: space-between;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.content {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-black-default);
}

.content strong {
  font-weight: 700;
}

.other-news {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.other-news i {
  margin-left: 5px;
}

.news-item {
  width: 100%;
  height: auto;
}

.news-item img {
  width: 130px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
}

.title-time-container {
  display: flex;
  flex-direction: row; /* Default: judul dan waktu berdampingan */
  align-items: center;
}

.news-item-content {
  flex: 1;
}

.news-item-header {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.news-item-header img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.news-item-header .title {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  font-size: 14px;
  font-weight: bold;
  color: #000000;
  margin-right: 10px;
}

.news-item-header .time {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  font-size: 10px;
  color: #888888;
  display: flex;
  align-items: center;
}

.news-item-header .time::before {
  content: "•";
  font-size: 10px;
  font-weight: bold;
  margin-right: 2px;
}

.news-item-title {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-semi-bold);
  font-size: 1rem !important; /* Ukuran font judul berita */
  overflow: hidden; /* Menghindari overflow */
  text-overflow: ellipsis; /* Menambahkan elipsis jika teks terlalu panjang */
  white-space: unset; /* Mencegah teks membungkus ke baris berikutnya */
  margin-top: 5px;
}

.news-item-read-more {
  font-family: var(--font-family-main);
  font-weight: var(--font-weight-regular);
  text-decoration: none;
  font-size: 0.6rem;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .detail-news-container {
    padding: 20px 0 60px 0; /* Adjust bottom padding for mobile */
  }

  .right {
    margin-top: 50px;
  }

  .title-time-container {
    flex-direction: column; /* Saat responsif: judul di atas waktu */
    align-items: flex-start; /* Rata kiri */
  }

  .time {
    margin-top: 5px; /* Jarak antara judul dan waktu */
  }

  .detail-news-title {
    font-size: 16px; /* Ukuran untuk layar kecil */
  }

  .detail-news-header span {
    font-size: 12px;
  }

  .detail-news-header img {
    width: 25px;
    height: 25px;
  }

  .news-item-header img {
    width: 25px;
    height: 25px;
  }

  .news-item-header span {
    font-size: 0.6rem !important;
  }

  .news-item-title {
    font-size: 0.6rem !important;
  }

  .news-item-header .time::before {
    content: "";
    margin-right: 0px;
  }
}

@media (max-width: 480px) {
  .detail-news-container {
    padding: 20px 0 50px 0; /* Adjust bottom padding for very small screens */
  }

  .news-item-title {
    font-size: 8px;
  }
}

.title {
  font-size: 16px; /* Ukuran default untuk title */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .title {
    font-size: 14px; /* Ukuran untuk layar kecil */
  }
}

@media (max-width: 480px) {
  .news-item-header .title {
    font-size: 12px; /* Ukuran untuk layar sangat kecil */
  }

  .title {
    font-size: 12px; /* Ukuran untuk layar sangat kecil */
  }
}

.time {
  font-size: 12px; /* Ukuran default untuk time */
}

@media (min-width: 820px) and (max-width: 1366px) {
  .news-item {
    margin-bottom: 10px !important;
  }

  .news-item-header span {
    font-size: 0.7rem !important;
  }

  .news-item-title {
    font-size: 0.9rem !important;
  }
}
