.qna-section {
    background-color: #fafafb;
    margin-top: 5rem;
}

.qna-wrapper {
    max-width: 920px;
}

.qna-title {
    color: #000;
    font-weight: 900;
    font-size: clamp(24px, 3vw, 34px);
}

.qna-divider {
    display: block;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: #cfcfcf;
}

.qna-subtitle {
    color: rgba(0, 0, 0, 0.58);
    font-size: clamp(14px, 1.35vw, 18px);
    font-weight: 500;
    word-spacing: 0.7px;
}

.qna-item {
    border: 0;
    border-radius: 10px;
    margin-bottom: 28px;
    padding: 10px;
    background: #fff;
}

.qna-button {
    position: relative;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 500;
    color: #111;
    padding: 1.05rem 3rem 1.05rem 4.25rem;
    background: #fff;
    border: 0;
    box-shadow: none;
}

.qna-button:not(.collapsed) {
    color: #111;
    background: #fff;
    box-shadow: none;
}

.qna-button:focus {
    box-shadow: none;
}

.qna-button::before {
    content: "";
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    background-color: #28c3be;
    -webkit-mask-image: url('https://thetravelstory.net/assets/refer_earn/svg/question-circle-svgrepo-com.svg');
    mask-image: url('https://thetravelstory.net/assets/refer_earn/svg/question-circle-svgrepo-com.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    transition: all 0.22s ease;
}

.qna-button:not(.collapsed)::before {
    background-color: #ececec;
}

.qna-button::after { display: none; }

/* explicit arrow element inside the button (better control than pseudo-element) */
.qna-button .qna-arrow {
    width: 1rem;
    height: 1rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../../assests/svg/arrow-down-1-svgrepo-com.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.22s ease, opacity 0.22s ease, background-image 0.12s ease;
    opacity: 0.8;
    pointer-events: none;
    display: inline-block;
}

.qna-button:not(.collapsed) .qna-arrow {
    background-image: url('../../assests/svg/arrow-up-1-svgrepo-com.svg');
    opacity: 1;
}

.qna-accordion .accordion-item:first-of-type .accordion-button,
.qna-accordion .accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: 0;
}

.qna-answer {
    color: rgba(0, 0, 0, 0.7);
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.5;
    padding: 0.6rem 1rem 1.9rem 5.2rem;
}

@media (max-width: 767.98px) {
    .qna-section {
        margin-top: 3rem;
    }

    .qna-wrapper {
        max-width: 100%;
    }

    .qna-item {
        margin-bottom: 16px;
        padding: 6px;
    }

    .qna-button {
        padding: 0.9rem 2.2rem 0.9rem 3.35rem;
        line-height: 1.4;
    }

    .qna-button::before {
        left: 0.75rem;
        width: 1.7rem;
        height: 1.7rem;
        font-size: 1.2rem;
    }

    .qna-button .qna-arrow {
        right: 0.75rem;
    }

    .qna-answer {
        padding: 0.45rem 0.9rem 1.1rem 3.35rem;
        line-height: 1.55;
    }
}

@media (max-width: 575.98px) {
    .qna-button {
        padding: 0.82rem 2rem 0.82rem 2.95rem;
        font-size: 0.94rem;
    }

    .qna-button::before {
        left: 0.62rem;
        width: 1.55rem;
        height: 1.55rem;
        font-size: 1.05rem;
    }

    .qna-answer {
        padding: 0.38rem 0.8rem 0.95rem 2.95rem;
        font-size: 0.9rem;
    }
}


