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

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2C3E50;
}

h2 {
    font-size: 24px;
}

p {
    margin-bottom: 15px;
}

/* Header Styles */
header {
    background-color: #2C3E50;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #E74C3C;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: #34495E;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Blog Posts Section */
.blog-posts {
    padding: 60px 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.read-more {
    background-color: #E74C3C;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.read-more:hover {
    background-color: #c0392b;
}

/* Newsletter Section */
.newsletter {
    background-color: #2C3E50;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter button {
    background-color: #E74C3C;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #c0392b;
}

/* Footer Section */
footer {
    background-color: #1a2530;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2C3E50;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter button {
        border-radius: 4px;
    }
}