.faq-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-left: 60px;
    padding-right: 60px;
    width: 100%;
}

@media (max-width: 1800px) {
    .faq-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 1500px) {
    .faq-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1200px) {
    .faq-section {
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* FAQ Header */
.faq-section .faq-header {
    width: 100%;
}

.faq-section .faq-title {
    color: #121212;
    letter-spacing: -1.2px;
    font: 600 40px/110% Manrope, sans-serif;
    margin: 0;
}

@media (max-width: 997px) {
    .faq-section .faq-title {
        font-size: 24px;
    }
}

/* FAQ Container */
.faq-section .faq-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

/* FAQ Item */
.faq-section .faq-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-section .faq-item.active {
    border-color: #31c55d;
}

/* FAQ Content */
.faq-section .faq-content {
    display: flex;
    padding: 24px;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
}

@media (max-width: 997px) {
    .faq-section .faq-content {
        padding: 15px;
        gap: 20px;
    }
}

/* FAQ Text Content */
.faq-section .faq-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

/* FAQ Question */
.faq-section .faq-question {
    color: #121212;
    letter-spacing: -0.66px;
    font: 600 22px/115% Manrope, sans-serif;
    margin: 0;
}

/* FAQ Answer */
.faq-section .faq-answer {
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section .faq-answer[hidden] {
    display: none;
}

.faq-item--expanded .faq-answer {
    margin-top: 12px;
}

.faq-section .faq-answer-text {
    color: #121212;
    letter-spacing: -0.16px;
    font: 500 16px/115% Manrope, sans-serif;
    margin: 0;
}

/* FAQ Toggle Button */
.faq-section .faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-section .faq-toggle:hover {
    transform: scale(1.1);
}

.faq-section .faq-toggle:active {
    transform: scale(0.95);
}

/* FAQ Icons */
.faq-section .faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.faq-section .faq-icon--close {
    display: none;
}

.faq-section .faq-icon--plus {
    display: block;
}

.faq-section .faq-item.active .faq-icon--close {
    display: block;
}

.faq-section .faq-item.active .faq-icon--plus {
    display: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .faq-section .faq-item,
    .faq-section .faq-toggle,
    .faq-section .faq-icon,
    .faq-section .faq-answer {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-section .faq-item {
        border-width: 3px;
    }
}

/* Ensure proper spacing in expanded state */
.faq-section .faq-item.active .faq-content {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

/* Ensure the expanded content layout matches the design */
.faq-section .faq-item.active .faq-text-content {
    width: 100%;
    max-width: calc(100% - 48px);
}
