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

.faq-title {
    margin-bottom: 1rem;
}

/* Stats */
.faq-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ===============================
   LIGHT THEME (DEFAULT)
=============================== */

.faq-popular,
.faq-search input,
.faq-item {
    background: #FFFFFF;
    border: 1px solid #BBC3CA;
}

/* Popular Section */
.faq-popular {
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.faq-popular h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Search */
.faq-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

/* Category */
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.faq-category-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Two columns */
.faq-category-content {
    column-count: 2;
    column-gap: 2rem;
    max-height: 5000px;
    transition: max-height 0.4s ease;
}

.faq-category:not(.open) .faq-category-content {
    max-height: 0;
    overflow: hidden;
}

/* FAQ Card */
.faq-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

/* Question */
.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

.faq-question-text {
    flex: 1;
}

/* Updated badge */
.faq-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #BBC3CA;
    opacity: 0.7;
}

/* Chevron */
.faq-chevron {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

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

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 1.25rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.faq-answer.open {
    opacity: 1;
    padding: 1rem 1.25rem;
}

/* Helpful Section */
.helpful-box {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #BBC3CA;
    font-size: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    opacity: 0.7;
}

.helpful-box span {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.helpful-box span:hover {
    opacity: 1;
}

.helpful-box.voted span {
    cursor: default;
    pointer-events: none;
}

.helpful-box span.selected {
    opacity: 1;
    font-weight: 600;
}

/* ===============================
   DARK THEME OVERRIDE
=============================== */

body.theme-dark .faq-container .faq-popular,
body.theme-dark .faq-container .faq-search input,
body.theme-dark .faq-container .faq-item {
    background-color: #313949 !important;
    border: 1px solid #FFFFFF !important;
}

body.theme-dark .faq-container .faq-badge {
    border: 1px solid #FFFFFF !important;
}

body.theme-dark .faq-container .helpful-box {
    border-top: 1px solid #FFFFFF !important;
}

/* Responsive */
@media (max-width: 992px) {
    .faq-category-content {
        column-count: 1;
    }
}
