* {
    box-sizing: border-box; /* Include padding and border in the element's width and height */
}

h1 {
    font-family: 'Handjet', sans-serif;
    font-size: 48px;
    margin-bottom: -3px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin-bottom: 90px;
}

header {
    background-color: #0047ab;
    padding: 20px;
    text-align: center;
    color: white;
    width: 100%; 
    box-sizing: border-box;
    margin: 0;
}

nav {
    background-color: #333;
    color: #333;
    height: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; 
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    padding: 4px 10px;
    display: block;
    color: #fff;
    text-decoration: none;
}

nav ul li .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
}

nav ul li .dropdown-content li {
    width: 100%;
}

nav ul li .dropdown-content li a {
    padding: 10px 15px;
    text-align: left;
}

nav ul li:hover .dropdown-content {
    display: block;
}

#searchBar {
    margin-left: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.featured-posts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.post {
    background-color: white;
    padding: 20px;
    margin: 10px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post img {
    width: 100%;
    height: auto;
}

footer {
    background-color: #0047ab;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.newsletter {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto; 
    text-align: center;
}

.newsletter h2 {
    margin-top: 0;
}

.newsletter form {
    display: flex;
    flex-direction: column;
}

.newsletter input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter input[type="submit"] {
    padding: 10px;
    background-color: #0047ab;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.newsletter input[type="submit"]:hover {
    background-color: #003d91;
}

.newsletter {
    margin-bottom: 100px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post h3 {
    transition: color 0.3s ease;
}

.post h3:hover {
    color: #007bff;
}

footer {
    padding: 10px 20px;
    margin: 0;
    background-color: #0047ab;
    text-align: center;
    font-size: 14px;
}

#footer-linkedin {
    width: 20px;
    height: auto;
    margin-left: 10px;
    vertical-align: -3px;
}

/* Responsive styles for mobile view */
@media only screen and (max-width: 600px) {
    header {
        padding: 10px;
        font-size: 20px;
    }

    nav {
        height: auto;
        flex-wrap: wrap;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin-bottom: 0;
    }

    nav ul li a {
        padding: 10px;
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .featured-posts {
        flex-direction: column;
        align-items: center;
    }

    .post {
        width: 90%;
        margin: 10px 0;
    }

    #searchBar {
        width: 100%;
        margin: 10px 0;
    }

    .newsletter {
        width: 90%;
    }

    footer {
        font-size: 12px;
        padding: 5px 10px;
    }

    body {
        overflow-x: hidden;
    }
}