.kam-faq-accordion-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 24px;
    direction: rtl;
}

.kam-faq-accordion-wrap *,
.kam-faq-accordion-wrap *::before,
.kam-faq-accordion-wrap *::after {
    box-sizing: border-box;
}

.kam-faq-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 22px;
    line-height: 1.8;
    font-weight: 700;
    color: #333;
}

.kam-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kam-faq-item {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.kam-faq-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .045);
}

.kam-faq-header {
    min-height: 92px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
}

.kam-faq-header::-webkit-details-marker {
    display: none;
}

.kam-faq-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.kam-faq-logo {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 70px;
}

.kam-faq-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.kam-faq-question {
    min-width: 0;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 700;
    color: #222;
    overflow-wrap: anywhere;
}

.kam-faq-arrow {
    width: 14px;
    height: 14px;
    border-left: 2.5px solid #b40000;
    border-bottom: 2.5px solid #b40000;
    transform: rotate(-45deg);
    transition: transform .25s ease;
    flex: 0 0 auto;
}

.kam-faq-item[open] .kam-faq-arrow {
    transform: rotate(135deg);
}

.kam-faq-content {
    padding: 0 20px 28px 28px;
    color: #555;
    font-size: 16px;
    line-height: 2.25;
    overflow-wrap: anywhere;
}

.kam-faq-content p {
    margin: 0 0 8px;
}

@media (min-width: 769px) {
    .kam-faq-item[open] {
        min-height: 236px;
    }

    .kam-faq-item:not([open]) .kam-faq-header {
        min-height: 92px;
    }
}

@media (max-width: 768px) {
    .kam-faq-accordion-wrap {
        /* Elementor can shrink shortcode widgets on mobile; center a safe mobile width without transforms. */
        --kam-accordion-mobile-width: min(430px, calc(100vw - 28px));
        width: var(--kam-accordion-mobile-width);
        max-width: none;
        margin-inline: calc((100% - var(--kam-accordion-mobile-width)) / 2);
        padding: 0 0 18px;
    }

    .kam-faq-title {
        font-size: 17px;
        line-height: 1.75;
        margin: 0 0 16px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .kam-faq-accordion {
        gap: 8px;
    }

    .kam-faq-item {
        border-radius: 7px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .055);
    }

    .kam-faq-header {
        min-height: 74px;
        padding: 12px 14px;
        gap: 10px;
        align-items: center;
    }

    .kam-faq-brand {
        gap: 10px;
        flex: 1 1 auto;
    }

    .kam-faq-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .kam-faq-question {
        font-size: 16px;
        white-space: normal;
    }

    .kam-faq-arrow {
        width: 12px;
        height: 12px;
    }

    .kam-faq-content {
        padding: 0 14px 18px;
        font-size: 14px;
        line-height: 2;
    }

    .kam-faq-item[open] {
        min-height: 0;
    }
}

@media (max-width: 380px) {
    .kam-faq-accordion-wrap {
        --kam-accordion-mobile-width: calc(100vw - 20px);
        padding-bottom: 14px;
    }

    .kam-faq-title {
        font-size: 15px;
    }

    .kam-faq-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .kam-faq-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .kam-faq-question {
        font-size: 15px;
    }
}
