body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #e4f9e2; /* Light green background */
    margin: 0;
    padding: 0;
}

header {
    background-color: #c4e4ce;
    padding: 1em 2em;  /* Adjusted padding to ensure alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    margin-right: 10px; /* Adds space between the logo and the title */
}

header h1 {
    color: #20543e;
    margin: 0;
}

nav {
    flex-grow: 1;
    text-align: right;
    align-items: center;
}

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

nav ul li {
    margin-left: 20px;
    align-items: center;
}

nav ul li.spacer {
    flex-grow: 1;
}

nav ul li button {
    background-color: #20543e;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 20px;
}

nav ul li button:hover {
    background-color: #16412a;
}

nav ul li a {
    color: #20543e;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center; /* Aligns the icon with the text vertically */
    margin-left: 20px;
    align-items: center;
    font-weight: bold;
}

nav ul li a img {
    margin-right: 5px; /* Space between the icon and the email text */
    height: 30px; /* Adjust size as necessary */
    /* width: 20px; 
    border-radius: 50%; 
    background-color: #20543e; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 5px; */
}

section {
    padding: 2em 2em;
    text-align: left; /* Changed from center to left */
    margin-left: 2em; /* Aligns content with the header, adjust as needed */
    max-width: 960px;
}

section#intro, section#book-appointment {
    margin: auto;
    max-width: 960px;
}

#intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    max-width: 960px;
    padding: 2em;
}

#intro .intro-text {
    flex: 1; /* Takes up the remaining space not used by the image */
    text-align: justify;
    line-height: 1.6; /* Line spacing */
    font-size: large;
}

#intro .intro-image {
    flex: 0 1 300px; /* Do not grow, but can shrink, with initial width of 300px */
    max-width: 300px;
    padding-left: 20px; /* Adds some space between the text and the image */
}

#intro img {
    width: 90%; /* Makes the image responsive within the div */
    height: auto;
    border-radius: 50%;
}

footer {
    background-color: #bde4c7;
    padding: 2em;
    text-align: center;
}

button {
    background-color: #20543e;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 20px;
}

button:hover {
    background-color: #16412a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 10px 1em;
    }

    header img,
    header h1 {
        flex-shrink: 0;
    }

    nav ul {
        flex-direction: row;
    }

    nav ul li {
        margin-left: 10px;
    }
}

/* Hide 'Book Appointment' and email link on smaller devices */
@media (max-width: 480px) {
    nav ul li a,
    nav ul li button {
        display: none; /* Hides these elements on devices less than 480px wide */
    }

    header img {
        height: 40px;
    }

    #intro {
        flex-direction: column;
    }

    #intro .intro-text,
    #intro .intro-image {
        flex: auto;
        max-width: 100%;
        padding: 0;
    }

    #intro img {
        width: 100%; /* Adjust image to take full width */
        border-radius: 50; /* Optional: remove border-radius for full-width images */
    }

    /* Centering the Book Appointment button */
    #book-appointment {
        display: flex;
        justify-content: center; /* Centers the button horizontally */
        align-items: center; /* Ensures vertical alignment, if necessary */
        padding: 20px 0; /* Adds padding around the button for spacing */
    }

    #book-appointment button {
        width: auto; /* Adjust width as needed, or use max-width for better control */
        padding: 10px 20px; /* Adjust padding to fit design needs */
        font-size: 16px; /* Ensures the font size is appropriate for mobile */
        border-radius: 20px; /* Maintains rounded corners */
    }
}
