:root {
    --help-centre-text-color: #2c2d4a;
    --help-centre-background-color: #f7f5f2;
    --help-centre-bold-color: #F95738;
    --help-centre-light-color: rgba(249, 87, 56, 0.1);
}


#helpPage,
#helpPage .nav-container,
#helpPage .nav-container-footer {
    background: var(--help-centre-background-color) !important;
    color: var(--help-centre-text-color) !important;
}

#helpPage .nav-container {
    box-shadow: 0px 0px 15px 0px #e9e4dd;
    z-index: 2;
    min-width: 300px !important;
    max-width: 300px !important;
}
#helpPage .nav-container hr {
    opacity: 0.1 !important;
}

#helpPage .mobile-nav-container a,
#helpPage .nav-container .nav-header .nav-toggle,
#helpPage .nav-container a,
#helpPage .nav-container a button,
#helpPage .nav-container a span,
#helpPage .nav-container-footer a,
#helpPage .nav-container-footer a button,
#helpPage .nav-container-footer a span {
    color: var(--help-centre-text-color) !important;
}

#helpPage .nav-container .fa-solid:hover,
#helpPage .nav-container .fa-solid:focus {
    color: var(--help-centre-bold-color) !important;
}


#helpPage .nav-container a.active,
#helpPage .nav-container-footer a.active {
    background: #f4e8d5 !important;
}

#helpPage .nav-container.collapsed .nav-header:hover,
#helpPage .nav-container .nav-header .nav-toggle:hover,
#helpPage .nav-container a:hover:not(.active),
#helpPage .nav-container-footer a:hover:not(.active) {
    background: #f4e8d5 !important;
}

#helpPage .nav-container .nav-header a:hover:not(.active) {
    background: initial !important;
}

#helpPage .nav-container .beta {
    background: var(--help-centre-bold-color) !important;
    color: white !important;
}

#helpPage .nav-container .nav-header {
  align-self: center;
}

#helpPage .mobile-nav-container .nav-content a {
  text-align: left;
}

#helpPage .mobile-nav-container .nav-content .nav-category,
#helpPage .nav-container .nav-content .nav-category {
  padding-bottom: 10px;
}

#helpPage .mobile-nav-container .nav-content,
#helpPage .mobile-nav-container .nav-content .nav-category,
#helpPage .mobile-nav-container .nav-content .nav-category ul {
  display: flex;
  flex-direction: column;
}

#helpPage .mobile-nav-container .nav-content h4 a,
#helpPage .nav-container .nav-content h4 a {
    font-size: initial !important;
    padding: initial !important;
    color: #918e85 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

#helpPage .mobile-nav-container .nav-content h4 a span,
#helpPage .nav-container .nav-content h4 a span {
    color: #918e85 !important;
}

#helpPage .mobile-nav-container .nav-content h4 a:hover,
#helpPage .nav-container .nav-content h4 a:hover {
    background: initial !important;
}

#helpPage .mobile-nav-container .nav-content h4 a:hover span {
    color: var(--help-centre-bold-color) !important;
}

#helpPage .mobile-nav-container .nav-content a,
#helpPage .nav-container .nav-content a {
  font-size: 0.95rem !important;
}

#helpPage .help-container.assistant-page {
  display: flex;
  flex-direction: column
}

#helpPage .help-container.assistant-page .help-assistant-container {
  flex: 1;
}

#helpPage .help-container.assistant-page .help-assistant-container .chat-container {
  height: 100%;
}

#helpPage .help-container.assistant-page .help-assistant-container .chat-container .chat-header {
  flex: 0.25
}

#helpPage .help-container.assistant-page .help-assistant-container .chat-container .chat-body {
  flex: 1;
}

#helpPage .help-container.assistant-page .help-assistant-container .chat-container .chat-input .chat-inputbar {
  margin-left: 45px;
}

#helpPage .help-container.assistant-page .help-assistant-container .chat-container .chat-header #copyScenarioLinkBtn,
#helpPage .help-container.assistant-page .help-assistant-container .chat-container .chat-header .conv-controls {
  display: none;
}

/* ============================================================================
   LAYOUT & STRUCTURE
   ============================================================================ */

.help-container {
  min-height: 100vh;
  background: var(--help-centre-background-color);
  transition: margin-left 0.3s ease;
  padding: 0px;
  color: var(--help-centre-text-color) !important;
}

/* Fixed Top Panel */
.help-top-panel {
  position: sticky;
  top: 0;
  background: var(--help-centre-background-color);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px #e9e4dd;
  z-index: 1;
  padding: 12px 0;
  display: flex;
}

.help-top-panel .help-element {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  max-width: 100%
}

.help-top-panel img {
  height: 60px;
  padding: 0px 10px;
}

.help-breadcrumbs {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.help-breadcrumbs .breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.help-breadcrumbs .breadcrumb-link:hover {
  color: var(--help-centre-primary);
}

.help-breadcrumbs .breadcrumb-current {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.help-breadcrumbs .breadcrumb-separator {
  color: #d1d5db;
  font-size: 12px;
  margin: 0 8px;
}

.help-search-top {
  flex-shrink: 0;
  position: relative;
  width: 300px;
}

.help-search-top .search-input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  transition: all 0.2s;
}

.help-search-top .search-input:focus {
  outline: none;
  border-color: var(--help-centre-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.help-search-top .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: #f9fafb;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.4;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #6b7280;
}

.search-result-category {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.search-result-time {
  color: #9ca3af;
}

.search-result-summary {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-summary mark {
  background: #fef3c7;
  color: #92400e;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* Adjust content for sticky top panel */
.help-content {
  /* No margin needed for sticky positioning */
}

/* When navigation is collapsed */
.nav-container.collapsed ~ .help-container {
  margin-left: 80px;
}

.help-element {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-left: auto;
}

.header-buttons .login-button {
    padding: 8px 20px;
    background-color: transparent;
    color: var(--help-centre-bold-color);
    border: 2px solid var(--help-centre-bold-color);
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
}

.header-buttons .login-button:hover {
  background-color: var(--landing-primary-light);
  color: var(--landing-primary);
}


.free-trial-button,
.typeform-button button {
  background: var(--help-centre-bold-color) !important;
  color: white !important;
  border: 2px solid var(--help-centre-bold-color) !important;
  font-family: 'Lato', sans-serif !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
  line-height: inherit !important;
  height: inherit !important;
}

.free-trial-button:hover,
.typeform-button button:hover {
  background: var(--help-centre-bold-color);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.free-trial-button:hover,
.typeform-button button:hover {
  background: var(--help-centre-bold-color) !important;
  border-color: var(--help-centre-bold-color) !important;
}

.free-trial-button:active,
.typeform-button button:active {
  transform: translateY(0);
}

.free-trial-button:focus,
.typeform-button button:focus {
  outline: 2px solid var(--help-centre-bold-color);
  outline-offset: 2px;
}

/* ============================================================================
   HEADER & SEARCH
   ============================================================================ */

.help-header {
  padding: 80px 24px 60px;
  text-align: center;
}

.help-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.help-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  font-family: 'Convergence', sans-serif;
}

.help-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin: 0 0 40px;
  font-weight: 300;
}

/* Search Bar */
.help-search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 24px;
}

.help-search-bar-wrapper {
  position: relative;
}

.help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}

.help-search-bar {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.help-search-bar:focus {
  outline: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.help-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-height: 500px;
  overflow-y: auto;
  z-index: 100;
  animation: slideDown 0.2s ease;
}

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

.search-result-item {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0 0 6px;
}

.search-result-summary {
  font-size: 14px;
  color: #666;
  margin: 0 0 6px;
  line-height: 1.5;
}

.search-result-category {
  font-size: 12px;
  color: var(--help-centre-bold-color);
  font-weight: 500;
}

.search-no-results {
  padding: 32px 20px;
  text-align: center;
  color: #999;
}

/* Quick Links */
.help-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: white;
  opacity: 0.9;
}

.help-quick-links span {
  font-size: 14px;
}

.help-quick-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-quick-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ============================================================================
   CATEGORIES GRID
   ============================================================================ */

.help-content {
  padding: 60px 0;
}

.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.help-category-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.help-category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.category-header {
  flex-grow: 1;
  margin-bottom: 16px;
}

.category-view-all {
  display: block;
  text-align: center;
  padding: 12px 16px;
  margin-top: 12px;
  background: var(--help-centre-light-color);
  color: var(--help-centre-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.category-view-all:hover {
  background: var(--help-centre-primary);
  color: white;
  text-decoration: none;
}

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.category-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0 0 12px;
}

.category-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

.category-article-count {
  font-size: 13px;
  color: var(--help-centre-bold-color);
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* Category Articles List */
.category-articles {
  border-top: 1px solid #eee;
}

.category-article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.category-article-item:last-child {
  border-bottom: none;
}

.category-article-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  text-decoration: none;
  color: inherit;
}

.category-article-item .article-title {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
  margin: 0;
}

.category-article-item .article-time {
  font-size: 12px;
  color: #9ca3af;
  margin-left: 8px;
  flex-shrink: 0;
}

.help-category-card .category-article-more {
  padding: 6px 0;
  text-align: center;
}

.help-category-card .more-text {
  font-size: 13px;
  color: var(--help-centre-primary);
  font-weight: 500;
  font-style: italic;
}

/* ============================================================================
   POPULAR ARTICLES
   ============================================================================ */

.help-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--help-centre-text-color);
  margin: 0 0 24px;
}

.popular-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-article-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.popular-article-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.popular-article-content {
  flex: 1;
}

.popular-article-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0 0 8px;
}

.popular-article-summary {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.popular-article-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.reading-time {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
}

.reading-time i {
  margin-right: 4px;
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */

.breadcrumb-link {
  color: var(--help-centre-bold-color);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.breadcrumb-separator {
  color: #ccc;
  font-size: 12px;
  margin: 0 8px;
}

.breadcrumb-current {
  color: var(--help-centre-text-color);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================================
   CATEGORY PAGE
   ============================================================================ */

.category-header {
  padding: 60px 0 40px;
  text-align: center;
}

.category-icon-large {
  font-size: 72px;
  margin-bottom: 16px;
}

.category-title-large {
  font-size: 40px;
  font-weight: 700;
  color: var(--help-centre-text-color);
  margin: 0 0 16px;
  font-family: 'Convergence', sans-serif;
}

.category-description-large {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-list-item {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.article-list-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-left-color: var(--help-centre-bold-color);
}

.article-list-content {
  flex: 1;
}

.article-list-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0 0 8px;
}

.article-list-summary {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.article-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.auth-badge {
  font-size: 12px;
  color: #999;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.auth-badge i {
  margin-right: 4px;
}

/* ============================================================================
   ARTICLE PAGE
   ============================================================================ */

.article-page .help-content {
  padding: 20px 0 60px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 60px;
  align-items: start;
}

/* Right Sidebar TOC */
.article-sidebar-right {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: transparent transparent; /* Firefox - hidden by default */
}

/* Show scrollbar on hover (Firefox) */
.article-sidebar-right:hover {
  scrollbar-color: #d0d0d0 transparent;
}

/* Custom scrollbar styling for sidebar (WebKit browsers) */
.article-sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.article-sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

/* Hide scrollbar thumb by default */
.article-sidebar-right::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
}

/* Show scrollbar thumb on hover */
.article-sidebar-right:hover::-webkit-scrollbar-thumb {
  background: #d0d0d0;
}

.article-sidebar-right::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

.article-toc {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.toc-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 4px;
}

.toc-item {
  margin-bottom: 4px;
}

.toc-item-main {
  margin-left: 0;
  margin-bottom: 8px;
}

.toc-item-section {
  margin-left: 16px;
  margin-bottom: 6px;
}

.toc-item-sub {
  margin-left: 32px;
  margin-bottom: 4px;
}

.toc-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}

.toc-link:hover {
  color: var(--help-centre-bold-color);
}

.toc-link.active {
  color: var(--help-centre-bold-color);
  font-weight: 600;
  border-left-color: var(--help-centre-bold-color);
}

/* Lists */
.help-list {
  margin: 16px 0;
  padding-left: 20px;
}

.help-list-item {
  margin-bottom: 8px;
  line-height: 1.6;
}

.help-list-nested {
  margin: 8px 0;
  padding-left: 20px;
}

.help-list ul,
.help-list ol {
  margin: 8px 0;
  padding-left: 20px;
}

.help-list li {
  margin-bottom: 4px;
}

/* Content within list items (images, paragraphs, nested under bullets) */
.list-item-content {
  margin-top: 8px;
}

.list-item-content .help-image {
  margin: 12px 0;
}

.list-item-content p {
  margin: 8px 0;
}

.list-item-content .help-list,
.list-item-content .help-list-nested {
  margin-top: 8px;
}

/* Inline content within lists (images, paragraphs, etc.) */
.list-inline-content {
  margin: 12px 0;
  padding-left: 20px;
}

.list-inline-content .help-image {
  margin: 12px 0;
}

.list-inline-content p {
  margin: 8px 0;
}

/* Article Main Content */
.article-main {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--help-centre-text-color);
  margin: 0 0 16px;
  font-family: 'Convergence', sans-serif;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #999;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Content Styles */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--help-centre-text-color);
}

.article-content p {
  margin: 0 0 20px;
}

.article-content a {
  color: var(--help-centre-bold-color);
  text-decoration: none;
  border-bottom: 1px solid var(--help-centre-light-color);
  transition: all 0.2s;
}

.article-content a:hover {
  border-bottom-color: var(--help-centre-bold-color);
}

/* Headings */
.article-heading {
  position: relative;
  scroll-margin-top: 120px;
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  line-height: 1.3;
}

.article-content h2 {
  font-size: 28px;
}

.article-content h3 {
  font-size: 22px;
}

.heading-text {
  display: inline;
}

.heading-copy-link {
  opacity: 0;
  margin-left: 12px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--help-centre-bold-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75em;
  vertical-align: middle;
  border-radius: 6px;
}

.article-heading:hover .heading-copy-link {
  opacity: 1;
}

.heading-copy-link:hover {
  background: var(--help-centre-light-color);
}

.heading-copy-link.copied {
  color: var(--landing-tertiary);
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 28px;
}

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

/* Code */
.article-content code {
  background: #f5f5f5;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Monaco', 'Courier New', monospace;
  color: var(--help-centre-bold-color);
}

.code-block-wrapper {
  position: relative;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.code-block-header {
  background: #2d2d2d;
  color: #ccc;
  padding: 12px 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-language {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.copy-code-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-code-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-code-button.copied {
  background: var(--landing-tertiary);
  border-color: var(--landing-tertiary);
  color: white;
}

.code-block-wrapper pre {
  margin: 0;
  padding: 20px;
  background: #1e1e1e;
  overflow-x: auto;
}

.code-block-wrapper code {
  background: transparent;
  padding: 0;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.6;
  display: block;
}

/* Callouts */
.callout-tip,
.callout-info,
.callout-warning,
.callout-success {
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  border-left: 4px solid;
}

.callout-tip {
    background: linear-gradient(to right, #fdfdf0, #fdfdf0);
    border-left-color: #f8e833;
  }

.callout-info {
  background: linear-gradient(to right, #f5f7ff, #f5f7ff);
  border-left-color: #4a6cfa;
}

.callout-warning {
  background: linear-gradient(to right, #fff8e1, #fff8e1);
  border-left-color: #f59e0b;
}

.callout-success {
  background: linear-gradient(to right,  #f0fdf9, #f0fdf9);
  border-left-color: var(--landing-tertiary);
}

.callout-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Lists inside callouts */
.callout-content ul,
.callout-content ol,
.callout-content .help-list {
  margin: 12px 0;
}

.callout-content ul:first-child,
.callout-content ol:first-child,
.callout-content .help-list:first-child {
  margin-top: 0;
}

.callout-content ul:last-child,
.callout-content ol:last-child,
.callout-content .help-list:last-child {
  margin-bottom: 0;
}

.callout-content p + ul,
.callout-content p + ol,
.callout-content p + .help-list {
  margin-top: 8px;
}


/* Images */
.help-image {
  margin: 32px 0;
  text-align: center;
}

.help-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-left: auto;
  margin-right: auto;
}

.help-image figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #999;
  font-style: italic;
}

/* Videos */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

/* Quotes */
.help-quote {
  border-left: 4px solid var(--help-centre-bold-color);
  padding: 20px 24px;
  margin: 24px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #666;
  border-radius: 0 8px 8px 0;
}

/* Collapsible Sections */
.collapsible-section {
  margin: 24px 0;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 20px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.collapsible-section[open] {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.collapsible-heading {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  user-select: none;
  font-size: 16px;
}

.collapsible-heading::-webkit-details-marker {
  display: none;
}

.collapse-icon {
  color: var(--help-centre-bold-color);
  transition: transform 0.3s ease;
  font-size: 14px;
  flex-shrink: 0;
}

.collapsible-section[open] .collapse-icon {
  transform: rotate(90deg);
}

.collapsible-content {
  margin-top: 16px;
  padding-left: 26px;
}

/* Divider */
.divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  margin: 40px 0;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--help-centre-bold-color), #e85d1e);
  width: 0;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Article Feedback */
.article-feedback {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

.article-feedback h3 {
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--help-centre-text-color);
}

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

.feedback-btn {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--help-centre-text-color);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-btn:hover {
  border-color: var(--help-centre-bold-color);
  color: var(--help-centre-bold-color);
  transform: translateY(-2px);
}

.feedback-thanks {
  color: var(--landing-tertiary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feedback-thanks i {
  font-size: 24px;
}

/* Article Navigation (Previous / Next) */
.article-navigation {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.article-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-nav-card {
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  padding: 24px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.article-nav-card:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  border-color: var(--help-centre-light-color);
}

.article-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--help-centre-bold-color), #e85d1e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.article-nav-card:hover::before {
  transform: scaleX(1);
}

.article-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--help-centre-bold-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-nav-prev .article-nav-label {
  justify-content: flex-start;
}

.article-nav-next .article-nav-label {
  justify-content: flex-end;
}

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

.article-nav-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--help-centre-text-color);
  margin: 0;
  line-height: 1.3;
}

.article-nav-summary {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}

/* ============================================================================
   UTILITY COMPONENTS
   ============================================================================ */

.help-cta-section {
  background: #fafafa;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  margin-top: 60px;
}

.help-cta-section h2 {
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--help-centre-text-color);
}

.help-cta-section p {
  font-size: 16px;
  color: #666;
  margin: 0 0 28px;
}

.help-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--help-centre-bold-color);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}


.help-cta-button:hover {
    background: var(--help-centre-bold-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
  
.help-cta-button:active {
transform: translateY(0);
}

.help-cta-button:focus {
outline: 2px solid var(--help-centre-bold-color);
outline-offset: 2px;
}

.empty-state {
  text-align: center;
  padding: 80px 40px;
}

.empty-state-icon {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--help-centre-text-color);
}

.empty-state p {
  font-size: 16px;
  color: #666;
  margin: 0 0 28px;
}

.help-mobile-menu-toggle {
  display: none;
  border: none;
  background: none;
}

.help-mobile-menu-toggle i {
  color: var(--help-centre-text-color);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

  @media (max-width: 1200px) {
    .article-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    
    .article-sidebar-right {
      position: static;
      order: 2;
    }
    
    .article-toc {
      margin-top: 40px;
    }

    .help-breadcrumbs {
      display: none;
    }
  
  }

  @media (max-width: 1060px) { 
    .header-buttons {
      display: none;
    }
  }


@media (max-width: 768px) {

  #helpPage .help-container {
    padding: 0px !important;
  }

  .help-mobile-menu-toggle {
    display: block;
  }

  #helpPage .nav-container .nav-controls {
    white-space: nowrap;
  }

  .mobile-nav-container {
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;

  }

  .mobile-nav-container li {
    list-style: none;
  }

  .help-content {
    padding: 0px;
  }

  .help-title {
    font-size: 36px;
  }
  
  .help-subtitle {
    font-size: 18px;
  }
  
  .help-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .article-main {
    padding: 32px 24px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .article-list-meta {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .help-header {
    padding: 60px 20px 40px;
  }
  
  .help-title {
    font-size: 28px;
  }
  
  .help-subtitle {
    font-size: 16px;
  }

  .help-search-top {
    width: 150px;
  }
  
  .help-search-bar {
    font-size: 16px;
    padding: 16px 20px 16px 48px;
  }
  
  .article-main {
    padding: 24px 20px;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .article-content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .article-content * {
    max-width: 100%;
  }
  
  .feedback-buttons {
    flex-direction: column;
  }
  
  .article-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .article-nav-next {
    text-align: left;
  }
  
  .article-nav-next .article-nav-label {
    justify-content: flex-start;
  }

  .help-image,
  .help-image img {
    max-width: 100% !important;
    height: auto;
  }
  
  /* Ensure tables don't overflow */
  .table-container {
    overflow-x: auto;
    max-width: 100%;
  }
  
  /* Ensure code blocks don't overflow */
  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
  line-height: 1.5;
}

.help-table th,
.help-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.help-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.help-table tr:last-child td {
  border-bottom: none;
}

.help-table tr:hover {
  background-color: #f8f9fa;
}

.help-table th:first-child,
.help-table td:first-child {
  padding-left: 20px;
}

.help-table th:last-child,
.help-table td:last-child {
  padding-right: 20px;
}

/* Responsive table */
@media (max-width: 768px) {
  .help-table {
    font-size: 13px;
  }
  
  .help-table th,
  .help-table td {
    padding: 8px 12px;
  }
  
  .help-table th:first-child,
  .help-table td:first-child {
    padding-left: 16px;
  }
  
  .help-table th:last-child,
  .help-table td:last-child {
    padding-right: 16px;
  }
}

/* ============================================================================
   CREATOR NOTICE ELEMENTS
   ============================================================================ */

/* Nav sidebar creator notice */
.nav-creator-notice {
  margin: 16px 12px 8px !important;
  padding: 14px !important;
  background: #f7f2ea !important;
  color: var(--help-centre-text-color) !important;
  border: 1px solid rgba(249, 156, 56, 0.2) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.2s ease !important;
}

.nav-creator-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-creator-notice-content {
  flex: 1;
  min-width: 0;
}

.nav-creator-notice-content p {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
}

#helpPage .nav-container .nav-creator-notice-content a:hover {
  background: none !important;
}

/* Homepage creator notice card */
.help-creator-notice-card {
  border: 2px solid rgba(249, 156, 56, 0.2);
  background: #f7f2ea;
}

.help-creator-notice-card:hover {
  border-color: rgba(249, 156, 56, 0.35);
  background: #f4e8d5;
}

.creator-notice-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--help-centre-bold-color);
  color: white !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.creator-notice-cta:hover {
  transform: translateY(-2px);
}

.creator-notice-cta i {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-creator-notice {
    margin: 12px 8px 6px;
    padding: 12px;
  }
  
  .nav-creator-notice-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
}

