/* path */
.path {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 5px;
}

.path span,
.path a {
  font-size: 0.9rem;
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}

/* article */
.article-box {
  width: 100%;
}

.article-box h1 {
  font-size: 2rem;
  font-weight: bold;
  font-family: "poppins", sans-serif;
  color: rgb(61, 140, 220);
}
.article-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 0;
}

.article-header-right {
  max-width: 250px;
  height: 50px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.article-header-right img {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  object-fit: cover;
  margin: auto 0;
}
.article-header-right-tag {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-header-right-tag p {
  font-size: 0.8rem;
  color: rgb(0, 0, 0);
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.article-header-left {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.article-header-left a {
  color: rgb(0, 0, 0);
  font-size: 1.3rem;
  margin: auto 0;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.article-content-img {
  width: 100%;
  height: auto;
}

.article-content-img img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 20px;
}

.article-content-text {
  display: flex;
  flex-direction: column;
}

.article-content-text > p {
  font-size: 1rem;
  color: rgb(63, 63, 63);
  font-weight: 400;
  font-family: "poppins", sans-serif;
}

.article-content-text > blockquote {
  font-family: "poppins", sans-serif;
  border-left: 4px solid rgb(41, 115, 188);
  padding-left: 10px;
  margin-left: 10px;
  font-style: italic;
  color: rgb(63, 63, 63);
}

.article-content-text > ul , li {
  font-family: "poppins", sans-serif;
  color: rgb(63, 63, 63);
}

/* Komentar Box Style untuk Blog Berita */
.comment-box {
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Poppins", sans-serif;
}

.comment-box h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
  border-left: 4px solid rgb(124, 0, 0);
  padding-left: 12px;
}

.comment-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  transition: border 0.2s;
}

.comment-form textarea:focus {
  border: 1.5px solid rgb(124, 0, 0);
  outline: none;
  background: #fff;
}

.comment-form textarea {
  min-height: 50px;
  resize: vertical;
}

.comment-form button[type="submit"] {
  align-self: flex-end;
  background: rgb(124, 0, 0);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.comment-form button[type="submit"]:hover {
  background: rgb(174, 17, 17);
}

.comment-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-list h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  padding-left: 12px;
}

.comment-item {
  background: #f6faff;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(182, 0, 0, 0.04);
}

.comment-item p {
  margin: 0;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
}

.comment-item strong {
  color: rgb(124, 0, 0);
  font-weight: 600;
}

/* berita serupa */

.topic-section {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
  border-bottom: 3px solid #dc3545; /* Red line similar to the image */
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block; /* To make the border only under the text */
}

.section-header h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #333;
  text-transform: uppercase;
}

.card-container {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Enable horizontal scrolling if cards exceed container width */
  padding-bottom: 10px; /* Space for scrollbar */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.card-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.card {
  min-width: 300px; /* Minimum width for each card */
  flex: 1; /* Allow cards to grow and shrink */
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  position: relative; /* For the "Kriminal" tag positioning */
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: auto; /* Fixed height for images */
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 15px;
}

.card-tag {
  background-color: #dc3545; /* Red tag */
  color: white;
  font-family: "Poppins", sans-serif;
  padding: 5px 10px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.card-title {
  font-family: "Poppins", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  color: #333;
  margin-top: 10px;
  line-height: 1.4;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card-title {
  color: #007bff; /* Blue on hover */
}

ul {
  list-style-type: disc; /* bulat default */
  padding-left: 20px; /* supaya bullet muncul */
}

ol {
  list-style-type: decimal; /* angka default */
  padding-left: 20px;
}


@media (max-width: 900px) {
  .path {
    width: 95%;
  }

  .path a {
    font-size: 0.8rem;
  }

  /* article */
  .article-header-right-tag p {
    font-size: 0.6rem;
  }
  .article-box {
    width: 96%;
  }
  .article-box h1 {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: "poppins", sans-serif;
  }
  /* Komentar Box Style untuk Blog Berita */
  .comment-box {
    padding: 18px 6px 16px 6px;
    width: 96%;
  }
  .comment-form button[type="submit"] {
    width: 100%;
    align-self: stretch;
  }

  /* berita lainnya */
  .section-header {
    margin-left: 20px;
  }
  .card-container {
    margin-left: 20px;
  }
}
