.question-du-mois {
    background-color: #fff;
    margin-bottom: 2rem;
}

.question-main-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.question-month-display {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.question-du-mois h2 {
    color: #333;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.question-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
}

.question-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.question-content-wrapper .question-content {
    flex: 1;
    margin-bottom: 0;
}

.question-content-wrapper .question-actions {
    margin-top: 0;
    flex-shrink: 0;
}

/* Force column layout when container width is limited */
.question-content-wrapper {
    max-width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .question-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-content-wrapper .question-content {
        margin-bottom: 1rem;
    }
    
    .question-content-wrapper .question-actions {
        margin-top: 1rem;
    }
}

/* Force column layout for narrow containers */
@media (max-width: 600px) {
    .question-content-wrapper {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .question-content-wrapper .question-content {
        margin-bottom: 1rem;
    }
    
    .question-content-wrapper .question-actions {
        margin-top: 1rem;
    }
}

/* Specific rule for WordPress columns */
.wp-block-column .question-content-wrapper {
    flex-direction: column;
    gap: 1rem;
}

.wp-block-column .question-content-wrapper .question-content {
    margin-bottom: 1rem;
}

.wp-block-column .question-content-wrapper .question-actions {
    margin-top: 1rem;
}

.read-more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.question-actions {
    margin-top: 2rem;
    text-align: left;
}

.question-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.question-actions .btn-secondary {
    background-color: #198754;
    color: #fff;
    border: none;
    border-radius: 0;
}

.question-actions .btn-secondary:hover {
    color: #fff;
}

.question-actions button.btn-secondary {
    background-color: #198754 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
}

.question-actions button.btn-secondary:hover {
    color: #fff !important;
}

/* Styles pour l'archive des questions */
.questions-archive {
    display: grid;
    gap: 2rem;
}

.question-item {
    background-color: #fff;
    margin-bottom: 1.5rem;
}

.question-month {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #198754;
    padding-bottom: 0.25rem;
    display: inline-block;
}

.question-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.question-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.question-item .read-more-link {
    display: inline-block;
}

.question-item .btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
}

.question-item .btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
}

.question-item p {
    font-size: 1.1rem !important;
}

/* Styles for single question page */
.question-du-mois-single {
    background-color: #fff;
    /* padding: 2rem 0;
    margin: 2rem 0;*/
}

.question-du-mois-single .entry-title {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.question-du-mois-single .entry-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 2rem;
}

.question-du-mois-single .entry-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Override general entry-title rule for questions */
.question-du-mois-single .entry-title,
.question-du-mois .entry-title,
.questions-archive .entry-title {
    display: block !important;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.questions-archive .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem !important;
}
