/*
Theme Name: MedQuest Theme
Author: Jules
Description: A WordPress theme for MedQuest, based on the existing Flask template.
Version: 1.0
*/

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Navigation Menu */

#mobile-menu .menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4a5568;
}

#mobile-menu .menu-item a:hover {
    background-color: #f7fafc;
}
/* --- Journal Layout Enhancements for Article Content --- */

/* Main content readability */
.article-content {
    /* Use Inter (defined in header.php) but ensure good contrast and line-height */
}

/* Headings for Structure (H2, H3, H4) */
.article-content h2 {
    font-size: 2.25rem; /* Large and impactful */
    font-weight: 700;
    color: #1a202c; /* Dark text for headings */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0; /* Subtle separator */
}

.article-content h3 {
    font-size: 1.5rem; /* Sub-sections */
    font-weight: 600;
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Lists - essential for structured articles */
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Blockquotes for citations or emphasis */
.article-content blockquote {
    border-left: 4px solid #4299e1; /* Blue border for emphasis */
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #f7fafc; /* Light background */
    font-style: italic;
    color: #4a5568;
}

/* Separator for long sections */
.article-content hr {
    margin: 3rem auto;
    border: 0;
    border-top: 1px solid #cbd5e0;
    width: 50%;
}
/* (Existing styles...) */

/* Immagini all'interno del Contenuto (Figure) */
.article-content img {
    /* Existing: max-width: 100%; height: auto; border-radius: 0.5rem; margin-bottom: 1rem; */
    
    /* Controllo per centrare e distanziare l'immagine */
    display: block; /* Essenziale per l'allineamento 'margin: auto' */
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem; /* Più spazio sopra */
    margin-bottom: 2rem; /* Più spazio sotto */
    
    /* Limita la larghezza se non sono a larghezza intera (es. con didascalia) */
    max-width: 80%; 
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06); /* Ombra leggera per farla risaltare */
}

/* Allineamento Didascalia (Caption) */
.article-content figcaption {
    font-size: 0.875rem; /* Testo più piccolo */
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
    padding-bottom: 1.5rem; /* Spazio aggiuntivo dopo la didascalia */
}