/* KD Framework ? Faq component */

/* FAQ accordion */
.faq {
    position: relative;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: linear-gradient(180deg, #050b18, var(--background));
}

.faq__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
    align-items: start;
    gap: clamp(64px, 9vw, 130px);
}

.faq__heading {
    position: sticky;
    top: 130px;
}

.faq__contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.faq__contact span {
    color: #60a5fa;
    font-size: 17px;
    transition: transform 0.2s ease;
}

.faq__contact:hover span,
.faq__contact:focus-visible span {
    transform: translate(3px, -3px);
}

.faq__accordion {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.faq-item {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.faq-item h3 {
    font-size: inherit;
}

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 27px 4px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-item__trigger:hover,
.faq-item__trigger:focus-visible,
.faq-item.is-open .faq-item__trigger {
    color: #bfdbfe;
}

.faq-item__trigger:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.4);
    outline-offset: -3px;
}

.faq-item__trigger i {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.7);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.faq-item__trigger i::before,
.faq-item__trigger i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 3px;
    background: #93c5fd;
    transform: translate(-50%, -50%);
}

.faq-item__trigger i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.25s ease;
}

.faq-item.is-open .faq-item__trigger i {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(37, 99, 235, 0.14);
    transform: rotate(180deg);
}

.faq-item.is-open .faq-item__trigger i::after {
    transform: translate(-50%, -50%) rotate(0);
}

.faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.28s ease, opacity 0.22s ease;
}

.faq-item__answer > div {
    overflow: hidden;
}

.faq-item__answer p {
    max-width: 650px;
    padding: 0 58px 27px 4px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.faq-item.is-open .faq-item__answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

@media (max-width: 980px) {
    .faq__layout {
            grid-template-columns: 1fr;
            gap: 52px;
        }

    .faq__heading {
            position: static;
        }
}

@media (max-width: 680px) {
    .faq-item__trigger {
            gap: 15px;
            padding: 23px 0;
            font-size: 16px;
        }

    .faq-item__answer p {
            padding-right: 0;
            padding-left: 0;
        }
}
