/* File Path: assets/css/style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #333; background: #f8f9fa; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.container.narrow { max-width: 500px; }

/* Header & Spacing */
.site-header { background: #003366; color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.site-logo { color: #fff; font-size: 1.25rem; font-weight: bold; text-decoration: none; }
.site-nav ul { display: flex; list-style: none; gap: 20px; }
.site-nav a { color: #fff; text-decoration: none; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.menu-toggle .bar { width: 25px; height: 3px; background: #fff; }

/* Article Header Spacing requirement */
.main-content { padding-top: 40px; padding-bottom: 50px; }
.article-header { margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.article-header h1 { font-size: 2.2rem; margin-bottom: 8px; color: #111; }
.article-meta { color: #666; font-size: 0.9rem; }

/* Article Body Style */
.article-container.full-width { width: 100%; max-width: 1000px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.article-body { font-size: 1.1rem; line-height: 1.8; color: #222; }
.article-body h2 { font-size: 1.6rem; margin: 25px 0 12px; }
.article-body h3 { font-size: 1.3rem; margin: 20px 0 10px; }
.article-body p { margin-bottom: 15px; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-body th, .article-body td { border: 1px solid #ddd; padding: 10px; text-align: left; }

/* Automatic TOC Box */
.table-of-contents { background: #f0f4f8; border-left: 4px solid #003366; padding: 15px 20px; margin-bottom: 25px; border-radius: 4px; }
.toc-title { font-weight: bold; margin-bottom: 8px; }
.table-of-contents ul { list-style: none; }
.toc-level-3 { margin-left: 20px; }
.table-of-contents a { color: #003366; text-decoration: none; }
.table-of-contents a:hover { text-decoration: underline; }

/* Cards & Admin UI */
.card { background: #fff; padding: 25px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.btn { display: inline-block; background: #003366; color: #fff; padding: 10px 18px; text-decoration: none; border-radius: 4px; border: none; cursor: pointer; }
.alert { padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.alert.error { background: #f8d7da; color: #721c24; }
.alert.success { background: #d4edda; color: #155724; }
label { display: block; margin-bottom: 15px; font-weight: bold; }
input[type="text"], input[type="password"], textarea, select { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 6px; padding: 15px; }

/* Footer */
.site-footer { background: #222; color: #fff; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* Mobile Menu Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .site-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #003366; padding: 15px; }
    .site-nav.active { display: block; }
    .site-nav ul { flex-direction: column; gap: 10px; }
}