.gudwin-home-faq {
    margin-top: clamp(64px, 8vw, 120px) !important;
    margin-bottom: 0 !important;
}

.gudwin-home-faq > h2 {
    margin: 0 0 14px;
}

.gudwin-home-faq > p {
    max-width: 680px;
    margin-bottom: 30px;
    color: var(--gudwin-muted, #666);
}

.gudwin-home-faq .wp-block-details {
    margin: 0 0 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gudwin-line, #e8e8e8);
    border-radius: 12px;
    background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.gudwin-home-faq .wp-block-details:last-of-type {
    border-bottom: 1px solid var(--gudwin-line, #e8e8e8);
}

.gudwin-home-faq .wp-block-details[open] {
    border-color: rgba(35, 148, 84, .34);
    background: #fbfefc;
    box-shadow: 0 12px 28px rgba(17, 65, 37, .06);
}

.gudwin-home-faq summary {
    position: relative;
    display: block;
    padding: 22px 66px 22px 24px;
    color: var(--gudwin-text, #111);
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    font-weight: 650;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.gudwin-home-faq summary::-webkit-details-marker {
    display: none;
}

.gudwin-home-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 25px;
    height: 25px;
    background: #239454;
    -webkit-mask: url('../img/icons/close.svg') center / contain no-repeat;
    mask: url('../img/icons/close.svg') center / contain no-repeat;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}

.gudwin-home-faq details[open] > summary::after {
    background: #177d42;
    transform: translateY(-50%) rotate(90deg);
}

.gudwin-home-faq summary:focus-visible {
    outline: 2px solid #239454;
    outline-offset: -3px;
    border-radius: 10px;
}

.gudwin-faq-answer {
    overflow: hidden;
}

.gudwin-home-faq .gudwin-faq-answer > * {
    margin: 0;
    padding: 0 66px 24px 24px;
    color: #525252;
    font-size: .98rem;
    line-height: 1.62;
}

.gudwin-home-faq .gudwin-faq-answer a {
    color: #177d42;
    font-weight: 600;
    text-decoration-thickness: 1px;
}

@media (max-width: 600px) {
    .gudwin-home-faq summary {
        padding: 19px 56px 19px 18px;
    }

    .gudwin-home-faq summary::after {
        right: 18px;
        width: 23px;
        height: 23px;
    }

    .gudwin-home-faq .gudwin-faq-answer > * {
        padding: 0 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gudwin-home-faq .wp-block-details,
    .gudwin-home-faq summary::after {
        transition: none;
    }
}

/* Keep the native blocks clear and editable in Gutenberg. */
.editor-styles-wrapper .gudwin-home-faq .wp-block-details > :not(summary) {
    margin: 0;
    padding: 0 24px 24px;
}
