
/* =========================================================
   Dewandaru — FAQ page (page-scoped)
   Loaded ONLY on /faq.
   Uses existing brand tokens from ab-theme.css.
   ========================================================= */


/* ---------- FAQ content section ---------- */

.ab-faq {
    padding-bottom: 80px;
}


/* ---------- FAQ banner description ---------- */

.ab-faq-hero .pager-sec-details {
    display: flex;
    float: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ab-faq-hero__copy {
    flex: 0 1 520px;
    max-width: 520px;
}

.ab-faq-hero .pager-sec-details .ab-faq-hero__copy h3 {
    float: none;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 32px !important;
    font-weight: 500;
    line-height: 1.2;
}

.ab-faq-hero__copy p {
    max-width: 520px;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ab-faq-hero .pager-sec-details > ul {
    float: none;
    flex-shrink: 0;
    margin: 14px 0 0 auto;
}


/* ---------- Category tabs (left column) ---------- */

.ab-faq__cats {
    flex-direction: column;
    margin: 0;
    border: 0;
    padding: 0;
}

.ab-faq__cats li {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.ab-faq__cats a {
    display: block;
    padding: 12px 16px;
    font-family: var(--ab-font-heading);
    font-weight: var(--ab-font-heading-weight);
    font-size: 17px;
    color: var(--ab-text-body);
    text-decoration: none;
    border: 0;
    border-radius: var(--ab-radius-sm);
    transition:
        background var(--ab-transition-fast),
        color var(--ab-transition-fast);
}

.ab-faq__cats a:hover {
    color: var(--ab-accent);
    background: transparent;
}

/* Bootstrap tab plugin toggles .active on the <a> itself */

.ab-faq__cats a.active {
    background: #EAE3D2;
    color: var(--ab-accent);
}


/* ---------- Question list (right column) ---------- */

.ab-faq__list {
    width: 100%;
}

.ab-faq__item {
    border-bottom: 1px solid var(--ab-border);
}

.ab-faq__item:last-child {
    border-bottom: 0;
}

.ab-faq__q {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.ab-faq__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-right: 16px;
    border-radius: var(--ab-radius-round);
    background: var(--ab-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ab-transition-fast);
}

.ab-faq__chevron {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--ab-white);
    transition: transform var(--ab-transition);
}

.ab-faq__q:not(.collapsed) .ab-faq__chevron {
    transform: rotate(180deg);
}

.ab-faq__text {
    font-family: var(--ab-font-heading);
    font-weight: var(--ab-font-heading-weight);
    font-size: 18px;
    line-height: var(--ab-line-height-heading);
    color: var(--ab-primary);
    letter-spacing: var(--ab-letter-spacing-heading);
}

.ab-faq__a {
    padding: 0 0 20px 50px;
    font-family: var(--ab-font-body);
    font-size: 15px;
    line-height: var(--ab-line-height-body);
    color: var(--ab-text-muted);
}


/* ---------- Mobile responsiveness ---------- */

@media (max-width: 991px) {
    .ab-faq__cats {
        margin-bottom: 16px;
    }

    .ab-faq__cats a {
        padding: 10px 14px;
    }
}

@media (max-width: 767px) {
    .ab-faq-hero .pager-sec-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ab-faq-hero__copy {
        flex: 0 1 auto;
        max-width: 100%;
    }

    .ab-faq-hero__copy p {
        font-size: 13px;
        line-height: 1.5;
    }

    .ab-faq-hero .pager-sec-details > ul {
        align-self: flex-end;
        margin: 0 0 0 auto;
    }
}


/* Move FAQ title and description lower */
.ab-faq-hero__copy {
    transform: translateY(35px);
}

@media (max-width: 767px) {
    .ab-faq-hero__copy {
        transform: translateY(12px);
    }
}
