﻿#clinical-programming-page {
    background-color: #eee;
    overflow: clip;
}

.content {
    max-width: 1500px;
    margin-inline: auto;
    padding: .5rem 1.5rem 4rem 1.5rem;
    position: relative;
    overflow-y: clip;
}

#cp-intro{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
#cp-intro > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cp-intro p {
    margin-inline: auto;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 50ch;
    text-align: center; 
} 
#cp-team{
    margin-left: 20px;
    margin-block: 1.5rem;
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    border: 5px solid var(--green);
}

.box-container{
    width: 100%;
    max-width: 100%;
    position: relative;
}

.box {
    padding:  1.75rem 1.25rem 1.5rem 1.25rem;
    border-radius:20px;
    border-width: 5px;
    border-style: solid;
    position: relative;
    background-color: white;
    z-index: 2; /* to go in front of pentagons*/
}
.box.blue{
    border-color: var(--blue);
}
.box.green {
    border-color: var(--green);
}
.box.orange {
    border-color: var(--orange);
}

.box div:has(> h2) {
    max-width: 100%;
    border-radius: 100px;
    position: absolute;
    padding: .25rem .75rem;
    top: 0;
    left: 50%;
    transform: translateY(calc(-50% - 3px)) translateX(-50%);
}
.box.blue div:has(> h2) {
    background-color: var(--blue);
}
.box.green div:has(> h2) {
    background-color: var(--green);
}
.box.orange div:has(> h2) {
    background-color: var(--orange);
}

.box h2 {
    max-width: 100%;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-align: center;
}
.inner-box {
    max-width: 100%;
    display: flex;
    gap: 1.5rem;
}
@media(max-width: 730px) {
    .inner-box {
        flex-direction: column;
        align-content: center;
    }

    .inner-box div:has(> img) {
        margin-inline: auto;
        display: flex;
        justify-content: center;
    }
}

/* #stdm-box */
#stdm-box {
    max-width: 800px;
}
.box-container:has( #stdm-box ){
    display: grid;
    grid-template-columns: 1fr auto 6fr;
}
@media(max-width: 800px) {
    .box-container:has( #stdm-box ) {
        display: block;
    }
    .box-container:not(:first-child){
        margin-top: 4rem !important;
    }
}
#stdm-box ul p {
    width: min-content;
}
#stdm-box ul{
     margin-inline: auto;
}


/* #pre-sdtm-box */
#pre-sdtm-box{
    max-width: 930px;
}
.box-container:has( #pre-sdtm-box ) {
    margin-top: 2.5rem;
    margin-right: 1.5rem;
    min-height: 9rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}
@media(max-width: 780px) {
    .box-container:has( #pre-sdtm-box ) {
        display: block;
    }
}
@media(max-width: 730px) {
    #pre-sdtm-box .inner-box {
        flex-direction: column-reverse;
    }
}


/* Sas Programming for Data Cleaning */
#cleaning-box {
    max-width: 955px;
    margin-inline: auto;
}
.box-container:has( #cleaning-box ) {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 5fr auto 1fr;
    gap: 1rem;
}
@media(max-width: 780px) {
    .box-container:has( #cleaning-box ) {
        display: block;
    }
}

#cleaning-box p {
        width: min( 65ch, 100%);
}

#cleaning-box ul {
    max-width: 50ch;
    margin-left: 2rem;
}
p.center {
    margin-block: 0;
    margin-inline: auto;
    padding: 0;
    width: max-content;
    max-width: min(60ch, 100%);
    font-weight: 600;
}

img.s310 {
    width: min(340px, 101%);
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    object-fit: cover;
}

div:has(> .s310){
    align-content: center;
}

#clinical-programming-page .pentagon-wrapper {
    z-index: 1;
}
footer{
    z-index: 1; /* to go in front of pentagons*/
}