/**
 * CMSAIR e0_2
 * Style CSS
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.header h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

.header .date {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.header .date:empty {
    display: none;
}

/* Main layout */
.main {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
}

.content {
    flex: 1;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content article {
    line-height: 1.8;
}

.content article h3 {
    font-size: 24px;
    margin: 35px 0 15px 0;
    color: #222;
}

.content article h4 {
    font-size: 20px;
    margin: 28px 0 12px 0;
    color: #333;
}

.content article p {
    margin-bottom: 18px;
}

.content article ul,
.content article ol {
    margin: 18px 0;
    padding-left: 30px;
}

.content article li {
    margin-bottom: 10px;
}

.content article a {
    color: #0066cc;
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

.content article a:hover {
    border-bottom-color: #0066cc;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar:empty {
    display: none;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.sidebar p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Navigation */
.navigation {
    background: #fff;
    padding: 25px 0;
    border-top: 1px solid #e9ecef;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-list li a {
    display: inline-block;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 25px;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-list li a:hover {
    background: #667eea;
    color: #fff;
    text-decoration: none;
}

.nav-list li.active a {
    background: #667eea;
    color: #fff;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .header h2 {
        font-size: 16px;
    }
    
    .content {
        padding: 25px;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-list li a {
        display: block;
        text-align: center;
    }
}
