/* Your custom CSS goes here */

/* Highlighted Projects */
.highlighted-projects {
  & .project-item {
    margin-top: 30px;

    &:hover {
      .project-img {
        .project-content {
          p {
            opacity: 1;
            visibility: visible;
            margin-bottom: 0;
          }
        }

        a::before {
          background: linear-gradient(180deg, rgba(249, 80, 0, 0) 0%, rgba(14, 14, 14, 1) 100%);
        }
      }
    }

    & .project-img {
      position: relative;
      border-radius: 1rem;
      overflow: hidden;
      transition: all 0.3s linear;

      & img {
        width: 100%;
      }

      & a {
        display: block;
        position: relative;

        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 0;
          background: linear-gradient(180deg, rgba(249, 80, 0, 0) 35%, rgba(14, 14, 14, 0.92) 78%);
          width: 100%;
          height: 100%;
          z-index: 0;
          transition: all 0.3s ease-out;
        }
      }

      & .project-content {
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 60px 75px 60px 60px;

        & .title {
          font-size: 24px;
          line-height: 27px;
          color: #ffffff;
          padding-left: 15px;
          position: relative;

          &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            background: var(--third-color);
            width: 3px;
            height: 50px;
            transform: translateY(-50%);
          }
        }

        & p {
          font-size: 14px;
          line-height: 24px;
          color: #ffffff;
          margin-top: 20px;
          margin-bottom: -115px;
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s linear;
        }
      }
    }
  }
}

@media only screen and (max-width: 1399px) {
  .project-item .project-img .project-content {
    padding-right: 40px;
  }
}

@media only screen and (max-width: 1199px) {
  .project-item .project-img .project-content {
    padding: 40px 25px 40px 30px;
  }
}

/* Webform */
.webform-actions {
  display: flex;
  justify-content: center;

  & .webform-button--submit {
    width: fit-content;
  }
}

/* Tabs/Nav pills Services */
.nav-pills .nav-link.active {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #fff;

  & [class^="mask-"] {
    background-color: white;
  }
}

.nav-pills .nav-item {
  display: flex;
}

.nav-pills .nav-link {
  color: #000;
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid #d9d9d9;
  font-weight: 600;
  gap: 20px;
  font-size: 18px;
  padding: 1rem 1.5rem;
  background-color: #F8F8F8;
}

.tab-pane {
  z-index: 1;

  & img {
    object-fit: cover;
    border-radius: 1rem;
  }

  & .tab-pane-text {
    border-radius: 1rem;
  }

  & .tab-pane-title {
    color: var(--main-color);
  }

  & .tab-pane-highlighted {
    color: var(--third-color);
  }
}

.techwix-choose-us-section-services {
  background: #f8f8f8;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-position: center center;
  padding: 100px 0;
}

@media screen and (max-width: 576px) {
  .nav-pills .nav-link {
    gap: 10px;
  }
}

@media screen and (max-width: 992px) {
  .nav-pills {
    margin-bottom: .5rem;

    & .nav-link {
      border-top: none;
    }

    .nav-item:first-child .nav-link {
      border-top: 1px solid #d9d9d9;
    }
  }

  .tab-pane {
    img {
      width: 400px;
    }
  }
}

@media screen and (min-width: 992px) {
  .techwix-choose-us-section-services::after {
    content: '';
    background-image: url("/themes/custom/techwix/images/bg/bg-sidebar.jpg");
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 100%;
    background-size: cover;
  }

  .nav-pills {
    & .nav-item {
      margin-bottom: .5rem;
    }

    & .nav-link {
      border-radius: 1rem;
      border: 1px solid #d9d9d9;
    }
  }
}

[class^="mask-"] {
  mask-size: 50px;
  mask-repeat: no-repeat;
  background-color: var(--main-color);
  width: 50px;
  height: 50px;
}

.mask-proyectos-electricos {
  mask-image: url("/sites/default/files/inline-images/planta-de-energia.png");
}

.mask-eficiencia-energetica {
  mask-image: url("/sites/default/files/inline-images/eficiencia.png");
}

.mask-beneficios-miem {
  mask-image: url("/sites/default/files/inline-images/privilegio.png");
}

.mask-servicios-esco {
  mask-image: url("/sites/default/files/inline-images/servicio-al-cliente.png");
}

.mask-iluminacion {
  mask-image: url("/sites/default/files/inline-images/bombilla.png");
}

.mask-plantas-fotovoltaicas {
  mask-image: url("/sites/default/files/inline-images/fotovoltaica.png");
}

.mask-solar-termico {
  mask-image: url("/sites/default/files/inline-images/paneles-solares.png");
}

.mask-domotica {
  mask-image: url("/sites/default/files/inline-images/domotica.png");
}

.mask-telegestion {
  mask-image: url("/sites/default/files/inline-images/reciclar.png");
}

/* Footer */
.footer-section-03 .widget-link .link li a.dropdown-item {
  padding: 0;
  color: #0e0e0e;

  &:hover {
    color: var(--third-color);
    padding-left: 10px;
  }
}

.footer-section-03 .dropdown {
  width: fit-content;
}

.footer-section-03 .dropdown-menu {
  padding: 1rem;
  min-width: 180px;
}

.footer-section-03 li .menu-icon::after {
  color: #ffffff;
}

.footer-section-03 li .menu-icon::after {
  content: '\f16c';
  font-family: "flaticon";
  font-size: 10px;
  color: #94a0b9;
  margin-left: 5px;
  transition: all 0.3s linear;
}

.footer-section-03 li a.nav-link:hover,
.footer-section-03 li a.nav-link:hover > .menu-icon::after {
  color: var(--third-color);
}

.footer-section-03 .dropdown:hover .dropdown-menu {
  display: block;
}

.footer-section-03 .dropdown-toggle::after {
  content: none;
}
