body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background-color: #F7F6FB;
}

h1 {
    margin: 0.2rem;
}


#header {
    margin-top: 0px;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-bottom: 1rem;
    background-color: rgb(88, 73, 141);
    padding: 0.8rem;
    color: #F7F6FB;
}

#header img {
    width: 5%;
    margin-right: 1rem;
    background: radial-gradient(circle closest-side, white calc(100% - 1px), transparent 0);
}

main {
    margin-left: 8px;
    margin-right: 8px;
    width: 100%;
}

#mainSplit {
    display: flex;
    width: 100vw;
    margin-left: 2rem;
}

#infoBox {
    padding-left: 6px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.5rem;
    width: 40vw;
    
}


#infoBox div {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    column-gap: 0.5rem;
    border-bottom: 1px solid #d7d4e4;
    margin-top: 0.5rem;
    margin-bottom: 0.5;
}

#infoBox img {
    height: 2em;
    grid-column: 1;
}

#infoBox p {
    grid-column: 2;
}

#mainImageWrapper {
    margin-top: 2rem;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainImage {
    width: 80%;
    border-radius: 15px;
}

#bottomLineText {
    width: 100%;
    display: flex;
    justify-content: center;
}

h2 {
    text-align: center;
    border-bottom: 5px solid  rgb(88, 73, 141);
    width: fit-content;
    font-size: 200%;
    margin-top: 5rem;
}

h3 {
    color: #58498D;
}

/* Phone / narrow tablet: contact block stacks above the image */
@media (max-width: 820px) {
    #mainSplit {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
        width: 100%;
        margin-left: 0;
    }

    #header img {
        width: 10%;
    }

    #infoWrapper,
    #mainImageWrapper {
        flex: none;
    }

    main {
        width: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0 1rem;
    }

    #infoBox {
        padding-left: 0;
        width: 100%;
    }

    #mainImageWrapper {
        width: 100%;
    }

    #mainImage {
        width: 100%;
    }
}

@media (max-width: 420px) {
    #header {
        padding: 0.7rem 1rem;
        gap: 0.7rem;
    }
    #header img {
        width: 12%;
    }

    #infoBox p {
        overflow-wrap: break-word;
    }
}