/* Page styles for faq.html */
:root {
      --primary: #1E3A8A;
      --primary-dark: #1D2C51;
      --primary-light: #E6F1FF;
      --foreground: #1f2937;
      --muted: #6b7280;
      --background: #fcfcfc;
      --card: #ffffff;
      --border: #e5e7eb;
      --secondary: #f3f4f6;
      --card-header: #f0f1f3;
    }

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

    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .top-bar {
      height: 4px;
      background: linear-gradient(90deg, var(--primary-dark), #2563EB);
    }

    /* Header */
    .nav-links { display: flex; align-items: center; gap: 4px; }

    .nav-link {
      padding: 7px 14px;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
    }

    .nav-link:hover { background: var(--secondary); color: var(--foreground); }

    .btn-nav {
      padding: 8px 18px;
      background: var(--primary);
      color: white;
      border-radius: 5px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s;
    }

    .btn-nav:hover { background: var(--primary-dark); }

    /* Hero */
    .hero {
      background: linear-gradient(155deg, #0f1e42 0%, var(--primary) 55%, #1a4199 100%);
      padding: 64px 24px 56px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(37,99,235,0.2) 0%, transparent 65%);
      pointer-events: none;
    }

    .hero-inner { position: relative; max-width: 680px; margin: 0 auto; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.18);
      color: rgba(255,255,255,0.85);
      padding: 6px 14px;
      border-radius: 5px;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 24px;
    }

    .hero h1 {
      font-size: 36px;
      font-weight: 700;
      color: white;
      line-height: 1.2;
      margin-bottom: 16px;
      letter-spacing: -0.01em;
    }

    @media (max-width: 600px) { .hero h1 { font-size: 26px; } }

    .hero-desc {
      font-size: 15.5px;
      color: rgba(255,255,255,0.65);
      line-height: 1.65;
      margin-bottom: 28px;
    }

    /* Search bar */
    .hero-search {
      display: flex;
      align-items: center;
      background: white;
      border-radius: 5px;
      overflow: hidden;
      max-width: 460px;
      margin: 0 auto;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .hero-search-icon {
      padding: 0 14px;
      color: var(--muted);
      flex-shrink: 0;
    }

    .hero-search input {
      flex: 1;
      border: none;
      outline: none;
      font-family: inherit;
      font-size: 14px;
      padding: 13px 0;
      color: var(--foreground);
      background: transparent;
    }

    .hero-search input::placeholder { color: var(--muted); }

    /* Category pills bar */
    .cat-bar {
      background: var(--card);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      overflow-x: auto;
    }

    .cat-bar-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      gap: 0;
      white-space: nowrap;
    }

    .cat-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 14px 18px;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      border-bottom: 2px solid transparent;
      transition: color 0.15s, border-color 0.15s;
      cursor: pointer;
      flex-shrink: 0;
    }

    .cat-pill:hover,
    .cat-pill.active { color: var(--primary); border-bottom-color: var(--primary); }

    .cat-pill svg { width: 14px; height: 14px; }

    /* Layout */
    .page-layout {
      max-width: 1200px;
      margin: 0 auto;
      padding: 48px 24px 80px;
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 40px;
      align-items: start;
    }

    /* Hide cat-bar scrollbar while keeping scroll */
    .cat-bar { -ms-overflow-style: none; scrollbar-width: none; }
    .cat-bar::-webkit-scrollbar { display: none; }

    /* Responsive */
    @media (max-width: 960px) {
      .nav-links { display: none; }
      .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
      .footer-links { flex-wrap: wrap; }
    }

    @media (max-width: 860px) {
      .page-layout { grid-template-columns: 1fr; padding: 36px 20px 64px; }
      .sidebar { display: none; }
    }

    @media (max-width: 480px) {
      .hero { padding: 52px 16px 44px; }
      .hero-search { max-width: 100%; }
      .cat-pill { padding: 12px 12px; font-size: 12px; gap: 5px; }
      .cat-pill svg { display: none; }
      .page-layout { padding: 28px 16px 56px; }
      .footer-inner { align-items: center; text-align: center; }
      .footer-links { justify-content: center; }
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: 72px;
    }

    .sidebar-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 12px;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
    }

    .sidebar-link:hover { background: var(--secondary); color: var(--foreground); }
    .sidebar-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

    .sidebar-link svg { width: 13px; height: 13px; flex-shrink: 0; }

    .sidebar-count {
      margin-left: auto;
      font-size: 11px;
      background: var(--secondary);
      color: var(--muted);
      padding: 1px 7px;
      border-radius: 5px;
      font-weight: 600;
    }

    .sidebar-link.active .sidebar-count {
      background: rgba(30,58,138,0.12);
      color: var(--primary);
    }

    /* FAQ Content */
    .faq-content { min-width: 0; }

    /* Section */
    .faq-section {
      margin-bottom: 48px;
    }

    .faq-section:last-child { margin-bottom: 0; }

    .faq-section-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }

    .faq-section-icon {
      width: 34px;
      height: 34px;
      background: var(--primary-light);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .faq-section-icon svg { color: var(--primary); }

    .faq-section-title {
      font-size: 17px;
      font-weight: 700;
      color: var(--foreground);
    }

    .faq-section-count {
      margin-left: auto;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--muted);
      background: var(--secondary);
      padding: 3px 10px;
      border-radius: 5px;
    }

    /* Accordion items */
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .faq-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 5px;
      overflow: hidden;
      transition: border-color 0.15s;
    }

    .faq-item.open { border-color: #C4DDFC; }

    .faq-question {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 18px;
      background: none;
      border: none;
      text-align: left;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      color: var(--foreground);
      cursor: pointer;
      transition: background 0.1s;
    }

    .faq-question:hover { background: var(--secondary); }
    .faq-item.open .faq-question { background: var(--primary-light); color: var(--primary); }

    .faq-chevron {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      color: var(--muted);
      transition: transform 0.2s;
    }

    .faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

    .faq-answer {
      display: none;
      padding: 0 18px 18px;
      font-size: 14px;
      color: var(--muted);
      line-height: 1.7;
      border-top: 1px solid var(--border);
    }

    .faq-item.open .faq-answer { display: block; }

    .faq-answer p { margin-top: 14px; }
    .faq-answer p:first-child { margin-top: 14px; }

    .faq-answer strong { color: var(--foreground); font-weight: 600; }

    .faq-answer ul {
      margin-top: 10px;
      padding-left: 18px;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .faq-answer ol {
      margin-top: 10px;
      padding-left: 18px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .faq-answer li { font-size: 13.5px; line-height: 1.6; }

    .answer-note {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      background: var(--primary-light);
      border-radius: 5px;
      padding: 11px 14px;
      margin-top: 12px;
      font-size: 13px;
      color: var(--primary-dark);
      line-height: 1.55;
    }

    .answer-note svg { flex-shrink: 0; color: var(--primary); margin-top: 1px; }

    .answer-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--primary-light);
      color: var(--primary);
      padding: 3px 10px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 600;
    }

    /* No results */
    .no-results {
      text-align: center;
      padding: 48px 24px;
      color: var(--muted);
      font-size: 14px;
      display: none;
    }

    .no-results svg { margin: 0 auto 12px; display: block; color: var(--border); }

    /* Contact CTA */
    .contact-cta {
      margin-top: 48px;
      background: var(--primary-dark);
      border-radius: 5px;
      padding: 40px 36px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .contact-cta::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.2), transparent 60%);
    }

    .contact-cta-inner { position: relative; }

    .contact-cta h3 {
      font-size: 20px;
      font-weight: 700;
      color: white;
      margin-bottom: 8px;
    }

    .contact-cta p {
      font-size: 14px;
      color: rgba(255,255,255,0.65);
      margin-bottom: 20px;
      line-height: 1.55;
    }

    .btn-outline-white {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 10px 22px;
      border: 1.5px solid rgba(255,255,255,0.3);
      color: white;
      border-radius: 5px;
      font-size: 13.5px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s, border-color 0.15s;
    }

    .btn-outline-white:hover {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.5);
    }
