/* Reset some browser defaults */
body {
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

p {
    font-size: 1.2em;
    padding: 0;
    text-align: justify;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f7fc;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* Make the nav bar fixed at the top of the page */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0a2463;
    color: #fff;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Add some padding to the top of the page so the nav bar doesn't cover the content */
main {
    padding-top: 60px;
}

/* Space out the sections a bit */
section {
    /* margin-bottom: 20px; */
    padding: 20px;
    display: flex;
    flex-direction: column; /* NEW: align children vertically */
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px); /* subtracting the header and footer height */
}

section h2, section p {
    margin-bottom: 10px;
}

.content-container {
    max-width: 800px;  /* you can adjust this as needed */
    width: 100%;
    text-align: center;
}

.content-container img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin-top: 1em;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-content img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    margin-right: 20px;
}

.about-text {
    flex-grow: 1;
}

/* Different background colours for each section */
#about {
    background-color: #3f88c5; /* medium blue for the 'About' section */
}

#services {
    background-color: #7fbce9; /* lighter blue for the 'Services' section */
}

#contact {
    background-color: #b5d5ea; /* lightest blue for the 'Contact' section */
}

.about-flex-container {
    display: flex;
    gap: 20px; /* Adding some gap between the image and the text */
}

.about-flex-container img {
    flex: 1 1 40%; /* This will take up to 40% of the available width */
    max-width: 250px;
    height: 250px;
}

.about-flex-container div {
    flex: 1 1 60%; /* This will take up to 60% of the available width */
}

.about-top {
    display: flex;
    align-items: flex-start;
    gap: 20px; 
}

.about-top img {
    width: 250px;
    height: 250px;
}


/* Style the footer */
footer {
    background-color: #0a2463;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Make the design responsive */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    main {
        padding-top: 120px;
    }

    section {
        flex-direction: column;
    }

    h2 {
        font-size: 3em;
    }

    p {
        font-size: 1.5em;
        max-width: 600px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .about-flex-container {
        flex-direction: column;
    }
    
    .about-flex-container img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .about-flex-container div {
        flex: 1 1 100%;
    }
    .about-top {
        flex-direction: column;
        align-items: center;
    }
    
    .about-top img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}

ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

ul li {
    margin: 10px 0;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #0056b3;
    border-radius: 4px;
    font-weight: bold;
}



