.body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 0.0625rem 0.625rem lightgray;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav_title {
    font-weight: normal;
    font-size: 1.5rem;
    padding-left: 1rem;
    margin: 0;
}

.nav_list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding-right: 1rem;
    gap: 1rem;
}

.nav_button {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav_button:hover {
    background-color: rgb(0, 110, 255);
    color: white;
}

.page_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2rem;
    padding-bottom: 2rem;
}

.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    /* Offset for sticky nav */
    box-sizing: border-box;
}

.title_page_container,
.page_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: rgb(243, 244, 246);
    border-radius: 1rem;
    width: 90%;
    max-width: 60rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 0.5rem 0 lightgray;
    border: 0.0625rem solid lightgray;
    box-sizing: border-box;
}

.page_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title_page_title,
.page_title {
    font-size: 3rem;
    /* Scaled down slightly for better fit */
    font-weight: normal;
    margin: 0;
    align-self: center;
}

.container_text {
    grid-column: 1 / 2;
    line-height: 1.5;
    font-size: 1rem;
}

.image_container {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile_image {
    width: 100%;
    max-width: 20rem;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

.quick_link_list {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.quick_link_box {
    display: flex;
    background-color: rgb(0, 110, 255);
    width: 3rem;
    height: 3rem;
    border-radius: 0.25rem;
    transition: transform 0.2s;
}

.quick_link_box:hover {
    transform: scale(1.1);
}

.quick_link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.quick_link_icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.button_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
    padding: 0;
    margin-top: 2rem;
}

.page_button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    width: 100%;
    max-width: 25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: left;
    box-shadow: 0 0.5rem 0.5rem 0 lightgray;
    line-height: 1.5;
    margin: 0 auto;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.page_button:hover {
    background-color: rgb(0, 110, 255);
    color: white;
}

.page_footer {
    font-size: 2rem;
    margin-top: 2rem;
}

@media only screen and (max-width: 48rem) {

    .title_page_container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
    }

    .title_page_title {
        grid-column: 1 / -1;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .image_container {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 1rem;
    }

    .container_text {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .quick_link_list {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-content: center;
        margin-top: 1rem;
    }

    .page_button {
        width: 100%;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    font-size: 16px;
}