.navbar{
    position: fixed;
    width: 100%;
}
#main{
    overflow: hidden !important;
    padding-bottom: 0px !important;
}
#templatesRow{
    display: table-row;
    margin-top: 65px;
}
#footer{
    display: none;
}
#template_footer{
    display: none;
}
#templatesMainContainer{
    width: calc(100vw - 250px) !important;
    display: inline-block;
    margin-left: 250px;
    height: calc(100vh - 70px);
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: 65px;
}
/* Fix scroll-bar issue on new nav bar(EN) */
.header_root + #templatesRow > #templatesMainContainer {
    height: calc(100vh - 95px);
}
.header_root.new + #templatesRow > #templatesMainContainer {
    height: calc(100vh - 64px);
}

#browseBy{
    border-bottom: 1px solid #DFDFDF;
    width: 100%;
    padding-bottom: 25px;
    margin-bottom: 30px;
}
#categoryTitle{
    display: block;
    width: 100%;
    text-align: center;
    padding: 25px 30px 0px 30px;
    /* margin-bottom: 15px; */
    position: relative;
}
#categoryTitle:empty{
    padding: 0px;
}
#categoryTitle h1{
    color: #373737;
    font-weight: 600 !important;
    font-size: 24px !important;
    text-transform: capitalize;
    text-align: center;
}
#categoryTitle h2{
    color: #666;
    font-weight: 400 !important;
    font-size: 16px !important;
    text-align: center;
    margin: 0px;
    text-transform: none;
}
#templatesCategories h2{
    margin: 10px 10px 15px 15px;
    padding: 0px 10px;
    font-size: 18px;
    color: #373737;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    font-weight: 700;
}

.templatesLeftPanel{
    background-color: #F1F2F2;
    border-right: 1px solid #E8E9EA;
    position: fixed;
    width: 250px;
    margin-left: 0px;
    overflow-x: hidden;
    overflow-y: scroll;
    backface-visibility: hidden;
    display: inline-block;
    height: calc(100vh - 65px);
    padding: 35px 0px;
    margin-top: 65px;
    float: left;
    -webkit-overflow-scrolling: touch;
}
.templateCategory,
.templateSubcategory{
    text-transform: capitalize;
    position: relative;
    z-index: 2;
}
.templateCategory{
    width: 100%;
    position: relative;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.025em;
    padding: 0px 0px 0px 30px;
    white-space: nowrap !important;
    font-style: 'Inter', 'sans-serif';
    outline: 0;
    user-select: none;
    color: #4A4A4A;
    font-weight: 600;
}
.templateSubcategory{
    text-transform: capitalize;
    width: inherit;
    list-style-type: none;
    margin:0px;
    margin-left: -15px;
    padding: 10px 0px 10px 70px;
    vertical-align: middle;
    color: #4A4A4A;
    background: #f1f2f2;
    font-weight: 400;
}
.templateSubcategory:hover{
    background: #E8E9EA;
    cursor: pointer;
    text-decoration: none;
}
.templateCategory:hover{
    background: #E8E9EA;
    color: #4A4A4A;
    cursor: pointer
}
.templatesLeftPanel a{
    text-decoration: none !important;
    color: inherit;
}
.templatesLeftPanel a:visited{
    text-decoration: none;
    color: inherit;
}
.templatesLeftPanel a:after{
    text-decoration: none;
    color: inherit;
    outline: none;
}
.templatesLeftPanel a:hover {
    text-decoration: none;
    color: inherit;
}
.categoryLeftPanel{
    width: 100%;
    padding: 10px 0px;
    display: inline-block;
}
.categoryArrow{
    width: 30px;
    display: inline-block;
}
.categoryArrow:hover .arrow{
    fill: #2D95EC;
}
.categoryArrow svg {
    margin: 0 20px 3px 0;
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    transform: rotate(180deg);
    fill: #666;
}
.selectedCategory{
    background: #2D95EC;
}
.selectedCategory:hover{
    background: #2D95EC;
    color: white;
}
.selectedCategory svg {
    fill: white;
}
.selectedCategory .categoryArrow:hover svg {
    fill: white;
}
.selectedCategoryText {
    color: white;
}

.selectedSubCategory {
    background: #2D95EC;
    color: white;
}

.dropdownArrow svg {
    transform: rotate(270deg);
    transition: 'transform 0.2s ease';
}

#templatesCategories .hiddenMenu {
    display: none;
}
#mobileBrowse{
    display: none;
}
.categoryInfoBoxMobileParagraph,
.infoBoxDots {
    display: none !important;
}
.categoryInfoBoxParagraphs {
    display: block !important;
}
.templatesShowcaseBannerImage {
    flex: 1;
    min-height: 225px;
}
#searchContainer{
    height: 52px;
}
@media only screen and (max-width: 992px) {
    #templatesMainContainer,
    .templatesLeftPanel{
        margin-top: 0px !important;
    }
}

@media only screen and (max-width: 795px) {
    .categoryInfoBoxMobileParagraph,
    .infoBoxDots {
        display: block !important;
    }
    .categoryInfoBoxParagraphs {
        display: none !important;
    }
    #ReactSearchBar{
        display: inline-block;
        width: 70%;
    }
    #mobileBrowse{
        display: inline-block;
        width: 25%;
    }
    #mobileBrowse button{
        outline: none;
        width: 100%;
        height: auto;
        background: #2D95EC;
        border: 0px;
        color: white;
        padding: 9px 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.05em;
        box-shadow: 0 3px 7px rgba(0 ,0, 0, 0.3);
    }
    #searchContainer{
        background: white;
        padding-top: 14px;
        width: 100vw;
        position: relative;
        z-index: 1004;
        top:0px;
        left:0;
        height: auto;
    }
    .templatesLeftPanel{
        width: 100%;
        height: auto;
        display: block;
        padding-top: 0px;
        overflow-x: hidden;
        overflow-y: scroll;
        position: relative;
        padding: 0px;
        margin: 0px;
        z-index: 1;
        /* margin-top: 165px; */
        -webkit-overflow-scrolling: touch;
    }
    #templatesCategories{
        padding-top: 35px;
        position: fixed;
        width: 100%;
        z-index: 1003 !important;
        height: calc(100vh - 65px);
        padding-bottom: 100px;
        background: #F1F2F2;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    .openLeftPanelContainer{
        height: 100vh !important;
    }
    #templatesMainContainer{
        position: relative;
        top: 0px;
        width: 100vw !important;
        height: calc(100vh - 150px);
        overflow-y: scroll !important;
        margin-left: 0px;
        z-index: 0;
        -webkit-overflow-scrolling: touch;
    }
    #templatesMainContainer,
    #ReactTemplatesPage,
    .ReactTemplatesPageSection,
    .templatesPageInfoBox {
        width: 100%;
        display: block;
        z-index: 0;
    }
    .openMobilePanel{
        transform: translateY(0%);
        transition: transform 0.3s;
        border-top: 1px solid #DFDFDF;
    }
    .closeMobilePanel{
        transform: translateY(-200%);
        transition: transform 0.3s;
    }
    #categoryTitle{
        background: white;
    }
    .mobileFixedHeight{
        height: calc(100vh - 68px) !important;
        padding-bottom: 100px;
    }
    .mobileContainerTop{
        margin-top: -65px !important;
        z-index: 10;
    }
    .mobileContainerTopScrollworking {
        position: fixed;
    }
    .mobileContainerTopPositionFix {
        position: fixed;
        touch-action: none; 
        -webkit-overflow-scrolling: touch;
    }
    .mainContainerPositionFix {
        padding-top: 30px;
    }
}

/*
* To avoid a hit to our Layout Shift seo score, 
* Layout Shift Handler sets min height to be a number that avoids rendering the next section IN INITIAL VIEW.
* i.e: it sets min height big enough so that it renders the next section off screen.
* This is done to avoid the googlebot/user from seeing a shift in content when templates are loaded
* in between each section. If the user sees a shift, then it will lower our layout shift seo score.
*/
/* 4 columns layout */
.ReactTemplatesPageSection.sectionLayoutShiftHandle {
    height: auto;
    min-height: 680px;
}
/* 3 columns layout */
@media only screen and (max-width: 1100px) {
    .ReactTemplatesPageSection.sectionLayoutShiftHandle {
        min-height: 620px;
    }
}
/* 2 columns layout */
@media only screen and (max-width: 567px) {
    .ReactTemplatesPageSection.sectionLayoutShiftHandle {
        min-height: 450px;
    }
}
