/* Clean styles for educational content pages */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 40px;
    color: #333;
    background: #fff;
}

header {
    background: #2563eb;
    color: white;
    padding: 20px;
    margin: -20px -40px 30px -40px;
    border-radius: 8px;
    text-align: center;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

header a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: bold;
}

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

/* Home page button styling */
header p a {
    background: #fbbf24;
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s ease;
}

header p a:hover {
    background: #f59e0b;
    text-decoration: none;
}

header p {
    margin: 10px 0 0 0;
    font-size: 0.95em;
}

h1, h2, h3, h4, h5, h6 {
    color: #1f2937;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2em; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; }
h2 { font-size: 1.5em; border-bottom: 1px solid #e5e7eb; padding-bottom: 5px; }
h3 { font-size: 1.25em; }

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

code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

li {
    margin-bottom: 0.5em;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #4b5563;
    background: #f8fafc;
    padding: 1em 1.5em;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: 600;
}

strong {
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 600px) {
    body {
        padding: 15px 25px;
    }
    
    header {
        margin: -15px -25px 20px -25px;
        padding: 15px;
    }
    
    h1 { font-size: 1.75em; }
    h2 { font-size: 1.35em; }
}