/* Language Visibility Control */
#faq[data-lang="en"] .lang-th {
    display: none;
}

#faq[data-lang="th"] .lang-en {
    display: none;
}

#faq.faq-section {
    max-width: 840px;
    margin: 60px auto;
    padding: 44px 24px;
    border-radius: 28px;
    background: radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.08), transparent 55%),
                radial-gradient(circle at 88% 90%, rgba(14, 165, 233, 0.08), transparent 55%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", Inter, sans-serif;
}

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

#faq .faq-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 8px 0;
}

#faq .faq-header p {
    font-size: 0.98rem;
    color: #475569;
    margin: 0 0 18px 0;
}

/* Frosted Glass EN / TH Switcher */
#faq .faq-lang-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

#faq .lang-btn {
    border: none;
    background: transparent;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

#faq .lang-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

/* Filter Pills */
#faq .faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#faq .faq-tab {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

#faq .faq-tab:hover {
    background: rgba(255, 255, 255, 0.88);
}

#faq .faq-tab.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* Group Divider Title */
#faq .faq-group-title {
    margin: 20px 0 4px 4px;
}

#faq .faq-group-title:first-child {
    margin-top: 0;
}

#faq .faq-group-title h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
    margin: 0;
}

#faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Glass Accordion Card */
#faq .faq-item {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, background 0.22s ease;
    overflow: hidden;
}

#faq .faq-item:hover,
#faq .faq-item[open] {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}

#faq .faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

#faq .faq-item summary::-webkit-details-marker {
    display: none;
}

#faq .faq-q {
    font-size: 1.02rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

/* Toggle Icon */
#faq .faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.28s ease, background 0.22s ease;
}

#faq .faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: #2563eb;
    color: #ffffff;
}

/* Answer Area */
#faq .faq-content {
    padding: 0 22px 20px 22px;
}

#faq .faq-content p {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.96rem;
    line-height: 1.65;
    color: #334155;
}