/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

a:hover {
    text-decoration: underline;
}

/* Layout Structure */
.container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content-wrapper {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
}

/* Header */
header {
    background: #333;
    color: white;
    padding: 20px;
}

header h1 {
    margin-bottom: 10px;
}

header nav a {
    color: white;
    margin-right: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

header nav a:hover {
    background: #555;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #ddd;
}

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

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #333;
    display: block;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

/* Blog Styles */
.blog-list {
    max-width: 800px;
}

.blog-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item h3 {
    margin-bottom: 10px;
}

.blog-item h3 a {
    color: #333;
    transition: color 0.3s;
}

.blog-item h3 a:hover {
    color: #0066cc;
}

.blog-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.blog-post {
    max-width: 800px;
}

.blog-post h2 {
    margin-bottom: 10px;
    color: #333;
}

.blog-post h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #444;
}

.blog-content {
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    header nav {
        display: flex;
        flex-wrap: wrap;
    }
    
    header nav a {
        margin-bottom: 5px;
    }
}
