/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap');

:root {
    --bg-color: #000000;
    --text-first: #fafafa;
    --text-second: #0a0a0a;
    --first-color: #004E23;
    --second-color: #033201;
    --third-color: #000E00;
    --g1: #F5B834;
    --g2: #A16531;
    --font-family: "Nunito", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-first);
  font-family: var(--font-family);
  background: var(--bg-color);
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  background-color: var(--third-color);
  border-bottom: 2px solid var(--g1);
}

.logo img {
    height: 40px;
}

.search-form {
  position: relative;
  width: 250px;
}
.search-form .form-control {
  background-color: var(--bg-color);
  border: 1px solid var(--g1);
  color: var(--text-first);
  border-radius: 5px;
}
.search-form .form-control::placeholder {
  color: var(--text-secondary);
}
.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background-color: var(--g1);
  color: var(--text-second);
  border-radius: 0 5px 5px 0;
  font-weight: bold;
  padding: 0 1rem;
}

.main-title {
  color: var(--text-first);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  /* --- PERUBAHAN 1: Judul Utama di Tengah --- */
  justify-content: center;
}

/* --- PERUBAHAN 1: Menghapus ikon 'S' dan menggantinya dengan ikon koin '$' --- */
.icon-title {
  display: none;
}
.main-title::before,
.main-title::after {
    content: '$';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
    color: var(--text-second);
    border-radius: 50%;
    font-weight: bold;
    margin: 0 15px;
    font-size: 1.1rem;
}


.article-card {
  background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 100%);
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--g1);
}

.article-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--third-color);
  border-radius: 5px;
}

.article-card .card-img-top {
  border-bottom: 1px solid var(--g1);
  height: 180px;
  object-fit: cover;
}

.article-card .card-body {
  padding: 1rem;
  background-color: transparent;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* --- PERUBAHAN 2: Konten Kartu di Tengah --- */
  text-align: center;
}

.article-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-first);
  flex-grow: 1;
  min-height: 3em;
}

.article-card .card-date {
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.article-card .card-user-info {
    font-size: 0.85rem;
    color: var(--text-first);
    margin-bottom: 1rem;
}

.btn-read-more {
  background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
  color: var(--text-second);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: auto;
  /* --- PERUBAHAN 2: Tombol di Tengah --- */
  align-self: center;
}

.btn-back {
  background-color: var(--g1);
  color: var(--text-second);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}
.btn-back .icon-back {
  margin-right: 8px;
  font-weight: bold;
}

.article-detail .article-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g1);
  /* --- PERUBAHAN 2: Judul Detail di Tengah --- */
  text-align: center;
}

.article-detail .article-date {
  color: #ccc;
  margin-bottom: 1.5rem;
  /* --- PERUBAHAN 2: Tanggal Detail di Tengah --- */
  text-align: center;
}

.article-content {
  line-height: 1.8;
  color: #ccc;
  /* --- PERUBAHAN 3: Konten Artikel Justify --- */
  text-align: justify;
}
.article-content p {
    margin-bottom: 1rem;
}
.article-content strong {
    color: var(--g1);
}

.sidebar-title {
  font-weight: 700;
  color: var(--g1);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--g2);
  padding-bottom: 0.5rem;
}

.sidebar-post {
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(var(--third-color), var(--third-color)) padding-box, linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%) border-box;
}

.sidebar-post a {
  display: flex;
  gap: 15px;
  transition: background-color 0.2s;
  padding: 5px;
  border-radius: 5px;
}

.sidebar-post img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.sidebar-post-content {
  display: flex;
  flex-direction: column;
}

.sidebar-post-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-first);
  line-height: 1.3;
}
.sidebar-post-date {
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 0.25rem;
}

.sidebar-post .btn-read-more {
    margin-top: auto;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

.search-container {
  position: relative;
}

#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  border-radius: 5px;
}

#search-suggestions .list-group-item {
  background-color: var(--third-color);
  color: var(--text-first);
  border-color: var(--g2);
}

#search-suggestions .list-group-item:hover {
  background-color: var(--g1);
  color: var(--text-second);
}

@media (max-width: 991px) {
  .sidebar-section {
    margin-top: 3rem;
  }
}

@media (max-width: 767px) {
    .main-title {
        font-size: 1rem;
    }
    .main-title::before, .main-title::after {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    .article-detail .article-title {
        font-size: 1.5rem;
    }
}