/**
 * FAQ - /faq (CSS riêng, không ảnh hưởng style hiện tại)
 * Accordion thuần CSS transition + JS điều khiển aria-expanded.
 */

.sv-faq-page {
    padding: 48px 0 80px;
    background:
        radial-gradient(700px 340px at 8% 4%, rgba(186, 230, 253, .5), transparent 60%),
        radial-gradient(600px 300px at 96% 96%, rgba(224, 242, 254, .6), transparent 60%),
        #f4f9fe;
    min-height: 60vh;
}

/* ---------- Hero ---------- */
.sv-faq-hero { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.sv-faq-breadcrumb {
    display: flex; gap: 8px; justify-content: center; align-items: center;
    font-size: 13px; color: #64748b; margin-bottom: 14px;
}
.sv-faq-breadcrumb a { color: #0284c7; text-decoration: none; font-weight: 600; }
.sv-faq-breadcrumb a:hover { text-decoration: underline; }
.sv-faq-hero h1 {
    font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #0f172a;
    margin: 0 0 12px; line-height: 1.25;
}
.sv-faq-intro { font-size: 15.5px; color: #475569; line-height: 1.65; margin: 0; }

/* ---------- Toolbar: search + filter ---------- */
.sv-faq-toolbar { max-width: 860px; margin: 0 auto 26px; display: flex; flex-direction: column; gap: 14px; }
.sv-faq-search { position: relative; }
.sv-faq-search .fa-magnifying-glass {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 15px; pointer-events: none;
}
.sv-faq-search-input {
    width: 100%; box-sizing: border-box; padding: 13px 18px 13px 44px;
    border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 15px; color: #0f172a;
    background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.sv-faq-search-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.sv-faq-search-input::placeholder { color: #94a3b8; }

.sv-faq-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sv-faq-chip {
    border: 1.5px solid #cbd5e1; background: #fff; color: #475569;
    font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
    cursor: pointer; transition: all .18s ease; font-family: inherit;
}
.sv-faq-chip:hover { border-color: #0ea5e9; color: #0284c7; }
.sv-faq-chip.is-active { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #fff; border-color: transparent; }

/* ---------- Groups ---------- */
.sv-faq-groups { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.sv-faq-group.is-hidden { display: none; }
.sv-faq-group-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 800; color: #0f172a; margin: 0 0 14px;
}
.sv-faq-group-title i { color: #0ea5e9; font-size: 17px; }

/* ---------- Accordion item ---------- */
.sv-faq-list { display: flex; flex-direction: column; gap: 10px; }
.sv-faq-item {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.sv-faq-item:hover { border-color: #7dd3fc; }
.sv-faq-item.is-open { border-color: #0ea5e9; box-shadow: 0 4px 14px rgba(14, 165, 233, .10); }
.sv-faq-item.is-hidden { display: none; }

.sv-faq-q { margin: 0; font-size: inherit; }
.sv-faq-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%; box-sizing: border-box; padding: 15px 18px;
    background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.sv-faq-btn-text { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.5; flex: 1 1 auto; }
.sv-faq-icon { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: #e0f2fe; }
.sv-faq-icon::before, .sv-faq-icon::after {
    content: ""; position: absolute; background: #0284c7; border-radius: 2px;
    transition: transform .22s ease, opacity .22s ease;
}
.sv-faq-icon::before { width: 12px; height: 2px; left: 5px; top: 10px; }
.sv-faq-icon::after { width: 2px; height: 12px; left: 10px; top: 5px; }
.sv-faq-item.is-open .sv-faq-icon { background: #0284c7; }
.sv-faq-item.is-open .sv-faq-icon::before, .sv-faq-item.is-open .sv-faq-icon::after { background: #fff; }
.sv-faq-item.is-open .sv-faq-icon::after { transform: scaleY(0); opacity: 0; } /* + -> - */

/* ---------- Answer ----------
 * Mặc định (không JS): hiện đầy đủ để nội dung đọc được / SEO an toàn.
 * Khi JS chạy (root .sv-faq-js): thu gọn, điều khiển qua max-height + hidden.
 */
.sv-faq-a { overflow: hidden; }
.sv-faq-js .sv-faq-a { max-height: 0; transition: max-height .28s ease; }
.sv-faq-js .sv-faq-item.is-open .sv-faq-a { max-height: 600px; }
.sv-faq-a-inner {
    padding: 0 18px 16px; font-size: 14.5px; color: #475569; line-height: 1.7;
    border-top: 1px dashed #e2e8f0; margin: 0 0 0; padding-top: 14px;
}
.sv-faq-a-inner p { margin: 0 0 8px; }
.sv-faq-a-inner p:last-child { margin-bottom: 0; }
.sv-faq-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #0284c7; font-weight: 700; text-decoration: none; font-size: 14px;
}
.sv-faq-link:hover { text-decoration: underline; }
.sv-faq-link i { font-size: 12px; }

/* ---------- Empty / no-result ---------- */
.sv-faq-empty, .sv-faq-noresult {
    max-width: 860px; margin: 0 auto; text-align: center; padding: 46px 20px;
    background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; color: #64748b;
}
.sv-faq-noresult i { font-size: 30px; color: #94a3b8; margin-bottom: 10px; display: block; }
.sv-faq-noresult p { margin: 0; font-size: 14.5px; line-height: 1.7; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .sv-faq-page { padding: 30px 0 56px; }
    .sv-faq-hero { margin-bottom: 24px; }
    .sv-faq-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .sv-faq-filters::-webkit-scrollbar { display: none; }
    .sv-faq-chip { white-space: nowrap; flex: 0 0 auto; }
    .sv-faq-btn { padding: 13px 14px; }
    .sv-faq-btn-text { font-size: 14px; }
    .sv-faq-a-inner { padding: 12px 14px 14px; font-size: 14px; }
}
