.faq {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq__header {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: start;
    align-items: center;
    margin-bottom: 12px;
}

.faq__question {
    color: #242440;
    font-family: 'Roboto Slab', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.faq__number {
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(15, 196, 172, 0.15);
    font-size: 18px;
    font-weight: bold;
    color: #0FC4AC;
    flex-shrink: 0;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq__item {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0px 4px 8px 0px rgba(5, 15, 41, 0.15), 0px 0px 2px 0px rgba(5, 15, 41, 0.03);
    padding: 24px;
}

.faq__answer-container {
    position: relative;
}

.faq__answer {
    color: #242440;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 4);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.faq__answer.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.faq__answer-container {
    position: relative;
    overflow: hidden;
}

.faq__read-more {
    background: none;
    border: none;
    color: #0FC4AC;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: underline;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.faq__read-more:hover {
    color: #0daa96;
}

.faq__answer:not(.expanded) {
    position: relative;
    max-height: calc(1.5em * 4);
}

@media not all and (-webkit-line-clamp: 4) {
    .faq__answer:not(.expanded) {
        position: relative;
        padding-right: 20px;
    }

    .faq__answer:not(.expanded)::after {
        content: '...';
        position: absolute;
        bottom: 0;
        right: 0;
        background: linear-gradient(90deg, transparent 0%, white 20%, white 100%);
        padding-left: 8px;
        display: none;
    }

    .faq__answer:not(.expanded).truncated::after {
        display: block;
    }
}

@media (max-width: 768px) {
    .faq__number {
        display: none;
    }

    .faq__question {
        gap: 0;
    }

    .faq__answer {
        font-size: 14px;
    }
}