
.frontis-template-faq {
    font-family: inherit;
}

.faq-container {
    max-width: 100%;
}

.faq-item {
    padding: 32px 0;
    border-bottom: 1px solid #E1E3E8;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:first-child{
    padding-top: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-item.active .faq-question {
    background-color: #eff6ff;
}

.faq-question h3 {
    font-family: var(--fb-global-h6--font-family);
    font-size: var(--fb-global-h6--font-size);
    font-style: var(--fb-global-h6--font-style);
    text-transform: var(--fb-global-h6--font-transform);
    letter-spacing: var(--fb-global-h6--font-letter-spacing);
    line-height: var(--fb-global-h6--font-line-height);
    margin: 0 0 0 0;
    color: #0B0C0E;
}

.faq-toggle {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item:hover .faq-toggle {
    color: #3b82f6;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #3b82f6;
}

.faq-icon {
    position: absolute;
    transition: opacity 0.2s ease;
}

.faq-icon-plus {
    opacity: 1;
}

.faq-item.active .faq-icon-plus {
    opacity: 0;
}

.faq-item.active .faq-icon-minus {
    opacity: 1;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 16px 0 0 0;
    color: #404655;
}

.faq-answer-content p {
    font-family: var(--fb-global-fb_customtypo_gae1b--font-family);
    font-style: var(--fb-global-fb_customtypo_gae1b--font-style);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    margin: 0 0 0 0;
    color: #404655;
    border: none;
    transition: all .3s ease-in-out;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer-content ul:last-child,
.faq-answer-content ol:last-child {
    margin-bottom: 0;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content li:last-child {
    margin-bottom: 0;
}

/* Notice */
.frontis-faq-notice {
    padding: 1.5rem;
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
    text-align: center;
}

/* Editor Styles */
.frontis-template-faq-editor .components-placeholder {
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9375rem;
    }
}

.faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}