/*
Theme Name: truthemetwo-ponpes
Theme URI: https://ponpesraudhatutthalibin.pointru.com
Author: Tru Creative & Ma'had Raudhatut Thalibin
Description: Dedicated Islamic Flat UI WordPress Theme for Ma'had Al-Islam Raudhatut Thalibin. Ultra high-performance (GTmetrix Grade A & PageSpeed 100 ready), hardened security, native blog & announcements, standalone online registration (/pendaftaran), and multi-role portal (/portal).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: truthemetwo-ponpes
*/

/* ==========================================================================
   1. CSS Custom Properties / Root Variables (Light & Dark Mode)
   ========================================================================== */
:root {
  --tru-bg: #FFFFFF;
  --tru-surface: #FFFFFF;
  --tru-surface-alt: #F8FAFC;
  --tru-text: #0F172A;
  --tru-text-muted: #64748B;
  --tru-border: #E2E8F0;
  --tru-primary: #1B5E20;
  --tru-primary-hover: #064E3B;
  --tru-accent: #10B981;
  --tru-cta: #D97706;
  --ponpes-gold: #F59E0B;
  --tru-white: #FFFFFF;
  --tru-dark: #0F172A;
  --tru-text-light: #94A3B8;

  /* Typography & Layout Tokens */
  --tru-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --tru-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --tru-container-max: 1200px;
  --tru-container-page: 860px;
  --tru-header-height: 70px;
  --tru-bottom-nav-height: 60px;

  --tru-radius-xs: 2px;
  --tru-radius-sm: 4px;
  --tru-radius-md: 6px;
  --tru-radius-lg: 8px;

  /* 100% Pure Modern Flat UI Tokens (Zero Shadows) */
  --tru-shadow-sm: none !important;
  --tru-shadow-md: none !important;
  --tru-shadow-lg: none !important;
  --tru-shadow-xl: none !important;

  --tru-transition: all 0.2s ease-in-out;
}


/* ==========================================================================
   2. Modern CSS Reset & Baseline
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html,
body,
#page,
.site {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-x: clip !important;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--tru-bg);
  color: var(--tru-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--tru-bg);
  color: var(--tru-text);
  font-family: var(--tru-font-sans);
  font-weight: 400;
  text-rendering: optimizeLegibility;

  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}


/* Mobile viewport bottom offset when bottom navigation is active */
@media (max-width: 767px) {
  body.has-mobile-bottom-nav {
    padding-bottom: calc(var(--tru-bottom-nav-height) + 10px);
  }
}

iframe {
  max-width: 100% !important;
}

img,
video {
  max-width: 100% !important;
  height: auto !important;
}

table {
  max-width: 100% !important;
}

img,
picture,
video,
canvas {
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--tru-primary);
  text-decoration: none;
  transition: var(--tru-transition);
}

a:hover {
  color: var(--tru-accent);
}

/* Reading Progress Bar (Fixed Top) */
.tru-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: var(--tru-primary);
  z-index: 100001;
  transition: width 0.1s ease-out;
}

/* Screen Reader Text for Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-primary);
  border-radius: var(--tru-radius-sm);
  clip: auto !important;
  clip-path: none;
  color: var(--tru-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   3. Layout & Containers (Zero Double-Padding Architecture)
   ========================================================================== */
.tru-container,
.container {
  width: 100%;
  max-width: var(--tru-container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.tru-page-container {
  max-width: var(--tru-container-page);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main,
.tru-site-main {
  flex: 1 0 auto;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Two-column layout for single posts, archives & homepage */
.tru-layout-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  min-width: 0;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .tru-layout-with-sidebar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .tru-layout-with-sidebar .tru-content-area,
  .tru-layout-with-sidebar .site-main,
  .tru-layout-with-sidebar #primary {
    flex: 1 1 68% !important;
    max-width: 68% !important;
    min-width: 0 !important;
    padding-right: 2.25rem !important;
  }

  .tru-layout-with-sidebar .widget-area,
  .tru-layout-with-sidebar #secondary,
  .tru-layout-with-sidebar .tru-sidebar,
  .tru-layout-with-sidebar aside {
    flex: 1 1 32% !important;
    max-width: 32% !important;
    min-width: 0 !important;
    padding-left: 2.25rem !important;
    border-left: 1px solid var(--tru-border) !important; /* Warna senada (Light: #E2E8F0 / Dark: #1E293B) */
    border-top: none !important;
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 1023px) {
  .tru-layout-with-sidebar .tru-content-area,
  .tru-layout-with-sidebar .site-main,
  .tru-layout-with-sidebar #primary {
    padding-right: 0 !important;
  }

  .tru-layout-with-sidebar .widget-area,
  .tru-layout-with-sidebar #secondary,
  .tru-layout-with-sidebar .tru-sidebar,
  .tru-layout-with-sidebar aside {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin-top: 2rem !important;
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--tru-border) !important;
    padding-top: 2rem !important;
  }
}

@media (max-width: 767px) {
  .tru-container,
  .container {
    width: 100% !important;
    padding: 0 14px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-main,
  .tru-site-main {
    padding: 0 !important;
    margin: 0 !important;
  }

  .tru-layout-with-sidebar {
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
  }
}

.tru-content-area {
  min-width: 0;
}

.tru-container,
.container,
.tru-single-article,
.tru-entry-content,
.entry-content,
.site-main {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

.tru-single-article,
.tru-entry-content,
.entry-content {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
}

.site-main,
.tru-site-main,
.tru-content-area,
.tru-primary,
#primary,
.tru-single-article,
.tru-page-article,
.tru-single-post,
.tru-entry-content,
.entry-content {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* ==========================================================================
   4. Header & Navigation (Flat UI Desktop & Mobile Drawer)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--tru-white);
  border-bottom: 1px solid var(--tru-border);
  padding: 0.75rem 0;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tru-navbar {
  min-height: unset;
}

@media (max-width: 767px) {
  .site-header {
    padding: 0.6rem 0;
  }
}

.site-header .tru-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}



.site-branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--tru-dark);
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--tru-dark);
}

.site-title a:hover {
  color: var(--tru-primary);
}

.site-description {
  font-size: 0.75rem;
  color: var(--tru-text-muted);
  margin-top: 0.15rem;
}

.custom-logo-link img {
  max-height: 42px;
  width: auto;
}

/* Desktop Right Section: Nav + Action Buttons */
.tru-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tru-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop Header Action Buttons (Search & Dark Mode Switcher) */
.site-header .tru-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--tru-bg);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  color: var(--tru-dark);
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: var(--tru-transition);
}

.site-header .tru-header-btn:hover,
.site-header .tru-header-btn.is-active {
  background-color: var(--tru-white);
  border-color: var(--tru-primary);
  color: var(--tru-primary);
}

.site-header .tru-header-btn svg {
  width: 18px;
  height: 18px;
  margin: 0;
  display: block;
}

/* Theme Switcher Icons Visibility & Sizing */
.tru-theme-toggle .tru-icon-sun {
  display: none !important;
}

.tru-theme-toggle .tru-icon-moon {
  display: block !important;
}

.tru-theme-toggle {
  display: none !important;
}

/* Desktop Primary Navigation */
.site-navigation {
  display: none;
}

@media (min-width: 768px) {
  .site-navigation {
    display: block !important;
  }

  .site-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .site-navigation li {
    position: relative;
  }

  .site-navigation li a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--tru-dark);
    border-radius: var(--tru-radius-sm);
    transition: var(--tru-transition);
  }

  .site-navigation li a:hover,
  .site-navigation li.current-menu-item > a {
    background-color: var(--tru-bg);
    color: var(--tru-primary);
  }

  .site-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--tru-white);
    border: 1px solid var(--tru-border);
    border-radius: var(--tru-radius-sm);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--tru-transition);
    box-shadow: none;
  }

  .site-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
  }

}

/* Mobile Header Clean-up (< 768px) */
@media (max-width: 767px) {
  .site-header .tru-header-right,
  .site-header .site-navigation,
  .site-header .tru-header-actions {
    display: none !important;
  }

  .site-header .tru-header-inner {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   4.5. Mobile 70% Slide Navigation Drawer
   ========================================================================== */
html.tru-drawer-open,
body.tru-drawer-open {
  overflow: hidden;
}

/* Base Drawer Mobile 70% */
.tru-mobile-drawer,
#tru-mobile-drawer,
.tru-slide-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.6) !important; /* Backdrop gelap */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  pointer-events: none !important;
}

.tru-mobile-drawer-backdrop,
.tru-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.tru-mobile-drawer-inner,
.tru-drawer-inner,
.tru-mobile-drawer-panel,
.tru-drawer-panel {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 70% !important;
  max-width: 320px !important;
  height: 100vh !important;
  background-color: var(--tru-white) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  border-right: 1px solid var(--tru-border) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 2 !important;
}


/* State Aktif Drawer */
.tru-mobile-drawer.is-active,
.tru-mobile-drawer.tru-drawer-open,
#tru-mobile-drawer.is-active,
#tru-mobile-drawer.tru-drawer-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.tru-mobile-drawer.is-active .tru-mobile-drawer-inner,
.tru-mobile-drawer.tru-drawer-open .tru-drawer-inner,
.tru-mobile-drawer.is-active .tru-drawer-inner,
.tru-mobile-drawer.tru-drawer-open .tru-mobile-drawer-inner,
.tru-mobile-drawer.is-active .tru-mobile-drawer-panel,
.tru-mobile-drawer.tru-drawer-open .tru-mobile-drawer-panel,
.tru-mobile-drawer.is-active .tru-drawer-panel,
.tru-mobile-drawer.tru-drawer-open .tru-drawer-panel {
  transform: translateX(0) !important;
}

.tru-mobile-drawer-header,
.tru-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--tru-border);
}

.tru-mobile-drawer-branding .site-title,
.tru-drawer-branding .site-title,
.tru-drawer-branding .tru-site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tru-dark);
}

.tru-mobile-drawer-branding img,
.tru-drawer-branding img {
  max-height: 36px;
  width: auto;
}

.tru-mobile-drawer-close,
.tru-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--tru-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: var(--tru-transition);
}

.tru-mobile-drawer-close:hover,
.tru-drawer-close:hover {
  color: var(--tru-dark);
}

.tru-mobile-drawer-nav {
  padding: 1rem 0;
  flex: 1;
}

.tru-mobile-drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tru-mobile-drawer-nav li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tru-dark);
  border-left: 3px solid transparent;
  transition: var(--tru-transition);
}

.tru-mobile-drawer-nav li a:hover,
.tru-mobile-drawer-nav li.current-menu-item > a {
  background-color: var(--tru-bg);
  color: var(--tru-primary);
  border-left-color: var(--tru-primary);
}

.tru-mobile-drawer-nav ul ul {
  padding-left: 0.75rem;
}

.tru-mobile-drawer-nav ul ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  padding-left: 1.5rem;
  color: var(--tru-text-muted);
}

/* ==========================================================================
   # Mobile Top Navigation Bar (Logo & Menu Slid 70%)
   ========================================================================== */
.tru-mobile-top-nav {
  display: none;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
  /* Sembunyikan desktop site-header di mobile sehingga hanya ada 1 bar navigasi atas */
  .site-header {
    display: none !important;
  }

  .tru-mobile-top-nav {
    display: block !important;
  }

  .tru-mobile-top-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 14px !important;
    height: 56px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .tru-mobile-top-brand {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .tru-mobile-brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    min-width: 0 !important;
  }

  .tru-mobile-logo-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #F59E0B !important;
    flex-shrink: 0 !important;
  }

  .tru-mobile-brand-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    line-height: 1.15 !important;
  }

  .tru-mobile-brand-title {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #064E3B !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .tru-mobile-brand-subtitle {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    color: #D97706 !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }

  .tru-mobile-top-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .tru-mobile-top-btn-portal {
    background: #064E3B !important;
    color: #FDE68A !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    padding: 6px 11px !important;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .tru-mobile-top-btn {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
  }
  .tru-mobile-top-btn:hover {
    background: #E2E8F0 !important;
  }
}

/* ==========================================================================
   5. Mobile App-like Bottom Navigation Bar (5 Items)
   ========================================================================== */
.tru-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tru-bottom-nav-height);
  background-color: var(--tru-white);
  border-top: 1px solid var(--tru-border);
  padding: 0.5rem 0.75rem;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  box-shadow: none !important;
  box-sizing: border-box;
}



@media (min-width: 768px) {
  .tru-mobile-bottom-nav {
    display: none !important;
  }
}

.tru-bottom-nav-item,
.tru-mobile-bottom-nav .tru-bottom-nav-item,
.tru-mobile-bottom-nav button.tru-bottom-nav-item,
.tru-mobile-bottom-nav a.tru-bottom-nav-item,
.tru-mobile-bottom-nav .tru-theme-toggle {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  padding: 6px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--tru-text-muted) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: var(--tru-transition);
  -webkit-tap-highlight-color: transparent;
}

.tru-bottom-nav-item svg,
.tru-mobile-bottom-nav .tru-bottom-nav-item svg {
  width: 20px;
  height: 20px;
  margin-bottom: 3px;
  display: block;
  flex-shrink: 0;
  transition: var(--tru-transition);
}

/* Specific visibility & sizing for bottom theme switcher icons */
.tru-mobile-bottom-nav .tru-theme-toggle .tru-icon-sun {
  display: none !important;
}

.tru-mobile-bottom-nav .tru-theme-toggle .tru-icon-moon {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin-bottom: 3px !important;
}

.tru-bottom-nav-label,
.tru-bottom-nav-item .tru-bottom-nav-label,
.tru-bottom-nav-item span {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  display: block !important;
  letter-spacing: 0.01em !important;
}

.tru-bottom-nav-item:hover,
.tru-bottom-nav-item.is-active,
.tru-mobile-bottom-nav .tru-bottom-nav-item:hover,
.tru-mobile-bottom-nav .tru-bottom-nav-item.is-active,
.tru-mobile-bottom-nav .tru-theme-toggle:hover {
  color: var(--tru-primary) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

.tru-bottom-nav-item.is-active svg {
  color: var(--tru-primary);
}


/* Mobile Search Drawer Modal */
.tru-search-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.25rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tru-search-drawer.is-active {
  opacity: 1;
  visibility: visible;
}

.tru-search-drawer-inner {
  background-color: var(--tru-white);
  width: 100%;
  max-width: 500px;
  border-radius: var(--tru-radius-md);
  border: 1px solid var(--tru-border);
  padding: 1.5rem;
  transform: translateY(-15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tru-search-drawer.is-active .tru-search-drawer-inner {
  transform: translateY(0);
}

.tru-search-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tru-search-drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tru-dark);
}

.tru-search-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tru-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--tru-transition);
}

.tru-search-drawer-close:hover {
  color: var(--tru-dark);
}

/* ==========================================================================
   6. Flat UI Badges & Buttons
   ========================================================================== */
.tru-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--tru-radius-xs);
  background-color: var(--tru-primary);
  color: var(--tru-white);
  transition: var(--tru-transition);
}

.tru-entry-content a,
.tru-post-categories a,
.tru-badge {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

.tru-badge:hover {
  background-color: var(--tru-primary-hover);
  color: var(--tru-white);
}

.tru-badge-accent {
  background-color: var(--tru-accent);
  color: var(--tru-white);
}

.tru-badge-accent:hover {
  background-color: var(--tru-accent-hover);
  color: var(--tru-white);
}

.tru-badge-outline {
  background-color: transparent;
  border: 1px solid var(--tru-border);
  color: var(--tru-dark);
}

.tru-badge-outline:hover {
  background-color: var(--tru-bg);
  border-color: var(--tru-primary);
  color: var(--tru-primary);
}

.tru-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

/* Flat UI Buttons */
.tru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--tru-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--tru-transition);
  text-decoration: none;
  line-height: 1.2;
}

.tru-btn-primary {
  background-color: var(--tru-primary);
  color: var(--tru-white);
  border-color: var(--tru-primary);
}

.tru-btn-primary:hover {
  background-color: var(--tru-primary-hover);
  border-color: var(--tru-primary-hover);
  color: var(--tru-white);
}

.tru-btn-cta {
  background-color: var(--tru-cta);
  color: var(--tru-white);
  border-color: var(--tru-cta);
}

.tru-btn-cta:hover {
  background-color: var(--tru-cta-hover);
  border-color: var(--tru-cta-hover);
  color: var(--tru-white);
}

.tru-btn-outline {
  background-color: transparent;
  border-color: var(--tru-border);
  color: var(--tru-dark);
}

.tru-btn-outline:hover {
  background-color: var(--tru-bg);
  border-color: var(--tru-primary);
  color: var(--tru-primary);
}

.tru-btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* ==========================================================================
   7. Flat UI Form Controls
   ========================================================================== */
.tru-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tru-form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tru-dark);
}

.tru-form-group .required {
  color: var(--tru-cta);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.tru-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  color: var(--tru-dark);
  font-size: 0.95rem;
  outline: none;
  transition: var(--tru-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.tru-form-control:focus {
  border-color: var(--tru-primary);
  outline: none;
  box-shadow: none;
}


/* Flat Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.search-form input[type="search"] {
  flex: 1;
}

.search-form input[type="submit"],
.search-form button[type="submit"] {
  background-color: var(--tru-primary);
  color: var(--tru-white);
  border: 1px solid var(--tru-primary);
  padding: 0.75rem 1.35rem;
  border-radius: var(--tru-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--tru-transition);
}

.search-form input[type="submit"]:hover,
.search-form button[type="submit"]:hover {
  background-color: var(--tru-primary-hover);
  border-color: var(--tru-primary-hover);
}

/* ==========================================================================
   8. Single Canvas Editorial Stream (Blog Index, Archive, Search)
   ========================================================================== */
.tru-post-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.tru-entry-card,
.tru-post-card,
.tru-card {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--tru-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.75rem 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
  .tru-entry-card,
  .tru-post-card {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 1.75rem;
  }
}

.tru-entry-card:last-child,
.tru-post-card:last-child {
  border-bottom: none !important;
}

.tru-entry-card:hover,
.tru-post-card:hover {
  border-color: var(--tru-border) !important;
}

.tru-entry-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--tru-surface-alt);
  border-radius: var(--tru-radius-sm);
  overflow: hidden;
}

.tru-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--tru-radius-sm);
  display: block;
}

.tru-entry-body,
.tru-card-body {
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tru-entry-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--tru-text-muted, #64748b);
  gap: 0.25rem 0.4rem;
  margin-bottom: 0.5rem;
}

.tru-entry-meta a,
.entry-meta a {
  color: var(--tru-text-muted, #64748b);
  transition: color 0.15s ease;
}

.tru-entry-meta a:hover,
.entry-meta a:hover {
  color: var(--tru-primary, #2563eb);
}

.tru-meta-sep {
  display: inline-block;
  margin: 0 0.25rem;
  color: var(--tru-border, #cbd5e1);
  font-weight: bold;
  user-select: none;
}

.tru-icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  stroke: currentColor;
  flex-shrink: 0;
}

.tru-entry-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.tru-entry-title a {
  color: var(--tru-dark);
  transition: color 0.15s ease;
}

.tru-entry-title a:hover {
  color: var(--tru-primary);
}

.tru-entry-summary {
  font-size: 0.95rem;
  color: var(--tru-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.tru-entry-summary p {
  margin: 0;
}

.tru-entry-footer {
  margin-top: auto;
}


/* ==========================================================================
   8.5. Flat UI Breadcrumbs
   ========================================================================== */
.tru-breadcrumbs {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.tru-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tru-breadcrumb-item a {
  color: var(--tru-text-muted);
  font-weight: 500;
  transition: var(--tru-transition);
}

.tru-breadcrumb-item a:hover {
  color: var(--tru-primary);
}

.tru-breadcrumb-item.is-active {
  color: var(--tru-dark);
  font-weight: 600;
}

.tru-breadcrumb-separator {
  color: var(--tru-text-light);
  font-size: 0.8rem;
  user-select: none;
}

/* ==========================================================================
   9. Single Post & Static Page Editorial Canvas (Single.php & Page.php)
   ========================================================================== */
.tru-single-article,
.tru-page-article,
.tru-single-post {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 2.5rem 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tru-single-header,
.tru-page-header {
  margin-bottom: 1.75rem;
}

.tru-single-title,
.tru-page-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tru-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .tru-single-title,
  .tru-page-title {
    font-size: 2.5rem;
  }
}

.tru-single-meta {
  font-size: 0.875rem;
  border-bottom: 1px solid var(--tru-border);
  padding-bottom: 1.25rem;
}

.tru-single-thumb,
.tru-page-thumb {
  margin-bottom: 2rem;
  border-radius: var(--tru-radius-sm);
  overflow: hidden;
}

.tru-single-thumb img,
.tru-page-thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--tru-radius-sm);
}

/* ==========================================================================
   10. Article Content Typography (Vertical Rhythm & Flat UI)
   ========================================================================== */
.tru-entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tru-dark);
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 0;
}

.tru-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.tru-entry-content > *:last-child {
  margin-bottom: 0;
}

.tru-entry-content p {
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.tru-entry-content h1,
.tru-entry-content h2,
.tru-entry-content h3,
.tru-entry-content h4,
.tru-entry-content h5,
.tru-entry-content h6 {
  color: var(--tru-dark);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.tru-entry-content h1 { font-size: 1.85rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.tru-entry-content h2 { font-size: 1.55rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.tru-entry-content h3 { font-size: 1.3rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.tru-entry-content h4 { font-size: 1.15rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.tru-entry-content h5 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.tru-entry-content h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1.25rem; margin-bottom: 0.5rem; }



.tru-entry-content ul,
.tru-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.tru-entry-content ul {
  list-style: disc;
}

.tru-entry-content ol {
  list-style: decimal;
}

.tru-entry-content li {
  margin-bottom: 0.4rem;
}

/* Flat UI Blockquote */
.tru-entry-content blockquote {
  border-left: 4px solid var(--tru-primary);
  background-color: var(--tru-bg);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--tru-radius-sm) var(--tru-radius-sm) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--tru-dark);
}

.tru-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code & Pre Blocks */
.tru-entry-content code {
  font-family: var(--tru-font-mono);
  font-size: 0.875em;
  background-color: var(--tru-surface-alt);
  color: var(--tru-cta);
  padding: 0.2rem 0.45rem;
  border-radius: var(--tru-radius-xs);
  border: 1px solid var(--tru-border);
}

.tru-entry-content pre {
  font-family: var(--tru-font-mono);
  font-size: 0.9rem;
  background-color: #0F172A;
  color: #F1F5F9;
  padding: 1.25rem 1.5rem;
  border-radius: var(--tru-radius-sm);
  overflow-x: auto;
  margin: 1.75rem 0;
  line-height: 1.6;
}

.tru-entry-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* Flat UI Tables (Responsive Horizontal Scroll Protection) */
.tru-entry-content table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse !important;
  margin: 1.5rem 0 !important;
  border: 1px solid var(--tru-border, #e2e8f0) !important;
  border-radius: var(--tru-radius-sm, 4px);
  background-color: var(--tru-white);
}

.tru-entry-content table th,
.tru-entry-content table td {
  padding: 0.65rem 0.85rem !important;
  border: 1px solid var(--tru-border, #e2e8f0) !important;
  font-size: 0.875rem !important;
  white-space: nowrap; /* Teks tabel tetap rapi di dalam scroll internal */
  text-align: left;
}

.tru-entry-content table th {
  background-color: var(--tru-surface-alt);
  font-weight: 600;
  color: var(--tru-dark);
}

.tru-entry-content table tr:hover {
  background-color: var(--tru-bg);
}

/* Horizontal Rule */
.tru-entry-content hr {
  border: 0;
  height: 1px;
  background-color: var(--tru-border);
  margin: 2rem 0;
}

/* Gutenberg alignments */
.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--tru-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* In-post Pagination */
.page-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

.page-links .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-xs);
  background-color: var(--tru-white);
  color: var(--tru-dark);
}

/* ==========================================================================
   11. Tags & Post Navigation (Prev / Next)
   ========================================================================== */
.tru-single-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tru-border);
}

.tru-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tru-tags-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tru-dark);
}

.tru-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tru-tag-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tru-text-muted);
  background-color: var(--tru-bg);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-xs);
  padding: 0.25rem 0.6rem;
  transition: var(--tru-transition);
}

.tru-tag-link:hover {
  background-color: var(--tru-primary);
  border-color: var(--tru-primary);
  color: var(--tru-white);
}

/* Prev / Next Post Navigation */
.post-navigation {
  margin: 2.5rem 0;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .post-navigation .nav-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.25rem;
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  transition: var(--tru-transition);
}

.post-navigation a:hover {
  border-color: var(--tru-primary);
}

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

.tru-nav-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tru-primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.tru-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tru-dark);
  line-height: 1.4;
}

/* ==========================================================================
   12. Portfolio CPT Showcase & Card Styles
   ========================================================================== */
.tru-portfolio-header {
  margin-bottom: 2rem;
}

.tru-portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tru-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tru-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tru-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tru-portfolio-card {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--tru-transition);
}

.tru-portfolio-card:hover {
  border-color: var(--tru-primary);
}


.tru-portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--tru-surface-alt);
  overflow: hidden;
}

.tru-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tru-portfolio-card:hover .tru-portfolio-thumb img {
  transform: scale(1.04);
}

.tru-portfolio-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tru-portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.tru-portfolio-title a {
  color: var(--tru-dark);
}

.tru-portfolio-title a:hover {
  color: var(--tru-primary);
}

.tru-portfolio-excerpt {
  font-size: 0.925rem;
  color: var(--tru-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tru-portfolio-footer {
  margin-top: auto;
}

.tru-portfolio-single {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .tru-portfolio-single {
    padding: 2.5rem;
  }
}

.tru-portfolio-hero-thumb {
  margin-bottom: 2rem;
  border-radius: var(--tru-radius-sm);
  overflow: hidden;
}

.tru-portfolio-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tru-border);
}

/* ==========================================================================
   13. Sidebar & Widgets (Flat UI)
   ========================================================================== */
.tru-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tru-widget,
.widget {
  background: transparent;
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: none !important;
  transition: border-color 0.2s ease;
}

@media (max-width: 767px) {
  .tru-widget,
  .widget {
    padding: 1.25rem 0;
    border: none;
    border-top: 1px solid var(--tru-border);
    border-radius: 0;
    background: transparent;
  }
}

/* Fit-to-content: memastikan garis aksen hanya sepanjang teks judul */
.widget-title,
.tru-widget-title,
.widgettitle,
.tru-section-title {
  display: inline-block !important; /* Membuat lebar border pas mengikuti panjang teks */
  width: fit-content !important;
  position: relative !important;
  font-size: 1.1rem;
  font-weight: 700 !important;
  color: var(--tru-text, #0f172a);
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.35rem !important;
  border-bottom: 2px solid var(--tru-primary, #2563eb) !important; /* Garis aksen pas teks */
  letter-spacing: -0.01em;
}

.widget-title-wrap,
.tru-widget-header {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.tru-widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tru-widget li {
  font-size: 0.9rem;
  color: var(--tru-dark);
}

.tru-widget li a {
  color: var(--tru-dark);
  display: inline-block;
}

.tru-widget li a:hover {
  color: var(--tru-primary);
}

/* Tag Cloud Widget */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tagcloud a {
  font-size: 0.8rem !important;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  background-color: var(--tru-bg);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-xs);
  color: var(--tru-dark);
}

.tagcloud a:hover {
  background-color: var(--tru-primary);
  border-color: var(--tru-primary);
  color: var(--tru-white);
}

/* Calendar Widget */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.widget_calendar caption {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.widget_calendar th,
.widget_calendar td {
  padding: 0.4rem;
  border: 1px solid var(--tru-border);
}

/* ==========================================================================
   # Tru: Popular Posts Widget & Meta Views
   ========================================================================== */
.tru-popular-posts-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tru-popular-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid var(--tru-border, #e2e8f0) !important;
}

.tru-popular-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.tru-popular-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tru-primary, #2563eb);
  background: var(--tru-surface-alt, #f8fafc);
  border: 1px solid var(--tru-border, #e2e8f0);
  border-radius: var(--tru-radius-sm, 4px);
  flex-shrink: 0;
}

.tru-popular-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tru-popular-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tru-text, #0f172a);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tru-popular-title:hover {
  color: var(--tru-primary, #2563eb);
}

.tru-popular-meta {
  font-size: 0.75rem;
  color: var(--tru-text-muted, #64748b);
}

.tru-meta-views {
  display: inline-flex;
  align-items: center;
  font-size: 0.825rem;
  color: var(--tru-text-muted, #64748b);
  margin-left: 0.75rem;
}

/* ==========================================================================
   14. Comments Area & Flat Form
   ========================================================================== */
#comments,
.comments-area,
.tru-comments-area {
  padding: 2rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--tru-border);
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: none !important;
}


.tru-comments-title,
.tru-comment-reply-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tru-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tru-border);
}

.tru-cancel-reply a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tru-cta);
  margin-left: 0.75rem;
}

.tru-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.tru-comment-list .children {
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 2px solid var(--tru-border);
}

.comment-body {
  background-color: var(--tru-bg);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  padding: 1.25rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.comment-author .avatar {
  border-radius: 50%;
  border: 1px solid var(--tru-border);
}

.comment-author .fn {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tru-dark);
}

.comment-metadata {
  font-size: 0.75rem;
  color: var(--tru-text-muted);
}

.comment-metadata a {
  color: var(--tru-text-muted);
}

.comment-content {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--tru-dark);
}

.comment-body .reply {
  margin-top: 0.75rem;
  text-align: right;
}

.comment-body .reply a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tru-primary);
  padding: 0.25rem 0.65rem;
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-xs);
}

.comment-body .reply a:hover {
  background-color: var(--tru-primary);
  border-color: var(--tru-primary);
  color: var(--tru-white);
}

.tru-comment-notes {
  font-size: 0.85rem;
  color: var(--tru-text-muted);
  margin-bottom: 1.25rem;
}

.tru-no-comments {
  text-align: center;
  color: var(--tru-text-muted);
  font-style: italic;
  padding: 1rem 0;
}

/* ==========================================================================
   15. Archive & Search Headers
   ========================================================================== */
.tru-archive-header {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.tru-archive-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tru-dark);
  letter-spacing: -0.02em;
}

.tru-archive-description {
  font-size: 0.95rem;
  color: var(--tru-text-muted);
  margin-top: 0.5rem;
}

.tru-highlight {
  color: var(--tru-primary);
}

/* ==========================================================================
   16. 404 & Empty State Templates
   ========================================================================== */
.tru-error-404 {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.tru-error-badge {
  display: inline-block;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--tru-primary);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.tru-error-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--tru-dark);
}

.tru-error-text {
  color: var(--tru-text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.tru-error-search {
  max-width: 440px;
  margin: 0 auto 2rem;
}

.tru-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tru-no-results {
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.tru-no-results h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tru-no-results p {
  color: var(--tru-text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   # Pagination Bar Sejajar (Next/Prev/Numbers Aligned)
   ========================================================================== */
/* Single flex row: menjaga tombol nomor dan Next/Prev selalu sejajar */
.pagination,
.nav-links,
.tru-pagination,
.page-numbers-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 2.5rem 0 1.5rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
  width: 100% !important;
}

.page-numbers,
.pagination a,
.pagination span,
.nav-links .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--tru-dark, #1E293B) !important;
  background: var(--tru-white, #FFFFFF) !important;
  border: 1px solid var(--tru-border, #E2E8F0) !important;
  border-radius: var(--tru-radius-sm, 4px) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  transition: var(--tru-transition);
}

.page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--tru-primary, #0052E0) !important;
  border-color: var(--tru-primary, #0052E0) !important;
  color: #FFFFFF !important;
}

.page-numbers:not(.current):not(.dots):hover,
.nav-links a.page-numbers:hover {
  background: var(--tru-surface-alt, #F8FAFC) !important;
  border-color: var(--tru-text-light, #94A3B8) !important;
  color: var(--tru-primary, #0052E0) !important;
}

.page-numbers.dots {
  border-color: transparent !important;
  background: transparent !important;
}


/* ==========================================================================
   18. Footer, Social Links & Footer Widgets Area
   ========================================================================== */
.site-footer {
  background-color: var(--tru-white);
  border-top: 1px solid var(--tru-border);
  padding: 2.5rem 0;
  margin-top: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 5.5rem !important;
  }
}


.tru-footer-widgets-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--tru-border);
}

@media (min-width: 768px) {
  .tru-footer-widgets-area {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .tru-footer-widgets-area {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tru-footer-widgets-area .tru-widget {
  background-color: transparent;
  border: none;
  padding: 0;
}

.tru-footer-widgets-area .tru-widget-title {
  font-size: 1rem;
  margin-bottom: 1rem !important;
  padding-bottom: 0.35rem !important;
}



.site-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.site-footer-info {
  font-size: 0.875rem;
  color: var(--tru-text-muted);
}

.site-footer-info a {
  color: var(--tru-dark);
  font-weight: 500;
}

.site-footer-info a:hover {
  color: var(--tru-primary);
}

.site-footer-credit {
  font-size: 0.875rem;
  color: var(--tru-text-muted);
}

.site-footer-credit a {
  color: var(--tru-primary);
  font-weight: 500;
}

/* ==========================================================================
   14. Flat UI Content Components (11 Modular Elements)
   ========================================================================== */

/* 1. Comparison Table (Zebra & Responsive) */
.tru-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--tru-radius-md);
  border: 1px solid var(--tru-border);
}

.tru-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  background-color: var(--tru-white);
}

.tru-table th,
.tru-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--tru-border);
}

.tru-table th {
  background-color: var(--tru-bg);
  font-weight: 700;
  color: var(--tru-dark);
  border-bottom: 2px solid var(--tru-border);
}

.tru-table-zebra tbody tr:nth-child(even) {
  background-color: var(--tru-surface-alt);
}

/* 2. Custom Lists */
.tru-list-check,
.tru-list-arrow,
.tru-list-numbers {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.25rem 0;
}

.tru-list-check li,
.tru-list-arrow li,
.tru-list-numbers li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.tru-list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tru-primary);
  font-weight: bold;
}

.tru-list-arrow li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tru-accent);
  font-weight: bold;
}

.tru-list-numbers {
  counter-reset: tru-counter;
}

.tru-list-numbers li {
  counter-increment: tru-counter;
}

.tru-list-numbers li::before {
  content: counter(tru-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--tru-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 3. CTA Buttons */
.tru-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--tru-radius-sm);
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--tru-transition);
  border: 1px solid transparent;
}

.tru-btn:hover {
  opacity: 0.92;
}


.tru-btn-primary {
  background-color: var(--tru-primary);
  color: #FFFFFF !important;
}

.tru-btn-primary:hover {
  background-color: var(--tru-primary-hover);
}

.tru-btn-secondary {
  background-color: var(--tru-dark);
  color: #FFFFFF !important;
}

.tru-btn-cta {
  background-color: var(--tru-cta);
  color: #FFFFFF !important;
}

.tru-btn-cta:hover {
  background-color: var(--tru-cta-hover);
}

.tru-btn-outline {
  background-color: transparent;
  border-color: var(--tru-border);
  color: var(--tru-dark) !important;
}

.tru-btn-outline:hover {
  border-color: var(--tru-primary);
  color: var(--tru-primary) !important;
  background-color: var(--tru-white);
}

/* 4. Callout Notification Boxes */
.tru-alert {
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  border-radius: var(--tru-radius-sm);
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tru-alert-info {
  background-color: rgba(0, 82, 224, 0.08);
  border-left-color: var(--tru-primary);
  color: var(--tru-dark);
}

.tru-alert-success {
  background-color: rgba(16, 185, 129, 0.08);
  border-left-color: #10B981;
  color: var(--tru-dark);
}

.tru-alert-warning {
  background-color: rgba(245, 158, 11, 0.08);
  border-left-color: #F59E0B;
  color: var(--tru-dark);
}

.tru-alert-error {
  background-color: rgba(239, 68, 68, 0.08);
  border-left-color: #EF4444;
  color: var(--tru-dark);
}

/* 5. Gallery Grid */
.tru-gallery-grid {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

.tru-gallery-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tru-gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tru-gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 640px) {
  .tru-gallery-grid-3,
  .tru-gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tru-gallery-item {
  overflow: hidden;
  border-radius: var(--tru-radius-sm);
  border: 1px solid var(--tru-border);
}

.tru-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tru-gallery-item:hover img {
  transform: scale(1.04);
}

/* 6. Accordion FAQ */
.tru-faq-accordion-group {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tru-accordion {
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  background-color: var(--tru-white);
  overflow: hidden;
}

.tru-accordion-title {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tru-dark);
  list-style: none;
  position: relative;
  transition: var(--tru-transition);
}

.tru-accordion-title::-webkit-details-marker {
  display: none;
}

.tru-accordion-title::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--tru-primary);
  transition: transform 0.2s ease;
}

.tru-accordion[open] .tru-accordion-title::after {
  content: "\2212";
}

.tru-accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--tru-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 7. Code Block with Copy Button */
.tru-code-block {
  position: relative;
  margin: 1.75rem 0;
  background-color: #0F172A;
  border-radius: var(--tru-radius-md);
  border: 1px solid #334155;
  overflow: hidden;
}

.tru-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #1E293B;
  border-bottom: 1px solid #334155;
}

.tru-code-lang {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.tru-code-copy-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--tru-transition);
}

.tru-code-copy-btn:hover {
  background-color: var(--tru-primary);
  border-color: var(--tru-primary);
}

.tru-code-copy-btn.is-copied {
  background-color: #10B981;
  border-color: #10B981;
}

.tru-code-block pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  background-color: transparent;
}

.tru-code-block code {
  color: #F8FAFC;
  font-family: var(--tru-font-mono);
  font-size: 0.9rem;
}

/* 8. YouTube Video Responsive 16:9 */
.tru-video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.75rem 0;
  border-radius: var(--tru-radius-md);
  overflow: hidden;
  border: 1px solid var(--tru-border);
}

.tru-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 9. Pullquote Accent */
.tru-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--tru-primary);
  background-color: var(--tru-bg);
  border-radius: 0 var(--tru-radius-sm) var(--tru-radius-sm) 0;
}

.tru-pullquote p {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tru-dark);
  margin-bottom: 0.75rem;
}

.tru-pullquote cite {
  font-size: 0.875rem;
  color: var(--tru-text-muted);
  font-style: normal;
  display: block;
}

/* 10. Multi-Columns Layout */
.tru-columns-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.tru-columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

@media (max-width: 767px) {
  .tru-columns-2,
  .tru-columns-3 {
    grid-template-columns: 1fr;
  }
}

.tru-col-card {
  padding: 1.5rem;
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
  transition: var(--tru-transition);
}

.tru-col-card:hover {
  border-color: var(--tru-primary);
}


.tru-col-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tru-primary);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   15. HTML Sitemaps & Directories Styles
   ========================================================================== */
.tru-sitemap-wrap,
.tru-pages-directory-wrap {
  margin: 2rem 0;
}

.tru-sitemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tru-sitemap-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tru-dark);
  margin: 0;
}

.tru-sitemap-count {
  font-size: 0.85rem;
  color: var(--tru-text-muted);
  background-color: var(--tru-bg);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--tru-border);
}

.tru-sitemap-link {
  color: var(--tru-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tru-sitemap-link:hover {
  color: var(--tru-primary);
}

.tru-badge-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background-color: var(--tru-bg);
  color: var(--tru-primary);
  border-radius: 4px;
  border: 1px solid var(--tru-border);
  text-decoration: none;
}

.tru-sitemap-date {
  font-size: 0.85rem;
  color: var(--tru-text-muted);
}

.tru-sitemap-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tru-pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--tru-white);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm);
  color: var(--tru-dark);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--tru-transition);
}

.tru-pagination-btn:hover {
  border-color: var(--tru-primary);
  color: var(--tru-primary);
}

.tru-pagination-info {
  font-size: 0.875rem;
  color: var(--tru-text-muted);
}



/* --- HIDE TOP HEADER ON MOBILE (FULL SCREEN READING) --- */
@media screen and (max-width: 767px) {
  .site-header,
  header.site-header,
  #masthead,
  .tru-site-header {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    visibility: hidden !important;
  }

  .tru-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
  }

  .site-content,
  .tru-site-main,
  #primary,
  main {
    padding-top: 12px !important;
    margin-top: 0 !important;
  }
}

/* ==========================================================================
   BLOGSPOT IMPORT COMPATIBILITY ALIASES
   ========================================================================== */
/* Notification Boxes */
.notification-box,
.notification-box.info {
    background-color: var(--tru-color-accent-subtle, #eff6ff);
    border-left: 4px solid var(--tru-color-accent, #2563eb);
    color: var(--tru-color-heading, #1e293b);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.notification-box.warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}
.notification-box.error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}
.notification-box.success {
    background-color: #f0fdf4;
    border-left-color: #10b981;
}

/* Accordion Container & Content (Legacy) */
.accordion-container {
    margin: 1.5rem 0;
    border: 1px solid var(--tru-color-border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
}
.accordion-toggle {
    background-color: var(--tru-color-surface, #f8fafc);
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid var(--tru-color-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.accordion-toggle::after {
    content: '+';
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.accordion-toggle.active::after {
    content: '−';
}
.accordion-content {
    display: none;
    padding: 1.25rem;
    background-color: var(--tru-color-bg, #ffffff);
    line-height: 1.6;
}
.accordion-content.show {
    display: block;
}

/* Slider Container (Legacy) */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.slider-content {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scrollbar-width: none;
}
.slider-content::-webkit-scrollbar {
    display: none;
}
.slider-content img {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 8px;
    object-fit: cover;
}

/* ==========================================================================
   AUTO-TOC (TABLE OF CONTENTS) & ACCORDION STYLES - SINGLE FLAT BOX
   ========================================================================== */
.tru-accordion,
details.tru-accordion {
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-sm, 4px);
  background-color: var(--tru-white);
  margin: 1.5rem 0;
  overflow: hidden;
  transition: var(--tru-transition);
}

.tru-accordion-title,
summary.tru-accordion-title {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--tru-text);
  cursor: pointer;
  background-color: var(--tru-surface-alt);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

summary.tru-accordion-title::-webkit-details-marker {
  display: none;
}

summary.tru-accordion-title::after {
  content: '+';
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--tru-primary);
  transition: transform 0.2s ease;
}

details.tru-accordion[open] > summary.tru-accordion-title {
  border-bottom-color: var(--tru-border);
}

details.tru-accordion[open] > summary.tru-accordion-title::after {
  content: '\2212';
}

.tru-accordion-content {
  padding: 1rem;
  background-color: var(--tru-white);
  line-height: 1.65;
  color: var(--tru-text);
}

/* Single Flat Box TOC (Fit-to-Content Width, In-Article Single Clean Border) */
.tru-toc,
.tru-toc-box,
#tru-toc {
  display: table !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 260px;
  margin: 1.5rem 0 !important;
  padding: 0.85rem 1.15rem !important;
  background: var(--tru-surface-alt, #f8fafc) !important;
  border: 1px solid var(--tru-border, #e2e8f0) !important;
  border-radius: var(--tru-radius-sm, 4px) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow-y: visible !important;
}

.tru-toc-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer;
  user-select: none;
}

.tru-toc-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--tru-text, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.tru-toc-toggle {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--tru-text-muted, #64748b) !important;
  line-height: 1;
}

.tru-toc-icon {
  transition: transform 0.2s ease-in-out;
}

.tru-toc-collapsed .tru-toc-icon {
  transform: rotate(-90deg);
}

.tru-toc-collapsed .tru-toc-header {
  margin-bottom: 0 !important;
}

/* Offset Scroll Heading (Mencegah Judul Tertutup Navbar Saat Link TOC Di-klik) */
.tru-entry-content h2[id]::before,
.tru-entry-content h3[id]::before {
  content: " ";
  margin-top: -80px;
  height: 80px;
  display: block;
  visibility: hidden;
}

/* Pastikan elemen anak TOC tidak memiliki border ganda */
.tru-toc details.tru-accordion,
.tru-toc .tru-accordion,
.tru-toc-inner,
.tru-toc-content,
.tru-toc-body,
.tru-toc-list,
.tru-toc .tru-accordion-content {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Header TOC: Garis pemisah bawah minimalis di bawah judul */
.tru-toc .tru-accordion-title,
.tru-toc summary.tru-accordion-title,
.tru-toc-header,
.tru-toc-title-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  padding: 0 0 0.5rem 0 !important;
  margin: 0 0 0.65rem 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--tru-border, #e2e8f0) !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: var(--tru-text, #0f172a) !important;
  cursor: pointer !important;
}

.tru-toc ol,
.tru-toc ul,
.tru-toc-list,
.tru-toc-sublist,
.tru-entry-content .tru-toc ol,
.tru-entry-content .tru-toc ul,
.tru-entry-content .tru-toc-list,
.tru-entry-content .tru-toc-sublist {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.tru-toc-item,
.tru-entry-content .tru-toc-item {
  list-style: none !important;
  list-style-type: none !important;
}

.tru-toc-sublist,
.tru-entry-content .tru-toc-sublist {
  padding-left: 1.25rem !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
}

.tru-toc-depth-3,
.tru-entry-content .tru-toc-depth-3 {
  padding-left: 1.25rem !important;
}

.tru-toc-item {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tru-toc-item-h2 {
  font-weight: 600;
  margin-top: 0.5rem;
}

.tru-toc-item-h3 {
  font-weight: 500;
  font-size: 0.9rem;
}

.tru-toc-item-h4 {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--tru-text-muted);
}

.tru-toc-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--tru-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tru-toc-link:hover {
  color: var(--tru-primary);
  text-decoration: underline;
}

.tru-toc-num {
  font-weight: 700;
  color: var(--tru-primary);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tru-toc-item-h3 .tru-toc-num,
.tru-toc-item-h4 .tru-toc-num {
  color: var(--tru-accent, #06B6D4);
}

.tru-toc-text {
  flex: 1;
}






/* ==========================================================================
   MODULAR SOCIAL SHARE BAR (VANILLA SVG & CLIPBOARD API)
   ========================================================================== */
.tru-social-share-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--tru-surface-alt);
  border: 1px solid var(--tru-border);
  border-radius: var(--tru-radius-md);
}

.tru-social-share-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tru-dark);
  margin-right: 0.25rem;
}

.tru-social-share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tru-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--tru-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

.tru-share-btn:hover {
  opacity: 0.9;
}


.tru-share-btn svg {
  flex-shrink: 0;
}

/* Specific Networks */
.tru-share-wa {
  background-color: #25D366;
  color: #FFFFFF !important;
}
.tru-share-wa:hover {
  background-color: #1EBE5D;
}

.tru-share-tg {
  background-color: #24A1DE;
  color: #FFFFFF !important;
}
.tru-share-tg:hover {
  background-color: #1D8CC2;
}

.tru-share-fb {
  background-color: #1877F2;
  color: #FFFFFF !important;
}
.tru-share-fb:hover {
  background-color: #1464CC;
}

.tru-share-tw {
  background-color: #000000;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.tru-share-tw:hover {
  background-color: #1E293B;
}

.tru-share-copy {
  background-color: var(--tru-white);
  color: var(--tru-dark);
  border: 1px solid var(--tru-border);
}
.tru-share-copy:hover {
  border-color: var(--tru-primary);
  color: var(--tru-primary);
}

.tru-share-copy.is-copied {
  background-color: #10B981 !important;
  border-color: #10B981 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   RESPONSIVE FLAT UI GALLERY LAYOUT (GUTENBERG & LEGACY)
   ========================================================================== */
.tru-entry-content .wp-block-gallery,
.tru-entry-content .gallery,
.tru-entry-content .tru-gallery-grid,
.tru-entry-content .wp-block-gallery.is-layout-flex {
  display: grid !important;
  gap: 1rem !important;
  margin: 1.75rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Explicit Column Variations */
.tru-entry-content .wp-block-gallery.columns-1,
.tru-entry-content .gallery.gallery-columns-1,
.tru-entry-content .tru-gallery-grid-1 {
  grid-template-columns: 1fr !important;
}

.tru-entry-content .wp-block-gallery.columns-2,
.tru-entry-content .gallery.gallery-columns-2,
.tru-entry-content .tru-gallery-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.tru-entry-content .wp-block-gallery.columns-3,
.tru-entry-content .gallery.gallery-columns-3,
.tru-entry-content .tru-gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.tru-entry-content .wp-block-gallery.columns-4,
.tru-entry-content .gallery.gallery-columns-4,
.tru-entry-content .tru-gallery-grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.tru-entry-content .wp-block-gallery.columns-5,
.tru-entry-content .wp-block-gallery.columns-6,
.tru-entry-content .wp-block-gallery.columns-7,
.tru-entry-content .wp-block-gallery.columns-8 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

/* Gallery Items & Figures */
.tru-entry-content .wp-block-gallery .wp-block-image,
.tru-entry-content .wp-block-gallery figure,
.tru-entry-content .gallery .gallery-item,
.tru-entry-content .gallery-item,
.tru-entry-content .tru-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  background-color: var(--tru-surface-alt);
}

/* Image Elements inside Gallery */
.tru-entry-content .wp-block-gallery img,
.tru-entry-content .gallery img,
.tru-entry-content .tru-gallery-grid img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.tru-entry-content .wp-block-gallery img:hover,
.tru-entry-content .gallery img:hover,
.tru-entry-content .tru-gallery-grid img:hover {
  transform: scale(1.03);
}

/* Gallery Captions / Figcaptions */
.tru-entry-content .wp-block-gallery figcaption,
.tru-entry-content .gallery .gallery-caption,
.tru-entry-content .tru-gallery-caption {
  font-size: 0.8rem;
  color: var(--tru-text-muted);
  text-align: center;
  padding: 0.4rem 0.2rem;
  margin: 0 !important;
  line-height: 1.4;
}

/* Mobile Responsive Breakpoints */
@media screen and (max-width: 767px) {
  .tru-entry-content .wp-block-gallery,
  .tru-entry-content .gallery,
  .tru-entry-content .tru-gallery-grid,
  .tru-entry-content .wp-block-gallery.is-layout-flex {
    gap: 0.75rem !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .tru-entry-content .wp-block-gallery.columns-1,
  .tru-entry-content .gallery.gallery-columns-1 {
    grid-template-columns: 1fr !important;
  }

  .tru-entry-content .wp-block-gallery img,
  .tru-entry-content .gallery img,
  .tru-entry-content .tru-gallery-grid img {
    height: 170px !important;
  }
}

@media screen and (max-width: 480px) {
  .tru-entry-content .wp-block-gallery,
  .tru-entry-content .gallery,
  .tru-entry-content .tru-gallery-grid,
  .tru-entry-content .wp-block-gallery.is-layout-flex {
    grid-template-columns: 1fr !important;
  }

  .tru-entry-content .wp-block-gallery img,
  .tru-entry-content .gallery img,
  .tru-entry-content .tru-gallery-grid img {
    height: 200px !important;
  }
}

/* ==========================================================================
   # AdSense Container & Layout Protection
   ========================================================================== */
.tru-ad-desktop {
  display: block !important;
}

.tru-ad-mobile {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .tru-ad-desktop {
    display: none !important;
  }

  .tru-ad-mobile {
    display: block !important;
  }
}

/* ==========================================================================
   Pure Minimalist Ad Container (No Background, No Border, Zero Outer Padding)
   ========================================================================== */
.tru-ad-slot,
.tru-ad-top,
.tru-ad-middle,
.tru-ad-incontent,
.tru-ad-p2,
.tru-ad-mid,
.tru-ad-bottom,
.tru-ad-infeed,
.tru-ad-multiplex,
.ad-slot-wrapper,
.tru-landing-ad-slot,
.tru-ad-container {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 1.5rem auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  contain: layout paint;
  clear: both !important;
}

.tru-ad-multiplex {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  margin: 2rem auto !important;
  contain: layout paint;
}

.tru-ad-slot::before,
.tru-ad-slot::after,
.tru-ad-container::before,
.tru-ad-container::after,
.tru-ad-top::before,
.tru-ad-top::after,
.tru-ad-incontent::before,
.tru-ad-incontent::after,
.tru-ad-p2::before,
.tru-ad-p2::after,
.tru-ad-mid::before,
.tru-ad-mid::after,
.tru-ad-bottom::before,
.tru-ad-bottom::after,
.tru-ad-infeed::before,
.tru-ad-infeed::after,
.tru-ad-multiplex::before,
.tru-ad-multiplex::after,
.tru-landing-ad-slot::before,
.tru-landing-ad-slot::after,
.tru-ad-label,
.ad-label {
  content: none !important;
  display: none !important;
  border: none !important;
}

.tru-ad-slot ins.adsbygoogle,
ins.adsbygoogle {
  background: transparent !important;
  border: none !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

/* Matikan injeksi liar Google Auto-Placed di wadah tertentu ala LinkMagz */
.google-auto-placed,
#primary > .google-auto-placed,
.site-main > .google-auto-placed,
.tru-entry-content blockquote .google-auto-placed,
.tru-entry-content table .google-auto-placed,
.tru-entry-content pre .google-auto-placed,
.tru-entry-content ul .google-auto-placed,
.tru-entry-content ol .google-auto-placed {
  display: none !important;
}

/* Force all iframes, canvas, and children in ad slots and post-body not to exceed 100% */
.tru-entry-content iframe,
.tru-ad-slot iframe,
.tru-ad-top iframe,
.tru-ad-incontent iframe,
.tru-ad-bottom iframe,
.tru-landing-ad-slot iframe,
ins.adsbygoogle iframe {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
}

.tru-ad-slot * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.tru-ad-slot a {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
}

.tru-ad-slot img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: var(--tru-radius-xs, 2px);
}

@media screen and (max-width: 767px) {
  .tru-ad-slot,
  .tru-ad-top,
  .tru-ad-incontent,
  .tru-ad-p2,
  .tru-ad-mid,
  .tru-ad-bottom,
  .tru-landing-ad-slot,
  .ad-slot-wrapper,
  .tru-ad-container,
  ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 1rem auto !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Mobile Navigation Optimization (Clean Top Header & App-like Bottom Nav)
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Bersihkan tombol portal & pendaftaran dari header atas di mobile */
  .tru-header-btn-portal,
  .tru-header-btn-psb {
    display: none !important;
  }
  .site-header {
    padding: 10px 0 !important;
  }
  .site-branding .site-description {
    display: none !important; /* Hilangkan subjudul agar header atas lebih luas */
  }
  .site-branding img {
    width: 40px !important;
    height: 40px !important;
  }
  .site-branding .site-title {
    font-size: 1.05rem !important;
  }
}
/* ==========================================================================
   Modern Skeleton Shimmer Loading States (Google Sheets Realtime Feeds)
   ========================================================================== */
@keyframes truSkeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.tru-skeleton-shimmer {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: truSkeletonShimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

.tru-skeleton-card {
  background: #FFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tru-skeleton-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: truSkeletonShimmer 1.6s ease-in-out infinite;
}

.tru-skeleton-media-4-3 {
  aspect-ratio: 4/3;
}

