/* Section */
.wb-faq-section {
    padding: var(--wb-pad, 60px) 20px;
    background: #f7f8fa !important;
}

.wb-faq-container {
    margin: 0 auto;
}

/* Headings */
.wb-faq-head {
    margin: 0 auto 24px;
    text-align: left;
}

.wb-faq-head.align-center {
    text-align: center;
}

.wb-faq-head.align-right {
    text-align: right;
}

.wb-faq-title {
    font-size: var(--wb-title-size, 32px);
    line-height: 1.2;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.wb-faq-subtitle {
    font-size: var(--wb-subtitle-size, 18px);
    color: #4b5563;
    margin: 0;
}

/* List wrapper */
.wb-faq-list {
    display: grid;
    gap: var(--wb-gap, 16px);
}

/* Item */
.wb-faq-item {
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: clip;
}

.wb-faq-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
}


.wb-faq-figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.wb-faq-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.wb-faq-figure-caption {
    font-size: 0.85rem;
    color: #6b7280;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.85);
}

.wb-faq-block-text {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: #374151;
}

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

.wb-faq-summary::marker {
    content: "";
}

.wb-faq-q {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Chevron */
.wb-faq-chevron {
    width: 18px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.wb-faq-chevron::before,
.wb-faq-chevron::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: transparent;
}

.wb-faq-chevron::after {
    width: 10px;
    height: 10px;
    border-right: 2px solid #2563eb;
    border-bottom: 2px solid #2563eb;
    transform: rotate(45deg);
    position: absolute;
    right: 2px;
    top: 2px;
    transition: transform 0.2s ease;
}

/* Content */
.wb-faq-content {
    padding: 0 22px 20px 22px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

/* Inline content styling */
.wb-faq-content p {
    margin: 0 0 16px 0;
}

.wb-faq-content p:last-child {
    margin-bottom: 0;
}

.wb-faq-content .wp-block-image {
    margin: 20px 0;
}

.wb-faq-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wb-faq-content .wp-block-image figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

.wb-faq-content figure {
    margin: 20px 0;
}

.wb-faq-content figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wb-faq-content figure figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

.wb-faq-content ul,
.wb-faq-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.wb-faq-content li {
    margin-bottom: 8px;
}

/* Open state */
.wb-faq-item[open] .wb-faq-chevron::after {
    transform: rotate(-135deg);
    top: 6px;
}

/* Unboxed variant */
.wb-faq-list:not(.is-boxed) .wb-faq-item {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* Focus states */
.wb-faq-summary:focus {
    outline: none;
}

.wb-faq-summary:focus-visible {
    box-shadow: inset 0 0 0 2px #93c5fd;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 640px) {
    .wb-faq-title {
        font-size: 24px;
    }

    .wb-faq-q {
        font-size: 18px;
    }
}
