@import url('https://fonts.googleapis.com/css2?family=Rouge+Script&display=swap');
section {
    margin-top: calc(60px + 30px);
    margin-bottom: 50px;
}
h1 {
    font-size: 20px;
    font-weight: 400;
    color: rgb(233 76 59);
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    margin: 14px 0 10px 0;
    line-height: 1.4;
}
h3 {
    font-size: 20px;
    font-weight: 400;
    color: #353535;
    line-height: 1.5;
    & span {
        display: block;
        font-style: italic;
    }
}

div.info {
    width: 820px;
    margin-top: 40px;
    & p.title {
        font-size: calc(16px * 1.6);
        margin-bottom: 0;
        font-family: "Rouge Script", cursive;
        color: #353535;
    }
    & p.desc {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.6;
        color: #353535;
    }
    & span.bold {
        font-weight: 600;
    }
    & h2 {
        margin: 0;
        margin-bottom: -6px;
    }
}
div.about {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    & div.banner {
        background-color: #f7f7f7;
        border-radius: 17px;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        & img {
            width: 170px;
            display: flex;
            height: auto;
        }
    }
    & div.caption {
        width: 820px;
    }
}

div.team {
    width: 1040px;
    display: grid;
    justify-items: center;
    margin-left: 50%;
    transform: translate(-50%, 0);
    & p.subtitle {
        color: #353535;
        font-style: italic;
        margin-top: 10px;
    }
    & div.child {
        display: flex;
        flex-direction: row;
        /* justify-content: center; */
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
        margin-top: 24px;
    }
}

div.team div.person {
    width: calc(33.33% - 16px);
    border: 1px solid #f7f7f7;
    border-radius: 17px;
    overflow: hidden;
    & div.photo {
        width: 100%;
        aspect-ratio: 1/0.8;
        overflow: hidden;
        
    }
    & div.photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    & div.details {
        padding: 14px;
    }
    & div.details p.name {
        font-weight: 600;
        font-size: 18px;
    }
    & div.details p.position {
        font-size: 14px;
        margin-top: 2px;
        color: #353535;
    }
}

div.founder-message {
    background-color: rgb(233 76 59);
    /* background-color: #f7f7f7; */
    margin-top: calc(270px - 150px);
    position: relative;
    width: 940px;
    height: 220px;
    display: block;
    margin-left: 50%;
    transform: translate(-50%, 0);
    border-radius: 11px;
    & div.avatar {
        /* background-color: green; */
        position: absolute;
        bottom: 0;
        display: flex;
    }
    & div.avatar img {
        display: flex;
        height: 300px;
        width: 260px;
        object-fit: cover;
    }
    & div.message {
        display: grid;
        align-content: center;
        height: 100%;
        width: 640px;
        margin-left: calc(200px + 70px);
        & h3 {
            font-weight: 600;
            color: #f7f7f7;
        }
        & p.desc {
            line-height: 1.4;
            margin: 10px 0 14px 0;
            color: #f7f7f7;
            font-size: 15px;
        }
        & p.person {
            font-style: italic;
            & span {
                display: block;
                color: #f7f7f7;
                font-size: 16px;
            }
            & span:last-child {
                font-size: 14px;
                margin-top: 3px;
            }
        }
    }
}
/* @media only screen and (max-width: 1314px) {
    h2 {
        font-size: 27px;
    }
    h3 {
        font-size: 18px;
    }
} */
@media only screen and (max-width: 1240px) {
    h2 {
        font-size: 27px;
    }
    h3 {
        font-size: 18px;
    }
    div.about div.caption {
        width: 620px;
    }
}
@media only screen and (max-width: 1110px) {
    /* div.about {
        & div.banner {
            aspect-ratio: 1/1;

        }
    } */
    
    div.team {
        width: 100%;
        margin-left: 0;
        transform: none;
    }
    div.founder-message {
        width: 100%;
        & div.message {
            width: auto;
            margin-left: calc(200px + 55px);
            & div {
                margin-right: 20px;
            }
        }
    }
    /* div.faqs div.contact-us {
        max-width: 100% !important;
    } */
}
@media only screen and (max-width: 940px) {
    div.about {
        align-items: flex-start;
        & div.banner {
            aspect-ratio: 1/1;
            & img {
                width: 60%;
            }
        }
    }
    div.info.mv {
        width: 90%;
    }
    div.faqs {
        padding-bottom: 0;
        padding-top: 40px;
    }
    div.faqs div.child {
        display: grid;
    }
    div.faqs div.tab.end {
        width: 100%;
    }
}