/* ============================================================
   assets/css/page/hub-master.css
   Modern, high-converting stylesheet for Wahana Totalita Hub Pages.
   - Desktop Sticky WhatsApp Sidebar (Priority #1)
   - Mobile Persistent WhatsApp Floating Bar
   - Authority Training Program Cards (passing SEO equity)
   - Clean SVG Stroke Icons & Industrial Tags (Zero cheap emojis)
   ============================================================ */

.has-site-navigation {
  --hub-green: var(--brand);
  --hub-green-light: var(--accent-light);
  --hub-green-hover: var(--brand-mid);
  --hub-orange: var(--danger-dark);
  --hub-orange-light: var(--accent-light);
  --hub-wa: var(--lead-action);
  --hub-wa-hover: var(--lead-action-hover);
  --hub-dark: var(--brand);
  --hub-slate: var(--mut);
  --hub-muted: var(--text-subtle);
  --hub-border: var(--border);
  --hub-bg: var(--surface);
  --hub-white: var(--surface);
  --hub-sidebar-w: 320px;
}

/* Base wrapper */
.hub-wrapper {
  background: var(--hub-bg);
  padding: 36px 0 64px;
  color: var(--hub-dark);
}

/* Two-column master grid */
.hub-grid-layout {
  display: grid;
  grid-template-columns: 1fr var(--hub-sidebar-w);
  column-gap: 36px;
  align-items: start;
}

.hub-main {
  min-width: 0;
}

/* ─── HERO & LEAD HOOK (Clean Light Stripe Style) ─── */
.hub-hero {
  position: relative;
  overflow: hidden;
}
.hub-hero::after {
  display: none;
}
.hub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hub-muted);
  margin-bottom: 16px;
}
.hub-breadcrumb a {
  color: var(--hub-slate);
  text-decoration: none;
}
.hub-breadcrumb a:hover {
  color: var(--hub-dark);
  text-decoration: underline;
}
.hub-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hub-hero h1 {
  margin: 0 0 14px;
}
.hub-hero-sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--mut);
  max-width: 820px;
  margin: 0 0 24px;
}
.hub-hero-lead-box {
  background: var(--surface-subtle);
  border: 1px solid var(--hub-border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--black) 3%, transparent);
}
.hub-lead-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}
.hub-lead-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--whatsapp) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--whatsapp);
  flex-shrink: 0;
}
.hub-btn-lead-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hub-btn-lead-wa:hover {
  transform: translateY(-2px);
}

/* ─── MAIN CONTENT SECTIONS ─── */
.hub-card-section {
  margin-bottom: 24px;
}
.hub-sec-header {
  margin-bottom: 20px;
}
.hub-sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hub-orange);
  margin-bottom: 4px;
}
.hub-sec-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hub-dark);
  margin: 0;
}
.hub-prose {
  font-size: 15px;
  line-height: 1.8;
  color: var(--hub-slate);
}
.hub-prose p {
  margin: 0 0 14px;
}
.hub-prose p:last-child {
  margin-bottom: 0;
}

/* Law / Regulasi Grid */
.hub-regulasi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hub-regulasi-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hub-green);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-regulasi-desc {
  font-size: 13.5px;
  color: var(--hub-slate);
  line-height: 1.6;
  margin: 0;
}

/* ─── AUTHORITY PROGRAM CARDS (The Money Links) ─── */
.hub-program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.hub-prog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hub-prog-card:hover {
  transform: translateY(-3px);
}
.hub-prog-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--slate-900);
}
.hub-prog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.hub-prog-card:hover .hub-prog-card-media img {
  transform: scale(1.05);
}
.hub-prog-media-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, color-mix(in srgb, var(--black) 75%, transparent) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hub-prog-pill-cert {
  background: var(--hub-green);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--surface) 25%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hub-prog-pill-dur {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--slate-900);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.hub-prog-card-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hub-prog-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
}
.hub-prog-title a {
  color: var(--hub-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hub-prog-title a:hover {
  color: var(--hub-green);
  text-decoration: underline;
}
.hub-prog-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--hub-slate);
  margin: 0 0 14px;
}
.hub-prog-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--hub-slate);
}
.hub-prog-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-prog-checklist svg {
  color: var(--hub-green);
  flex-shrink: 0;
}
.hub-prog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.hub-btn-prog-primary {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.hub-btn-prog-wa-icon {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

/* Modern Comparison Cards */
.hub-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.hub-compare-card {
  position: relative;
  transition: all 0.2s ease;
}
.hub-compare-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hub-compare-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--hub-dark);
}
.hub-compare-row {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13px;
}
.hub-compare-row:last-child {
  border-bottom: none;
}
.hub-compare-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.hub-compare-val {
  color: var(--slate-700);
  font-weight: 600;
  line-height: 1.5;
}
.hub-btn-prog-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success-dark);
  border: 1px solid var(--success-border);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hub-btn-prog-wa:hover {
  background: var(--success-soft);
}

/* Comparison Table */
.hub-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}
.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.hub-table th {
  background: var(--hub-green);
  color: var(--surface);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
}
.hub-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hub-border);
  color: var(--hub-slate);
}
.hub-table tr:nth-child(even) td {
  background: var(--slate-50);
}

/* Requirements & Syllabus Lists */
.hub-check-list, .hub-num-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--hub-slate);
  line-height: 1.65;
}
.hub-check-icon {
  color: var(--hub-green);
  flex-shrink: 0;
  margin-top: 3px;
}
.hub-num-list {
  counter-reset: hub-counter;
}
.hub-num-list li {
  counter-increment: hub-counter;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--hub-slate);
  line-height: 1.65;
}
.hub-num-badge {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* B2B / In-House Corporate Box */
.hub-b2b-box {
  background: linear-gradient(135deg, var(--brand, var(--brand)) 0%, var(--brand-mid, var(--brand-mid)) 100%);
  color: var(--surface);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hub-b2b-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--surface);
  margin: 0 0 6px;
}
.hub-b2b-content p {
  font-size: 14px;
  color: color-mix(in srgb, var(--surface) 85%, transparent);
  margin: 0;
  max-width: 580px;
  line-height: 1.6;
}
.hub-btn-b2b {
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.hub-btn-b2b:hover {
  transform: translateY(-2px);
}

/* FAQ Accordion */
.hub-faq-item {
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.hub-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--hub-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-faq-question:hover {
  background: var(--slate-50);
}
.hub-faq-question[aria-expanded="true"] {
  background: var(--hub-green-light);
  color: var(--hub-green);
}
.hub-faq-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.hub-faq-question[aria-expanded="true"] .hub-faq-icon {
  transform: rotate(180deg);
}
.hub-faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hub-slate);
}
.hub-faq-answer.open {
  display: block;
}

/* Sibling Hub Cards (Cross-Linking) */
.hub-sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.hub-sibling-card {
  background: var(--surface);
  border: 1px solid var(--hub-border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.hub-sibling-card:hover {
  border-color: var(--hub-green);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 8%, transparent);
  transform: translateY(-2px);
}
.hub-sibling-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hub-sibling-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hub-dark);
  margin: 0 0 6px;
}
.hub-sibling-desc {
  font-size: 12.5px;
  color: var(--hub-muted);
  line-height: 1.5;
  margin: 0 0 10px;
  flex-grow: 1;
}
.hub-sibling-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hub-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 23 Hub Drawer / Mesh Grid */
.hub-directory-mesh {
  background: var(--surface);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}
.hub-mesh-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.hub-mesh-group h4 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-green);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--hub-green-light);
}
.hub-mesh-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hub-mesh-links a {
  font-size: 13px;
  color: var(--hub-slate);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
}
.hub-mesh-links a:hover {
  color: var(--hub-green);
  text-decoration: underline;
}

/* ─── DESKTOP STICKY SIDEBAR (Priority #1) ─── */
.hub-sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 92px;
  align-self: start;
  height: fit-content;
  z-index: 30;
}
.hub-sidebar-card {
  position: relative;
  overflow: hidden;
}
.hub-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}
.hub-sb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success-dark);
  background: var(--success-soft);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hub-sb-status-dot {
  width: 7px;
  height: 7px;
  background: var(--whatsapp-dark);
  border-radius: 50%;
  animation: hubPulse 2s infinite;
}
@keyframes hubPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--whatsapp-dark) 70%, transparent); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--whatsapp-dark) 0%, transparent); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--whatsapp-dark) 0%, transparent); }
}
.hub-sb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hub-dark);
  margin: 0 0 6px;
  line-height: 1.3;
}
.hub-sb-sub {
  font-size: 13px;
  color: var(--hub-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.hub-sb-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  text-align: center;
}
.hub-sb-btn-wa:hover {
  transform: translateY(-2px);
}
.hub-sb-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}
.hub-sb-trust-list {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px dashed var(--hub-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hub-sb-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hub-slate);
  font-weight: 500;
}
.hub-sb-trust-icon {
  color: var(--hub-green);
  flex-shrink: 0;
}

/* ─── MOBILE STICKY FLOATING BAR (Priority #1 Mobile) ─── */
.hub-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--black) 10%, transparent);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px color-mix(in srgb, var(--black) 12%, transparent);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-msb-info {
  min-width: 0;
}
.hub-msb-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hub-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.hub-msb-sub {
  font-size: 11px;
  color: var(--hub-muted);
  margin: 0;
}
.hub-msb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 900px) {
  .hub-grid-layout {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .hub-sticky-sidebar {
    position: static;
    top: auto;
    margin-top: 32px;
  }
  .hub-mobile-sticky-bar {
    display: flex;
  }
  .hub-wrapper {
    padding-bottom: 84px;
  }
}

@media (max-width: 640px) {
  .hub-b2b-box {
    padding: 20px 18px;
  }
  .hub-btn-b2b {
    width: 100%;
    text-align: center;
  }
}
