/* ==========================================================================
   Jyavani — Refactored CSS (theme-safe, production-ready)
   - Tujuan: memastikan theme class (html.theme-dark / html.theme-light)
     selalu deterministik dan mencegah flash saat load.
   - Perubahan: reorganized and documented only. No functional values changed.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0) Prevent FOUC: disable transitions/animations until JS marks theme ready
   -------------------------------------------------------------------------- */
body {
  font-family:
    "Comic Sans MS",
    "Comic Sans",
    Tahoma,
    "Times New Roman",
    Times,
    serif;
      margin: 0;
  padding: 0;
}


/* ============================
   1) RESET & CORE SETTING
   ============================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button, select, input {
  font-family: inherit;
  border: none;
  background: none;
  outline: none;
  cursor: pointer;
}

/* ============================
   2) THEME VARIABLES (DEFAULT = LIGHT)
   - :root contains defaults (light-ish).
   - html.theme-dark and html.theme-light override variables via specificity.
   - @media(prefers-color-scheme: dark) provides a system fallback when
     no explicit class is present (i.e. user selected 'system').
   ============================ */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --accent: #00A89E;
  --border: #e6eef2;
  --surface: #ffffff;
  --surface-hover: #f7fafc;
  --control-bg: #f3f4f6;
  --shadow: 0 8px 24px rgba(2,6,23,0.08);
  --guide-line: #d1d5db;

  /* ADD: system defaults for links (light-ish) */
  --link: #0000EE;
  --link-hover: #00ab3e;
}

/* Explicit theme classes — higher specificity than :root, used when JS or server
   has set user's preference. These must NOT be in a media block. */
html.theme-dark {
  --bg: #071022;
  --text: #e6eef6;
  --muted: #9ca3af;
  --accent: #f5cb40;
  --link: #1A73E8;
  --link-hover: #00ab3e;
  --border: #1f2a35;
  --surface: #0e1620;
  --surface-hover: #16202e;
  --control-bg: #1f2a35;
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --guide-line: #374151;
}

html.theme-light {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --accent: #00A89E;
  --link: #0000EE;
  --link-hover: #00ab3e;
  --border: #e6eef2;
  --surface: #ffffff;
  --surface-hover: #f7fafc;
  --control-bg: #f3f4f6;
  --shadow: 0 8px 24px rgba(2,6,23,0.08);
  --guide-line: #d1d5db;
}

/* System preference fallback when no explicit class present */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071022;
    --text: #e6eef6;
    --muted: #9ca3af;
    --surface: #0e1620;
    --surface-hover: #16202e;
    --border: #1f2a35;
    --control-bg: #1f2a35;
    --guide-line: #374151;

    /* ADD: dark equivalents for system mode */
    --link: #1A73E8;
    --link-hover: #00ab3e;
  }
}

/* ============================
   3) BODY & TYPOGRAPHY
   ============================ */
body {
  font-family: "Comic Sans MS", "Comic Sans", Tahoma, "Times New Roman", Times, serif;
  background: var(--surface-hover);
  color: var(--text);
  min-height: 100vh; /* Penting untuk footer */
  display: flex;
  flex-direction: column; /* Penting untuk footer */
}
  
  /* Global link styles */
a {
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline; /* opsional, untuk aksesibilitas */
}
h2 a {
  color: var(--accent);
}
h2 a:hover {
  color: var(--link-hover);
}


/* ============================
   4) LOGO ANIMATION (jyavani)
   - Keep animation timings, colors, delays exactly as before.
   ============================ */
.jyavani-logo {
  font-family: "Taviraj", serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.05em;
  display: inline-flex;
  gap: 0.02em;
  cursor: pointer;
  padding-bottom: 10px;
}

.jyavani-logo .letter {
  line-height: 1;
  display: inline-block;
  position: relative;
  transition: color 400ms ease, transform 400ms ease;
}

/* Default logo colors (explicit color choices, not theme variables) */
.jyavani-logo .accent { color: #C3002F; } /* Merah */
.jyavani-logo .base   { color: #2B2B2B; } /* Hitam/Abu-abu gelap */

.jyavani-logo:hover .accent { color: #2B2B2B; }
.jyavani-logo:hover .base   { color: #C3002F; }
.jyavani-logo:hover .letter { transform: translateY(-6px); }

/* Wave delay per letter */
.jyavani-logo .letter:nth-child(1) { transition-delay: 0ms;   }
.jyavani-logo .letter:nth-child(2) { transition-delay: 80ms;  }
.jyavani-logo .letter:nth-child(3) { transition-delay: 160ms; }
.jyavani-logo .letter:nth-child(4) { transition-delay: 240ms; }
.jyavani-logo .letter:nth-child(5) { transition-delay: 320ms; }
.jyavani-logo .letter:nth-child(6) { transition-delay: 400ms; }

.jyavani-logo .letter:hover {
  color: #DAA520;
  transform: translateY(-10px);
  transition-delay: 0ms;
}

/* Tooltip kata bijak */
.jyavani-logo .letter::after {
  content: attr(data-word);
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #555;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
  pointer-events: none;
}
.jyavani-logo .letter:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  color: #DAA520;
}

/* ============================
   5) HEADER LAYOUT
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #eee;
  object-fit: cover;
}

.hamburger { display: none; padding: 8px; color: var(--text); }
.hamburger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; }

/* ============================
   6) NAVBAR DESKTOP & SHARED
   ============================ */
.navbar { display: flex; align-items: center; flex-grow: 1; margin-left: 40px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu-item { position: relative; }

/* Link Style Desktop */
.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all .2s;
}
.menu-link:hover { background: var(--surface-hover); color: var(--accent); }

.arrow-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.6;
  transition: transform .2s;
}
.menu-link:hover .arrow-icon { opacity: 1; transform: rotate(180deg); }

.mobile-toggle-btn, .mobile-head { display: none; }

.controls { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.ctrl-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--text);
  border: 1px solid transparent;
  font-size: 13px;
}
.ctrl-input { width: 160px; border: 1px solid transparent; }
.ctrl-input:focus { background: var(--surface); border-color: var(--accent); }

/* --- DROPDOWN DESKTOP --- */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 1100;
}
.submenu li { position: relative; }
.submenu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.submenu a:hover { background: var(--surface-hover); color: var(--accent); }
.menu-item:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Desktop Level 2 */
.submenu .submenu {
  top: -9px;
  left: 100%;
  margin-left: 8px;
  margin-top: 0;
}
.submenu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li:hover > .mobile-row > .menu-link .arrow-icon,
.submenu li:hover > a .arrow-icon { transform: rotate(-90deg); }

/* ============================
   7) MOBILE VIEW
   ============================ */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .navbar { margin-left: 0; }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    box-shadow: 20px 0 50px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .navbar.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }

  /* HEADER MOBILE & TOMBOL CLOSE FIXED */
  .mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .mobile-title { font-weight: 700; font-size: 18px; }

  .close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    transition: .2s;
  }
  .close-btn:hover { background: var(--control-bg); }
  .close-btn svg { width: 20px; height: 20px; stroke-width: 2.5; stroke: currentColor; }

  /* Mobile Structure */
  .menu { flex-direction: column; width: 100%; gap: 0; padding: 10px 0; }
  .menu-item { width: 100%; border: none; }
  .mobile-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-right: 16px; }

  .menu-link { flex-grow: 1; padding: 14px 24px; font-size: 16px; font-weight: 500; border-radius: 0; }
  .menu-link .arrow-icon { display: none; }
  .menu-link:active { background: var(--control-bg); }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--muted);
  }
  .mobile-toggle-btn:active { background: var(--control-bg); }
  .mobile-toggle-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; fill: none; transition: transform .2s; }
  .mobile-toggle-btn.expanded { color: var(--accent); background: rgba(0, 168, 158, 0.08); }
  .mobile-toggle-btn.expanded svg { transform: rotate(90deg); }

  /* --- SUBMENU HIERARCHY LINES (mobile) --- */
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .menu-item > .submenu {
    margin-left: 24px;
    border-left: 1px solid var(--guide-line);
  }
  .submenu .submenu {
    margin-left: 16px;
    border-left: 1px solid var(--guide-line);
    top: 0;
    left: 0;
  }
  .submenu a {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text);
    display: flex;
    border: none;
    background: transparent;
  }
  .submenu.open { max-height: 1000px; }

  .controls {
    flex-direction: column;
    width: 100%;
    padding: 24px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    gap: 12px;
  }
  .ctrl-item, .ctrl-input { width: 100%; padding: 12px; font-size: 15px; }
}

/* -----------------------------
   8) OVERLAY / Z-INDEX (shared)
   ----------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  transition: .3s;
}
.overlay.active { opacity: 1; visibility: visible; }

/* ============================
   9) FOOTER (theme-aware)
   ============================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  margin-top: auto;
  box-sizing: border-box;
  max-height: 150px;
  overflow: hidden;
}

.footer-container { max-width:1200px; margin:0 auto; display:flex; flex-direction:column; gap:8px; }
.footer-row-top { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.footer-col { display:flex; align-items:center; gap:12px; }

.footer-links { display:flex; gap:18px; align-items:center; padding:0; margin:0; }
.footer-links li { list-style:none; }
.footer-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
  transition: color .15s, transform .12s;
}
.footer-link svg { opacity:.9; }
.footer-link:hover { color:var(--accent); transform: translateY(-2px); }

.social-icons { display:flex; gap:10px; align-items:center; }
.social-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--control-bg);
  color:var(--text);
  transition: transform .12s, background .12s, color .12s;
  text-decoration:none;
}
.social-btn:focus, .social-btn:hover { background:var(--accent); color:#fff; transform: translateY(-3px); }

.footer-row-bottom { border-top:1px solid var(--border); padding-top:8px; text-align:center; }
.copyright-text { font-size:12px; color:var(--muted); }

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Responsive tweaks for footer */
@media (max-width: 680px) {
  .footer-row-top { flex-direction:column; gap:10px; align-items:center; text-align:center; }
  .footer-links { justify-content:center; gap:12px; flex-wrap:wrap; }
  .social-icons { justify-content:center; }
  .site-footer { padding:10px 14px; }
}

/* ============================
   10) POSTS / CONTENT STYLES
   ============================ */
.adam-post-single {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Breadcrumb */
.adam-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.adam-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.adam-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.adam-breadcrumb .sep { opacity: 0.5; font-size: 0.8em; }
.adam-breadcrumb .current { color: var(--text); font-weight: 500; }

/* Header & Title */
.adam-post-header { margin-bottom: 32px; }
.adam-post-title {
  font-family: inherit;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 24px;
}

/* Category Badges */
.adam-cat-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.cat-badge {
  background: var(--control-bg);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.cat-badge:hover { background: var(--accent); color: #fff; }

/* Meta Data Row */
.adam-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  gap: 20px;
}

/* Author Section */
.meta-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-hover);
}
.author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.meta-text { display: flex; flex-direction: column; line-height: 1.2; }
.meta-text .by { font-size: 0.75rem; color: var(--muted); }
.meta-text .name { font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* Date & Details */
.meta-details { display: flex; gap: 20px; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item svg { width: 16px; height: 16px; opacity: 0.7; }
.meta-item.updated { color: var(--accent); }

/* Thumbnail */
.adam-post-thumb { margin: 0 0 40px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.adam-post-thumb img { width: 100%; height: auto; display: block; }

/* Content Body */
.adam-post-body { font-family: inherit; color: var(--text); }
.adam-post-body p { font-family: inherit; color: var(--text); }
.adam-post-body h2, .adam-post-body h3 {
  font-family: inherit;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 700;
}
.adam-post-body h2 { font-size: 1.8rem; }
.adam-post-body h3 { font-size: 1.5rem; }
.adam-post-body ul, .adam-post-body ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.adam-post-body li { margin-bottom: 0.5em; }
.adam-post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.adam-post-body blockquote {
  border-left: 4px solid var(--accent);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--surface-hover);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.adam-post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }

/* Footer & Actions */
.adam-post-footer { margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border); }

.footer-actions { display: flex; align-items: center; gap: 0.75rem; /* menggantikan margin-left inline */ flex-wrap: wrap; /* jika butuh responsif */ }

.btn-back {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 300;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--control-bg);
  transition: all 0.2s;
}
.btn-back:hover { background: var(--surface-hover); color: var(--accent); }

/* Mobile Adjustments for posts */
@media (max-width: 768px) {
  .adam-post-title { font-size: 1.8rem; }
  .adam-post-meta-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .meta-details { width: 100%; justify-content: flex-start; gap: 16px; }
}

/* ============================
   11) PAGES LIST STYLES
   ============================ */
.adam-pages-list { max-width: 920px; margin: 0 auto; padding: 1rem; color: var(--text); }

.adam-pages-list__header { margin-bottom: 1.5rem; text-align: center; }
.adam-pages-list__title { margin: 0; font-size: 1.8rem; font-weight: 600; color: var(--text); }
.adam-pages-list__count { color: var(--muted); font-size: .95rem; margin-top: .35rem; }

.adam-empty-card {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

/* Grid & items */
.adam-pages-list__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.adam-pages-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.adam-pages-list__item:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(2,6,23,0.12); }

.adam-pages-list__item-main { flex: 1; }
.adam-pages-list__meta { margin-top: .35rem; color: var(--muted); font-size: .92rem; }
.adam-pages-list__item-actions { flex: 0 0 auto; }

.adam-pagination { margin-top: 1.5rem; text-align: center; }
.adam-pagination__inner { display: inline-flex; gap: .6rem; align-items: center; }
.adam-pagination__link {
  padding: .45rem .75rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.adam-pagination__info {
  padding: .45rem .75rem;
  background: var(--surface-hover);
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Responsive stack for pages list */
@media (max-width: 720px) {
  .adam-pages-list__item { flex-direction: column; align-items: flex-start; }
  .adam-pages-list__item-actions { width: 100%; margin-top: .6rem; display: flex; justify-content: center; }
  .adam-pages-list__item-actions .adam-btn-open { width: 100%; text-align: center; }
}

/* Links/buttons */
.adam-pages-list .adam-page-link { color: var(--accent); font-weight: 600; font-size: 1.05rem; }
.adam-pages-list .adam-page-link:hover { text-decoration: underline; }

/* Optional dark-mode tweak for buttons */
@media (prefers-color-scheme: dark) {
  .adam-btn-open { box-shadow: 0 0 12px rgba(0,0,0,0.35); }
}

/* ==========================================================================
   End of file
   ========================================================================== */
/* ============ SINGLE HALAMAN ================ */

    /* Post single base */
.adam-post-single {
  max-width: 820px;
  margin: 2.25rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Header */
.post-header {
  margin-bottom: 1rem;
}
.post-title {
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 0 0 .5rem 0;
  color: var(--text);
}
.post-top-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: .95rem;
}

/* Author inline */
.author-inline .author-link,
.author-inline .author-username {
  color: var(--accent);
  font-weight: 600;
}
.author-inline .author-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Updated label */
.updated-at {
  color: var(--muted);
  font-size: .9rem;
  background: transparent;
  padding: .25rem .5rem;
  border-radius: 6px;
}

/* Content */
.post-content {
  margin: 1.25rem 0;
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

/* Footer published by */
.post-published-by {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--guide-line);
  padding-top: 1rem;
}
.published-by-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.publisher-avatar .avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--control-bg);
}
.avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--control-bg);
  color: var(--muted);
  font-weight: 700;
  border: 2px solid var(--border);
}
.publisher-meta .publisher-line {
  color: var(--text);
  margin-bottom: .25rem;
}
.publisher-meta .publisher-name {
  color: var(--accent);
  margin-left: .5rem;
  font-weight: 600;
}
.publisher-meta .publisher-name:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.publisher-meta .published-at {
  color: var(--muted);
  font-size: .92rem;
}

/* Accessibility focus */
a:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
.author-label {
  margin-right: 4px;  /* atur sesuai kebutuhan */
}

@media (max-width: 720px) {
  .adam-post-single {
    margin: 1rem;
    padding: 1rem;
  }
  .post-title {
    font-size: 1.5rem;
  }

  /* =============================
     BARIS AUTHOR | UPDATED
     Tetap horizontal bila muat
     dan alignment stabil
  ============================== */
  .post-top-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;     /* penting agar tidak pindah ke bawah */
    align-items: center;   /* jaga tetap rata vertikal */
    gap: 0.5rem;
    width: 100%;
  }

  /* AUTHOR — tidak membuat flex jadi tinggi berbeda */
  .author-inline {
    flex: 0 1 auto;        /* tidak memaksa melebar */
    min-width: 0;          /* boleh menyusut */
    display: flex;
    align-items: center;   /* stabil secara vertikal di dalam */
    overflow: hidden;
  }

  .author-inline .author-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* UPDATED AT — tetap mempertahankan satu baris */
  .updated-at {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  /* Avatar di footer */
  .publisher-avatar .avatar-img,
  .avatar-fallback {
    width: 44px;
    height: 44px;
  }
}

/* ========== KATEGORI (tags) ========== */
/* markup class: .post-categories .post-category */
.post-categories {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;               /* membungkus saat sempit */
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
}

/* Pil style tag */
.post-category {
  display: inline-block;
  padding: .45rem .7rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  white-space: nowrap;
  max-width: 100%;               /* melindungi lebar */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* alternatif: jika Anda ingin horizontal scroll pada satu baris (pilihan) */
/* .post-categories.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } */
/* .post-categories.scroll .post-category { white-space: nowrap; } */

/* hide ugly scrollbar (non-essential) */
.post-categories::-webkit-scrollbar { height: 6px; }
.post-categories::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 6px; }

/* ========== BUTTONS / ACTIONS ========== */
.post-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;   /* memungkinkan stacked di mobile */
}

/* tombol umum */
.post-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  min-height: 44px;   /* target touch-friendly size */
}

/* tombol khusus */
.post-actions .btn--primary {
  background: var(--accent);
  color: white;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-weight: 600;
}

/* ikon panah kecil di kiri jika mau */
.post-actions .btn .icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ========== MOBILE ADJUSTMENTS (<=720px) ========== */
@media (max-width: 720px) {
  .adam-post-single {
    margin: 1rem;
    padding: 1rem;
  }

  /* kategori: biarkan wrap, beri sedikit spacing */
  .post-categories {
    gap: .5rem;
  }

  /* tombol: full width saat layar kecil */
  .post-actions {
    gap: .6rem;
  }
  .post-actions .btn {
    flex: 1 1 100%;         /* tiap tombol ambil satu baris */
    justify-content: center;
  }

  /* jika ingin tombol Back terlihat berbeda */
  .post-actions .btn--back {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    color: var(--text);
  }

  /* pastikan avatar footer lebih kecil di mobile */
  .publisher-avatar .avatar-img,
  .avatar-fallback {
    width: 44px;
    height: 44px;
  }
}

/* ======== CUSTOM ========= */

/* ===============================
   VISI MISI STYLE - DALAM SISTEM TTNG
   =============================== */
.ttng-visi-misi {
  padding: 2rem 1rem 3rem;
  font-family: "Outfit", "Inter", sans-serif;
  color: #1a1a1a;
}

.ttng-visi-title, 
.ttng-misi-title {
  text-align: center;
  color: #24376e;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.ttng-visi-box {
  background: linear-gradient(135deg, #f4f7ff, #fff);
  border-left: 6px solid #2c59d4;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  box-shadow: 0 6px 16px rgba(36, 55, 110, 0.1);
  transition: all 0.3s ease;
}
.ttng-visi-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(36, 55, 110, 0.15);
}
.ttng-visi-box p {
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.7;
  color: #333;
}

.ttng-misi-list {
  list-style: none;
  counter-reset: misi-counter;
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
}
.ttng-misi-list li {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #b936c7;
  transition: all 0.3s ease;
}
.ttng-misi-list li::before {
  counter-increment: misi-counter;
  content: counter(misi-counter);
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #2c59d4, #b936c7);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(45, 89, 212, 0.3);
}
.ttng-misi-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(36, 55, 110, 0.12);
}
.ttng-misi-list li p {
  margin: 0;
}

@media (max-width: 768px) {
  .ttng-visi-title, .ttng-misi-title {
    font-size: 1.5rem;
  }
  .ttng-misi-list li {
    padding: 1rem 1.25rem 1rem 3rem;
  }
}

/* ==== single file ==== */
    /* Scoped styles for featured area in posts.single */
    .adam-post-thumb { margin-bottom: 1rem; position: relative; border-radius: 10px; overflow: hidden; }
    .adam-post-thumb img { display:block; width:100%; height:auto; object-fit:cover; border-radius: 10px; }

    .adam-thumb--linked { cursor:pointer; text-decoration:none; color:inherit; display:block; position:relative; }

    /* always-visible badge top-left */
    .adam-thumb-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 6;
      background: rgba(255,255,255,0.95);
      color: #111;
      font-weight:700;
      padding: 8px 12px;
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,.06);
      font-size: 14px;
    }

    /* bottom-right mini button (visible by default) */
    .adam-thumb-bottom {
      position: absolute;
      bottom: 12px;
      right: 12px;
      z-index: 6;
      background: #2563eb;
      color: #fff;
      font-weight:700;
      padding: 8px 12px;
      border-radius: 10px;
      box-shadow: 0 10px 26px rgba(0,0,0,.12);
      transition: opacity .16s ease, transform .16s ease;
      font-size: 14px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* overlay and center CTA (hidden by default) */
    .adam-thumb-overlay {
      position: absolute;
      inset: 0;
      z-index: 5;
      display:flex;
      align-items:center;
      justify-content:center;
      background: rgba(0,0,0,0.45);
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease;
    }
    .adam-thumb-cta {
      background: linear-gradient(90deg,#2563eb,#3b82f6);
      color: #fff;
      padding: 16px 28px;
      border-radius: 14px;
      font-weight:900;
      font-size:18px;
      transform: translateY(6px) scale(.98);
      transition: transform .20s cubic-bezier(.2,.9,.18,1), opacity .18s ease;
      box-shadow: 0 18px 38px rgba(0,0,0,.18);
      opacity: 0;
    }

    /* on hover/focus: show overlay & CTA, hide bottom btn */
    .adam-thumb--linked:hover .adam-thumb-overlay,
    .adam-thumb--linked:focus-within .adam-thumb-overlay {
      opacity: 1;
      pointer-events: auto;
    }
    .adam-thumb--linked:hover .adam-thumb-cta,
    .adam-thumb--linked:focus-within .adam-thumb-cta {
      opacity: 1;
      transform: translateY(0) scale(1.12);
    }
    .adam-thumb--linked:hover .adam-thumb-bottom,
    .adam-thumb--linked:focus-within .adam-thumb-bottom {
      opacity: 0;
      transform: translateY(6px) scale(.98);
      pointer-events: none;
    }

    /* focus outline for keyboard users */
    .adam-thumb--linked:focus { outline: none; }
    .adam-thumb--linked:focus .adam-thumb-cta,
    .adam-thumb--linked:focus .adam-thumb-bottom,
    .adam-thumb--linked:focus .adam-thumb-badge {
      box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }

    @media (max-width:720px) {
      .adam-thumb-cta { font-size:16px; padding:12px 20px; }
      .adam-thumb-badge { font-size:12px; padding:6px 10px; }
      .adam-thumb-bottom { font-size:13px; padding:8px 10px; }
    }
    
    /* =SIDEBAR= */
    .widget{padding:14px;border:1px solid #e5e7eb;border-radius:12px;margin:0 0 14px 0;background:transparent}
.widget-title{margin:0 0 10px 0;font-size:14px;font-weight:700}
.widget-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.widget-list a{text-decoration:none}
.widget-search{display:flex;gap:8px}
.widget-search input{flex:1;padding:10px 12px;border-radius:10px;border:1px solid #e5e7eb}
.widget-search button{padding:10px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
