/* HEADERS */

section > header,
.dark-mode section > header {
    background-color: #092c89;
}

section > header h2,
.dark-mode section > header h2 {
    color: #FFF;
}

section > header p {
    color: #FFF;
}

section > header > div {
    padding: 0 2em;
    margin: 0 auto;
    max-width: 640px;
    position: relative;
    top: -6em;
}
.living-better-lives {
    margin-bottom: 2em;
    padding: 2em;
    width: 200px;
    background-color: #092c89;
    border: 4px solid orange;
    border-radius: 50%;
}

/* MENU */

.menu-open .id-navigation {
    background-color: #092c89;
}

.menu-open .id-navigation a:hover, 
.menu-open .id-navigation a:active, 
.menu-open .id-navigation a:focus {
    color: #092c89;
}


/* FRONT PAGE */

main > header {
    background-color: #092c89;
}

main > header.has-image p a:hover, 
main > header.has-image p a:active, 
main > header.has-image p a:focus {
    color: #2D5353;
}

/* BOXES */

.dark-mode .box {
    background-color: #98cbcb;
}


.teal .box,
.dark-mode .teal .box {
    background-color: #98cbcb;
}

.teal .box *,
.dark-mode .teal .box *,
.teal > header h2,
.dark-mode .teal > header h2 {
    color: #3B4E4C;
}

.teal > header,
.dark-mode .teal > header {
    background-color: #98cbcb;
}

.box {
    background-color: #EEE;
    padding: 2em;
    margin: 4em 0;
}

.box p {
    display: block;
    overflow: hidden;
    padding: 0;
    font-size: 1.6em;
    color: #3B4E4C;
}


.box > p {
    margin: 0;
}

.box:not(.inline) p em {
    display: inline-block;
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.5em;
    line-height: 1.25em;
}

.box.text p em {
    font-size: 1.25em;
}

.box.inline p em {
    display: inline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.box.icon p,
.box.icon em {
    text-align: center;
}

.box.icon::before {
    content: '';
    display: block;
    width: 30%;
    padding-bottom: 30%;
    margin: 0 auto 2em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top center;
}

.box.icon.img-three-people::before { background-image: url('../images/icons/img-three-people.svg'); }
.box.icon.img-over-65::before { background-image: url('../images/icons/img-over-65.svg'); }
.box.icon.img-house::before { background-image: url('../images/icons/img-house.svg'); }
.box.icon.img-land::before { background-image: url('../images/icons/img-land.svg'); }
.box.icon.img-people::before { background-image: url('../images/icons/img-people.svg'); }
.box.icon.img-bench::before { background-image: url('../images/icons/img-bench.svg'); }
.box.icon.img-book::before { background-image: url('../images/icons/img-book.svg'); }
.box.icon.img-work::before { background-image: url('../images/icons/img-work.svg'); }
.box.icon.img-family::before { background-image: url('../images/icons/img-family.svg'); }
.box.icon.img-children::before { background-image: url('../images/icons/img-children.svg'); }
.box.icon.img-money::before { background-image: url('../images/icons/img-money.svg'); }
.box.icon.img-higher::before { background-image: url('../images/icons/img-higher.svg'); }
.box.icon.img-lower::before { background-image: url('../images/icons/img-lower.svg'); }


@media all and (min-width: 720px) {

    .box.icon {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .box.icon::before {
        margin: 0 2em 0 0;
        width: 20%;
        padding-bottom: 20%;
    }

    .box.icon > *:first-child {
        width: calc( 80% - 2em );
    }

    .box.icon p,
    .box.icon em {
        text-align: left;
    }

}

.box.image {
    padding: 0;
    min-height: 150px;
}

.box.image p {
    margin: 1.25em;
    display: block;
    width: auto;
}

section > figure {
    text-align: center;
}

.circles {
    display: flex;
    gap: 10px;
}

.circle {
    background-color: #092c89;
    color: #FFF;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
}
table.org-chart td {
    text-align: center;
    border: 0;
    margin: 0;
    padding: 0;
}

.org-chart-grid {
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    gap: 0;
    margin-bottom: 2em;
    position: relative;
}
.org-chart-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5em;
}
.org-chart-title-cell {
    font-weight: bold;
    text-align: center;
    background: #f0f6fa;
    padding: 0;
    border-radius: 6px;
}
.org-chart-row.org-chart-title::after,
.org-chart-cell.YJM::after,
.org-chart-cell.SP2::after {
    position: absolute;
    left: 49%;
    top: 94px;
    content: "";
    display: block;
    width: 2px;
    height: 10px;
    background-color: #333;
}
.org-chart-cell.YJM::after,
.org-chart-cell.SP2::after {
    top:128px;
}
.org-chart-managers {
    position: relative;
}
.org-chart-managers > .org-chart-cell::before,
.org-chart-staff > .org-chart-cell::before {
    content: "";
    position: absolute;
    display: block;
    width: 2px;
    height: 12px;
    background: #333;
    top: -12px;
    left: 49%;
}
.org-chart-cell {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 0;
    text-align: center;
    font-size: 0.75em;
    margin: 10px 0;
    overflow: visible;
}
.first-org-chart-spacer {
    height: 0;
    grid-column: 1 / span 6;
    background: none;
    width: 84%;
    border-top: 2px solid #333;
    margin: 0 auto;
}
.second-org-chart-spacer {
    height: 0.5em;
    grid-column: 1 / span 6;
    background: none;
    width: 67.3%;
    height: 0;
    border-top: 2px solid #333;
    margin: 0 0 0 24.65%;
}
@media (max-width: 900px) {
    .org-chart-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .org-chart-title-cell {
        grid-column: 1 / span 2 !important;
    }
}