@charset "utf-8";

body {
    font-optical-sizing: auto;
    font-style: normal;
}

.align-center {
    align-items: center;
}

section {
    padding: 50px 0;
}

.title{
    font-weight: 700;
    text-align: center;
    color: #d40b2e;
}

section.grey-bg-first {
    background-color: #f3f4f5;
}

section.white-bg-first , section.white-bg-third {
    background-color: #fff;
}

.white-bg-second {
    background-color: #fff;
    margin-bottom: 50px;
}

/* ---------------------------*/
/* hero-banner                */
/* ---------------------------*/

.about-hero-banner {
    height: 350px;
    background-image: url(../img/banner.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    
    .overlay {
        height: 100%;
        text-align: center;
        place-content: center;        
        backdrop-filter: brightness(50%);

        h2 {
            font-size: 4rem;
            font-weight: 600;
            color: white;
        }
    }
}

/* ---------------------------*/
/* section-white-bg-one       */
/* ---------------------------*/


section.white-bg-first {

    h2 {
        margin-bottom: 10px;
        font-size: 30px;
        text-align: left;
    }

    figure {
        flex: 0 0 calc(35% - 10px);
        max-width: calc(35% - 10px);
        padding: 15px;
        overflow: hidden;
        object-fit: cover;

        img {
            height: 100%;
            object-fit: cover;
        
        }
    }
    
    .welcome-content {
        flex: 0 0 calc(65% - 10px);
        max-width: calc(65% - 10px);
        padding: 15px;
        font-size: 18px;

        .col-md-6 {
            flex: 0 0 calc(50% - 10px);
            max-width: calc(50% - 10px);
        }

        p {
            color: rgba(119, 119, 119, 0.784);
        }

        a {
            color: black;
        }
    }
    
}

/* ---------------------------*/
/* div-white-bg-second        */
/* ---------------------------*/

.white-bg-second {
    text-align: center;

    .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .column:nth-child(1),
    .column:nth-child(3),
    .column:nth-child(5) {
        flex: 0 0 27%;
 
    }
    .column:nth-child(2),
    .column:nth-child(4) {
        flex: 0 0 9.5%;
        position: relative;
        padding: 0;
    }

    .column.divider::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 2px;
        height: 60%;
        background-color: rgba(95, 95, 95, 0.308);
    }
    
    .content-column p {
        margin-bottom: 1rem;
        line-height: 1.5;

    }

    .column.content-column {
        margin-top: 3rem;
    }

    .small {
        font-size: 70%;
    }

    .big {
        color: #d40b2e;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom:0.3rem;
        font-size: 5rem;
        line-height: 5rem;
      }
}

/* ---------------------------*/
/* section-grey-bg-first      */
/* ---------------------------*/

section.grey-bg-first {
    .row {
        display: flex;
        gap: 20px;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    h2 {
        font-size: 30px;
        letter-spacing: 2px;
        margin: 0 0 15px 0;
        text-align: left;
    }
    
    .col-lg-3 {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }

    img {
        display: block;
        max-width: 100%;
        height: 200px;
        border-radius: 6px;
    }

    div.caption {
        max-width: 90%;
        margin-top: 1.5rem;
	    overflow: hidden;

        a {
            text-decoration: none;
            color: #d40b2e;
            font-size: 130%;
        }

        .job {
            color: #000000cb;
            font-size: 90%;
        }

        p { 
            color: rgba(119, 119, 119, 0.784);
            text-wrap: wrap;
        }
    }
}

/* ---------------------------*/
/* section-white-bg-three     */
/* ---------------------------*/

section.white-bg-third { 

    h2 {
        font-size: 30px;
        letter-spacing: 2px;
        margin: 0 0 15px 0;
        text-align: left;
    }
    .center {
        align-items: center;
        place-content: center;
        justify-content: center;
    }
    
    .gallery {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
    }

}

.gallery > div {
    flex: 0 0 calc(16.666% - 1rem);
    box-sizing: border-box;
    min-height: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
}

.gallery > div p {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.flex-img {
    display: flex;   
    gap: 10px;
    
    div {
        flex: 1;
        height: 300px;
        border-radius: 4px;
        padding: 15px;
        text-align: center;
        transition: opacity 1s ease;
        transition: all 0.5s ease-in-out;

        p {
            display: none;
        }

        &:hover {
            opacity: 0.7;
            flex-grow: 4;

            p {

                transform: scale(1.5);
                display: inline;
                color: #ffffff;
                font-size: 1.8rem;
                line-height: 300px;
                }
        }
    }

    div.amara {
        background: url(../img/amara.jpg) center center / cover no-repeat;
    }

    div.elijah {
        background: url(../img/elijah.jpg) center center / cover no-repeat;
    }

    div.sofia {
        background: url(../img/sofia.jpg) center center / cover no-repeat;
    }

    div.liam {
        background: url(../img/liam.jpg) center center / cover no-repeat;
    }

    div.priya {
        background: url(../img/priya.jpg) center center / cover no-repeat;
    }

    div.malik {
        background: url(../img/malik.jpg) center center / cover no-repeat;
    }
}

/* ---------------------------*/
/* group-divider              */
/* ---------------------------*/

section.group-divider {
    padding: 0 0 2rem 0;

    .divider:before {
        content: "";
        display: block;
        margin: 3px 0 15px 0;
        width: 100%;
        height: 1px;
        background-color: #d40b2e;
    }

    p {
        padding: 0.5rem 0;
    }
}

section.group-divider .toTop {
    width: 34px;
    height: 30px;
    float: right;
    background: url(../img/top.png) no-repeat 0px -5px;

    &:hover {
        transition: color 0.5s ease-in-out;
        background-color: #d40b2e;
    }
}

section.group-divider .btnGroup {
    float: left;
    margin-top: 15px;
    transition: color 0.25s ease-in-out;
    will-change: color;

    a {
        color: #d40b2e;
        background-color: #fff;
        text-transform: uppercase;
        margin-right: 15px;
        border: 1px solid #d40b2e;
        text-align: center;
        text-decoration: none;
        padding: 5px 11px;

        &:hover {
            border: 1px solid white;
            background-color: #85071c;
            color: #fff;
        }
    }
}

/* ---------------------------*/
/* Responsive adjustments     */
/* ---------------------------*/

@media (max-width: 992px) {
    .gallery > div {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (max-width: 768px) {
    
    section.white-bg-second {
        .flex-columns {
            flex-direction: column;
        }

        .column {
            flex: 0 0 100% !important;
            width: 100%;
        }

        .column.divider {
            display: none;
        }

    }

    section.grey-bg-first {
        .col-md-6 {
            flex: 0 0 calc(50% - 10px);
            max-width: calc(50% - 10px);
        }
    }

    .gallery > div {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    section.white-bg-first {
        .col-xs-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    section.grey-bg-first {
        .col-xs-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    .gallery > div {
        flex: 0 0 100%;
    }
}

