/* faq.css — Cinematic FAQ / Support pages (faq- prefix) */

/* ─── PAGE OVERRIDES ──────────────────────────────────── */
.faq-page .secondary-nav { display: none; }
.faq-page .navbar-overlap::after { display: none; }

/* ─── HEADER NAV ──────────────────────────────────────── */
.faq-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}
.faq-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 56px;
    position: relative;
}
/* Ensure profile dropdown renders above everything */
.faq-header .nav-item.dropdown { position: relative; }
.faq-header .dropdown-menu { z-index: 1050; }
.faq-header-logo { flex-shrink: 0; display: flex; align-items: center; }
.faq-header-logo img { height: 28px; }
.faq-header-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.faq-header-nav::-webkit-scrollbar { display: none; }
.faq-header-nav-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.faq-header-nav-item:hover {
    background: #f1f3f5;
    color: #333;
    text-decoration: none;
}
.faq-header-nav-item.active {
    background: #1a1a2e;
    color: #fff;
}
.faq-header-nav-item.active:hover {
    background: #2d2d44;
    color: #fff;
    text-decoration: none;
}

/* ─── HERO (support home) ─────────────────────────────── */
.faq-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-hero-bg {
    position: absolute;
    inset: 0;
}
.faq-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.faq-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.95) 0%, rgba(10,10,26,0.6) 50%, rgba(10,10,26,0.4) 100%);
    pointer-events: none;
}
.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px 48px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.faq-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.faq-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 28px 0;
}

/* ─── HERO SEARCH (dark context) ──────────────────────── */
.faq-hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.faq-hero-search .faq-search-wrapper {
    position: relative;
}
.faq-hero-search .faq-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.faq-hero-search .faq-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.faq-hero-search .faq-search-input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}
.faq-hero-search .faq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: 1;
}

/* ─── STANDALONE SEARCH (white context) ───────────────── */
.faq-search-bar {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.faq-search-bar .faq-search-wrapper {
    position: relative;
    width: 100%;
    display: block;
}
.faq-search-bar .faq-search-input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 12px 18px 12px 44px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.faq-search-bar .faq-search-input::placeholder {
    color: #999;
}
.faq-search-bar .faq-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.faq-search-bar .faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 1;
}

/* ─── SEARCH RESULTS DROPDOWN ─────────────────────────── */
.faq-search-wrapper {
    position: relative;
    width: 100%;
}
.faq-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
}
.faq-search-results .list-group-item {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    transition: background 0.15s;
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
}
.faq-search-results .list-group-item:last-child { border-bottom: none; }
.faq-search-results .list-group-item.active,
.faq-search-results .list-group-item:hover {
    background: #f8f9fa;
    text-decoration: none;
}
.faq-search-results .question-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
    color: #1a1a2e;
    text-align: left;
}
.faq-search-results .question-answer {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #888;
    text-align: left;
}

/* ─── ZONE BAR ────────────────────────────────────────── */
.faq-zone-bar {
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a3e;
}
.faq-zone-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.faq-zone-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.faq-zone-card:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
}
.faq-zone-card svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

/* ─── CONTENT LAYOUT ──────────────────────────────────── */
.faq-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px 24px 40px;
    width: 100%;
    box-sizing: border-box;
}
.faq-layout {
    display: flex;
    gap: 28px;
}
.faq-main {
    flex: 0 0 calc(66.667% - 14px);
    min-width: 0;
}
.faq-sidebar {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

/* ─── SECTION TITLES ──────────────────────────────────── */
.faq-section {
    margin-bottom: 36px;
}
.faq-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-section-title svg { opacity: 0.4; }

/* ─── BREADCRUMB ──────────────────────────────────────── */
.faq-breadcrumb {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 24px 0;
    font-size: 13px;
    color: #999;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.faq-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}
.faq-breadcrumb a:hover { text-decoration: underline; }
.faq-breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

/* ─── CATEGORY CARDS (FAQ main grid) ──────────────────── */
.faq-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.faq-category-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.faq-category-card-header {
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-category-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.faq-category-card-zone {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    background: #f0f4ff;
    color: #3b82f6;
    flex-shrink: 0;
}
.faq-category-card-body {
    padding: 12px 20px;
}
.faq-category-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-category-card-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}
.faq-category-card-list li:last-child { border-bottom: none; }
.faq-category-card-list a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.15s;
}
.faq-category-card-list a:hover { color: #3b82f6; }
.faq-category-card-footer {
    padding: 10px 20px 14px;
    border-top: 1px solid #f0f0f0;
}
.faq-category-see-all {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}
.faq-category-see-all:hover { text-decoration: underline; }

/* ─── FAQ LIST ITEMS ──────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-list-item {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.faq-list-item:first-child { padding-top: 0; }
.faq-list-item:last-child { border-bottom: none; }
.faq-list-item:hover { text-decoration: none; color: inherit; }
.faq-list-item-question {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    transition: color 0.15s;
}
.faq-list-item:hover .faq-list-item-question { color: #3b82f6; }
.faq-list-item-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── SIDEBAR CARDS ───────────────────────────────────── */
.faq-sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.faq-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin: 0 0 12px 0;
}
.faq-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
}
.faq-sidebar-list li:last-child { border-bottom: none; }
.faq-sidebar-list a {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.15s;
}
.faq-sidebar-list a:hover { color: #3b82f6; }
.faq-sidebar-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}
.faq-sidebar-link:hover { text-decoration: underline; }
.faq-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.faq-sidebar-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 10px;
    background: #f0f4ff;
    color: #3b82f6;
    text-decoration: none;
    transition: background 0.15s;
}
a.faq-sidebar-tag:hover {
    background: #e0ecff;
    text-decoration: none;
    color: #3b82f6;
}
.faq-sidebar-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    margin: 0 0 8px 0;
}
.faq-sidebar-zone {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

/* ─── QUESTION DETAIL ─────────────────────────────────── */
.faq-question-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 24px 0;
    line-height: 1.3;
}
.faq-answer {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}
.faq-answer img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}
.faq-answer img.align-left, .faq-answer img[style*="float: left"] {
    float: left !important;
    margin: 0 15px 10px 0 !important;
}
.faq-answer img.align-right, .faq-answer img[style*="float: right"] {
    float: right !important;
    margin: 0 0 10px 15px !important;
}
.faq-answer img.align-center {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
}
.faq-answer img:not([class]):not([style*="float"]) {
    float: left;
    margin: 0 15px 10px 0;
}
.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ─── NOT FOUND ───────────────────────────────────────── */
.faq-not-found {
    text-align: center;
    padding: 60px 20px;
}
.faq-not-found h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}
.faq-not-found p {
    font-size: 15px;
    color: #666;
    margin: 0 0 20px 0;
}
.faq-not-found ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}
.faq-not-found ul li {
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}
.faq-not-found ul li::before {
    content: "→ ";
    color: #3b82f6;
    font-weight: 600;
}

/* ─── CTA SECTION ─────────────────────────────────────── */
.faq-cta {
    background: #1a1a2e;
    padding: 48px 0;
}
.faq-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.faq-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}
.faq-cta-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.faq-cta-btn:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* ─── PAGE HEADER (FAQ main, centered) ────────────────── */
.faq-page-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0 24px 0;
}
.faq-page-header-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}
.faq-page-header-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .faq-hero { min-height: 280px; }
    .faq-hero-title { font-size: 26px; }
    .faq-hero-content { padding: 40px 16px 36px; }
    .faq-content { padding: 20px 16px; }
    .faq-layout { flex-direction: column; }
    .faq-main, .faq-sidebar { flex: none; }
    .faq-cards-grid { grid-template-columns: 1fr; }
    .faq-zone-bar-inner { padding: 10px 16px; gap: 8px; }
    .faq-zone-card { padding: 8px 16px; font-size: 13px; }
    .faq-question-title { font-size: 22px; }
    .faq-cta-inner { flex-direction: column; text-align: center; gap: 20px; }
    .faq-header-inner { gap: 12px; padding: 0 16px; }
    .faq-breadcrumb { padding: 12px 16px 0; }
    .faq-page-header-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .faq-hero { min-height: 240px; }
    .faq-hero-title { font-size: 22px; }
    .faq-hero-subtitle { font-size: 14px; }
}
