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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #5d4037;
    background-color: #f5f1eb;
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%);
    color: #fff8e1;
    margin: -2rem -2rem 4rem -2rem;
    border-radius: 0 0 20px 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Blog Posts */
.blog-posts h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #8d4e2a;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card {
    background: #efebe5;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-card h4 {
    margin-bottom: 0.5rem;
}

.post-card h4 a {
    text-decoration: none;
    color: #8d4e2a;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.post-card h4 a:hover {
    color: #d84315;
}

.post-date {
    color: #8d6e63;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #6d4c41;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #d84315;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #bf360c;
}

/* Blog Post Page Styles */
.post-header {
    text-align: center;
    padding: 0.5rem 0 0.5rem;
}

.post-title {
    font-size: 2.5rem;
    color: #8d4e2a;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.post-meta {
    color: #8d6e63;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    color: #8d4e2a;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-content h3 {
    color: #6d4c41;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.4rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid #d84315;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6d4c41;
}

.post-content code {
    background: #efebe5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background: #efebe5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

/* Navigation between posts */
.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 0 0;
    padding: 2rem 0 0 0;
    border-top: 1px solid #d7ccc8;
}

.post-nav a {
    color: #d84315;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-nav a:hover {
    color: #bf360c;
}

.back-to-home {
    background: #d84315;
    color: #fff8e1;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.back-to-home:hover {
    background: #bf360c;
}

/* Footer */
.footer {
    background: #5d4037;
    color: #fff8e1;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .main {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .post-card {
        padding: 1.5rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}