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

:root {
  --hub-green: #0A4A2E;
  --hub-green-light: #E8F4EE;
  --hub-green-hover: #083823;
  --hub-orange: #C6621C;
  --hub-orange-light: #FFF4ED;
  --hub-wa: #25D366;
  --hub-wa-hover: #20BA5A;
  --hub-dark: #111827;
  --hub-slate: #374151;
  --hub-muted: #6B7280;
  --hub-border: #E5E7EB;
  --hub-bg: #F8FAFC;
  --hub-white: #FFFFFF;
  --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 ─── */
.hub-hero {
  background: linear-gradient(145deg, #0A4A2E 0%, #135839 60%, #0d422a 100%);
  color: #fff;
  padding: 44px 0 38px;
  position: relative;
  overflow: hidden;
}
.hub-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #C6621C, #25D366, #0A4A2E);
}
.hub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}
.hub-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.hub-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.hub-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.hub-hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.015em;
}
.hub-hero-sub {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 820px;
  margin: 0 0 24px;
}
.hub-hero-lead-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.hub-lead-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #fff;
}
.hub-lead-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37,211,102,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  flex-shrink: 0;
}
.hub-btn-lead-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  transition: all 0.2s ease;
}
.hub-btn-lead-wa:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

/* ─── MAIN CONTENT SECTIONS ─── */
.hub-card-section {
  background: #fff;
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.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-item {
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-left: 4px solid var(--hub-green);
  border-radius: 8px;
  padding: 14px 18px;
}
.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 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hub-prog-card:hover {
  border-color: var(--hub-green);
  box-shadow: 0 12px 30px rgba(10,74,46,0.12);
  transform: translateY(-3px);
}
.hub-prog-card-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}
.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, rgba(0,0,0,0.75) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hub-prog-pill-cert {
  background: var(--hub-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hub-prog-pill-dur {
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  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 #f1f5f9;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.hub-btn-prog-primary {
  background: var(--hub-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.hub-btn-prog-primary:hover {
  background: var(--hub-green-hover);
}
.hub-btn-prog-wa-icon {
  background: #25D366;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.hub-btn-prog-wa-icon:hover {
  background: #20BA5A;
}

/* 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 {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  transition: all 0.2s ease;
}
.hub-compare-card.featured {
  border-color: var(--hub-green);
  box-shadow: 0 6px 20px rgba(10,74,46,0.08);
}
.hub-compare-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--hub-green-light);
  color: var(--hub-green);
  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 #f3f4f6;
  font-size: 13px;
}
.hub-compare-row:last-child {
  border-bottom: none;
}
.hub-compare-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 3px;
}
.hub-compare-val {
  color: #334155;
  font-weight: 600;
  line-height: 1.5;
}
.hub-btn-prog-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  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: #dcfce7;
}

/* 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: #fff;
  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: #fafafa;
}

/* 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 {
  background: var(--hub-green);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  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, #0A4A2E 0%, #155E38 100%);
  color: #fff;
  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: #fff;
  margin: 0 0 6px;
}
.hub-b2b-content p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 580px;
  line-height: 1.6;
}
.hub-btn-b2b {
  background: #fff;
  color: var(--hub-green);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.hub-btn-b2b:hover {
  background: #f8fafc;
  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: #f8fafc;
}
.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: #fff;
  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 rgba(10,74,46,0.08);
  transform: translateY(-2px);
}
.hub-sibling-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hub-green);
  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: #fff;
  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 {
  background: #fff;
  border: 1.5px solid #d1fae5;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(10,74,46,0.1);
  position: relative;
  overflow: hidden;
}
.hub-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #25D366, #0A4A2E);
}
.hub-sb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.hub-sb-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: hubPulse 2s infinite;
}
@keyframes hubPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.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%;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.35);
  transition: all 0.2s ease;
  margin-bottom: 10px;
  text-align: center;
}
.hub-sb-btn-wa:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
}
.hub-sb-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--hub-border);
  color: var(--hub-slate);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}
.hub-sb-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.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: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  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;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  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-card-section {
    padding: 20px 18px;
  }
  .hub-prog-card {
    padding: 18px;
  }
  .hub-b2b-box {
    padding: 20px 18px;
  }
  .hub-btn-b2b {
    width: 100%;
    text-align: center;
  }
}
