
/* Help Layout */
.help-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

h3 {
  margin-top: 20px;
  margin-bottom: 20px;
}


/* Sidebar */
.help-sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  position: sticky;
  top: 80px;
  margin-left: -10px;
  height: calc(100vh - 80px);
}

.sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.search-container {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 175px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* Main Content */
.help-main {
  flex: 1;
  background: var(--neutral-light);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Mobile sidebar toggle */
.mobile-sidebar-toggle {
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  width: 100%;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-sidebar-toggle:hover {
  background: var(--primary-dark);
}

.mobile-sidebar-toggle svg {
  margin-right: 0.5rem;
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.search-result-category {
  font-size: 0.75rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--neutral-medium);
  font-size: 0.9rem;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 0;
}

.nav-category {
  border-bottom: 1px solid #f3f4f6;
}

.category-header {
  padding: 1rem 2rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary-dark);
  transition: background-color 0.2s ease;
}

.category-header:hover {
  background: #f1f3f4;
}

.category-header.active {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
}

.category-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.expand-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.category-header.active .expand-icon {
  transform: rotate(180deg);
}

.category-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-items.expanded {
  max-height: 500px;
}

.nav-item {
  display: block;
  padding: 0.75rem 2rem 0.75rem 3.5rem;
  color: var(--neutral-medium);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: #f8f9fa;
  color: var(--primary-color);
}

.nav-item.active {
  background: rgba(var(--primary-color-rgb), 0.05);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

/* Content Sections */
.content-section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.content-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.content-description {
  font-size: 1.125rem;
  color: var(--neutral-medium);
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--neutral-medium);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #d1d5db;
}

/* Article Grid */
.article-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 30px;
  margin-bottom: 30px;
}

.article-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.1);
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.article-excerpt {
  color: var(--neutral-medium);
  font-size: 0.9rem;
}

/* Welcome Cards */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.welcome-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.welcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.welcome-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-icon.blue {
  background-color: rgba(var(--primary-color-rgb), 0.3);
  color: var(--primary-color);
}

.welcome-icon.purple {
  background-color: rgba(var(--primary-light-rgb), 0.3);
  color: var(--primary-light);
}

.welcome-icon.dark {
  background-color: rgba(var(--primary-blue-light-rgb), 0.3);
  color: var(--primary-blue-light);
}

.welcome-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.welcome-description {
  color: var(--neutral-medium);
  font-size: 0.9rem;
}

/* Contact Support & CTA */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-option {
  background: rgba(var(--primary-color-rgb), 0.05);
  border: 2px solid rgba(var(--primary-color-rgb), 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-option:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.1);
}

.contact-option-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.contact-option-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.contact-option-text {
  color: var(--neutral-medium);
  font-size: 0.9rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-top: 2rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ & Interactive Elements */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--neutral-medium);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Step Guide & Info Boxes */
.step-guide {
  margin: 2rem 0;
}

.step-item {
  display: flex;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f3f4f6;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1.5rem;
  margin-top: 15px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.step-content p {
  color: var(--neutral-medium);
  line-height: 1.6;
}

.info-box {
  background: rgba(var(--primary-color-rgb), 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box.warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
}

.info-box.success {
  background: rgba(40, 167, 69, 0.1);
  border-left-color: #28a745;
}

.info-box-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .help-layout {
    flex-direction: column;
  }

  .help-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

  .mobile-sidebar-toggle {
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .sidebar-nav {
    display: none;
  }

  .sidebar-nav.mobile-open {
    display: block;
  }

  .content-title {
    font-size: 2rem;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .content-container {
    padding: 1rem;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .sidebar-header {
    padding: 1.5rem;
  }
}