/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
html,
body {
    height: 100%;
    /* Ensure full height for body and html */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #9a9da3;
    color: white;
    text-align: center;
    padding: 20px 5%;
}

header h1 {
    font-size: 2.5rem;
}

/* Main Section */
main {
    flex-grow: 1;
    /* This ensures the main content fills the available space */
    padding: 20px 5%;
}

/* Blog Post Styling */
.blog-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post .read-more {
    font-size: 1rem;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.blog-post .read-more:hover {
    color: #388E3C;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    width: 100%;
    /* Ensure full width */
    position: relative;
    /* Keeps footer in normal document flow */
}

/* Responsive Design */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
    }

    .blog-post {
        padding: 18px;
    }

    .blog-post h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 15px 3%;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-post h2 {
        font-size: 1.6rem;
    }

    .blog-post p {
        font-size: 0.95rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .blog-post {
        padding: 12px;
    }

    .blog-post h2 {
        font-size: 1.4rem;
    }

    .blog-post p {
        font-size: 0.9rem;
    }

    .blog-post .read-more {
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.75rem;
        padding: 8px;
    }
}