/* 
 * FAQ CSS - Dịch Vụ SEO 247
 * Design System: Neon Dark Mode / Glassmorphism
 */

.dvs-faq-page {
    /* Base Variables inheriting from theme if available, or fallbacks */
    --faq-bg: rgba(255, 255, 255, 0.02);
    --faq-border: rgba(255, 255, 255, 0.1);
    --faq-highlight: var(--dvs-primary, #3b82f6);
    --faq-text: #94a3b8;
    --faq-title: #ffffff;
}

/* Category Tabs */
.dvs-faq-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.dvs-faq-tab {
    background: var(--faq-bg);
    border: 1px solid var(--faq-border);
    color: var(--faq-text);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dvs-faq-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dvs-faq-tab.active {
    background: var(--faq-highlight);
    color: white;
    border-color: var(--faq-highlight);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Accordion Wrapper */
.dvs-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Accordion Item */
.dvs-faq-item {
    background: var(--faq-bg);
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dvs-faq-item[open] {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(59, 130, 246, 0.02);
}

/* Summary (Question) */
.dvs-faq-question {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none; /* Remove default triangle in FF/Chrome */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--faq-title);
    transition: color 0.3s ease;
}

.dvs-faq-question::-webkit-details-marker {
    display: none; /* Remove default triangle in Safari */
}

.dvs-faq-question:hover {
    color: var(--faq-highlight);
}

/* Custom Arrow Icon */
.dvs-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.dvs-faq-icon::before {
    content: "↓";
    color: var(--faq-text);
    font-size: 14px;
    line-height: 1;
    transition: color 0.3s ease;
}

.dvs-faq-item[open] .dvs-faq-icon {
    transform: rotate(180deg);
    background: var(--faq-highlight);
}

.dvs-faq-item[open] .dvs-faq-icon::before {
    color: white;
}

/* Answer Content */
.dvs-faq-answer {
    padding: 0 24px 24px;
    color: var(--faq-text);
    font-size: 1rem;
    line-height: 1.6;
    animation: dvs-fade-down 0.4s ease forwards;
}

.dvs-faq-answer p {
    margin: 0 0 10px;
}

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

@keyframes dvs-fade-down {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Logic */
.dvs-faq-group {
    display: none;
}
.dvs-faq-group.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: dvs-fade-in 0.5s ease forwards;
}

@keyframes dvs-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .dvs-faq-question {
        font-size: 1.05rem;
        padding: 16px 20px;
    }
    .dvs-faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 20px;
    }
}
