/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
    background-color: #f4f4f9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Styles */
header {
    background: url('../assets/hero-section/hero-background.png') no-repeat center center/cover;
    background-size: 100% 100%;
    color: #fff;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 100px;
}

.navbar {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5em;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #374147;
}

/* Main Section Styles */
main {
    padding-top: 70px;
    background-color: #fff;
}

#blog {
    padding: 4em 1em;
    text-align: center;
    background: #fff;
    margin-top: 3.5em;
}

#blog .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the content */
}

#blog h1 {
    font-size: 2.5em;
    margin-top: 0em;
    margin-bottom: 2em;
    color: #100D26;
    text-align: center; /* Center align the heading */
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center; /* Center align the blog posts */
}

.blog-post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(30% - 2em);
    max-width: calc(30% - 2em);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post img {
    width: 100%;
    display: block;
}

.blog-post .post-content {
    padding: 1.5em;
    text-align: left;
}

.blog-post h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: #100D26;
}

.blog-post p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.read-more {
    color: #374147;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1em;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #37414f;
}

/* Coming Soon Page Styles */
#coming-soon {
    padding: 4em 1em;
    text-align: center;
    background: #fff;
}

.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

#coming-soon h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: #100D26;
}

#coming-soon p {
    font-size: 1.25em;
    line-height: 1.6;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-image {
    width: 100%;
    max-width: 600px;
}

.back-to-blog {
    color: #374147;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    font-size: 1.25em;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #37414f;
}


/* Footer Styles */
footer {
    background: url('../assets/background-footer.png') no-repeat center center/cover;
    background-size: 100% 100%;
    color: #fff;
    text-align: center;
    padding: 5em 1em; /* Increased padding for more space */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: #fff;
}

.footer-content p {
    margin: 0.5em 0;
    font-size: 1.35em;
}

.footer-content p.bolded {
    font-weight: 600;
}

.footer-links {
    margin-top: 1em;
    margin-bottom: 4em;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5em;
}

.footer-links a:hover {
    color: #ccc;
}

/* Media Queries */
@media (max-width: 768px) {
    #blog .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }


    .nav-menu {
        flex-direction: row;
        gap: 1em;
        flex-wrap: wrap; /* Allow items to wrap to the next line */
        padding-inline-start: 0px;
        justify-content: center;
    }

    .blog-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .blog-post {
        max-width: 100%;
    }

    #blog {
        margin-top: 9em;
    }
}
