:root {
  --navbar-bg: #7b1e3c; /* default Merah Hati */
  --hover-bg: #ffffff22;
  --border-color: #ffffff99;
}

body {
  background-color: #f8f9fa;
  color: #212529;
  font-family: 'Segoe UI', sans-serif;
  padding-top: 70px;
}

@media (max-width: 767.98px) {
  body {
    padding-top: 100px;
  }
}

/* LOGO */
.logo-container {
  text-align: center;
  margin-top: 40px;
}
.logo-container img {
  max-height: 120px;
}
.logo-title {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
}
.subtext {
  font-size: 1.1rem;
  color: #555;
}

/* NAVBAR */
.navbar {
  background-color: var(--navbar-bg) !important;
  border-bottom: 1px solid #222;
  margin-bottom: 0;
  border-radius: 0;
  z-index: 1030;
}
.navbar-brand {
  font-weight: bold;
  color: white !important;
}
.navbar-nav .nav-link {
  margin-left: 10px;
  white-space: nowrap;
  color: white !important;
}
.navbar-nav .nav-link.active {
  background-color: #0d6efd;
  border-radius: 6px;
  color: #fff !important;
}

/* SCROLLBAR NAV */
.navbar-nav::-webkit-scrollbar,
.navbar-scroll::-webkit-scrollbar {
  height: 5px;
}
.navbar-nav::-webkit-scrollbar-thumb,
.navbar-scroll::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 5px;
}
.navbar-scroll {
  scrollbar-color: #666 transparent;
  scrollbar-width: thin;
}

/* TAB SCROLL */
.tab-scroll {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  background-color: var(--navbar-bg);
  padding: 6px 10px;
  border-bottom: 1px solid #922848;
}
.tab-scroll::-webkit-scrollbar {
  display: none;
}
.tab-scroll .nav-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  border-bottom: none;
}
.tab-scroll .nav-item {
  flex: 0 0 auto;
}
.tab-scroll .nav-link {
  padding: 6px 12px !important;
  font-size: 14px !important;
  margin-right: 6px;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px;
  color: white !important;
}
.tab-scroll .nav-link:hover,
.tab-scroll .nav-link.active {
  background-color: var(--hover-bg);
  border-color: #fff;
  color: white !important;
}

/* ZODIAK CARD */
.zodiak-card {
  border-radius: 12px;
  background-color: #fff;
  transition: transform 0.2s;
  padding: 15px;
  text-align: center;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.zodiak-card:hover {
  transform: scale(1.03);
  background-color: #f0f8ff;
}
.zodiak-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ARTIKEL */
.container-article {
  max-width: 850px;
  margin: 0 auto;
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.container-article img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  aspect-ratio: 700 / 450;
}
.img-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

/* KOMENTAR BOX */
.komentar-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* FOOTER */
footer.footer {
  background: linear-gradient(to top, #7b1e3c, #9a294f);
  color: white;
  padding: 30px 0 15px;
}
footer.footer a {
  color: #ffecec;
}
footer.footer a:hover {
  color: #ffffff;
}
footer.footer hr {
  border-color: #ffffff33;
}
footer.footer .text-muted {
  color: #ddd !important;
}

/* ==== DARK MODE ==== */
body.theme-dark {
  background-color: #121212;
  color: #e0e0e0;
  --navbar-bg: #1f1f1f;
  --hover-bg: #333;
  --border-color: #555;
}

/* NAVBAR */
body.theme-dark .navbar {
  background-color: var(--navbar-bg) !important;
  border-bottom: 1px solid #444;
}
body.theme-dark .tab-scroll {
  background-color: #1f1f1f !important;
}
body.theme-dark .tab-scroll .nav-link {
  color: #ccc !important;
  border-color: #555 !important;
}
body.theme-dark .tab-scroll .nav-link:hover,
body.theme-dark .tab-scroll .nav-link.active {
  background-color: #333 !important;
  color: white !important;
}

/* CARD & ARTICLE */
body.theme-dark .zodiak-card,
body.theme-dark .card,
body.theme-dark .komentar-box,
body.theme-dark .container-article {
  background-color: #1c1c1c;
  color: #e0e0e0;
  border: 1px solid #333;
}

/* FORM & INPUT */
body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background-color: #2b2b2b;
  color: #e0e0e0;
  border: 1px solid #555;
}
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #aaa;
}

/* BUTTONS */
body.theme-dark .btn-outline-primary {
  color: #99ccff;
  border-color: #99ccff;
}
body.theme-dark .btn-outline-primary:hover {
  background-color: #3399ff;
  color: #fff;
}

/* ALERTS */
body.theme-dark .alert {
  background-color: #333;
  color: #e0e0e0;
  border-color: #444;
}

/* FOOTER */
body.theme-dark footer.footer {
  background: linear-gradient(to top, #1c1c1c, #2a2a2a) !important;
  color: #e0e0e0 !important;
}
body.theme-dark footer.footer a {
  color: #d0d0d0 !important;
}
body.theme-dark footer.footer hr {
  border-color: rgba(255,255,255,0.2) !important;
}
body.theme-dark footer.footer .text-muted {
  color: #bbbbbb !important;
}

.artikel-grid .card-img-top {
  object-fit: cover;
  width: 100%;
}

@media (max-width: 768px) {
  .artikel-grid .card-img-top {
    aspect-ratio: 1 / 1; /* kotak untuk mobile */
    height: auto;
  }
  .artikel-grid .card-title {
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .artikel-grid .card-img-top {
    height: 180px;
  }
  .artikel-grid .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
  }
}

/* Untuk responsive dan efek shadow */
.sidebar-iklan img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.iklan-script {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

    :root {
      --footer-bg-default: linear-gradient(to top, #7b1e3c, #9a294f);
      --footer-bg-dark: linear-gradient(to top, #1a1a1a, #2a2a2a);
      --footer-bg-blue: linear-gradient(to top, #003366, #004080);
      --footer-bg-green: linear-gradient(to top, #225522, #2e7031);
      --footer-text: #ffffff;
      --footer-border: rgba(255, 255, 255, 0.2);
    }

    body {
      padding-top: 80px;
      background-color: #f9f9f9;
      font-family: 'Segoe UI', sans-serif;
    }

    .artikel-gambar {
      width: 100%;
      max-height: 300px;
      object-fit: cover;
      border-radius: 6px;
    }

    .sidebar .sidebar-widget h5 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: .5rem;
    }

    footer.footer {
      background: var(--footer-bg-default);
      color: var(--footer-text);
      padding: 40px 20px 20px;
    }

    footer.footer a {
      color: var(--footer-text);
      text-decoration: underline;
    }

    footer.footer hr {
      border-color: var(--footer-border);
    }

    footer.footer .copyright {
      color: #e0e0e0;
      font-size: 0.9rem;
    }

    body.theme-dark footer.footer {
      background: var(--footer-bg-dark);
    }

    body.theme-blue footer.footer {
      background: var(--footer-bg-blue);
    }

    body.theme-green footer.footer {
      background: var(--footer-bg-green);
    }

    @media (max-width: 767.98px) {
      .artikel-gambar { max-height: 200px; }
      .artikel-judul { font-size: 1.5rem; }
      .artikel-deskripsi { display: none; } /* Sembunyikan deskripsi di mobile */
    }
    body {
      padding-top: 80px;
      background-color: #f9f9f9;
      font-family: 'Segoe UI', sans-serif;
    }

    .artikel-gambar {
      width: 100%;
      max-height: 300px;
      object-fit: cover;
      border-radius: 6px;
    }

    .artikel-deskripsi {
      font-size: 0.95rem;
    }

    @media (max-width: 767.98px) {
      .artikel-deskripsi {
        display: none;
      }
    }