:root {
    --bg: #f3f5f9;
    --card: #ffffff;
    --primary: #2c7be5;
    --text: #1f2937;
    --muted: #6b7280;
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* 🔥 KUNCI */
}

body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/* HEADER */
header {
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(135deg, #2c7be5, #1a5fd0);
    color: white;
}

/* CONTAINER */
.container {
    max-width: 760px;
    width: 100%;
    margin: -36px auto 40px;
    padding: 0 12px;
}

/* CARD */
.card {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    overflow-wrap: break-word;   /* 🔥 teks panjang */
    word-wrap: break-word;
}

/* TITLE */
.card h2 {
    font-family: 'Literata', serif;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;
}

/* DATE */
.date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

/* CONTENT */
.content {
    font-family: 'Literata', serif;
    font-size: 17px;
    line-height: 1.75;
}

.content p {
    margin: 0 0 1.3em;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 24px;
}

/* TOOLBAR */
.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.toolbar button {
    border: none;
    background: rgba(0,0,0,.05);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.toolbar button:hover {
    background: rgba(0,0,0,.1);
}

/* DARK MODE */
body.dark {
    --bg: #0f172a;
    --card: #020617;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

body.dark header {
    background: linear-gradient(135deg, #020617, #020617);
}

body.dark .card {
    box-shadow: none;
}

body.dark .toolbar button {
    background: rgba(255,255,255,.1);
    color: #e5e7eb;
}

/* ZOOM FONT */
.content {
    font-size: var(--font-size, 17px);
}

/* ===============================
   BOTTOM NAVIGATION
================================ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  position: relative;
  transition: all .25s ease;
}

.bottom-nav .icon {
  font-size: 22px;
  display: block;
}

.bottom-nav .label {
  font-size: 12px;
}

.bottom-nav .admin {
  color: #b00000;
  font-weight: bold;
}

.bottom-nav .nav-item.active {
  color: #0b5ed7;
  transform: translateY(-2px);
}

.bottom-nav .nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: #0b5ed7;
  border-radius: 0 0 6px 6px;
}

/* =====================
   MORE MENU
===================== */
.more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1100;
}

.more-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 1200;
  transition: bottom 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.more-menu.show {
  bottom: 0;
}

.more-overlay.show {
  display: block;
}

.more-menu a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

/* HEADER MORE MENU */
.more-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}

.more-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}



/* RESPONSIVE HP */
@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    .card h2 {
        font-size: 20px;
    }

    .content {
        font-size: 16px;
    }
}
