/* ==========================================
   artikel.css — FINAL
   - /artikel/  (hub)
   - /artikel/<slug>/ (detail)
   ========================================== */

*{ margin:0; padding:0; box-sizing:border-box; }

:root{
  --green-dark:#1e5631;
  --green-main:#4CAF50;
  --green-soft:#66BB6A;
  --bg-light:#f8fdf8;
  --text-main:#333;
  --text-muted:#666;
  --card-border:#e5f2e5;
}

html,body{ height:100%; }

body{
  font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
  line-height:1.6;
  color:var(--text-main);
  background:linear-gradient(135deg,#1e5631 0%,#2d7a3a 100%);
  min-height:100vh;
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:0 20px;
}

/* ===========================
   HEADER
   =========================== */
header{
  background:rgba(0,0,0,.10);
  backdrop-filter:blur(10px);
  padding:1rem 0;
  position:fixed;
  width:100%;
  top:0;
  z-index:1000;
  transition:all .3s ease;
}

.header-content{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.logo-icon-img{
  width:48px;
  height:48px;
  border-radius:10px;
  object-fit:contain;
  background:transparent;
  box-shadow:0 4px 15px rgba(76,175,80,.30);
  flex:0 0 auto;
  display:block;
}

.logo-text{ min-width:0; }

.logo-text h1{
  color:#fff;
  font-size:1.15rem;
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.logo-text p{
  color:#B8E6B8;
  font-size:.86rem;
  font-weight:700;
  line-height:1.1;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

nav ul{
  display:flex;
  list-style:none;
  gap:24px;
}

nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:.95rem;
  transition:color .3s ease;
  position:relative;
}

nav a:hover{ color:var(--green-main); }

nav a::after{
  content:'';
  position:absolute;
  width:0;
  height:2px;
  bottom:-5px;
  left:0;
  background:var(--green-main);
  transition:width .3s ease;
}

nav a:hover::after{ width:100%; }

/* ===========================
   HAMBURGER
   =========================== */
.hamburger{
  display:none;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-direction:column;
  transition:all .25s ease;
  flex:0 0 auto;
}

.hamburger:hover{
  background:rgba(255,255,255,.16);
  transform:translateY(-1px);
}

.hamburger span{
  width:22px;
  height:2px;
  background:#fff;
  border-radius:999px;
  transition:all .25s ease;
}

.hamburger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; transform:translateX(-10px); }
.hamburger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu{
  display:none;
  position:absolute;
  right:20px;
  top:calc(100% + 10px);
  width:min(280px, calc(100% - 40px));
  background:rgba(30,86,49,.98);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 14px 30px rgba(0,0,0,.25);
}

.mobile-menu a{
  display:block;
  padding:12px 14px;
  color:#E6FFE6;
  text-decoration:none;
  font-weight:700;
  transition:background .25s ease;
}

.mobile-menu a:hover{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.mobile-menu.show{ display:block; }

/* ===========================
   PAGE WRAP
   =========================== */
.page-wrap{
  padding:120px 0 28px;
}

/* ===========================
   MAIN CARD
   =========================== */
.article-wrap{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,.10);
  border:1px solid var(--card-border);
}

/* ===========================
   COVER (WAJIB) — FULL + TENGAH
   =========================== */
.cover-box{
  width:100%;
  height:320px;              /* desktop */
  display:flex;
  align-items:center;
  justify-content:center;    /* ✅ pusat */
  background:#ffffff;
  border-bottom:1px solid #eaf6ea;
  overflow:hidden;           /* rapi */
}

.cover-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;        /* ✅ FULL, tidak kepotong */
  object-position:center;    /* ✅ tengah */
  background:#ffffff;
}

/* ===========================
   HEAD
   =========================== */
.article-head{
  padding:18px 18px 0;
}

.crumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.86rem;
  color:var(--text-muted);
  margin-bottom:10px;
}

.crumbs a{
  color:var(--green-main);
  text-decoration:none;
  font-weight:900;
}

.tag{
  background:#f0fff0;
  border:1px solid #d0f0d0;
  color:var(--green-dark);
  font-weight:900;
  border-radius:999px;
  padding:2px 10px;
  font-size:.78rem;
}

.article-head h1{
  font-size:1.55rem;
  color:var(--green-dark);
  font-weight:900;
  line-height:1.25;
  margin-bottom:8px;
}

.meta{
  color:var(--text-muted);
  font-size:.95rem;
  margin-bottom:10px;
}

.lead{
  color:#3b3b3b;
  font-size:1rem;
  margin-bottom:14px;
}

/* ===========================
   BODY (DETAIL)
   =========================== */
.article-body{
  padding:0 18px 18px;
  color:#2b2b2b;
  font-size:.98rem;
}

.article-body p{ margin-bottom:12px; color:#3b3b3b; }
.article-body h2{ margin:16px 0 8px; font-size:1.12rem; color:var(--green-dark); }
.article-body ul{ margin:8px 0 14px 18px; color:#3b3b3b; }
.article-body li{ margin-bottom:6px; }

.note-box{
  margin:14px 0 4px;
  padding:12px 12px;
  border-radius:14px;
  background:#f8fdf8;
  border:1px solid #e5f2e5;
  color:#2f2f2f;
  font-size:.93rem;
}

/* ===========================
   HUB GRID (12 KOTAK)
   =========================== */
.hub-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  padding-bottom:6px;
}

.hub-card{
  border:1px solid #e5f2e5;
  background:#fbfffb;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

.hub-thumb{
  width:100%;
  height:230px;
  display:flex;
  align-items:center;
  justify-content:center;     /* ✅ pusat */
  background:#fff;
  border-bottom:1px solid #eaf6ea;
}

.hub-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;         /* ✅ FULL tidak kepotong */
  object-position:center;     /* ✅ tengah */
  display:block;
  background:#fff;
}

.hub-content{
  padding:16px;
}

.hub-top{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.hub-title{
  font-size:1.15rem;
  color:var(--green-dark);
  font-weight:900;
  line-height:1.25;
  margin-bottom:6px;
}

.hub-desc{
  color:var(--text-muted);
  font-size:.98rem;
  margin-bottom:14px;
}

.hub-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.hub-read{
  color:var(--green-main);
  font-weight:900;
  text-decoration:none;
  font-size:1rem;
}

.hub-read:hover{ text-decoration:underline; }

.hub-wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--green-main),var(--green-soft));
  color:#fff;
  text-decoration:none;
  font-weight:900;
  min-width:140px;
  box-shadow:0 8px 22px rgba(76,175,80,.30);
}

.hub-wa:hover{ transform:translateY(-1px); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width:768px){
  nav ul{ display:none; }
  .hamburger{ display:inline-flex; }

  .logo-icon-img{ width:44px; height:44px; }
  .logo-text h1{ font-size:1.05rem; }
  .logo-text p{ font-size:.82rem; }

  .page-wrap{ padding:110px 0 24px; }

  .cover-box{ height:240px; }      /* ✅ HP */
  .hub-thumb{ height:210px; }      /* ✅ HP */
}