body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(90deg, #001a33, #003366);
    color: #f1c40f;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
    text-align: center;
}

.logo img {
    max-width: 200px;
    height: auto;
    margin-right: 1rem;
}

header h1 {
    font-size: 2rem;
    flex-grow: 1;
}

nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #f1c40f;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: #f1c40f;
    color: #001a33;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #001a33;
}

main {
    padding: 2rem;
    flex: 1;
    padding-bottom: 100px; /* Add padding to the bottom to create space for the footer */
}

.container {
    display: flex;
    justify-content: center; /* Center the container */
    flex-wrap: wrap; /* Allow wrapping */
}

.content-box, .gallery-box {
    flex: 1;
    margin: 10px;
    max-width: 60%; /* Make the content-box smaller */
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.content-box:hover, .gallery-box:hover {
    box-shadow: 0 0 15px #001a33; /* Shadow color matches the header */
}

.side-space {
    flex: 0 0 200px; /* Fixed width with flex properties */
    margin: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.side-space img {
    max-width: 100%; /* Ensure the image fits within the container */
    height: auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effect */
}

.side-space img:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}


footer {
    background: linear-gradient(90deg, #001a33, #003366); /* Gradient from dark navy blue to a slightly lighter blue */
    color: #f1c40f; /* Gold text color */
    text-align: center;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    .container {
        flex-direction: column;
    }

    .content-box, .side-space {
        margin: 0 auto; /* Center items in mobile view */
        width: 100%; /* Take full width in mobile view */
    }
}
