/* FAQ APTIS — cream / purple, đồng bộ app */

.faq-page {
    --faq-bg: #f7f5f1;
    --faq-ink: #14121a;
    --faq-muted: #5c5666;
    --faq-accent: #3d2a6d;
    --faq-soft: #ede8f6;
    --faq-line: #e4dfd6;
    background: var(--faq-bg);
    color: var(--faq-ink);
    padding-bottom: 3.5rem;
    min-height: 60vh;
}

.faq-container {
    width: min(880px, calc(100% - 2rem));
    margin: 0 auto;
}

.faq-hero {
    padding: 1.5rem 0 0.5rem;
}

.faq-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--faq-muted);
    margin-bottom: 1.25rem;
}

.faq-crumb a {
    color: var(--faq-accent);
    text-decoration: none;
    font-weight: 650;
}

.faq-crumb a:hover {
    text-decoration: underline;
}

.faq-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.25rem;
    align-items: center;
}

.faq-kicker {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--faq-soft);
    color: var(--faq-accent);
    font-size: 0.78rem;
    font-weight: 750;
    margin-bottom: 0.75rem;
}

.faq-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--faq-ink);
}

.faq-accent {
    color: var(--faq-accent);
}

.faq-lead {
    margin: 0.65rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--faq-muted);
    max-width: 36rem;
}

.faq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.faq-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.faq-page .btn-primary {
    background: var(--faq-accent);
    color: #fff !important;
    border-color: var(--faq-accent);
    box-shadow: 0 4px 14px rgba(61, 42, 109, 0.22);
}

.faq-page .btn-primary:hover {
    background: #2f2054;
}

.faq-page .btn-outline {
    background: #fff;
    color: var(--faq-accent) !important;
    border-color: var(--faq-accent);
}

.faq-page .btn-outline:hover {
    background: var(--faq-soft);
}

.faq-hero-side {
    display: flex;
    justify-content: flex-end;
}

.faq-hero-owl {
    width: min(200px, 38vw);
    height: auto;
    object-fit: contain;
    opacity: 0.9;
}

.faq-body {
    margin-top: 1.5rem;
}

.faq-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.faq-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: min(100%, 240px);
    padding: 0.55rem 0.9rem;
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 999px;
    color: var(--faq-accent);
    box-shadow: 0 4px 14px rgba(20, 18, 26, 0.04);
}

.faq-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    color: var(--faq-ink);
    min-width: 0;
}

.faq-search input::placeholder {
    color: #9a94a8;
}

.faq-count {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--faq-muted);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(20, 18, 26, 0.04);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-weight: 750;
    color: var(--faq-ink);
    line-height: 1.35;
}

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

.faq-item-q {
    flex: 1;
    min-width: 0;
}

.faq-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--faq-soft);
    color: var(--faq-accent);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-item-icon {
    transform: rotate(180deg);
    background: var(--faq-accent);
    color: #fff;
}

.faq-item-a {
    padding: 0 1.15rem 1.1rem;
    border-top: 1px solid #efebe4;
}

.faq-item-a p {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--faq-muted);
}

.faq-empty {
    margin: 1rem 0 0;
    padding: 1.25rem;
    text-align: center;
    color: var(--faq-muted);
    background: #fff;
    border: 1px dashed var(--faq-line);
    border-radius: 14px;
}

.faq-related {
    margin-top: 2.5rem;
}

.faq-related h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--faq-ink);
}

.faq-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.faq-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.faq-related-card:hover {
    border-color: #d4c8ef;
    box-shadow: 0 8px 20px rgba(61, 42, 109, 0.08);
}

.faq-related-card strong {
    color: var(--faq-accent);
    font-size: 0.95rem;
}

.faq-related-card span {
    font-size: 0.82rem;
    color: var(--faq-muted);
}

.faq-cta {
    margin-top: 2rem;
}

.faq-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.4rem;
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(20, 18, 26, 0.05);
}

.faq-cta-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--faq-accent);
}

.faq-cta-card p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 32rem;
}

@media (max-width: 720px) {
    .faq-hero-grid {
        grid-template-columns: 1fr;
    }
    .faq-hero-side {
        justify-content: center;
        order: -1;
    }
    .faq-hero-owl {
        width: 140px;
        opacity: 0.75;
    }
    .faq-related-grid {
        grid-template-columns: 1fr;
    }
    .faq-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
