@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
/* Navigation styles */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo {
    color: #ecf0f1;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 1.5rem;
}
.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #3498db;
}
/* Main content area */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}
/* Homepage styles */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}
.featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.post-image {
    width: 100%;
    height: 200px;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-content {
    padding: 1.5rem;
}
.post-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.post-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
}
.read-more {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.read-more:hover {
    background-color: #2980b9;
}
/* List page styles */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.list-post-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.list-post-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.list-post-card .post-meta {
    margin-bottom: 1rem;
}
/* Content page styles */
.article-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.article-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.article-meta {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}
.article-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.article-content h2 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.article-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-content code {
    background: #f1f2f6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}
.back-to-list {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
}
.back-to-list:hover {
    text-decoration: underline;
}
/* Footer styles */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}
/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 1rem;
    }
    .nav-links li {
        margin: 0 0.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .featured-posts, .post-list {
        grid-template-columns: 1fr;
    }
}