body {
    font-family: Arial, sans-serif;
    margin: 0;
    /* Ensure the body is at least as tall as the viewport */
    min-height: 100vh;
    /* Main layout is Grid */
    display: grid;
    /* Header/Footer take content size, Main takes remaining space (1fr) */
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
    box-sizing: border-box;
}

header {
    grid-area: header;
}

main {
    /* Inner elements are Flex */
    display: flex;
    flex-direction: column;
    grid-area: main;
    padding: 0 18rem;
}

.main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-info h1 {
    margin: 0;
    font-size: 4rem;
}

.main-info .lower-info {
    display: flex;
    direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-info .lower-info p {
    display: flex;
    align-items: center;
    text-align: right;
    justify-content: right;
    font-size: 1.2rem;
}

.nonexpanding-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20rem;
    height: 10rem;
    overflow: hidden;
}

.nonexpanding-img-container img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40rem;
    height: auto;
}

footer {
    /* Inner elements are Flex */
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: footer;
    background: gray;
    padding: 1rem;
    color: white;
}

#nav-list {
    margin: 0;
    list-style: none;
    padding: 1rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    background: #f8f9fa;
}

.nav-link {
    text-decoration: none;
    color: #333;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Section grid: text + image side by side */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.section-grid .section-text h3 {
    margin: 0;
}

.section-grid .section-img {
    width: 100%;
    height: 14rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.section-grid .section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
}
