.sonic-modern-faq {
    margin: 0 auto;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.sonic-faq-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    position: relative;
}

.sonic-faq-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonic-faq-title-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    color: #4dabf7;
}

.sonic-faq-subtitle {
    font-size: 1.1rem;
    color: #dee2e6;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.sonic-faq-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #001c67, #092B84);
}

.sonic-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.sonic-faq-item:last-child {
    border-bottom: none;
}

.sonic-faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.sonic-faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sonic-faq-icon-wrapper {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonic-faq-item-icon {
    width: 24px;
    height: 24px;
    color: #0070ff;
    flex-shrink: 0;
}

.sonic-faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-align: left;
}

.sonic-faq-arrow {
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #fff;
    flex-shrink: 0;
}

.sonic-faq-item.sonic-active .sonic-faq-arrow {
    transform: rotate(180deg);
}

.sonic-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    background-color: rgba(255, 255, 255, 0.95);
}

.sonic-faq-item.sonic-active .sonic-faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.sonic-faq-answer p {
    margin: 0;
    padding-top: 15px;
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
}

/* Animation for active item */
.sonic-faq-item.sonic-active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sonic-modern-faq {
        padding: 20px;
    }
    
    .sonic-faq-question {
        padding: 16px 20px;
    }
    
    .sonic-faq-question h3 {
        font-size: 1rem;
    }
    
    .sonic-faq-icon-wrapper {
        margin-right: 12px;
    }
    
    .sonic-faq-item-icon {
        width: 20px;
        height: 20px;
    }
    
    .sonic-faq-arrow {
        width: 18px;
        height: 18px;
    }
    
    .sonic-faq-item.sonic-active .sonic-faq-answer {
        padding: 0 20px 16px;
    }
}
