:root {
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --bg-page: #f8f9fa;
  --border-light: #e5e7eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  padding: 18px 24px 36px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qa-container {
  max-width: 1160px;
  margin: 0 auto;
}

/* ================= CLEAN EDITORIAL HEADER ================= */
.hero-banner {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 32px;
  margin-bottom: 22px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  background: #f3f4f6;
  padding: 4px 11px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2563eb;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.hero-title .title-light {
  font-weight: 400;
  color: #4b5563;
}

.hero-title .highlight {
  font-weight: 600;
  color: #2563eb;
}

.hero-title .title-main {
  font-weight: 600;
  color: #111827;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tombol Shortcut / CTA di sisi kanan Header */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.hero-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.hero-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.hero-manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.hero-manage-btn:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  transform: translateY(-1px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ================= HORIZONTAL SLIDER / CAROUSEL ================= */
.cards-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cards-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 4px;
  margin: 0 -4px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards-track::-webkit-scrollbar {
  display: none;
}

.qa-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.02);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  border-color: #d1d5db;
}

/* Tombol navigasi panah kiri & kanan */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
}

.slider-nav-btn:hover:not(:disabled) {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.slider-nav-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
}

.slider-prev {
  left: -18px;
}

.slider-next {
  right: -18px;
}

/* Slider Pill Indicators (Menunjukkan semua kategori card) */
.slider-status-bar {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 4px;
}

.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 999px;
}

.slider-dot {
  border: none;
  background: transparent;
  color: #6b7280;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot:hover {
  color: #111827;
  background: #f3f4f6;
}

.slider-dot.is-active {
  background: #111827;
  color: #ffffff;
}

/* Active state when card is selected */
.qa-card.is-active.theme-blue { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.qa-card.is-active.theme-orange { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12); }
.qa-card.is-active.theme-green { border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12); }
.qa-card.is-active.theme-purple { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12); }
.qa-card.is-active.theme-cyan { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12); }
.qa-card.is-active.theme-red { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

.qa-card.is-active .action-chevron {
  transform: rotate(180deg);
}

.card-photo-banner {
  height: 140px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.qa-card:hover .card-icon-badge {
  transform: scale(1.04);
}

.card-count-pill {
  font-size: 11.5px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 999px;
}

.qa-card.theme-blue .card-icon-badge { background-color: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.qa-card.theme-orange .card-icon-badge { background-color: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.qa-card.theme-green .card-icon-badge { background-color: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.qa-card.theme-purple .card-icon-badge { background-color: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.qa-card.theme-cyan .card-icon-badge { background-color: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.qa-card.theme-red .card-icon-badge { background-color: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #374151;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-action i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.qa-card.theme-blue:hover .card-action, .qa-card.is-active.theme-blue .card-action { color: #2563eb; }
.qa-card.theme-orange:hover .card-action, .qa-card.is-active.theme-orange .card-action { color: #d97706; }
.qa-card.theme-green:hover .card-action, .qa-card.is-active.theme-green .card-action { color: #059669; }
.qa-card.theme-purple:hover .card-action, .qa-card.is-active.theme-purple .card-action { color: #7c3aed; }
.qa-card.theme-cyan:hover .card-action, .qa-card.is-active.theme-cyan .card-action { color: #0891b2; }
.qa-card.theme-red:hover .card-action, .qa-card.is-active.theme-red .card-action { color: #dc2626; }


/* ================= EXPANDABLE NUMBERED LIST ================= */
.sublist-section {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 22px 26px 26px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
  animation: slideDownFade 0.25s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sublist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}

.sublist-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sublist-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #eff6ff;
  color: #2563eb;
}

.sublist-section.theme-orange .sublist-icon { background: #fffbeb; color: #d97706; }
.sublist-section.theme-green .sublist-icon { background: #ecfdf5; color: #059669; }
.sublist-section.theme-purple .sublist-icon { background: #f5f3ff; color: #7c3aed; }
.sublist-section.theme-cyan .sublist-icon { background: #ecfeff; color: #0891b2; }
.sublist-section.theme-red .sublist-icon { background: #fef2f2; color: #dc2626; }

.sublist-header-title h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.sublist-header-title p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.sublist-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sublist-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Numbered rows (01, 02, 03...) */
.numbered-list {
  display: flex;
  flex-direction: column;
}

.numbered-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.numbered-row.no-link {
  cursor: default;
}

.numbered-row:last-child {
  border-bottom: none;
}

.numbered-row.has-link:hover {
  background-color: #f3f4f6;
}

.numbered-row.no-link:hover {
  background-color: transparent;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.row-num {
  font-size: 13.5px;
  font-weight: 500;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.numbered-row:hover .row-num {
  color: #4b5563;
}

.row-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: -0.015em;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 52%;
  text-align: right;
}

.row-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
}

.row-redirect-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.row-redirect-pill:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* ================= EMBEDDED IFRAME CARDS (Visitor / Live Server) ================= */
.iframes-wrapper {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.iframe-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.iframe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
}

.iframe-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iframe-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.iframe-card-title h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.iframe-card-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.iframe-card-body {
  width: 100%;
  background: #f5f5f5;
}

/* Sembunyikan judul <h1>Visitor</h1> bawaan halaman eksternal supaya tidak dobel judul */
.iframe-crop-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.embedded-external-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-crop-container.is-cropped .embedded-external-frame {
  height: calc(100% + 55px);
  margin-top: -55px;
}

@media (max-width: 960px) {
  .qa-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
  .numbered-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .row-right {
    max-width: 100%;
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 640px) {
  html, body {
    padding: 14px 16px 32px;
  }
  .qa-card {
    flex: 0 0 100%;
  }
}
