/* FAQ Page Styling */
.faq-page-shell {
    max-width: 1040px;
    margin: 30px auto 50px;
    padding: 0 18px;
}

.faq-hero-card {
    background: linear-gradient(135deg, #123e6b 0%, #1a6096 100%);
    color: #fff;
    border-radius: 16px;
    padding: 34px 38px;
    box-shadow: 0 10px 30px rgba(18, 62, 107, 0.18);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.faq-hero-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 181, 68, 0.22) 0%, rgba(242, 181, 68, 0) 70%);
    pointer-events: none;
}

.faq-eyebrow {
    display: inline-block;
    background: rgba(242, 181, 68, 0.22);
    color: #ffd875;
    border: 1px solid rgba(242, 181, 68, 0.4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.faq-hero-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.35;
    color: #ffffff;
    font-weight: 800;
}

.faq-hero-card h1 small {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #dbeafe;
    margin-top: 4px;
}

.faq-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 820px;
}

/* Controls Bar: Search & Category Filter */
.faq-controls-card {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-search-box {
    position: relative;
    width: 100%;
}

.faq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.faq-search-input:focus {
    outline: none;
    border-color: #1a6096;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 96, 150, 0.15);
}

.faq-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Category Pills */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.faq-cat-pill {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.faq-cat-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.faq-cat-pill.active {
    background: #123e6b;
    color: #ffffff;
    border-color: #123e6b;
    box-shadow: 0 2px 8px rgba(18, 62, 107, 0.25);
}

.faq-expand-all-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #123e6b;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-expand-all-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Group Sections */
.faq-group {
    margin-bottom: 28px;
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.faq-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    font-size: 16px;
}

.faq-group-header h2 {
    margin: 0;
    font-size: 19px;
    color: #123e6b;
    font-weight: 800;
}

.faq-group-header h2 small {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

/* Modern Accordion Items */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: #b5c7d9;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.faq-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.08);
}

.faq-question-btn {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    transition: background 0.2s;
    user-select: none;
}

.faq-question-btn::-webkit-details-marker {
    display: none;
}

.faq-item[open] .faq-question-btn {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.faq-number-badge {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: #1e3a5f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.faq-item[open] .faq-number-badge {
    background: #123e6b;
    color: #ffffff;
}

.faq-question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

.faq-question-text .faq-q-en {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-top: 3px;
}

.faq-chevron {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    transition: transform 0.25s ease;
    margin-top: 2px;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #123e6b;
}

.faq-answer-body {
    padding: 18px 22px 20px 62px;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    background: #ffffff;
}

.faq-answer-body .faq-ans-ta {
    color: #1e293b;
    font-weight: 500;
}

.faq-answer-body .faq-ans-en {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.faq-answer-body ul, .faq-answer-body ol {
    margin: 8px 0;
    padding-left: 20px;
}

.faq-answer-body li {
    margin-bottom: 4px;
}

/* Empty search result state */
.faq-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
}

.faq-empty-state strong {
    display: block;
    font-size: 17px;
    color: #1e293b;
    margin-bottom: 6px;
}

/* Bottom help card */
.faq-help-card {
    background: #f8fafc;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.faq-help-info h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #123e6b;
}

.faq-help-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.faq-help-action a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #123e6b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.faq-help-action a:hover {
    background: #0f3054;
}

@media(max-width: 768px) {
    .faq-hero-card {
        padding: 24px 20px;
    }
    .faq-hero-card h1 {
        font-size: 22px;
    }
    .faq-hero-card h1 small {
        font-size: 15px;
    }
    .faq-answer-body {
        padding: 14px 16px 18px;
    }
    .faq-expand-all-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .faq-help-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
