/* Question Item Animations */
.question-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.question-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.question-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.question-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.question-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.question-header .icon {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.question-item.active .icon {
    transform: rotate(180deg);
}

.question-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.question-item.active .question-content {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

/* Staggered animation delay */
.question-item:nth-child(1) {
    transition-delay: 0.1s;
}

.question-item:nth-child(2) {
    transition-delay: 0.2s;
}

.question-item:nth-child(3) {
    transition-delay: 0.3s;
}

.question-item:nth-child(4) {
    transition-delay: 0.4s;
}

.question-item:nth-child(5) {
    transition-delay: 0.5s;
}