.faq-section {
    background: #f8f9fa;
    color: #212529;
    padding: 30px 0 60px;
    min-height: 100vh;
    overflow-x: hidden;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.faq-title .text-accent {
    color: #ff6b6b;
}

.faq-search-wrap {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #dee2e6;
    border-radius: 60px;
    font-family: inherit;
    font-size: 1rem;
    background: #ffffff;
    color: #212529;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.faq-search-input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.12);
}
.faq-search-input::placeholder {
    color: #adb5bd;
}

.faq-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.2rem;
    pointer-events: none;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 40px;
}

.faq-cat-btn {
    padding: 6px 18px;
    border-radius: 40px;
    border: 2px solid #dee2e6;
    background: transparent;
    color: #495057;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.faq-cat-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.04);
}
.faq-cat-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.faq-item {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.faq-item.hidden {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease;
    gap: 16px;
}
.faq-question:hover {
    background: #f8f9fa;
}

.faq-item.open .faq-question {
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
}

.faq-question-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.5;
}

.faq-number {
    color: #ff6b6b;
    font-weight: 700;
    margin-left: 6px;
}

.faq-question-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #adb5bd;
    transition: transform 0.3s ease, color 0.3s;
    width: 24px;
    text-align: center;
}
.faq-item.open .faq-question-icon {
    transform: rotate(180deg);
    color: #ff6b6b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
    color: #495057;
    line-height: 1.9;
    font-size: 0.85rem;
}
.faq-item.open .faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    margin: 0 0 12px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

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

.faq-answer p.faq-answer-last {
    margin-bottom: 15px;
}

.faq-answer .article-highlight {
    background: linear-gradient(120deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.03) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.faq-answer .article-strong {
    color: #1a1a2e;
    font-weight: 700;
}
.faq-answer .article-link {
    color: #ff6b6b;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}
.faq-answer .article-link:hover {
    color: #ee5a24;
    text-decoration-color: #ee5a24;
}
.faq-answer .article-code-inline {
    font-family: 'Courier New', Courier, monospace;
    background: #e9ecef;
    color: #c0392b;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
    direction: ltr;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}
.faq-answer ul,
.faq-answer ol {
    margin: 10px 0 14px;
    padding-right: 24px;
}
.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer .article-tip-box {
    margin: 18px 0;
    padding: 14px 20px;
    border-radius: 16px;
    border-right: 5px solid #48dbfb;
    background: #eef8fc;
    color: #1a2b38;
}
.faq-answer .article-tip-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0c7b93;
    margin: 0 0 6px;
}
.faq-answer .article-tip-box p {
    margin: 0;
}

.faq-answer .article-success-box {
    border-right-color: #2ecc71;
    background: #e6f7ed;
    color: #0f2b1a;
}
.faq-answer .article-success-box .article-tip-box-title {
    color: #1a7a3a;
}

#faqNoResults {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #6c757d;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 1.8rem;
    }
    .faq-question-text {
        font-size: 0.85rem;
    }
    .faq-answer {
        font-size: 0.8rem;
    }
    .faq-question {
        padding: 14px 18px;
    }
    .faq-item.open .faq-answer {
        padding: 0 18px 16px;
    }
    .faq-cat-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    .faq-categories {
        gap: 6px 8px;
    }
    .faq-search-input {
        font-size: 0.95rem;
        padding: 12px 16px 12px 44px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.5rem;
    }
    .faq-question-text {
        font-size: 0.8rem;
    }
    .faq-answer {
        font-size: 0.78rem;
    }
    .faq-question {
        padding: 12px 14px;
    }
    .faq-item.open .faq-answer {
        padding: 0 14px 14px;
    }
    .faq-cat-btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .faq-categories {
        gap: 4px 6px;
    }
    .faq-search-input {
        font-size: 0.9rem;
        padding: 10px 14px 10px 38px;
    }
    .faq-number {
        margin-left: 4px;
    }
}