/* ── SoroSoke Help Center — Custom Styles ──────────────────────────────── */

:root {
  --soro-navy:    #00438C;
  --soro-navy-dk: #002E61;
  --soro-gold:    #C9A84C;
  --soro-light:   #DFEEFF;
  --soro-bg:      #F5F8FF;
  --sidebar-w:    300px;
  --content-max:  820px;
  --radius:       10px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 18px rgba(0,0,0,0.10);
  --transition:   0.18s ease;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.65;
}

a { color: var(--soro-navy); }
a:hover { color: var(--soro-navy-dk); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.help-navbar {
  background: var(--soro-navy);
  padding: 0.55rem 0;
  box-shadow: 0 2px 12px rgba(0,67,140,0.22);
  z-index: 1040;
}
.help-navbar .navbar-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.help-navbar .navbar-brand:hover { color: var(--soro-gold); }
.help-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--soro-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--soro-navy);
  flex-shrink: 0;
}
.help-logo-icon img { width: 32px; height: 32px; border-radius: 8px; }
.help-navbar .brand-text { line-height: 1.2; }
.help-navbar .brand-text small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; letter-spacing: 0.04em; text-transform: uppercase; }

/* search */
.navbar-search-wrap { flex: 1; max-width: 480px; margin: 0 1.5rem; }
.navbar-search-wrap .input-group { border-radius: 8px; overflow: hidden; }
.navbar-search-wrap .input-group-text {
  background: rgba(255,255,255,0.15);
  border: none;
  color: rgba(255,255,255,0.8);
  padding: 0 12px;
}
.navbar-search-wrap .form-control {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 0.5rem 0.75rem;
}
.navbar-search-wrap .form-control::placeholder { color: rgba(255,255,255,0.55); }
.navbar-search-wrap .form-control:focus {
  background: rgba(255,255,255,0.22);
  color: #fff;
  box-shadow: none;
  outline: 2px solid rgba(255,255,255,0.35);
}

.go-to-app {
  background: var(--soro-gold) !important;
  border-color: var(--soro-gold) !important;
  color: var(--soro-navy) !important;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 8px;
  white-space: nowrap;
  padding: 0.45rem 1rem;
}
.go-to-app:hover { filter: brightness(1.08); }

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar-toggle-btn { display: inline-flex; align-items: center; }
  .navbar-search-wrap { max-width: none; margin: 0 0.5rem; }
  .go-to-app { display: none; }
}
@media (max-width: 575.98px) {
  .navbar-search-wrap { display: none; }
}

/* ── Page wrapper (sidebar + content) ────────────────────────────────── */
.page-wrapper {
  display: flex;
  min-height: calc(100vh - 58px - 80px);
  align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.help-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--soro-bg);
  border-right: 1px solid #E0EAF8;
  min-height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  padding: 1.25rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: #C5D8EE transparent;
}
.help-sidebar::-webkit-scrollbar { width: 4px; }
.help-sidebar::-webkit-scrollbar-thumb { background: #C5D8EE; border-radius: 4px; }

.sidebar-section { margin-bottom: 4px; }

.sidebar-section-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.55rem 1.25rem;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-section-btn:hover { color: var(--soro-navy); }
.sidebar-section-btn .bi { transition: transform var(--transition); }
.sidebar-section-btn.collapsed .bi { transform: rotate(-90deg); }
.sidebar-section-btn.active-section { color: var(--soro-navy); }

.sidebar-section-icon { margin-right: 6px; font-size: 14px; }

.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links a {
  display: block;
  padding: 0.42rem 1.25rem 0.42rem 2.4rem;
  font-size: 13.5px;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.35;
}
.sidebar-links a:hover {
  color: var(--soro-navy);
  background: #ECF3FF;
  border-left-color: #B3CCEE;
}
.sidebar-links a.active {
  color: var(--soro-navy);
  font-weight: 600;
  background: var(--soro-light);
  border-left-color: var(--soro-navy);
}

.sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 1.25rem 0.9rem;
  color: var(--soro-navy);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid #E0EAF8;
  margin-bottom: 0.5rem;
}
.sidebar-home-link:hover { color: var(--soro-navy-dk); }

/* Off-canvas sidebar (mobile) */
.offcanvas-sidebar { width: var(--sidebar-w) !important; }
.offcanvas-sidebar .offcanvas-header { background: var(--soro-navy); color: #fff; }
.offcanvas-sidebar .offcanvas-header .btn-close { filter: invert(1); }
.offcanvas-sidebar .offcanvas-body { padding: 0; background: var(--soro-bg); }

/* ── Main content area ────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
}
@media (max-width: 767.98px) {
  .main-content { padding: 1.25rem 1rem; }
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.help-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 1.25rem;
}
.help-breadcrumb a { color: #888; text-decoration: none; }
.help-breadcrumb a:hover { color: var(--soro-navy); text-decoration: underline; }
.help-breadcrumb span { color: #888; }

/* ── Article ──────────────────────────────────────────────────────────── */
.article-header { margin-bottom: 2rem; border-bottom: 1px solid #E8EEF8; padding-bottom: 1.25rem; }
.article-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--soro-navy-dk);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.article-meta { font-size: 12.5px; color: #999; }

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--soro-navy);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.article-body p { color: #444; margin-bottom: 0.85rem; }
.article-body ul, .article-body ol { color: #444; margin-bottom: 0.85rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.35rem; }
.article-body strong { color: #222; }

/* callout boxes */
.help-callout {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  font-size: 14.5px;
}
.help-callout.info { background: #EEF5FF; border-left: 4px solid var(--soro-navy); }
.help-callout.tip  { background: #F0FFF4; border-left: 4px solid #2E7D32; }
.help-callout.warn { background: #FFF8E1; border-left: 4px solid #F9A825; }
.help-callout.danger { background: #FFF0F0; border-left: 4px solid #C62828; }
.help-callout-title { font-weight: 700; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.help-callout.info  .help-callout-title { color: var(--soro-navy); }
.help-callout.tip   .help-callout-title { color: #2E7D32; }
.help-callout.warn  .help-callout-title { color: #E65100; }
.help-callout.danger .help-callout-title { color: #C62828; }
.help-callout p { margin: 0; color: #444; }

/* step list */
.step-list { list-style: none; padding: 0; margin: 1rem 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #EEF2F8;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--soro-navy);
  color: #fff;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.step-list li p { margin: 0; color: #444; line-height: 1.5; }

/* ── Was this helpful ──────────────────────────────────────────────────── */
.was-helpful {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--soro-bg);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #D8E6F8;
}
.was-helpful p { font-weight: 600; margin-bottom: 1rem; color: #333; }
.was-helpful .vote-btns { display: flex; gap: 12px; justify-content: center; }
.was-helpful .vote-btn {
  border: 1.5px solid #CBD5E0;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  color: #555;
  font-weight: 500;
}
.was-helpful .vote-btn:hover { border-color: var(--soro-navy); color: var(--soro-navy); background: var(--soro-light); }
.was-helpful .vote-btn.voted { border-color: var(--soro-navy); color: var(--soro-navy); background: var(--soro-light); font-weight: 700; }
.was-helpful .thanks-msg { display: none; color: #2E7D32; font-weight: 600; }

/* ── Related articles ──────────────────────────────────────────────────── */
.related-articles { margin-top: 2.5rem; border-top: 1px solid #E8EEF8; padding-top: 1.5rem; }
.related-articles h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #999; margin-bottom: 0.85rem; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--soro-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #EEF2F8;
}
.related-list li:last-child a { border-bottom: none; }
.related-list li a:hover { color: var(--soro-navy-dk); text-decoration: underline; }

/* ── Homepage Hero ────────────────────────────────────────────────────── */
.help-hero {
  background: linear-gradient(135deg, var(--soro-navy) 0%, #0066CC 100%);
  padding: 3.5rem 1rem;
  text-align: center;
  color: #fff;
}
.help-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.help-hero p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 1.75rem; }

.hero-search-wrap { max-width: 560px; margin: 0 auto; }
.hero-search-wrap .input-group { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.hero-search-wrap .input-group-text {
  background: #fff; border: none; color: #999; padding: 0 14px;
}
.hero-search-wrap .form-control {
  border: none; font-size: 15px; padding: 0.9rem 0.5rem;
  color: #222;
}
.hero-search-wrap .form-control:focus { box-shadow: none; }
.hero-search-wrap .btn-search {
  background: var(--soro-gold); border: none; color: var(--soro-navy);
  font-weight: 700; padding: 0 1.5rem; font-size: 14px;
}
.hero-search-wrap .btn-search:hover { filter: brightness(1.05); }

/* ── Category cards ───────────────────────────────────────────────────── */
.categories-section { padding: 3rem 0; }
.categories-section h2 { font-size: 1.15rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.5rem; }
.category-card {
  border: 1px solid #E2EAF8;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  display: block;
  transition: all var(--transition);
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--soro-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.category-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--soro-light);
  color: var(--soro-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--soro-navy-dk); margin-bottom: 0.4rem; }
.category-card p { font-size: 13.5px; color: #666; margin: 0 0 0.75rem; line-height: 1.5; }
.category-count { font-size: 12px; color: #999; font-weight: 600; }

/* search highlight */
.search-no-results { display: none; text-align: center; padding: 2rem; color: #888; }

/* ── Category landing page ────────────────────────────────────────────── */
.category-hero {
  background: var(--soro-bg);
  border-bottom: 1px solid #E0EAF8;
  padding: 2rem 0 1.5rem;
}
.category-hero h1 { font-size: 1.6rem; font-weight: 800; color: var(--soro-navy-dk); }
.category-hero p { color: #666; font-size: 14.5px; margin: 0; }

.article-list { list-style: none; padding: 0; margin: 0; }
.article-list-item {
  border-bottom: 1px solid #EEF2F8;
  padding: 1rem 0;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.article-list-item a:hover .article-list-title { color: var(--soro-navy); text-decoration: underline; }
.article-list-icon { color: var(--soro-navy); font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.article-list-title { font-weight: 600; color: #222; font-size: 15px; margin-bottom: 2px; }
.article-list-desc { font-size: 13px; color: #777; line-height: 1.45; }

/* ── Contact page ────────────────────────────────────────────────────── */
.contact-card { background: #fff; border: 1px solid #E2EAF8; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--soro-light); color: var(--soro-navy); font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

/* ── Search results overlay ───────────────────────────────────────────── */
#searchResults {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 2000; max-height: 360px; overflow-y: auto;
  display: none;
}
#searchResults .sr-item {
  display: block; padding: 0.75rem 1rem;
  border-bottom: 1px solid #EEF2F8;
  text-decoration: none; color: #222; font-size: 14px;
}
#searchResults .sr-item:last-child { border-bottom: none; }
#searchResults .sr-item:hover { background: var(--soro-bg); color: var(--soro-navy); }
#searchResults .sr-item-cat { font-size: 11.5px; color: #999; display: block; }
#searchResults .sr-empty { padding: 1rem; text-align: center; color: #888; font-size: 14px; }
.search-relative { position: relative; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  background: var(--soro-navy-dk);
  color: rgba(255,255,255,0.75);
  padding: 1.5rem 1rem;
  font-size: 13px;
  text-align: center;
  margin-top: auto;
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }

/* ── Utilities ────────────────────────────────────────────────────────── */
.text-navy { color: var(--soro-navy) !important; }
.bg-navy  { background: var(--soro-navy) !important; }
.badge-navy { background: var(--soro-navy); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
