/* Read More / Read Less functionality styles */

.question-content {
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
    overflow: hidden;
    line-height: 1.6;
}

.question-content.expanded {
    /* No height restriction when expanded */
    max-height: none !important;
}

.read-more-btn {
    border: none;
    background: none;
    color: #0d6efd;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more-btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.25rem;
    text-decoration: none;
    color: #0d6efd;
}

.read-more-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s ease-in-out;
}

.read-more-btn:hover i {
    transform: translateY(-1px);
}

/* Smooth fade effect for content transitions */
.question-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* Make sure the question cards have consistent spacing */
.question-card {
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease-in-out;
}

.question-card:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Ensure proper spacing between read-more button and action buttons */
.read-more-btn + .question-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .read-more-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}
