/* FAQ - refined Ducati styling */
.w-tabs.faq-custom-style {
    --faq-red: #e4002b;
    --faq-text: #172638;
    --faq-border: #e5e8ec;

    background: #ffffff !important;
}

/* Spacing between accordion items */
.w-tabs.faq-custom-style .w-tabs-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each accordion item */
.w-tabs.faq-custom-style .w-tabs-section {
    background: #ffffff !important;
    border: 1px solid var(--faq-border) !important;
    border-radius: 10px !important;
    overflow: hidden;
    margin: 0 !important;
    box-shadow: 0 3px 12px rgba(23, 38, 56, 0.04);
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

/* Remove the existing grey header background */
.w-tabs.faq-custom-style .w-tabs-section-header {
    background: #ffffff !important;
    color: var(--faq-text) !important;
    border: 0 !important;
    padding: 21px 26px !important;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Question typography */
.w-tabs.faq-custom-style .w-tabs-section-title {
    color: var(--faq-text) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.5;
}

/* Plus/minus controls */
.w-tabs.faq-custom-style .w-tabs-section-control {
    color: var(--faq-text) !important;
    flex-shrink: 0;
}

/* Hover */
.w-tabs.faq-custom-style .w-tabs-section-header:hover {
    background: #fff7f8 !important;
}

.w-tabs.faq-custom-style .w-tabs-section-header:hover
.w-tabs-section-title {
    color: var(--faq-red) !important;
}

/* Expanded item */
.w-tabs.faq-custom-style .w-tabs-section.active {
    border-left: 4px solid var(--faq-red) !important;
    box-shadow: 0 6px 20px rgba(23, 38, 56, 0.07);
}

/* Expanded question */
.w-tabs.faq-custom-style .w-tabs-section.active
> .w-tabs-section-header {
    background: #fff5f6 !important;
}

.w-tabs.faq-custom-style .w-tabs-section.active
.w-tabs-section-title {
    color: var(--faq-red) !important;
}

/* Answer background and spacing */
.w-tabs.faq-custom-style .w-tabs-section-content,
.w-tabs.faq-custom-style .w-tabs-section-content-h {
    background: #ffffff !important;
    border: 0 !important;
}

.w-tabs.faq-custom-style .w-tabs-section-content-h {
    padding: 0px !important;
}

/* Answer text */
.w-tabs.faq-custom-style .w-tabs-section-content p {
    color: #39485a !important;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 10px;
}

/* Links */
.w-tabs.faq-custom-style .w-tabs-section-content a {
    color: var(--faq-red) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* Tablet and mobile */
@media (max-width: 768px) {
    .w-tabs.faq-custom-style .w-tabs-section-header {
        padding: 17px 18px !important;
        min-height: 60px;
    }

    .w-tabs.faq-custom-style .w-tabs-section-title {
        font-size: 16px !important;
    }

    .w-tabs.faq-custom-style .w-tabs-section-content-h {
        padding: 0px !important;
    }

    .w-tabs.faq-custom-style .w-tabs-section-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .w-tabs.faq-custom-style .w-tabs-section-header {
        padding: 15px 14px !important;
        gap: 10px;
    }

    .w-tabs.faq-custom-style .w-tabs-section-title {
        font-size: 15px !important;
    }

    .w-tabs.faq-custom-style .w-tabs-section-content-h {
        padding: 0 !important;
    }
}