/* ==========================================================================
   KM FAQ (otherFaq component styles)
   ========================================================================== */

.km-faq-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.km-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.km-faq-main-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: clamp(26px, 2.5vw, 36px);
    line-height: 1.25;
    color: #2B2E31;
    text-transform: uppercase;
    margin: 0;
}

.km-faq-more-link {
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #CD1719;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.km-faq-more-link:hover {
    color: #A31012;
}

/* Accordion list */
.km-faq-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #E4E4E4;
}

.km-faq-item {
    border-bottom: 1px solid #E4E4E4;
    transition: background-color 0.2s ease;
}

.km-faq-header-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    user-select: none;
}

.km-faq-question {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(18px, 1.4vw, 24px);
    line-height: 1.35;
    color: #2B2E31;
    margin: 0;
    transition: color 0.2s ease;
}

.km-faq-header-btn:hover .km-faq-question,
.km-faq-item.active .km-faq-question {
    color: #CD1719;
}

/* Square Arrow Button */
.km-faq-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(32, 32, 32, 0.16);
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #202020;
    box-sizing: border-box;
}

.km-faq-header-btn:hover .km-faq-icon-box,
.km-faq-item.active .km-faq-icon-box {
    background-color: #CD1719;
    border-color: #CD1719;
    color: #FFFFFF;
}

.km-faq-icon-box svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.km-faq-item.active .km-faq-icon-box svg {
    transform: rotate(180deg);
}

/* Accordion body */
.km-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.km-faq-item.active .km-faq-body {
    max-height: 1000px;
}

.km-faq-content {
    padding-bottom: 28px;
    font-family: 'Geologica', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
    line-height: 28.8px;
    color: #2B2E31;
}

.km-faq-content p {
    margin: 0 0 16px 0;
}

.km-faq-content p:last-child {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .km-faq-header-btn {
        padding: 20px 0;
        gap: 16px;
    }

    .km-faq-icon-box {
        width: 38px;
        height: 38px;
    }

    .km-faq-icon-box svg {
        width: 18px;
        height: 18px;
    }

    .km-faq-content {
        font-size: 16px;
        line-height: 25.6px;
        padding-bottom: 20px;
    }
}
