
/* ==========================================
   Home Page FAQ Section
========================================== */

.home-faq {
    padding: 48px 24px 64px;
    color: #101b2d;
}

.home-faq *,
.home-faq *::before,
.home-faq *::after {
    box-sizing: border-box;
}

.home-faq__container {
    width: 100%;
    /* max-width: 880px; */
    margin: 0 auto;
}

/* Heading */

.home-faq__heading {
    max-width: 1100px;
    margin: 0 auto 12px;
    color: #101b2d;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.home-faq__description {
    margin: 0 0 40px;
    color: #53647c;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* FAQ list */

.home-faq__list {
    width: 100%;
    border-top: 1px solid #dfe4eb;
}

.home-faq__item {
    margin: 0;
    border-bottom: 1px solid #dfe4eb;
}

/* Question */

.home-faq__question-heading {
    margin: 0;
    padding: 0;
    font-size: inherit;
}

.home-faq__question {
    display: flex;
    width: 100%;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 4px 20px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #101b2d;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.home-faq__question:hover {
    background: transparent;
    color: #57b957;
}

.home-faq__question:focus-visible {
    outline: 2px solid #57b957;
    outline-offset: 3px;
}

.home-faq__question-text {
    flex: 1;
}

/* Plus / minus icon */

.home-faq__icon {
    position: relative;
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #57b957;
}

.home-faq__icon::before,
.home-faq__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Open state: plus becomes minus */

.home-faq__item.is-open .home-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Answer */

.home-faq__answer[hidden] {
    display: none;
}

.home-faq__answer-content {
    padding: 0 28px 26px 0;
    color: #354660;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.home-faq__answer-content p {
    margin: 0 0 14px;
}

.home-faq__answer-content p:last-child {
    margin-bottom: 0;
}

.home-faq__answer-content strong {
    color: #101b2d;
    font-weight: 600;
}

.home-faq__answer-content a {
    color: #087565;
    text-decoration: underline;
}

.home-faq__question-heading button:focus {
    outline: none;
    box-shadow: none;
}

/* ==========================================
   Tablet
========================================== */

@media (max-width: 767px) {
    .home-faq {
        padding: 40px 20px 52px;
    }

    .home-faq__heading {
        font-size: 32px;
    }

    .home-faq__description {
        margin-bottom: 30px;
    }

    .home-faq__question {
        min-height: 68px;
        gap: 16px;
        font-size: 17px;
    }

    .home-faq__answer-content {
        padding-bottom: 22px;
        font-size: 15px;
    }
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 480px) {
    .home-faq {
        padding: 32px 16px 44px;
    }

    .home-faq__heading {
        font-size: 27px;
        line-height: 1.25;
    }

    .home-faq__description {
        font-size: 14px;
    }

    .home-faq__question {
        min-height: 64px;
        padding: 17px 0;
        font-size: 16px;
    }

    .home-faq__answer-content {
        padding-right: 8px;
        padding-bottom: 20px;
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-faq__icon::before,
    .home-faq__icon::after {
        transition: none;
    }
}
