/*
 Theme Name: Engineering Nature
 Theme URI: https://engineeringnature.org
 Description: Custom Sydney child theme
 Author: Engineering Nature
 Template: sydney
 Version: 1.0
*/

/* FONTS */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/open-sans-v43-latin-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/open-sans-v43-latin-italic.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/open-sans-v43-latin-700.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/open-sans-v43-latin-700italic.woff2') format('woff2');
}

/* GENERAL */
html {
  scroll-padding-top: 40px;
}

b, strong {
    font-weight: 700;
}

.textinherit a:not(.button):not(.elementor-button-link):not(.wp-block-button__link) {
    color: inherit;
}

/* HEADER */
.shfb-row-wrapper.shfb-main_header_row .container-fluid {
    max-width: 1140px;
    padding-left: 10px;
    padding-right: 10px;
}
@media (min-width: 1025px) {
    .shfb-main_header_row .shfb-cols-layout-equal-desktop {
        grid-template-columns: 300px 1fr !important;
    }
    .header-search-form {
        position: fixed;
        top: 90px;
    }
}

/* NAVIGATION */
.shfb .main-navigation a {
    font-weight: 300;
}
.shfb .main-navigation li.lang-item {
    display: none;
}
.shfb .main-navigation .pll-parent-menu-item a.sydney-dropdown-link {
    padding-top: 9px;
    padding-bottom: 0;
}
.shfb .main-navigation .sydney-dropdown-li .sydney-dropdown-link img {
    width: 20px;
    height: 20px;
}
.shfb .main-navigation .dropdown-symbol {
    display: none;
}
.shfb .main-navigation .sydney-dropdown .sydney-dropdown-li {
    display: flex;
    align-items: center;
}
.shfb .main-navigation.sydney-dropdown .sydney-dropdown-ul .sydney-dropdown-ul .sydney-dropdown-link {
    padding: 10px;
}
.shfb .main-navigation.sydney-dropdown .sydney-dropdown-ul li.pll-parent-menu-item ul.sydney-dropdown-ul {
    width: 40px;
    left: -10px;
}

@media (max-width: 1024px) {
    .shfb-row.shfb-cols-layout-equal-tablet.shfb-cols-2 {
        grid-template-columns: 1fr 100px;
    }
    .shfb.sydney-offcanvas-menu #mainnav .pll-parent-menu-item {
        display: none;
    }
    .shfb.sydney-offcanvas-menu #mainnav li.lang-item {
        display: inline-block;
        margin: 0 10px 0 0;
    }
    .shfb.sydney-offcanvas-menu #mainnav li.lang-item img {
        width: 25px;
        height: 25px;
    }
}
@media (max-width: 991px) {
    .shfb-main_header_row {
        min-height: 60px;
    }
}

/* FOOTER */
.shfb-below_footer_row {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 300;
    font-size: 14px;
}
.sydney-credits {
    font-size: 0.9em;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 {
    flex-direction: row;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item {
    margin: 0;
    width: auto;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul {
    display: flex;
    margin: 0 0 0 10px;
    padding: 0;
    font-size: 0.9em;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul:before { 
    content: '•';
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul li {
    list-style: ' / ';
    margin-left: 15px;
    padding-left: 5px;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul li:first-child {
    list-style: none;
    margin-left: 5px;
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul li a {
    color: var(--sydney-text-color);
}
.shfb-footer .shfb-below_footer_row .shfb-column-1 .shfb-builder-item + .shfb-builder-item ul li a:hover {
    color: #EA382D;
    text-decoration: underline !important;
}

/* BLOCK EDITOR - IMAGE */
.wp-caption .wp-caption-text {
    background: #fff;
    margin: 0;
    padding: 10px;
    text-align: left;
    font-size: 0.7em;
    line-height: normal;
}

/* ELEMENTOR - IMAGE */
.elementor-widget-image a img[src$=".svg"] {
    width: revert-layer;
}

/* ELEMENTOR - TESTIMONIAL */
.elementor-widget-testimonial {
    padding-bottom: 40px;
}
.elementor-testimonial-wrapper .elementor-testimonial-content {
    position: relative;
    background: #fff;
    border-radius: 30px;
    margin-bottom: 15px;
    padding: 30px 40px;
    font-size: 1.1em;
}
.tdark .elementor-testimonial-wrapper .elementor-testimonial-content {
    background-color: var(--e-global-color-global_color_7);
}
.elementor-testimonial-wrapper .elementor-testimonial-content:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid #fff;
    border-top: 10px solid #fff;
    border-bottom: 10px solid transparent;
    left: 50px;
    bottom: -20px;
}
.tdark .elementor-testimonial-wrapper .elementor-testimonial-content:before {
    border-right: 10px solid var(--e-global-color-global_color_7);
    border-top: 10px solid var(--e-global-color-global_color_7);
}
.elementor-testimonial-wrapper .elementor-testimonial-meta {
    padding-left: 90px;
}
.elementor-testimonial-wrapper .elementor-testimonial-meta .elementor-testimonial-image img {
    width: auto !important;
}

/* POLYLANG */
.sydney-dropdown .sydney-dropdown-ul li.pll-parent-menu-item ul.sydney-dropdown-ul {
    width: 50px;
}

.pll-parent-menu-item,
.lang-item {
    display: none !important;
}