/* ============================================================
   DAYA INOVASI — Aurora Editorial Theme
   Premium News Portal CSS
   ============================================================ */

/* Google Fonts (Local) */
@import url("../fonts/google-fonts.css");

/* ── Design Tokens ── */
:root {
  --di-indigo: #0ea5e9; /* Sky Blue */
  --di-violet: #06b6d4; /* Cyan */
  --di-pink: #10b981; /* Emerald */
  --di-navy: #1e293b; /* Slate 800 */
  --di-navy-deep: #0f172a; /* Slate 900 */
  --di-red: #ef4444;
  --di-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #10b981 100%);
  --di-gradient-blue: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
  --di-gradient-subtle: linear-gradient(135deg, rgba(14,165,233,.08) 0%, rgba(6,182,212,.06) 100%);
  --bg-body: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(15,23,42,.07);
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,.08), 0 12px 32px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 28px rgba(15,23,42,.1), 0 24px 48px rgba(15,23,42,.08);
  --shadow-glow: 0 0 24px rgba(14,165,233,.2);
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --transition-fast: .2s cubic-bezier(.4,0,.2,1);
  --transition-base: .3s cubic-bezier(.4,0,.2,1);
  --transition-smooth: .5s cubic-bezier(.4,0,.2,1);
}

/* ── Base ── */
*,*::before,*::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.025em;
  font-weight: 700;
  line-height: 1.25;
}
a { text-decoration: none; transition: all var(--transition-base); }
img { max-width: 100%; height: auto; }
::selection { background: var(--di-indigo); color: #fff; }

/* ── Utility ── */
.text-di-indigo { color: var(--di-indigo) !important; }
.text-di-violet { color: var(--di-violet) !important; }
.bg-di-indigo { background-color: var(--di-indigo) !important; }
.gradient-text {
  background: var(--di-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Top Bar ── */
.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  font-size: .76rem;
  letter-spacing: .4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
  z-index: 1050;
}
.top-bar a {
  color: #cbd5e1;
  position: relative;
  font-weight: 500;
}
.top-bar a:hover { color: #fff; }
.top-bar a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--di-gradient);
  transition: width var(--transition-base);
}
.top-bar a:hover::after { width: 100%; }

/* ── Header ── */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-smooth);
}
.brand-logo img {
  max-height: 48px;
  transition: transform var(--transition-base);
}
.brand-logo:hover img { transform: scale(1.03); }

/* ── Ad Placeholder ── */
.ad-placeholder {
  background: var(--di-gradient-subtle);
  border: 2px dashed rgba(99,102,241,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: .82rem;
  transition: border-color var(--transition-base);
}
.ad-placeholder:hover { border-color: rgba(99,102,241,.4); }

/* ── Glass Navbar ── */
.glass-navbar {
  background: rgba(15,23,42,.88) !important;
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all var(--transition-base);
  z-index: 1040;
}
.glass-navbar.scrolled {
  box-shadow: 0 8px 32px rgba(15,23,42,.2);
  background: rgba(15,23,42,.95) !important;
}
.glass-navbar .nav-link {
  color: rgba(255,255,255,.72) !important;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 1rem 1.05rem !important;
  position: relative;
}
.glass-navbar .nav-link::before {
  content: "";
  position: absolute;
  left: 50%; bottom: .55rem;
  width: 0; height: 2px;
  background: var(--di-gradient);
  transition: width var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}
.glass-navbar .nav-link:hover,
.glass-navbar .nav-item.active .nav-link { color: #fff !important; }
.glass-navbar .nav-link:hover::before,
.glass-navbar .nav-item.active .nav-link::before { width: 22px; }

/* ── Hero Section ── */
.hero-feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 200px;
  background: var(--di-navy-deep);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: block;
}
.hero-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.hero-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: transform .8s cubic-bezier(.4,0,.2,1), opacity var(--transition-smooth);
}
.hero-feature:hover img { transform: scale(1.06); opacity: .7; }
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: linear-gradient(to top, rgba(15,23,42,.95) 0%, rgba(15,23,42,.5) 55%, transparent 100%);
  padding: 2rem;
  color: #fff;
}
.hero-overlay .badge {
  background: var(--di-gradient) !important;
  border: none;
  padding: .4rem .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 999px !important;
  font-size: .7rem;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.hero-overlay h2,
.hero-overlay h3 {
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  line-height: 1.3;
}

/* ── Hero: Video Play Icon ── */
.hl-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  background: rgba(220, 53, 69, 0.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  z-index: 5;
  pointer-events: none;
  transition: transform var(--transition-base), background var(--transition-base);
  box-shadow: 0 4px 18px rgba(220,53,69,.45);
}
.hero-feature:hover .hl-play-icon {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(220, 53, 69, 1);
}
.hl-play-icon i { margin-left: 3px; }


/* ── News Cards ── */
.news-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-base);
  background: var(--bg-surface);
  height: 100%;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99,102,241,.18);
}
.news-card img { transition: transform .6s cubic-bezier(.4,0,.2,1); }
.news-card:hover img { transform: scale(1.06); }

.card-title-hover { transition: color var(--transition-fast); }
.card-title-hover:hover { color: var(--di-indigo) !important; }

/* ── Section Title ── */
.section-title {
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: .85rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title-badge {
  background: var(--di-gradient);
  color: #fff;
  padding: .45rem 1.1rem;
  display: inline-block;
  font-size: .76rem;
  border-radius: 5px;
  letter-spacing: .8px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99,102,241,.3);
}

/* ── Popular Badge ── */
.popular-badge {
  font-size: 2rem;
  font-weight: 800;
  background: var(--di-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 2.5rem;
  flex-shrink: 0;
}

/* ── Breadcrumbs ── */
.breadcrumb-bar {
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
}
.breadcrumb-item a { color: var(--di-indigo); font-weight: 600; }
.breadcrumb-item a:hover { color: var(--di-violet); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ── Article Content ── */
.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.article-content h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--di-navy);
  border-left: 4px solid var(--di-indigo);
  padding-left: 12px;
}
.related-box {
  background: var(--di-gradient-subtle);
  border-left: 4px solid var(--di-indigo);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Code Blocks (PrismJS Overrides) ── */
.code-toolbar {
  position: relative;
  margin: 1.75rem 0 !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}
[data-bs-theme="dark"] .code-toolbar {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
  background: #0f172a;
}
.code-toolbar > pre[class*="language-"] {
  margin: 0 !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.95rem;
  background: transparent !important;
  padding: 1.25rem 1rem !important;
  overflow-x: auto;
}
.code-toolbar > pre[class*="language-"].line-numbers {
  padding-left: 3.8em !important;
}
code[class*="language-"], pre[class*="language-"] {
  font-family: "JetBrains Mono", "Fira Code", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
  color: var(--bs-code-color);
}

/* ── Prism Toolbar (Header & Copy Button) ── */
.code-toolbar > .toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: "Inter", sans-serif;
  order: -1; /* Pindah toolbar ke atas pre */
}
[data-bs-theme="dark"] .code-toolbar > .toolbar {
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.code-toolbar > .toolbar .toolbar-item {
  display: inline-block;
  margin-left: 0.6rem;
}
.code-toolbar > .toolbar .toolbar-item:first-child {
  margin-left: 0;
  margin-right: auto; /* Dorong nama bahasa ke kiri, tombol copy ke kanan */
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}
.code-toolbar > .toolbar button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  font-weight: 500;
}
.code-toolbar > .toolbar button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.code-toolbar > .toolbar button:active {
  transform: scale(0.95);
}

/* ── Reading Progress Bar ── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--di-gradient);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Social Share ── */
.share-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: .4rem 1rem;
  font-weight: 600;
  font-size: .78rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.x { background: #000000; }
.share-btn.wa { background: #25d366; }
.share-btn.tg { background: #0088cc; }
.share-btn.email { background: var(--di-red); }
.share-btn:hover { box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* ── Tags ── */
.tag-badge {
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  transition: all var(--transition-base);
}
.tag-badge:hover {
  background: var(--di-indigo);
  color: #fff;
  border-color: var(--di-indigo);
}

/* ── Pagination ── */
.pagination .page-link {
  border: 1px solid var(--border-color);
  color: var(--di-indigo);
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  transition: all var(--transition-base);
  box-shadow: none !important;
}
.pagination .page-link:hover {
  background: var(--di-gradient-subtle);
  border-color: rgba(99,102,241,.3);
  color: var(--di-indigo);
}
.pagination .page-item.active .page-link {
  background: var(--di-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.35) !important;
}
.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background: var(--bg-surface-alt);
}

/* ── Footer ── */
.footer-custom {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #94a3b8;
  position: relative;
  overflow: hidden;
}
.footer-custom::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--di-gradient);
}
.footer-custom a { color: #94a3b8; }
.footer-custom a:hover { color: #fff; padding-left: 4px; }
.footer-custom .border-subtle { border-color: rgba(255,255,255,.06) !important; }
.footer-social-btn {
  width: 42px; height: 42px;
  border-radius: 12px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}
.footer-social-btn:hover {
  transform: translateY(-3px);
  background: var(--di-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
  color: #fff;
}

/* ── Buttons ── */
.btn { border-radius: var(--radius-sm); font-weight: 600; letter-spacing: .2px; transition: all var(--transition-base); }
.btn-di-primary {
  background: var(--di-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-di-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.45);
  color: #fff;
}
.btn-di-outline {
  background: transparent;
  border: 2px solid var(--di-indigo);
  color: var(--di-indigo);
}
.btn-di-outline:hover {
  background: var(--di-indigo);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Forms ── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: .7rem 1rem;
  transition: all var(--transition-base);
  background: var(--bg-surface);
}
.form-control:focus, .form-select:focus {
  border-color: var(--di-indigo);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}

/* ── Card Surface ── */
.card-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ── Sidebar Widget ── */
.sidebar-heading {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-left: 4px solid;
  border-image: var(--di-gradient) 1;
  padding-left: .75rem;
  margin-bottom: 1.25rem;
}

/* ── 404 Page ── */
.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: var(--di-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(99,102,241,.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(139,92,246,.5)); }
}
.error-icon {
  font-size: 5rem;
  color: var(--di-violet);
  opacity: .3;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.45); }

/* ── Dark Mode Toggle ── */
#darkModeToggle { transition: transform .4s ease; }
#darkModeToggle:hover { transform: rotate(20deg) scale(1.15); }

/* ── Static Page Content ── */
.static-content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.static-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--di-navy);
  border-left: 4px solid var(--di-indigo);
  padding-left: 12px;
}

/* ── Newsletter ── */
.newsletter-form .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--di-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: .7rem 1.5rem;
}

/* ── Search Form (Navbar) ── */
.navbar-search {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .2rem .5rem;
  transition: all var(--transition-base);
}
.navbar-search:focus-within {
  background: rgba(255,255,255,.15);
  border-color: rgba(99,102,241,.5);
}
.navbar-search .form-control {
  background: transparent;
  border: none;
  color: #fff;
  font-size: .82rem;
  padding: .25rem .5rem;
  box-shadow: none !important;
}
.navbar-search .form-control::placeholder { color: rgba(255,255,255,.45); }
.navbar-search .btn { color: rgba(255,255,255,.7); }
.navbar-search .btn:hover { color: #fff; }

/* ============================================================
   DARK MODE
   ============================================================ */
[data-bs-theme="dark"] {
  --bg-body: #080b16;
  --bg-surface: #111827;
  --bg-surface-alt: #1a2035;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #a3a3a3;
  --border-color: rgba(255,255,255,.06);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 28px rgba(0,0,0,.5), 0 24px 48px rgba(0,0,0,.4);
  --di-gradient-subtle: linear-gradient(135deg, rgba(99,102,241,.1) 0%, rgba(139,92,246,.08) 100%);
}
[data-bs-theme="dark"] body { background: var(--bg-body); color: var(--text-primary); }
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .site-header { background: var(--bg-surface) !important; }
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .breadcrumb-bar { background: var(--bg-surface-alt) !important; }
[data-bs-theme="dark"] .text-dark { color: #f1f5f9 !important; }
[data-bs-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-bs-theme="dark"] .news-card { background: var(--bg-surface); border-color: rgba(255,255,255,.05); }
[data-bs-theme="dark"] .news-card:hover { border-color: rgba(139,92,246,.25); }
[data-bs-theme="dark"] .card-title-hover:hover { color: #a5b4fc !important; }
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border { border-color: rgba(255,255,255,.06) !important; }
[data-bs-theme="dark"] .glass-navbar { background: rgba(8,11,22,.9) !important; }
[data-bs-theme="dark"] .top-bar { background: linear-gradient(90deg, #030712 0%, #0f172a 100%); }
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.08);
  color: #e2e8f0;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background: var(--bg-surface-alt);
  color: #fff;
  border-color: var(--di-indigo);
}
[data-bs-theme="dark"] .offcanvas { background: var(--bg-surface); }
[data-bs-theme="dark"] .card-surface { background: var(--bg-surface); border-color: rgba(255,255,255,.05); }
[data-bs-theme="dark"] .ad-placeholder {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.06)) !important;
  border-color: rgba(139,92,246,.2) !important;
}
[data-bs-theme="dark"] .tag-badge {
  background: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.08);
  color: #cbd5e1;
}
[data-bs-theme="dark"] .tag-badge:hover {
  background: var(--di-indigo);
  color: #fff;
  border-color: var(--di-indigo);
}
[data-bs-theme="dark"] .article-content p,
[data-bs-theme="dark"] .static-content p { color: #cbd5e1 !important; }
[data-bs-theme="dark"] .article-content h1,
[data-bs-theme="dark"] .article-content h2,
[data-bs-theme="dark"] .article-content h3,
[data-bs-theme="dark"] .article-content h4,
[data-bs-theme="dark"] .article-content h5,
[data-bs-theme="dark"] .article-content h6,
[data-bs-theme="dark"] .static-content h1,
[data-bs-theme="dark"] .static-content h2,
[data-bs-theme="dark"] .static-content h3,
[data-bs-theme="dark"] .static-content h4,
[data-bs-theme="dark"] .static-content h5,
[data-bs-theme="dark"] .static-content h6 { color: #f1f5f9 !important; }
[data-bs-theme="dark"] header.site-header { background: var(--bg-surface) !important; }
[data-bs-theme="dark"] .related-box { background: rgba(99,102,241,.08) !important; }
[data-bs-theme="dark"] .text-di-indigo { color: #a5b4fc !important; }
[data-bs-theme="dark"] .pagination .page-link {
  background: var(--bg-surface);
  border-color: rgba(255,255,255,.08);
  color: #a5b4fc;
}

/* ── Dark Mode: Custom Artikel ── */
[data-bs-theme="dark"] .article-content blockquote {
  background: var(--bg-surface-alt);
  border-left-color: var(--di-red);
  color: var(--text-primary);
}
[data-bs-theme="dark"] .article-featured-image figcaption {
  color: var(--text-muted);
}
[data-bs-theme="dark"] .article-content {
  color: var(--text-primary);
}
[data-bs-theme="dark"] .article-tags {
  border-top-color: var(--border-color);
}
[data-bs-theme="dark"] .tags-label {
  color: var(--text-primary);
}
[data-bs-theme="dark"] .article-tags .tag-item {
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
}
[data-bs-theme="dark"] .article-share-mobile {
  border-top-color: var(--border-color);
}
[data-bs-theme="dark"] .related-articles {
  background: var(--bg-surface);
}
[data-bs-theme="dark"] .section-title {
  color: var(--text-primary);
}
[data-bs-theme="dark"] .related-item h4 a {
  color: var(--text-primary);
}
[data-bs-theme="dark"] .related-item h4 a:hover {
  color: var(--di-indigo);
}
[data-bs-theme="dark"] .font-resize-label {
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero-overlay { padding: 1.25rem; }
  .hero-overlay h2 { font-size: 1.15rem; }
}
@media (max-width: 767.98px) {
  .hero-overlay h2 { font-size: 1rem; }
  .hero-overlay h3 { font-size: .88rem; }
}


/*Custom Artikel Dinovatek*/
/* Article Content */
.article-content-wrapper {
    flex: 1;
}

.article-content .article-featured-image {
    margin-bottom: 20px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 1rem;
}
.article-featured-image {
    margin-bottom: 20px;
    width: 100% !important; /* Paksa jadi lebar penuh */
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 1rem;
}

.article-featured-image img {
    max-width: 100%;
    width: auto;
    border-radius: 3px;
    height: auto;
}

.article-featured-image figcaption {
    font-size: 12px;
    color: #666;
    font-style: italic;
    /* margin-top: 3px; */
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content blockquote {
    border-left: 4px solid #dd3333;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f9f9f9;
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-weight: 600;
    color: var(--text-primary);
}

.article-tags .tag-item {
    padding: 4px 12px;
    background: var(--bg-surface-alt);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.article-tags .tag-item:hover {
    background: var(--di-indigo);
    color: #fff;
}

/* Mobile Share */
.article-share-mobile {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-share-mobile .share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.article-share-mobile .share-btn {
    flex: 1;
    height: auto;
    width: auto;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Related Articles */
.related-articles {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-sm);
    max-width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--di-indigo);
}

.related-item h4 {
    font-size: 14px;
    margin-top: 10px;
}

.related-item h4 a {
    color: var(--text-primary);
}

.related-item h4 a:hover {
    color: var(--di-red);
}

/* Responsive */
@media (max-width: 991px) {
    .article-title {
        font-size: 19px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* Iklan Sticky di Konten Artikel */
.content-ad-sticky {
    position: sticky;
    top: 120px;
}

.content-ad-sticky .ad-banner {
    min-height: 300px;
}

/* ==========================================================================
   Font Resize Controls
   ========================================================================== */
.font-resize-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.font-resize-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 5px;
}

.font-resize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-resize-btn:hover {
    background: var(--di-red);
    border-color: var(--di-red);
    color: #fff;
}

.font-resize-btn.is-active {
    background: var(--di-red);
    border-color: var(--di-red);
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .font-resize-controls {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}

/* ===============================
   Featured Card
================================= */

.featured-card {
    position: relative;
    background: #000;
}

/* Image */
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge */
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.featured-badge .badge {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    padding: 0.5em 0.75em;
    border-radius: 0;
}

/* Overlay */
.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.5rem);
    z-index: 2;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.65) 60%);
}

/* Title */
.featured-title {
    margin: 0;
    font-weight: 700;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    font-size: clamp(1rem, 3vw, 1.2rem);

    /* max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

/* Hover effect */
.featured-title a:hover {
    text-decoration: underline;
}

/* ===============================
   Mobile fine tuning
================================= */

@media (max-width: 575px) {
    .featured-title a {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* ==========================================================================
   Article Pagination (Nextpage)
   ========================================================================== */
.pagination-wrap {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.pagination-wrap .label-halaman {
    font-weight: 700;
    margin-right: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
}

.pagination-wrap .paging {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-wrap .paging li {
    margin: 0 5px 5px 0;
}

.pagination-wrap .paging li a {
    display: block;
    padding: 6px 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.pagination-wrap .paging li a:hover,
.pagination-wrap .paging li a.active {
    background-color: #81d742;
    /* Primary Brand Color */
    color: #fff;
    border-color: #81d742;
}

.pagination-wrap .paging li a.disabled {
    background-color: var(--bg-surface-alt);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
}

/* ==========================================================================
   Social Menu Hover Effects (Custom) - Specificity Fix
   ========================================================================== */

/* Tebalkan teks link */
#primary-menu .gmr-social-menu .sub-menu a {
    font-weight: 500;
}

/* Facebook Hover (Biru) */
#primary-menu .gmr-social-menu a.facebook:hover {
    background-color: #3b5998 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.facebook:hover svg {
    color: #fff !important;
}

/* Twitter/X Hover (Hitam) */
#primary-menu .gmr-social-menu a.twitter:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.twitter:hover svg {
    color: #fff !important;
}

/* Instagram Hover (Gradient) */
#primary-menu .gmr-social-menu a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.instagram:hover svg {
    color: #fff !important;
}

/* YouTube Hover (Merah) */
#primary-menu .gmr-social-menu a.youtube:hover {
    background-color: #bb0000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.youtube:hover svg {
    color: #fff !important;
}

/* TikTok Hover (Hitam) */
#primary-menu .gmr-social-menu a.tiktok:hover {
    background-color: #000000 !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.tiktok:hover svg {
    color: #fff !important;
}

/* RSS Hover (Oranye) */
#primary-menu .gmr-social-menu a.rss:hover {
    background-color: #ee802f !important;
    color: #fff !important;
}

#primary-menu .gmr-social-menu a.rss:hover svg {
    color: #fff !important;
}

.widget-area-sidebar,
.widget-area-sidebar_left {
    background-color: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 12px;
    max-width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   Related List Section (Berita Terkait - Format List)
   ========================================================================== */
.related-list-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.related-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--di-red);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--di-red);
    padding-bottom: 0.5rem;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 2px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list li a {
    /* color: #0d6efd; */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.related-list li a:hover {
    color: #0b63a1;
}

/* ==========================================================================
   Post Navigation (Pos Sebelumnya / Berikutnya)
   ========================================================================== */
.post-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 48%;
    padding: 12px 15px;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
}

.post-nav-link:hover {
    background-color: #81d742;
    border-color: #81d742;
}

.post-nav-link:hover .post-nav-label,
.post-nav-link:hover .post-nav-title {
    color: #fff;
}

.post-nav-link.disabled {
    visibility: hidden;
}

.post-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-next {
    text-align: right;
}

@media (max-width: 767px) {
    .post-nav-link {
        max-width: 100%;
    }

    .post-navigation .d-flex {
        flex-direction: column;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
#comments {
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

#comments .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--di-red);
}

#comments .section-title span {
    background-color: var(--bg-surface);
    padding-right: 15px;
}

/* Comment List */
.comment-list {
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    border-left: 3px solid var(--di-indigo);
    transition: all 0.2s ease;
}

.comment-item:hover {
    border-left-color: var(--di-red);
    background-color: var(--bg-surface-alt) !important;
}

.comment-avatar img {
    border: 2px solid var(--di-indigo);
    transition: border-color 0.2s ease;
}

.comment-item:hover .comment-avatar img {
    border-color: var(--di-red);
}

.comment-meta strong {
    font-size: 14px;
    color: var(--text-primary);
}

.comment-meta small {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Comment Form */
.comment-form {
    background-color: var(--bg-surface-alt);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-form h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.comment-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .form-control:focus {
    border-color: #81d742;
    box-shadow: 0 0 0 3px rgba(129, 215, 66, 0.15);
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.comment-form .btn-primary {
    background-color: #81d742;
    border-color: #81d742;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.25s ease;
}

.comment-form .btn-primary:hover {
    background-color: #59d600;
    border-color: #59d600;
    transform: translateY(-1px);
}

/* No comments message */
#comments .text-muted {
    font-size: 14px;
    font-style: italic;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    align-self: start;
}

.page-header-border {
    border-bottom: 2px solid var(--border-color);
}

.widget-type-custom_html {
    font-size: 1rem;
}

table,
td,
th {
    border: 1px solid #ddd;
    text-align: left;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 10px;
}

/* ==========================================================================
   Widget: Smart Ads Container
   Kontainer iklan tiered (AdSense → MGID → Image Banner).
   Dipindahkan dari inline <style> di ads-smart.php (2026-04-02).
   ========================================================================== */
.smart-ad-container {
    min-height: 250px;
    max-width: 100%;
    overflow: hidden;
}

@media screen and (max-width: 480px) {
    .smart-ad-container {
        min-height: 100px;
    }
}


/*code sampel custom*/
/* =========================================
   1. Variabel Warna Utama (Mode Terang)
   ========================================= */
[data-bs-theme="light"] {
  --code-bg: #f8f9fa;        /* Abu-abu sangat muda khas Bootstrap */
  --code-border: #dee2e6;
  --code-text-main: #212529;
  
  /* Warna Syntax untuk Light Mode (Warna lebih gelap agar terbaca) */
  --code-operator: #0a58ca;  /* Biru */
  --code-keyword: #a1007e;   /* Magenta/Ungu */
  --code-string: #198754;    /* Hijau */
  --code-punctuation: #6c757d; 
}

/* =========================================
   2. Variabel Warna Utama (Mode Gelap)
   ========================================= */
[data-bs-theme="dark"] {
  --code-bg: #1e1e2e;        /* Background gelap kebiruan */
  --code-border: #373b3e;
  --code-text-main: #c9d1d9;
  
  /* Warna Syntax untuk Dark Mode (Warna cerah/neon) */
  --code-operator: #56b6c2;  /* Cyan */
  --code-keyword: #c678dd;   /* Ungu cerah */
  --code-string: #98c379;    /* Hijau daun */
  --code-punctuation: #abb2bf;
}

/* =========================================
   3. Styling Block Code
   ========================================= */
pre[class*="language-"] {
  background-color: var(--code-bg);
  color: var(--code-text-main);
  border: 1px solid var(--code-border);
  padding: 1.25rem;
  
  /* Penambahan Radius sesuai permintaan */
  border-radius: 12px; 
  
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.5em 0;
  
  /* Transisi halus saat perpindahan tema */
  transition: all 0.3s ease; 
}

/* =========================================
   4. Highlight Syntax (Prism.js Tokens)
   ========================================= */
.token.operator { color: var(--code-operator); }
.token.keyword { color: var(--code-keyword); font-weight: bold; }
.token.string { color: var(--code-string); }
.token.punctuation { color: var(--code-punctuation); }

/* Jika ada teks output biasa di dalam block (seperti "Hello World") */
.language-xxx {
  color: var(--code-text-main);
}

/* ============================================================
   TUTORIAL IT COMPONENTS
   Komponen UI khusus untuk konten tutorial & artikel teknis.
   ============================================================ */

/* =========================================
   T1. Inline Code Styling
   Untuk <code> tanpa class language-* (inline backtick)
   ========================================= */
.article-content code:not([class*="language-"]),
.article-content :not(pre) > code {
  background: var(--code-bg, #f8f9fa);
  border: 1px solid var(--code-border, #dee2e6);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--di-indigo);
  word-break: break-word;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .article-content code:not([class*="language-"]),
[data-bs-theme="dark"] .article-content :not(pre) > code {
  background: var(--code-bg);
  border-color: var(--code-border);
  color: #7dd3fc;
}

/* =========================================
   T2. Callout / Admonition Blocks
   Usage: <div class="callout callout-info">...</div>
   Atau via blockquote: <blockquote class="callout-warning">
   ========================================= */
.callout,
.article-content .callout {
  padding: 1rem 1.25rem;
  margin: 1.5em 0;
  border-radius: 10px;
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
}

.callout::before {
  font-size: 1.1rem;
  margin-right: 8px;
}

/* Info */
.callout-info {
  background: rgba(14, 165, 233, 0.06);
  border-left-color: var(--di-indigo);
  color: #0c4a6e;
}
.callout-info::before { content: "ℹ️"; }

/* Warning */
.callout-warning {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: #f59e0b;
  color: #78350f;
}
.callout-warning::before { content: "⚠️"; }

/* Tip */
.callout-tip {
  background: rgba(16, 185, 129, 0.06);
  border-left-color: #10b981;
  color: #064e3b;
}
.callout-tip::before { content: "💡"; }

/* Danger */
.callout-danger {
  background: rgba(239, 68, 68, 0.06);
  border-left-color: #ef4444;
  color: #7f1d1d;
}
.callout-danger::before { content: "🚫"; }

/* Dark mode callouts */
[data-bs-theme="dark"] .callout-info {
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
}
[data-bs-theme="dark"] .callout-warning {
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}
[data-bs-theme="dark"] .callout-tip {
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
}
[data-bs-theme="dark"] .callout-danger {
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

/* =========================================
   T3. Code Block Language Label
   Prism toolbar: tampilkan nama bahasa
   ========================================= */
.code-toolbar {
  position: relative;
}

.code-toolbar > .toolbar {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.code-toolbar:hover > .toolbar {
  opacity: 1;
}

/* Language label (first toolbar item) */
.code-toolbar > .toolbar > .toolbar-item:first-child span {
  display: inline-block;
  background: var(--di-gradient);
  color: #fff;
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Copy button styling */
.copy-to-clipboard-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--code-text-main);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-to-clipboard-button:hover {
  background: var(--di-indigo);
  color: #fff;
  border-color: var(--di-indigo);
}

.copy-to-clipboard-button[data-copy-state="copy-success"] {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* =========================================
   T4. Prerequisites / Requirements Box
   Usage: <div class="prerequisites-box">...</div>
   ========================================= */
.prerequisites-box,
.article-content .prerequisites-box {
  background: var(--di-gradient-subtle);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5em 0;
}

.prerequisites-box h4,
.prerequisites-box .prerequisites-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--di-indigo);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prerequisites-box h4::before {
  content: "📋";
}

.prerequisites-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.prerequisites-box li {
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

[data-bs-theme="dark"] .prerequisites-box {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.12);
}

/* =========================================
   T5. Difficulty Badge
   Usage: <span class="difficulty-badge beginner">Pemula</span>
   ========================================= */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty-badge.beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.difficulty-badge.intermediate {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.difficulty-badge.advanced {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .difficulty-badge.beginner {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}
[data-bs-theme="dark"] .difficulty-badge.intermediate {
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}
[data-bs-theme="dark"] .difficulty-badge.advanced {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* =========================================
   T6. Table of Contents (Sidebar Sticky)
   ========================================= */
.toc-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.toc-widget .toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--di-indigo);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-widget .toc-title::before {
  content: "📑";
}

.toc-widget ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.toc-widget ol li {
  counter-increment: toc-counter;
  margin-bottom: 4px;
}

.toc-widget ol li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-widget ol li a::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: var(--di-indigo);
  min-width: 1.5em;
  flex-shrink: 0;
}

.toc-widget ol li a:hover,
.toc-widget ol li a.active {
  background: var(--di-gradient-subtle);
  color: var(--di-indigo);
}

.toc-widget ol li a.active {
  font-weight: 600;
}

/* Sub-items (H3) */
.toc-widget ol ol {
  padding-left: 1.25rem;
  counter-reset: toc-sub-counter;
}

.toc-widget ol ol li {
  counter-increment: toc-sub-counter;
}

.toc-widget ol ol li a::before {
  content: counter(toc-counter) "." counter(toc-sub-counter);
}

/* =========================================
   T7. Tutorial Step Indicators
   Activated via class .tutorial-mode on .article-content
   ========================================= */
.article-content.tutorial-mode {
  counter-reset: step-counter;
}

.article-content.tutorial-mode > h2 {
  counter-increment: step-counter;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-content.tutorial-mode > h2::before {
  content: counter(step-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--di-gradient);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================================
   T8. Responsive Table Wrapper
   Auto-wraps tables inside article-content
   ========================================= */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-content table thead th {
  background: var(--di-gradient-subtle);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--di-indigo);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.article-content table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.article-content table tbody tr:hover {
  background: var(--di-gradient-subtle);
}

[data-bs-theme="dark"] .article-content table thead th {
  border-bottom-color: rgba(14, 165, 233, 0.3);
}

/* Horizontal scroll for wide tables on mobile */
@media (max-width: 767.98px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================
   T9. Feedback Widget ("Apakah artikel ini membantu?")
   ========================================= */
.feedback-widget {
  text-align: center;
}

.feedback-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-btn:hover {
  border-color: var(--di-indigo);
  color: var(--di-indigo);
  background: var(--di-gradient-subtle);
}

.feedback-btn[data-vote="up"].active,
.feedback-btn[data-vote="up"]:hover {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.07);
}

.feedback-btn[data-vote="down"].active,
.feedback-btn[data-vote="down"]:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.07);
}

.feedback-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.feedback-btn.active {
  opacity: 1;
}

.feedback-thankyou {
  font-size: 0.9rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* =========================================
   T10. Code Block Line Numbers (Prism plugin)
   ========================================= */
pre[class*="language-"].line-numbers {
  position: relative;
  padding-left: 3.8em;
  counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
  position: relative;
  white-space: inherit;
}
.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  font-size: 100%;
  left: -3.8em;
  width: 3em;
  letter-spacing: -1px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.58;
}
.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}
.line-numbers-rows > span::before {
  content: counter(linenumber);
  color: rgba(255, 255, 255, 0.3);
  display: block;
  padding-right: 0.8em;
  text-align: right;
}
[data-bs-theme="light"] pre[class*="language-"].line-numbers {
  border-left: none;
}
[data-bs-theme="light"] .line-numbers .line-numbers-rows {
  border-right-color: rgba(0, 0, 0, 0.1);
}
[data-bs-theme="light"] .line-numbers-rows > span::before {
  color: rgba(0, 0, 0, 0.25);
}

/* ============================================================
   DARK MODE — Widget & Component Extensions
   ============================================================ */
[data-bs-theme="dark"] .widget-area-sidebar,
[data-bs-theme="dark"] .widget-area-sidebar_left {
  background-color: var(--bg-surface);
  border-color: rgba(255,255,255,.06);
}

[data-bs-theme="dark"] .article-content blockquote {
  background: var(--bg-surface-alt);
  border-left-color: var(--di-red);
  color: var(--text-primary);
}

[data-bs-theme="dark"] .comment-form {
  background-color: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .comment-form h5 { color: var(--text-primary); }
[data-bs-theme="dark"] .comment-form .form-control {
  background: var(--bg-surface);
  border-color: rgba(255,255,255,.08);
  color: var(--text-primary);
}
[data-bs-theme="dark"] .comment-form .form-control:focus {
  border-color: var(--di-indigo);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

[data-bs-theme="dark"] .comment-item { border-left-color: rgba(14,165,233,.5); }
[data-bs-theme="dark"] .comment-item:hover { border-left-color: var(--di-red); }
[data-bs-theme="dark"] .comment-avatar img { border-color: rgba(14,165,233,.4); }
[data-bs-theme="dark"] .comment-meta strong { color: var(--text-primary); }
[data-bs-theme="dark"] .comment-content p { color: var(--text-secondary); }
[data-bs-theme="dark"] #comments { border-top-color: var(--border-color); }
[data-bs-theme="dark"] #comments .section-title { color: var(--text-primary); border-bottom-color: var(--di-red); }
[data-bs-theme="dark"] #comments .section-title span { background-color: var(--bg-surface); }

[data-bs-theme="dark"] .pagination-wrap {
  background-color: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .pagination-wrap .label-halaman { color: var(--text-primary); }
[data-bs-theme="dark"] .pagination-wrap .paging li a {
  background-color: var(--bg-surface);
  border-color: rgba(255,255,255,.08);
  color: var(--text-primary);
}
[data-bs-theme="dark"] .pagination-wrap .paging li a:hover,
[data-bs-theme="dark"] .pagination-wrap .paging li a.active {
  background-color: var(--di-indigo);
  border-color: var(--di-indigo);
  color: #fff;
}
[data-bs-theme="dark"] .pagination-wrap .paging li a.disabled {
  background-color: var(--bg-surface-alt);
  color: var(--text-muted);
  border-color: rgba(255,255,255,.06);
}

[data-bs-theme="dark"] .post-nav-link {
  background-color: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .post-nav-link:hover { background-color: var(--di-indigo); border-color: var(--di-indigo); }
[data-bs-theme="dark"] .post-nav-link:hover .post-nav-label,
[data-bs-theme="dark"] .post-nav-link:hover .post-nav-title { color: #fff; }
[data-bs-theme="dark"] .post-nav-label { color: var(--text-muted); }
[data-bs-theme="dark"] .post-nav-title { color: var(--text-primary); }
[data-bs-theme="dark"] .post-navigation { border-top-color: var(--border-color); }

[data-bs-theme="dark"] .related-list-title { color: #f87171; border-bottom-color: #f87171; }
[data-bs-theme="dark"] .related-list li { border-bottom-color: rgba(255,255,255,.06); }
[data-bs-theme="dark"] .related-list li a { color: #93c5fd; }
[data-bs-theme="dark"] .related-list li a:hover { color: #60a5fa; }
[data-bs-theme="dark"] .related-list-section { border-top-color: rgba(255,255,255,.06); }

[data-bs-theme="dark"] .article-tags { border-top-color: var(--border-color); }
[data-bs-theme="dark"] .tags-label { color: var(--text-primary); }
[data-bs-theme="dark"] .article-tags .tag-item {
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
}
[data-bs-theme="dark"] .article-tags .tag-item:hover {
  background: var(--di-indigo);
  color: #fff;
}

[data-bs-theme="dark"] .article-share-mobile { border-top-color: var(--border-color); }

[data-bs-theme="dark"] .font-resize-label { color: var(--text-muted); }
[data-bs-theme="dark"] .font-resize-btn {
  color: var(--text-secondary);
  background: var(--bg-surface-alt);
  border-color: rgba(255,255,255,.08);
}
[data-bs-theme="dark"] .font-resize-btn:hover,
[data-bs-theme="dark"] .font-resize-btn.is-active {
  background: var(--di-red);
  border-color: var(--di-red);
  color: #fff;
}

[data-bs-theme="dark"] .page-header-border { border-bottom-color: rgba(255,255,255,.08); }