/* 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;
}

/* Navigation Header Styles */
.main-navigation {
    background: #1f2937;
    color: white;
    margin: -20px -40px 0 -40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-brand a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

.nav-brand a:hover {
    text-decoration: underline;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    color: white;
    text-decoration: none;
    padding: 20px 16px;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.nav-dropdown > a:hover {
    background-color: #374151;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #374151;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #e5e7eb;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #4b5563;
    text-decoration: none;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: #f8fafc;
    padding: 12px 0;
    margin: 0 -40px 20px -40px;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #6b7280;
    font-weight: bold;
}

.breadcrumb-list a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9em;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list span[aria-current="page"] {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > a {
        padding: 16px 25px;
        border-bottom: 1px solid #374151;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        background: #374151;
        box-shadow: none;
        border-radius: 0;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .breadcrumb-container {
        padding: 0 25px;
    }
    
    .breadcrumb-list {
        font-size: 0.85em;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 6px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px 25px;
    }
    
    .main-navigation {
        margin: -15px -25px 0 -25px;
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .breadcrumb {
        margin: 0 -25px 20px -25px;
    }
    
    .breadcrumb-container {
        padding: 0 25px;
    }
    
    header {
        margin: 0 -25px 20px -25px;
        padding: 15px;
    }
    
    h1 { font-size: 1.75em; }
    h2 { font-size: 1.35em; }
}