:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f9f7f4;
    --link-color: #2980b9;
    --link-hover: #1a5f8f;
    --border-color: #e0d9d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.nav-header {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-header a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.nav-header a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.content-container {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 1em;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 0.02em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

h3 {
    font-size: 1.3em;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--primary-color);
    font-weight: normal;
}

p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.image-container {
    margin: 2em 0;
    text-align: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-placeholder {
    margin: 2em 0;
    padding: 1em;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    text-align: center;
    font-style: italic;
    color: #666;
}

.caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
    margin-bottom: 2em;
}

ol {
    margin-bottom: 1.2em;
    margin-left: 2em;
}

ol li {
    margin-bottom: 0.5em;
}

.nav-footer {
    margin-top: 3em;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-footer a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-footer a:hover {
    color: var(--link-hover);
    background-color: #f0f0f0;
}

.nav-center {
    font-weight: bold;
    color: var(--primary-color);
}

footer {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .content-container {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.8em;
        font-size: clamp(1.3em, 4vw, 1.8em);
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    
    p {
        text-align: left;
    }
    
    .nav-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-footer a {
        font-size: 0.9em;
    }
}