section.hero {
  min-height: 656px;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #fff;
}

section.hero .items-wrapper {
  background: transparent linear-gradient(108deg, #fbf7f6 0%, #f3efee 100%) 0%
    0% no-repeat padding-box;
}

section.hero,
section.hero .container {
  position: relative;
}

section.hero .container {
  z-index: 1;
}

section.hero > .container .row {
  align-items: center;
  min-height: 656px;
}

section.hero .overlay,
section.hero .overlay-2,
section.hero .overlay-3,
section.hero .overlay-4 {
  background-size: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

section.hero img {
  position: absolute;
  top: 0;
  /* left: 0; */
  right: 0;
  /* width: 100%; */
  width: auto;
  /* height: 100%; */
  /* object-fit: cover; */
  max-height: 656px;
}

section.hero .overlay {
  width: 48.5%;
  width: 30.5%;
  /* background-image: url(../../../assets/img/hero-overlay.svg); */
  opacity: 1;
  min-height: 656px;
  height: max-content;
}

section.hero .overlay-right,
section.hero .overlay-right::before {
  position: absolute;
  /* background-image: url(../../../assets/img/sub-overlay.svg); */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  background-repeat: no-repeat;
  width: 100%;
  right: -100%;
  height: 100%;
}

section.hero .text-wrapper {
  padding-right: 100px;
}

section.hero .overlay-right::before {
  content: "";
  left: 0;
  right: auto;
  /* background-image: url(../../../assets/img/Overlay-sakums.svg); */
  /* background: transparent; */
}

section.hero .overlay-2 {
  background-image: url(../../../assets/img/hero-overlay-2.svg);
  width: 100%;
  opacity: 1;
}

section.hero .overlay-3 {
  background-image: url(../../../assets/img/hero-overlay-3.svg);
  width: 100%;
}
section.hero .overlay-4 {
  background-image: url(../../../assets/img/hero-overlay-4.svg);
  width: 100%;
  opacity: 1;
}

section.hero,
section.hero a {
  color: #fff;
}

section.hero h1,
section.hero .text-wrapper {
  color: #1a1817;
}

/* section.hero .text-wrapper {
  max-width: 390px;
  width: 100%;
} */

section.hero h1 {
  font-weight: 500;
  margin-bottom: 1rem;
}

section.hero .btn {
  margin-top: 45px;
  padding: 18px 43px;
}

section.hero .items {
  padding-bottom: 140px;
}

section.hero .item-block {
  background: transparent
    linear-gradient(122deg, #ffde08 0%, #ffc508 31%, #ffad08 100%) 0% 0%
    no-repeat padding-box;
  border-radius: 0px 75px;
  padding: 35px 33px;
  margin-top: 138px;
  min-height: 248px;
  width: 100%;
}

section.hero .item-block .main-group {
  position: absolute;
  top: 35px;
  left: 33px;
  right: 33px;
}

section.hero .item-block h4 {
  margin-bottom: 8px;
}

section.hero .item-block i {
  font-size: 70px;
}

section.hero .single-item {
  width: 481px;
  /* min-height: 190px; */
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0 125px;
  padding-right: 105px;
  padding-top: 28px;
  padding-bottom: 26px;
  background: transparent
    linear-gradient(111deg, #ffde08 0%, #ffc508 31%, #ffad08 100%) 0% 0%
    no-repeat padding-box;
  border-radius: 0px 150px;
  z-index: 2;
}

section.hero .single-item .single-item__title strong {
  font-family: Montserrat-SemiBold;
  font-size: 42px;
  line-height: 61px;
  margin-right: 9px;
}

section.hero .single-item i {
  position: absolute;
  top: 34px;
  left: 34px;
  font-size: 60px;
}

section.hero .single-item .single-item__text {
  font-family: Montserrat-Medium;
  font-size: 18px;
  line-height: 32px;
}

section.hero .single-item .single-item__title {
  font-family: Montserrat-Light;
  font-size: 32px;
  margin-bottom: 0.5rem;
}

/*
*Item on hover
*/

section.hero .item-block.item-text-hidden {
  position: relative;
  border-radius: 0px 75px 100px;
  transition: border-radius 0.2s ease-in-out;
}

section.hero .item-block.item-text-hidden:hover:before,
section.hero .item-block.item-text-hidden:hover {
  background: #ffffff;
}

section.hero .item-block.item-text-hidden:hover:before {
  transition-delay: 0.2s;
}

section.hero .item-block.item-text-hidden:hover {
  position: relative;
  border-bottom-right-radius: 0;
}

section.hero .item-block.item-text-hidden::before,
section.hero .item-block.item-text-hidden::after {
  position: absolute;
  z-index: -1;
}

section.hero .item-block.item-text-hidden::before {
  content: "";
  right: 0;
  bottom: 0;
  display: block;
  width: 100px;
  height: 100px;
  background-color: #ff9c08;
}

section.hero .item-block.item-text-hidden::after {
  content: "\e909";
  font-family: "leveria-icons";
  right: 10px;
  bottom: 3px;
}

section.hero .item-block.item-text-hidden p {
  /* position: absolute; */
  color: #1a1817;
  top: 0;
  /* bottom: 0; */
  left: 0;
  right: 0;
  /* padding: 34px 27px; */
  visibility: none;
  opacity: 0;
  transition: all 0.01s ease-in-out;
  position: relative;
  z-index: 1;
}

section.hero .item-block.item-text-hidden:hover p {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 1099.98px) {
  section.hero {
    min-height: 581px;
    display: flex;
    flex-direction: column;
  }

  section.hero .col-lg-6 {
    min-height: 400px;
  }

  section.hero .text-wrapper {
    padding: 0;
    display: none;
  }

  section.hero .items-wrapper {
    margin-top: 39px;
  }

  section.hero .items-wrapper.hidden-text {
    margin-top: 70px;
  }

  section.hero .items-wrapper .container {
    padding-top: 0;
  }

  section.hero .container {
    z-index: 1;
    padding-top: 30px;
  }

  section.hero img {
    position: relative;
    width: 100%;
    max-height: 100%;
    min-height: 291px;
  }
  section.hero .row:first-child {
    align-items: baseline;
    min-height: auto;
  }
  section.hero .btn {
    margin-top: 27px;
  }

  section.hero .single-item {
    max-width: 338px;
    /* min-height: 136px; */
    padding: 0 94px;
    padding-right: 22px;
    padding-top: 15px;
    padding-bottom: 16px;
    border-radius: 0px 52px;
    position: relative;
    margin-left: auto;
    margin-top: 50px;
    margin-bottom: 70px;
  }

  section.hero .single-item .single-item__title {
    font-size: 21px;
    margin-bottom: 0;
  }

  section.hero .single-item .single-item__title strong {
    font-size: 27px;
    line-height: 40px;
  }

  section.hero .single-item .single-item__text {
    font-size: 16px;
  }

  section.hero .single-item i {
    top: 18px;
    font-size: 38px;
  }

  section.hero .row.items {
    margin-top: 69px;
    padding-bottom: 48px;
  }

  section.hero .item-block {
    margin-top: 0;
    border-radius: 0px 50px;
    padding: 24px 24px;
    padding-bottom: 18px;
    min-height: 192px;
    height: auto;
    margin-bottom: 25px;
  }

  section.hero .item-block i {
    font-size: 48px;
  }

  section.hero .item-block .main-group {
    top: 24px;
    left: 24px;
  }

  section.hero .item-block i.ic--pieredze,
  section.hero .item-block.item-text-hidden i {
    font-size: 59px;
  }

  section.hero .item-block i.ic--projekti {
    font-size: 61px;
  }

  section.hero .item-block h4 {
    margin-bottom: 2px;
  }

  section.hero .item-block.item-text-hidden {
    border-radius: 0px 50px 100px;
    min-height: 182px;
    max-width: 320px;
  }

  section.hero .overlay {
    display: none;
  }
}

@media (max-width: 767.98px) {
  section.hero .btn {
    width: 100%;
  }

  section.hero .text-wrapper br {
    display: none;
  }
}

@media (min-width: 1100px) {
  section.hero .item-block.item-text-hidden {
    margin-top: 99px;
    margin-bottom: -3rem;
  }

  section.hero .img-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-height: 656px;
    height: 100%;
    width: 1166px;
  }

  section.hero img {
    object-fit: cover;
    height: 100%;
  }

  section.hero.content-text-smaller .text-wrapper {
    font-size: 15px;
  }
}

@media (min-width: 1100px) and (max-width: 1299.98px) {
  section.hero .img-wrapper {
    max-width: 1160px !important;
    width: 100% !important;
  }
}

@media (min-width: 1100px) and (max-width: 1263.98px) {
  section.hero h1 {
    font-size: 48px;
  }

  section.hero .text-wrapper {
    font-size: 14px !important;
  }
}

@media (min-width: 1100px) and (max-width: 1441.98px) {
  section.hero .text-wrapper {
    padding-right: 294px !important;
  }
  section.hero .text-wrapper br {
    display: none;
  }
}

@media (min-width: 1442px) and (max-width: 1504.98px) {
  section.hero .text-wrapper {
    padding-right: 209px !important;
  }
  section.hero .text-wrapper br {
    display: none;
  }
}

/* IMAGE OVERLAY */
@media (min-width: 1100px) {
  /* PAR MUMS */
  section.hero .img-overlay {
    position: absolute;
    left: -1px;
    top: 0;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 65px,
      rgba(255, 255, 255, 0.5) 193px,
      rgba(255, 255, 255, 0) 247px
    );
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  /* Sakumlapa, Pakalpojumi */
  section.hero.overlay-bigger.overlay-whiter .img-overlay {
    position: absolute;
    left: -1px;
    top: 0;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 64px,
      rgba(255, 255, 255, 0.9) 142px,
      rgba(255, 255, 255, 0.6) 218px,
      rgba(255, 255, 255, 0) 321px
    );
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  /* PROJEKTI */
  section.hero.overlay-smaller .img-overlay {
    position: absolute;
    left: -1px;
    top: 0;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 30px,
      rgba(255, 255, 255, 0.95) 106px,
      rgba(255, 255, 255, 0.6) 178px,
      rgba(255, 255, 255, 0) 292px
    );
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

@media (min-width: 1450px) {
  section.hero .img-overlay {
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 35px,
      rgba(255, 255, 255, 0.5) 193px,
      rgba(255, 255, 255, 0) 247px
    );
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 35px,
      rgba(255, 255, 255, 0.5) 150px,
      rgba(255, 255, 255, 0) 247px
    );
  }

  /* Sakumlapa, Pakalpojumi */
  section.hero.overlay-bigger.overlay-whiter .img-overlay {
    position: absolute;
    left: -1px;
    top: 0;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 64px,
      rgba(255, 255, 255, 0.95) 102px,
      rgba(255, 255, 255, 0.6) 218px,
      rgba(255, 255, 255, 0) 321px
    );
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  /* Projekti */
  section.hero.overlay-smaller .img-overlay {
    position: absolute;
    left: -1px;
    top: 0;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 10px,
      rgba(255, 255, 255, 0.95) 66px,
      rgba(255, 255, 255, 0.6) 178px,
      rgba(255, 255, 255, 0) 273px
    );
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

@media (min-width: 1100px) and (max-width: 1359.98px) {
  section.hero img {
    /* padding-left: 103px; */
    right: -50px;
  }
}

@media (min-width: 1360px) and (max-width: 1449.98px) {
  section.hero img {
    /* padding-left: 50px; */
    right: -39px;
  }
}

@media (min-width: 1100px) and (max-width: 1699.98px) {
  section.hero.overlay-bigger img {
    padding-left: 0 !important;
  }
}

/* @media (min-width: 1436px) and (max-width: 1549.98px) {
  .img-overlay {
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 28px,
      rgba(255, 255, 255, 0.5) 200px,
      rgba(255, 255, 255, 0) 321px
    );
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 60px,
      rgba(255, 255, 255, 0.5) 193px,
      rgba(255, 255, 255, 0) 321px
    );
  }
} */

/* @media (min-width: 1550px) and (max-width: 1549.98px) {
  .img-overlay {
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 20px,
      rgba(255, 255, 255, 0.5) 193px,
      rgba(255, 255, 255, 0) 321px
    );
  }
} */

/*
* Safari
*/

@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    @media (min-width: 1200px) {
      section.hero .item-block:not(.item-text-hidden) h4 {
        font-weight: 400;
      }
    }
  }
}
