:root {
  --primary: #1E3C72;
  --primary-dark: #152b52;
  --secondary: #2A5298;
  --accent: #2e7d32;
  --accent-light: #e8f5e9;
  --warning: #f57f17;
  --warning-bg: #fffde7;
  --danger: #d32f2f;
  --danger-bg: #ffebee;
  --info: #0288d1;
  --info-bg: #e1f5fe;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px -4px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg);
  padding: 0;
  margin: 0;
}

/* Header & Nav */
.help-navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.help-nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.help-brand .logo-badge {
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  padding: 4px;
  border-radius: 10px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.help-brand img, .logo-badge img {
  width: 36px;
  height: 36px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.help-brand span {
  font-size: 1.25rem;
  font-weight: 700;
}

.help-nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.help-nav-links a {
  color: #e0e7ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.help-nav-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.btn-app-download {
  background: #10b981;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-app-download:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Hero Section */
.help-hero {
  background: linear-gradient(135deg, #1E3C72 0%, #2A5298 60%, #1e528e 100%);
  color: #fff;
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
}

.help-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.help-hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 25px;
}

/* Search Box */
.search-container {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  outline: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s;
}

.search-input:focus {
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #94a3b8;
}

/* Layout */
.help-wrapper {
  max-width: 1100px;
  margin: -25px auto 60px;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Grid Cards */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 45px;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.topic-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.topic-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.topic-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.topic-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.topic-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.topic-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article / Detail Page Styling */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.article-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 10px;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.step-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.7;
}

.step-content ul, .step-content ol {
  padding-left: 24px;
  margin: 10px 0;
}

.step-content li {
  margin-bottom: 8px;
}

.alert-box {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
}

.alert-note {
  background-color: var(--info-bg);
  border-left: 4px solid var(--info);
  color: #0c5460;
}

.alert-tip {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  color: #1b5e20;
}

.alert-warning {
  background-color: var(--warning-bg);
  border-left: 4px solid var(--warning);
  color: #e65100;
}

.alert-danger {
  background-color: var(--danger-bg);
  border-left: 4px solid var(--danger);
  color: #b71c1c;
}

/* FAQ Accordions */
.faq-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.faq-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.faq-tab-btn.active, .faq-tab-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #ffffff;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-answer {
  padding: 0 22px 18px;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-item:not(.active) .faq-answer {
  display: none;
}

/* Navigation between pages */
.page-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 2px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-nav-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-nav-page:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* Support Box */
.support-card {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-card h3 {
  font-size: 1.4rem;
}

.support-card p {
  color: #e2e8f0;
}

.support-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.support-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.support-pill:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Footer */
.help-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.help-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Route Directory & Feature Tables */
.route-table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.route-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.route-table th {
  background: #f1f5f9;
  color: var(--primary);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

.route-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.route-table tr:hover {
  background-color: #f8fafc;
}

.route-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.feature-search-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* App Screenshot Showcase & Responsive Mockups */
.screenshot-container {
  display: flex;
  justify-content: center;
  margin: 24px auto;
  max-width: 100%;
}

.screenshot-frame {
  background: #ffffff;
  padding: 8px;
  border-radius: 24px;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  max-width: 290px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px -8px rgba(0, 0, 0, 0.22);
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  object-fit: cover;
}

.screenshot-caption {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-top: 10px;
  padding: 0 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 25px 0;
  justify-items: center;
}

@media (max-width: 768px) {
  .help-hero h1 { font-size: 1.8rem; }
  .topics-grid { grid-template-columns: 1fr; }
  .article-card { padding: 18px 14px; }
  .article-title { font-size: 1.35rem; }
  .help-nav-links { display: none; }
  .screenshots-grid { grid-template-columns: 1fr; gap: 16px; }
  .screenshot-frame { max-width: 260px; }
}

