/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    box-sizing: border-box;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

/* Header and Footer Styles */
header,
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Header Navigation Styles */
header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 0;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

header nav li {
    display: inline-block;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 0.5em 1em;
    border-radius: 4px;
}

header nav a:hover {
    background-color: #1a252f;
    color: #fff;
}

/* Footer Styles */
footer {
    margin-top: auto;
    padding: 1em;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Add a container class to wrap the content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

/* Blog Post Styles */
.blog-post {
    background-color: #fff;
    padding: 2em;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date,
.post-author {
    font-weight: bold;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.read-more {
    background-color: #2c3e50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #1a252f;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 1em;
    }

    .post-title {
        font-size: 24px;
    }

    .post-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header nav a {
        font-size: 14px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-content {
        font-size: 15px;
    }
}