/* =========================
   BASE
========================= */
:root {
  --pa-primary: #2e7d32; /* hijau Puri Asri */
  --pa-gold: #c87b08; /* emas accent */
  --pa-dark: #1f2d1f;
  --pa-soft: #f3f7f2;
  --pa-text: #444;
  --pa-muted: #777;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", serif;
}

body {
  color: var(--pa-text);
  background: #fff;
}

/* =========================
   NAVBAR (overlay di hero)
========================= */
.pa-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(0, 0, 0, 0.03);
}

.pa-navbar .nav-link {
  color: #fff;
  font-weight: 500;
}

.pa-navbar .nav-link:hover {
  color: #fff;
  opacity: 0.9;
}

.pa-navbar .dropdown-menu {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* brand bg yang kamu punya */
.navbar-brand {
  background: linear-gradient(50deg, #fffffacb, #f5fff8da, #ffe1a4da);
  padding: 4px 6px;
  border-radius: 20px;
}

/* =========================
   HERO (stabil & responsif)
========================= */
.pa-hero {
  position: relative;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
}

.pa-hero__img {
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
  display: block;
}

.pa-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(58, 43, 14, 0.75),
    rgba(19, 18, 18, 0.55)
  );
}

/* Badge kecil di hero (optional) */
.pa-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 16px;
  z-index: 2;
}

.pa-hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pa-dark);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

/* =========================
   ARTICLE
========================= */
.article-section {
  padding: 56px 0 70px;
  background: #fff;
}

/* Biar artikel tidak ketabrak navbar absolute */
.article-section .container {
  /* space dari hero sudah cukup; tapi kalau navbar tinggi, aman */
}

.article-header {
  margin-top: 8px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--pa-dark);
  line-height: 1.25;
}

.article-meta {
  font-size: 14px;
  color: var(--pa-muted);
}

.article-intro {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.85;
}

.article-content ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.article-content ol li {
  counter-increment: step;
  margin-bottom: 24px;
  position: relative;
  padding-left: 30px;
}

.article-content ol li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  font-size: 1.2rem;
  color: #2e7d32;
}

.article-list {
  padding-left: 1.2rem;
  margin-top: 14px;
}

.article-list li {
  margin-bottom: 1.8rem;
}

.article-list h5 {
  color: var(--pa-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-source a {
  color: var(--pa-primary);
  text-decoration: none;
}

.article-source a:hover {
  text-decoration: underline;
}

/* Share */
.article-share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pa-soft);
  color: var(--pa-primary);
  margin-right: 10px;
  text-decoration: none;
  transition: 0.2s ease;
}

.article-share .share-btn:hover {
  background: var(--pa-primary);
  color: #fff;
}

/* =========================
   WhatsApp Floating
========================= */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  animation: move-up-down 3s infinite;
}

.btn-whatsapp:hover {
  opacity: 0.85;
}

.custom-whatsapp-icon {
  font-size: 40px;
}

@keyframes move-up-down {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* =========================
   FOOTER (pakai gaya kamu)
========================= */
.footer {
  background: #c89d53;
  color: white;
}

.footer-logo {
  max-width: 220px;
}

.footer p.small {
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.9;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e1b76a;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.footer-social:hover {
  color: #000;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.65rem;
  }

  .article-intro {
    font-size: 1rem;
  }

  .btn-whatsapp {
    width: 60px;
    height: 60px;
    bottom: 15px;
    right: 15px;
  }

  .custom-whatsapp-icon {
    font-size: 26px;
  }

  /* navbar collapse style seperti yang kamu punya */
  .navbar-toggler {
    background-color: #fff !important;
    border: 2px solid var(--pa-gold);
    border-radius: 8px;
  }

  .navbar-collapse {
    background-color: #222 !important;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  }

  .navbar-collapse .nav-link,
  .navbar-collapse .dropdown-item {
    color: #fff !important;
    padding: 10px 15px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .dropdown-item:hover {
    background-color: var(--pa-gold);
    transform: scale(1.02);
  }

  .navbar-collapse .dropdown-menu {
    background-color: #222;
    border: none;
    border-radius: 8px;
  }
}

/* =========================
   MOBILE NAVBAR IMPROVEMENT
========================= */

@media (max-width: 991px) {
  /* Hamburger button */
  .navbar-toggler {
    border: 2px solid #c89d53 !important; /* emas */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
  }

  /* Icon hamburger jadi putih */
  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }

  /* Collapse menu background emas */
  .navbar-collapse {
    background: linear-gradient(135deg, #c89d53, #b8873a);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  /* Link styling */
  .navbar-collapse .nav-link {
    color: #fff !important;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  /* Hover effect */
  .navbar-collapse .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
  }

  /* Dropdown menu */
  .navbar-collapse .dropdown-menu {
    background-color: #a7772f;
    border: none;
    border-radius: 8px;
    margin-top: 5px;
  }

  .navbar-collapse .dropdown-item {
    color: #fff !important;
    padding: 10px 15px;
    font-weight: 500;
  }

  .navbar-collapse .dropdown-item:hover {
    background-color: #2e7d32; /* hijau puri asri */
  }
}
