/* ==========================================================================
   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.
   ========================================================================== */

/* NOMOR 1 DIMANA BANH ?*/
body {
  margin: 0;
  padding: 0;
}

/* ============================
   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: "Poppins", Tahoma, "Comic Sans MS", "Comic Sans", sans-serif;
  background: var(--surface-hover);
  color: var(--text);
  min-height: 100vh; /* penting untuk footer */
  display: flex;
  flex-direction: column; /* penting untuk footer */
  -webkit-font-smoothing: antialiased; /* halus di iOS */
  text-rendering: optimizeLegibility;
}

  
  /* 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
   ============================ */

/* ============================
   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); }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  padding: 10px 20px;
  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: 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;
  }
}

/* ===============================
   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;
  }
}
/* ===== Profile ===== */
.profile-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.profile-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}
.profile-photo {
  flex: 0 0 380px; /* FIX kolom foto */
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border: 4px solid #7fb9bb;
  border-radius: 18px;
  background: #f2f2f2;
}
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.profile-name {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 700;
  color: #006b89;
}

.profile-title {
  margin: 0 0 26px;
  font-size: 18px;
  color: #555;
  line-height: 1.4;
}

/* Education — single-column list */
.profile-education {
  display: block;
  margin-top: 8px;
}

.edu-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #006b89;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* list reset */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* each row */
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* left column: degree + institution */
.edu-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* allow truncation */
}

.edu-degree {
  font-weight: 700;
  color: #0b5562;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edu-institution {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0.95;
}

/* right column: year */
.edu-year {
  color: #7a8a8c;
  font-size: 0.95rem;
  flex: 0 0 auto;
  margin-left: 12px;
  white-space: nowrap;
}

/* small screens: stack content for better readability */
@media (max-width: 600px) {
  .edu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }

  .edu-year {
    margin-left: 0;
    color: #6f7b7d;
  }
}

@media (max-width: 768px) {
  .profile-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .profile-photo {
    margin: 0 auto;
    flex: 0 0 320px;
  }

  .profile-info {
    text-align: center;
  }

  .profile-education {
    justify-content: center;
  }
}

/* ===== Tabprof — base tokens ===== */
:root {
  --tabprof-bg: #ffffff;
  --tabprof-text: #1f2a2e;
  --tabprof-muted: #5f6b70;
  --tabprof-border: #e5ecee;
  --tabprof-accent: #0b5562;
  --tabprof-accent-weak: #eaf4f5;
  --tabprof-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* ===== Wrapper ===== */
.tabprof-wrap {
  background: var(--tabprof-bg);
  border: 1px solid var(--tabprof-border);
  border-radius: 14px;
  box-shadow: var(--tabprof-shadow);
  overflow: hidden;
}

/* Optional title */
.tabprof-title {
  margin: 0;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--tabprof-accent);
  border-bottom: 1px solid var(--tabprof-border);
  background: var(--tabprof-accent-weak);
}

/* ===== Table base ===== */
.tabprof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--tabprof-text);
}

/* Head cells */
.tabprof-table thead th {
  text-align: left;
  background: #f7fbfc;
  color: var(--tabprof-accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--tabprof-border);
  padding: 14px 16px;
  position: sticky; /* keeps header visible when scrolling */
  top: 0;
  z-index: 1;
}

/* Body cells */
.tabprof-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tabprof-border);
  vertical-align: top;
  line-height: 1.5;
}

/* Zebra rows (optional, enable via .tabprof-zebra on table) */
.tabprof-table.tabprof-zebra tbody tr:nth-child(odd) {
  background: #fcfefe;
}

/* Hover row */
.tabprof-table tbody tr:hover {
  background: #f2f8f9;
}

/* Columns — allow smart wrapping */
.tabprof-col-position { width: 28%; min-width: 200px; }
.tabprof-col-affiliation { width: 52%; min-width: 280px; }
.tabprof-col-duration { width: 20%; min-width: 140px; white-space: nowrap; }

/* Compact variant */
.tabprof-table.tabprof-compact thead th,
.tabprof-table.tabprof-compact tbody td {
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* ===== Responsive: card layout under 720px ===== */
@media (max-width: 720px) {
  .tabprof-table,
  .tabprof-table thead,
  .tabprof-table tbody,
  .tabprof-table th,
  .tabprof-table td,
  .tabprof-table tr {
    display: block;
  }

  .tabprof-table thead {
    display: none; /* hide header, we’ll label via data-attr */
  }

  .tabprof-table tbody tr {
    border-bottom: 1px solid var(--tabprof-border);
    padding: 12px 12px;
  }

  .tabprof-table tbody td {
    border: 0;
    padding: 8px 0;
  }

  /* Mobile labels via data-label */
  .tabprof-cell {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    align-items: start;
  }

  .tabprof-cell::before {
    content: attr(data-label);
    color: var(--tabprof-muted);
    font-weight: 600;
    padding-right: 10px;
    
  }

  /* make duration align right visually */
  .tabprof-cell.tabprof-cell-duration {
    grid-template-columns: 140px auto;
    justify-content: space-between;
  }
}
/* ===== infotambah-accordion ===== */

.infotambah-accordion {
  max-width: 700px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.infotambah-item + .infotambah-item {
  border-top: 1px solid #e5e7eb;
}

.infotambah-header {
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.infotambah-header:hover {
  background: #f8fafc;
}

.infotambah-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.infotambah-item.active .infotambah-arrow {
  transform: rotate(45deg);
  border-color: #0a66c2;
}

.infotambah-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.infotambah-panel p,
.infotambah-panel ul {
  margin: 0;
  padding: 12px 16px 16px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.infotambah-panel ul {
  padding-left: 32px;
}

/* ===== infotambah-accordion (FINAL) ===== */

.infotambah-accordion {
  max-width: 720px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

/* item */
.infotambah-item + .infotambah-item {
  border-top: 1px solid #edf1f5;
}

/* header */
.infotambah-header {
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.25s ease;
}

.infotambah-header:hover {
  background: linear-gradient(
    90deg,
    rgba(15,118,203,0.08),
    transparent 70%
  );
}

/* arrow */
.infotambah-arrow {
  width: 11px;
  height: 11px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.infotambah-item.active .infotambah-arrow {
  transform: rotate(45deg);
  border-color: #0a66c2;
}

/* panel */
.infotambah-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* content */
.infotambah-content {
  padding: 12px 22px 18px 30px;
}

/* ===== NON-BULLET LIST DESIGN ===== */

.infotambah-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  position: relative;
}

/* academic marker (SIGNATURE ELEMENT) */
.infotambah-mark {
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0a66c2, #38bdf8);
  flex-shrink: 0;
}

/* paragraph mode */
.infotambah-paragraph {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* active background */
.infotambah-item.active {
  background: linear-gradient(
    180deg,
    rgba(248,250,252,0.9),
    #ffffff
  );
}


/* ===== infotambah-panel: styled UL / LI (drop-in) =====
   Scoped: only affects lists inside .infotambah-panel
   Paste this AFTER your existing infotambah CSS (so it overrides browser defaults)
*/

.infotambah-panel ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;               /* vertical breathing space */
  display: block;
}

.infotambah-panel ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  margin: 10px 12px;           /* card spacing inside panel */
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(250,252,254,0.8), #ffffff);
  border: 1px solid rgba(15,23,42,0.04);
  transition: transform .26s cubic-bezier(.2,.9,.2,1), box-shadow .26s ease, background .2s ease;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(0.2px);
}

/* custom marker instead of default bullet */
.infotambah-panel ul li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 6px; /* align marker with first text line */
  border-radius: 2px;
  background: linear-gradient(180deg, #0a66c2, #38bdf8);
  box-shadow: 0 1px 0 rgba(10,102,194,0.12) inset;
  flex-shrink: 0;
}

/* optional secondary vertical accent line on left (subtle) */
.infotambah-panel ul li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(10,102,194,0.08), rgba(58,160,201,0.02));
  border-radius: 1px;
  pointer-events: none;
  opacity: 0.9;
}

/* hover: lift + soft shadow + stronger accent */
.infotambah-panel ul li:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(12,30,60,0.06);
  background: linear-gradient(180deg, rgba(248,250,252,0.95), #ffffff);
}

/* text styles: make first line slightly stronger */
.infotambah-panel ul li {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
}

/* if you want to separate title and meta inside each li,
   you can structure li like:
     <li><strong>Title</strong><span class="meta"> — Institution</span></li>
   and then use rules below (optional) */

.infotambah-panel ul li strong {
  display: block;
  font-weight: 700;
  color: #0b5562;
}

/* meta text (optional) */
.infotambah-panel ul li .meta {
  display: inline-block;
  color: #6b7280;
  font-weight: 500;
  margin-left: 6px;
  font-size: 13.5px;
}

/* responsive / compact */
@media (max-width: 560px) {
  .infotambah-panel ul li {
    margin: 8px 6px;
    padding: 10px 12px;
    gap: 10px;
  }

  .infotambah-panel ul li::after { left: 4px; }
}

/* If you prefer a denser list (disable card spacing), uncomment below:
.infotambah-panel ul li {
  margin: 6px 0;
  border-radius: 8px;
}
*/
/* pastikan kolom kiri boleh menyusut */
.edu-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;      /* sudah ada, penting untuk flex truncation */
  flex: 1 1 auto;    /* biarkan kolom kiri mengambil sisa ruang dan menyusut */
}

/* degree tetap tidak membungkus, tapi jangan memaksa overflow seluruh baris */
.edu-degree {
  font-weight: 700;
  color: #0b5562;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;    /* jangan biarkan degree mengambil sisa ruang */
}

/* batasi institusi agar ter-ellipsis jika terlalu panjang */
.edu-institution {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0.95;
  white-space: nowrap;        /* satu baris */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;               /* penting untuk flex children */
}

.edu-institution {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* jumlah baris yang diizinkan */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-width: 0;
}
.edu-year {
  flex: 0 0 auto;
  margin-left: 12px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .edu-item { flex-direction: column; gap: 6px; padding: 12px 0; }
  .edu-institution { -webkit-line-clamp: 2; } /* atau biarkan wrap normal */
  .edu-degree { white-space: normal; } /* jika ingin degree juga bisa wrap */
}

/* ===== ADDITINFO CORE ===== */
.additinfo-section {
  max-width: 720px;
  margin: 40px 0;
  font-family: inherit;
}

.additinfo-item {
  border-bottom: 1px solid #e6ebef;
}

.additinfo-header {
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.additinfo-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0b5ea8;
  border-bottom: 2px solid #0b5ea8;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.additinfo-header[aria-expanded="true"] .additinfo-icon {
  transform: rotate(-135deg);
}

.additinfo-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* ===== TIMELINE LIST ===== */
.additinfo-timeline {
  list-style: none;
  margin: 0 0 20px;
  padding-left: 28px;
  position: relative;
}

.additinfo-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #0b5ea8,
    rgba(11, 94, 168, 0.15)
  );
}

.additinfo-timeline li {
  position: relative;
  padding: 10px 0 10px 16px;
  font-size: 15px;
  line-height: 1.6;
}

.additinfo-timeline li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: #0b5ea8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #eaf2fb;
}

/* ===== TEXT MODE ===== */
.additinfo-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
