.buildingEnergyWrapper{
    color: black;
    padding-bottom: 5vh;
    width: 100%;

    && h1{
        font-weight: 600;
        font-size: 42px;
        color: black;
    }

    .lineBreak{
        width: 100%;
    }
}

#buildingEnergySectionMain{
    width: 80%;
    max-width: 1200px;
    margin: auto;
    padding-top: 5vh;
}

.buildingEnergySection{
    margin-bottom: 10vh;
    /*margin-top: 5vh;*/
    display: grid;
    height: max-content;
    width: 100%;
    background: #f6f6f6;

    && h1:hover{
        cursor: pointer;
        width: fit-content;
    }

    .buildingEnergySectionImage{
        width: 100%;
        height: 100%;

        && img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            cursor: pointer;
        }

        .rightPositionImage{
            object-position: right !important;
        }

    }

    .sectionDetails{
        height: fit-content;
        align-content: center;
        padding: 50px 30px;
        color: #313131;

        && p{
            font-size: 18px;
            padding-bottom: 1.3em;
            margin: 0;
            /*line-height: 27px;*/
        }
    }

    .secondary-button-inverted{
        min-height: 32px;
        max-height: fit-content;
        min-width: fit-content;
    }
}

.lastBuildingEnergySection{
    margin-bottom: 5vh;
}

.buildingEnergySectionLeft{
    grid-template-columns: 40% 60%;
}

.buildingEnergySectionRight{
    grid-template-columns: 60% 40%;
}

.buildingEnergyIntro{
    /*grid-template-columns: 0.5fr 1.5fr;*/
    border-bottom: 1px solid #DFDFDF;
    padding-top:0;
    padding-bottom: 10vh;
    height: max-content;
    margin-top:0;
    background: none;

    & h1{
        margin-top: 0;
    }

    & .buildingEnergyTitle h1:hover {
        cursor: default;
    }

    .sectionDetails{
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 20px;
        padding-bottom: 0;

        && p{
            padding-bottom: 0;
        }
    }
}

#buildingEnergyDetailsWrapper{
    display: none;
    flex-direction: column;
    width: 80%;
    max-width: 1200px;
    margin: auto;
    padding-top: 5vh;

    #buildingEnergyDetailsMain{
        display: grid;
        grid-template-columns: 30% calc(70% - 50px);
        grid-gap: 50px;

        && h1{
            margin-top: 0;
        }
    }

    #buildingEnergyDetailsMainMobile{
        display: none;
    }

    .buildingEnergyMenuContainer{
        grid-column: 1;
        position: sticky;
        top: 100px;
        z-index: 100;
        height: fit-content;
    }

    .backToTopContainer{
        justify-content: start;

        && img{
            transform: rotate(-90deg);
        }
    }

    #buildingEnergyDetails{
        grid-column: 2;

        .detailsMainImage{
            display: flex;
            justify-content: center;
        }
        .detailsMainImage img{
            width: 70%;
            height: auto;
        }

        .subsectionHeader{
            font-style: italic;
        }

        & p{
            margin-bottom: 40px;
        }

        /*&& ul{*/
        /*    padding-left: 18px;*/
        /*    margin-top:0;*/
        /*    margin-bottom:0;*/

        /*    && li{*/
        /*        padding-bottom: 10px;*/
        /*    }*/
        /*}*/

        .bold{
            font-weight: 600;
        }
    }

    #sampleProjects{
        grid-row: 2;
        grid-column: 1 / span 2;
    }

    && ol {
        margin-top: 10px;
        list-style-type: none;
        color: #767676;
        font-size: 20px;
        padding-left: 0;

        & > li {
            counter-increment: customlistcounter;
            transition: all 0.3s ease-in-out;
            width: fit-content;
            display: block;
            margin-bottom: 10px;
            margin-left: 20px;

            &::before {
                content: counter(customlistcounter, decimal-leading-zero) ". ";
                float: left;
                font-size: 12px;
                line-height: 28px;
                height: 100%;
                margin-left: -20px;
                display: inline-block;
            }

            &:nth-child(1) {
                counter-reset: customlistcounter;
            }

            &:hover{
                color: black;
                cursor: pointer;
            }
        }

        && li.selected-bes-li{
            color: black;
            font-weight: 600;
        }
    }
}

.besMobileListItemContainer{
    font-size: 18px;
    font-weight: 600;
    border-bottom: 0.5px solid #D3D3D3;
    /*border-bottom: none;*/
    padding: 20px 0;
    padding-right: 15px;

    & img{
        cursor: pointer;
        width: 10px;
        height: auto;
        rotate: 180deg;
    }
}

/*.besMobileListItemContainer:first-child{*/
/*    border: none*/
/*}*/

/*.besMobileListItemContainer:last-of-type{*/
/*    border-bottom: 0.5px solid #D3D3D3;*/
/*}*/

.besMobileListItemContainer.selected-bes-mobile-li{
    & img{
        rotate: 0deg;
        transition: rotate 0.3s ease-in-out;
    }
}

.besMobileListGrid{
    width: 80%;
    margin: auto;
    /*counter-increment: customlistcounter;*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;

    /*&::before {*/
    /*    content: counter(customlistcounter, decimal-leading-zero) ". ";*/
    /*    float: left;*/
    /*    font-size: 18px;*/
    /*    height: 100%;*/
    /*    margin-left: -30px;*/
    /*    display: inline-block;*/
    /*}*/

    /*&:nth-child(1) {*/
    /*    counter-reset: customlistcounter;*/
    /*}*/
}

.buildingEnergyMenu-mobile{
    counter-reset: customlistcountermobile;
}

.besMobileListItem{
    counter-increment: customlistcountermobile;
    cursor: pointer;
    padding-left: 30px;
}

.besMobileListItem::before{
        content: counter(customlistcountermobile, decimal-leading-zero) ". ";
        float: left;
        font-size: 18px;
        height: 100%;
        margin-left: -30px;
        display: inline-block;
}

.besDetailContentMobile{
    height: 0;
    width: 100%;
    transition: height 0.5s ease-in-out;
    overflow: hidden;

    & h1 {
        display: none;
    }

    & p{
        width: 80%;
        margin: 20px auto ;
    }

    .slidesArrow, .arrowsContainer{
        display: none;
    }

    .slidesOverflow{
        overflow: initial;
        width: 80%;
        margin-left: 10%;
        margin-right: 10%;
    }

    .besDetailsSlidesWrapper{
        overflow-x: auto;
        width: 100%;
        padding-left: 0;
        padding-right: 10%;
    }

    .oneBesSlide{
        width: 80%;
        margin: auto;
        padding-left: 0;

        .besDetailsSlide{
            margin-right: 0;
        }
    }
}

.openDetails{
    padding-bottom: 40px;
    border-bottom: 0.5px solid #D3D3D3;
}

.seeMoreContainer{
    display:flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    width: 100%;

    .seeMore{
        display:flex;
        flex-direction: row;
        justify-content: end;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        border-radius: 15px;
        height: 30px;
        padding-left: 10px;
        box-shadow: none;
        transition: box-shadow 0.3s ease-in-out;

        && p {
            padding-bottom: 0;
        }
    }

    .seeMore:hover{
        transition: box-shadow 0.3s ease-in-out;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .arrowContainer{
        width: 30px;
        height: 30px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(2px);
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-content: center;
    }

    .arrow{
        width: 10px;
        height: auto;
        rotate: 90deg;
    }
}

.besDetailsSlidesContainer{
    position: relative;
    top: 0;
    width: calc(100% + 40px);
}

.slidesOverflow {
    overflow-x: hidden;
    position: relative;
    z-index: 50;
    width: calc(100% + 60px);
    justify-self: center;
}

.besDetailsSlidesWrapper{
    display: flex;
    flex-direction: row;
    width: fit-content;
    position: relative;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    padding-left: 30px;
}


.besDetailsSlide{
    display: flex;
    flex-direction: column;
    background: #f6f6f6;
    padding: 10px;
    width: 228px;
    min-width: 228px;
    margin-left: 0;
    margin-right: 40px;
    z-index: 1;

    & img{
        width: 100%;
        height: 140px;
        object-position: center;
        object-fit: cover;
        overflow-clip-margin: unset;
    }

    & h2 {
        font-weight: bold;
        font-size: 18px;
    }

    .besDetailsSlideList{
        list-style: none;
        padding: 0;
        margin: 0;
        font-weight: 400;
        font-size: 14px;

        & li{
            padding-bottom: 10px;
        }

        & ul{
            padding-top: 10px;
        }
    }
}

.oneBesSlide {
    width: 100%;
    justify-content: center;

    .besDetailsSlide{
        width: fit-content;
    }
}

.hidden{
    /*opacity: 50%;*/
}

.arrowsContainer {
    position: absolute;
    top: 0;
    left: -44px;
    width: calc(100% + 60px + 22px);
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    z-index: 95;

    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(255, 255, 255, 0) 88%,
    rgba(255, 255, 255, 0.9) 100%);
}

.slidesArrow.leftArrow{
    display: none;
}

.slidesArrow.rightArrow{
    display: none;
}

.slidesArrow{
    background: #0909094D;
    backdrop-filter: blur(4px);
    width: 44px;
    height: 44px;
    border: 1px solid #FFFFFF4D;
    border-radius: 50%;
    display: flex;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-items: center;
    cursor: pointer;

    & img{
        width: 16px;
        height: auto;
    }
}

.slidesArrow:hover{
    background: rgba(0, 0, 0, 0.37);
}

.arrowLeft {
    rotate: 180deg;
}

.desDetailsText{
    display: block;
    align-content: center;
    align-items: center;
    align-self: center;
    padding-bottom: 20px;

    && p{
        margin-top: 0;
    }
}

.floating{
    float:right;
    width:50%;
    margin: auto;

    && img{
        width: 100%;
        height: auto;
    }
}

.bes-inlineImages{
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    /*&& img{*/
    /*    width: 49%;*/
    /*}*/
}

.bes-inlineSingleImage{
    display: flex;
    width: 100%;
    && img{
        width: 100%;
    }
}

@media (min-width: 1550px) {
    /*.buildingEnergySectionImage img {*/
    /*    width: 586px;*/
    /*    height: 100%;*/
    /*}*/
    /*.buildingEnergyContainer {*/
    /*    padding: 30px;*/
    /*}*/
    /*.buildingEnergySection, .contactUsBanner, .aboutUsBanner  {*/
    /*    height: 600px;*/
    /*}*/

}

@media (max-width: 950px) {
    #buildingEnergyDetailsWrapper{

        width: 100%;
        margin: 0;
        padding-top: 0;

        #buildingEnergyDetailsMain{
            /*display: flex;*/
            /*flex-direction: column;*/
            display: none;
        }

        #buildingEnergyDetailsMainMobile{
            display: flex;
            flex-direction: column;
            .buildingEnergyMenu {
                font-size: 18px;
                width: 100%;

                & li{
                    width: 100vw;
                    border-bottom: 0.5px solid #D3D3D3
                }
            }
        }

    }
}

@media screen and (min-width: 750px) and (max-width: 950px) {
    .projectsCaseStudy{
        margin-left: 10%;
        margin-right: 10%;
    }
}

@media (max-width: 750px) {

    .buildingEnergyIntro{
        grid-template-columns: 1fr;
        gap: 0;

        .buildingEnergyTitle{
            padding-left: 10%;
        }

        .sectionDetails{
            padding-bottom: 0 !important;
        }

        .sectionDetails p{
            padding-top: 0;
        }
    }

    .buildingEnergySection{
        .sectionDetails{
            padding: 0 10% 10% 10%;
            width: 80%;

            & p{
                padding-bottom: 0;
            }
        }
    }

    .buildingEnergyIntro h1{
        margin-top: 0;
    }

    .buildingEnergySectionWrapper {
        padding: 150px 20%;
    }

    .buildingEnergySectionLeft, .buildingEnergySectionRight {
        grid-template-columns: 1fr;
    }

    .buildingEnergySectionImage img {
        width: 445px;
        height: 100%;
    }


}

@media (max-width: 600px) {
    .buildingEnergySectionWrapper:nth-child(5) {
        grid-column: 2 / span 2;
    }

    .buildingEnergySectionWrapper {
        padding: 50px 8px;
        grid-column: span 2;
    }
    .buildingEnergySectionImage img {
        width: 100%;
        height: 100%;
    }
    .buildingEnergySectionLeft .buildingEnergyContainer, .buildingEnergySectionRight .buildingEnergyContainer {
        padding: 20px;
    }

    .buildingEnergyWrapper {
        && h1 {
            font-size: 32px;
        }
    }
}



