/* FAQ PAGE STYLES - Single-Surface Editorial Architecture */

:root {
    interpolate-size: allow-keywords;
}

/* --- 1. HERO SECTION --- */
.faq-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -60px;
    padding-top: 60px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.faq-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.faq-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}

.faq-hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Search Box */
.faq-search-box {
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 540px;
    margin: 18px auto 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
}

.faq-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 8px;
}

.faq-search-input {
    border: none;
    flex: 1;
    padding: 8px 4px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    color: #0f172a;
}

.faq-search-input::placeholder {
    color: #94a3b8;
}

.faq-search-clear {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.faq-search-clear:hover {
    color: #ef4444;
}

/* Quick Question Chips */
.faq-quick-chips {
    max-width: 580px;
    margin: 12px auto 0;
}

.quick-chip-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
}

.faq-quick-chip {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-quick-chip:hover {
    background: #ffffff;
    color: #0284c7;
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- 2. BREADCRUMB --- */
.faq-breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
}

.faq-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-breadcrumb .separator {
    color: #cbd5e1;
}

/* --- 3. CATEGORY PILLS (Single-Surface Flat Filter) --- */
.faq-pills-bar {
    width: 100%;
}

.faq-pills-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px 2px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

/* Custom sleek horizontal scrollbar for desktop */
.faq-pills-scroll::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.faq-pills-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

.faq-pills-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.faq-pills-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.faq-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.faq-pill:hover {
    border-color: #cbd5e1;
    color: var(--primary-color);
    background-color: #f8fafc;
}

.faq-pill.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.faq-pill .pill-count {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-left: 4px;
}

/* --- 4. ACCORDION & TOPIC CATEGORIES (Single-Surface Editorial Architecture) --- */

/* Featured Questions Section */
.faq-featured-section {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.featured-section-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fee2e2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

.featured-section-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.faq-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.faq-featured-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.faq-featured-card:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.featured-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.featured-topic-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.topic-tag-thoi_tiet {
    color: #b45309;
    background-color: #fef3c7;
}

.topic-tag-di_chuyen {
    color: #0369a1;
    background-color: #e0f2fe;
}

.topic-tag-an_uong {
    color: #b91c1c;
    background-color: #fee2e2;
}

.topic-tag-luu_y {
    color: #6d28d9;
    background-color: #ede9fe;
}

.featured-card-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.faq-featured-card:hover .featured-card-arrow {
    color: #0284c7;
    transform: translateY(2px);
}

.featured-card-question {
    font-size: 0.88rem;
    font-weight: 750;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 4px;
}

.featured-card-preview {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Categorized Topic Blocks */
.faq-topics-container {
    display: flex;
    flex-direction: column;
}

.faq-topic-block {
    margin-bottom: 24px;
}

.faq-topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 2px 4px;
}

.topic-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topic-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.topic-title-wrap {
    min-width: 0;
}

.topic-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.topic-count-pill {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}

.topic-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.faq-topic-items {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.btn-topic-expand {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 50px;
    padding: 6px 18px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-topic-expand:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

/* Pulsing highlight when jumping to FAQ */
@keyframes faqPulseHighlight {
    0% {
        background-color: #fef08a;
    }
    100% {
        background-color: #ffffff;
    }
}

.faq-item-highlight {
    animation: faqPulseHighlight 1.8s ease-out;
}

/* Search Summary Banner */
.faq-search-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 8px 14px;
}

/* Single FAQ Accordion Items */
.faq-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: all 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item.active {
    background-color: #ffffff;
}

.faq-header {
    padding: 15px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    user-select: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: background-color 0.15s ease;
}

.faq-header:hover {
    background-color: #f8fafc;
}

.faq-question-text {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.faq-toggle-icon {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-left: 8px;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
    background-color: #f8fafc;
}

.faq-content {
    padding: 16px 20px;
    color: #475569;
    line-height: 1.7;
    font-size: 0.92rem;
    border-top: 1px solid #f1f5f9;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* --- 5. DESKTOP CONVERSION SIDEBAR --- */
.faq-desktop-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
}

.faq-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

/* Sidebar TOC Jump List */
.faq-toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.faq-toc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.faq-toc-item:hover {
    background-color: #f8fafc;
    color: #0284c7;
    transform: translateX(2px);
}

.toc-icon {
    width: 20px;
    text-align: center;
    font-size: 0.92rem;
}

.toc-name {
    flex: 1;
    margin-left: 4px;
}

.toc-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 12px;
    font-weight: 700;
}

.sidebar-avatar-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.sidebar-card-header {
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-card-title {
    font-size: 0.9rem;
    font-weight: 750;
    color: #0f172a;
    display: flex;
    align-items: center;
}

.sidebar-mini-service {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.sidebar-mini-service:hover {
    background-color: #f8fafc;
}

.mini-service-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    position: relative;
}

.mini-service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
}

.mini-service-info {
    min-width: 0;
    flex: 1;
}

.mini-service-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-service-price {
    font-size: 0.84rem;
    font-weight: 800;
    color: #dc2626;
}

.mini-service-price small {
    font-weight: 500;
    color: #64748b;
    font-size: 0.72rem;
    margin-left: 2px;
}

/* --- 6. BOTTOM CTA & ASK QUESTION (Mobile & Desktop) --- */
.faq-help-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.help-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Compact Mobile Support Strip */
.faq-mobile-support-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.faq-mobile-support-strip .support-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.faq-mobile-support-strip .support-title {
    font-size: 0.86rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
}

.faq-mobile-support-strip .support-sub {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 2px;
}

/* --- 7. MOBILE RESPONSIVE --- */
@media (max-width: 767.98px) {
    .faq-hero {
        height: 230px;
        margin-top: 0;
        padding-top: 15px;
    }
    .faq-hero-title {
        font-size: 1.55rem;
    }
    .faq-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    .faq-search-box {
        padding: 4px 14px;
        margin-top: 10px;
    }
    .faq-search-input {
        font-size: 0.88rem;
    }
    .faq-quick-chips {
        margin-top: 8px;
        gap: 6px !important;
    }
    .faq-quick-chip {
        font-size: 0.74rem;
        padding: 2px 9px;
    }
    .faq-page-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 14px !important;
        padding-bottom: 85px !important;
    }
    .faq-pills-bar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #ffffff;
        padding-block: 8px;
    }
    .faq-pills-scroll {
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .faq-pills-scroll::-webkit-scrollbar {
        display: none;
    }
    .faq-pill {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    /* Featured FAQs Grid on Mobile */
    .faq-featured-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .faq-featured-section {
        padding: 12px 14px;
    }

    /* Categorized Topic Blocks on Mobile */
    .faq-topic-header {
        margin-bottom: 8px;
    }
    .topic-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .topic-title {
        font-size: 0.98rem;
    }
    .topic-desc {
        font-size: 0.75rem;
    }
    .btn-topic-expand {
        width: 100%;
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    /* Single-Surface Items on Mobile */
    .faq-topic-items {
        border-radius: 12px;
    }
    .faq-header {
        padding: 13px 14px;
        font-size: 0.88rem;
    }
    .faq-content {
        padding: 12px 14px;
        font-size: 0.86rem;
    }
}