

.msland-faq-section {
    padding: 4px 0;
    background-color: var(--msland-bg-primary, #ffffff);
}

.msland-faq-section .msland-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg, 24px);
}

@media (min-width: 840px) {
    .entry-content .msland-faq-section {
        margin-left: calc((100% - 1168px) / 2);
        margin-right: calc((100% - 1168px) / 2);
        max-width: 1168px;
        width: 1168px;
    }
}

.faq-card-wrapper {
    background-color: #f3f4f6; 
    border: 1px solid var(--msland-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 18px;
}

.msland-faq-section .faq-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--msland-text-primary, #111827);
    margin: 0 0 12px 0;
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    list-style: none; 
    user-select: none;
}

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

.faq-question {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--msland-text-primary, #111827);
    transition: color 0.2s ease;
    padding-right: 20px;
}

.faq-item[open] .faq-question {
    color: var(--msland-brand, #2563eb);
}

.faq-icon-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
}

.faq-item[open] .faq-icon-indicator {
    color: var(--msland-brand, #2563eb);
}

.faq-icon-indicator::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-bottom: 3px;
}

.faq-item[open] .faq-icon-indicator::after {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.faq-content {
    padding: 0 0 20px 0;
    animation: faq-fade-in 0.25s ease-out;
}

.faq-answer {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--msland-text-secondary, #4b5563);
    margin: 0;
}

@keyframes faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .msland-faq-section .msland-container {
        padding: 0 8px;
    }

    .faq-card-wrapper {
        padding: 16px;
    }
    
    .msland-faq-section .faq-section-title {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 16px;
    }
    
    .faq-summary {
        padding: 16px 0;
    }
    
    .faq-question {
        font-size: 14px;
    }
    
    .faq-answer {
        font-size: 13px;
    }
}

body.dark-mode .faq-card-wrapper {
    background-color: var(--color-background-secondary) !important;
    border-color: var(--color-border) !important;
}

body.dark-mode .faq-item {
    border-bottom-color: var(--color-border) !important;
}

body.dark-mode .faq-question {
    color: #ffffff !important;
}

body.dark-mode .faq-item[open] .faq-question {
    color: var(--color-accent, #3b82f6) !important;
}

body.dark-mode .faq-answer {
    color: var(--color-text-secondary) !important;
}
