/* HOME HEADER */
body header {
  margin-bottom: 70px;
  overflow: visible;
}

body .tickercontainer {
  width: 100% !important;
}

body section.headertrustlink {
  position: absolute;
  top: -201px;
  right: 50px;
  padding: 0 0 !important;
}

body section.headertrustlink div.Button .Item {
  width: 190px;
  height: 95px;
  border-radius: 27px;
  background-image: var(--item-image);
  background-position: 50% 50%;
  background-size: 78% auto;
  background-repeat: no-repeat;
  border: 1px solid rgb(var(--color5));
  background-color: rgb(var(--color4));

  &>.ItemInner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(var(--color5));
    opacity: 0;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;

    &>.Title {
      font-size: 13px;
      letter-spacing: 0.05em;
      margin-bottom: 0;
    }

    &>.ItemIcon {
      display: none;
    }
  }

  &:hover {
    &>.ItemInner {
      opacity: 1;
    }
  }
}


/* QUICK LINKS */

body section.homequicklinks {
  padding: 35px 20px 130px 20px !important;
  z-index: 1;

  div.Grid>ul {
    grid-template-columns: repeat(auto-fill, minmax(213px, 1fr));
    grid-gap: 20px;
    max-width: 979px;
    margin: 0 auto;

    &>li .Item {
      height: 213px;

      &>.ItemInner {
        background: linear-gradient(to top, rgba(var(--color1), 0.65) 0%, rgba(var(--color1), 0.5) 35%, rgba(var(--color1), 0) 70%);

        &>.Title {
          position: absolute;
          bottom: 19px;
          left: 50%;
          transform: translateX(-50%);
          font-size: 19px;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 0.08em;
          width: max-content;
        }

        &>.ItemIcon {
          place-items: center;
          background-color: rgba(var(--color2), 1);
          padding: var(--button-padding);
          font-size: var(--button-font-size);
          color: rgba(var(--button-color), 1);
          cursor: pointer;
          text-decoration: none;
          text-align: center;
          text-transform: var(--button-text-transform);
          border: var(--button-border);
          margin: var(--button-gap);
          border-radius: var(--button-border-radius);
          font-family: var(--button-font-family);
          font-weight: var(--button-font-weight);
          line-height: 1.5em;
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: 19px;
          width: max-content;
          top: auto;
          opacity: 0;
          transition: 0.4s;
          text-decoration: none;
          text-align: center;
          text-transform: uppercase;
          transition: .2s transform ease-in-out, .2s -webkit-transform ease-in-out;
          will-change: transform;
          z-index: 0;
          overflow: hidden;

          &:hover {
            background-color: rgba(var(--color2), 1);

            &::before {
              transform: translate(0, 0);
            }
          }

          &::before {
            border-radius: 3rem;
            content: "";
            display: block;
            height: 100%;
            width: 100%;
            position: absolute;
            left: 0;
            top: 0;
            transform: translate(-100%, 0) rotate(10deg);
            transform-origin: top left;
            transition: .2s transform ease-out, .2s -webkit-transform ease-out;
            will-change: transform;
            z-index: -1;
            background-color: rgba(var(--color5), 1);
          }

          &::after {
            content: 'READ MORE';
          }
        }
      }

      &:hover {
        &>.ItemInner {
          background-color: rgba(var(--color1), 0.8);
          background-image: none;

          .Title {
            bottom: 95px;
          }

          .ItemIcon {
            opacity: 1;
          }
        }
      }
    }
  }

  &::before {
    content: '';
    position: absolute;
    right: 50%;
    top: -400px;
    width: 50vw;
    height: 435px;
    background-image: var(--hwatermark);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0% 100%;
    opacity: 0.8;
  }
}

/* WELCOME */
body section.mod_lefttabs_welcome {
  &>div.Welcome>div.WelcomeFlex {
    position: relative;

    &>.LinkWrapper .buttonstyle {}

    .Title {
      line-height: 0.8em;
    }
  }

  &::before {
    content: '';
    position: absolute;
    width: 270px;
    height: 400px;
    right: -20px;
    top: -172px;
    opacity: 0.4;
    background-image: var(--hwatermark);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 100% 0%;
  }
}

/* UPPER QUOTES */
section.homequotes.mod_smooth_magazine {
  margin: 0 20px;
  background-image: linear-gradient(180deg, rgb(var(--color4)), white);
  border-radius: 15px 15px 0 0;

  &>div.Magazine {
    &>ul {
      padding-top: 80px;
      margin-top: -300px;

      &>li {
        &>.Item {
          &.fadedhide {
            margin-top: 50px;
          }

          &>.ItemInner {
            &>.ItemContent .paracontent .buttonstyle {
              margin-top: 34px;

              &:hover {
                background-color: rgb(var(--color2));
              }
            }

            &>.Title {
              font-size: var(--fs1);
              font-weight: 500;
              color: rgb(var(--color1));
              font-family: var(--font-heading);
              margin-bottom: 22px;
              text-transform: none;
            }
          }
        }
      }

      &::before {
        content: 'Our Values';
        color: rgb(var(--color2));
        text-transform: uppercase;
        font-size: var(--fs3);
        letter-spacing: 0.08em;
        position: absolute;
        top: 0;
        left: 0;
        width: max-content;
        padding-left: calc(35% + 5vw);
      }

    }
  }

  &::before {
    content: '';
    left: 20px;
    margin-left: -20px;
    width: 50vw;
    height: 400px;
    opacity: 0.4;
    background-image: var(--hwatermark);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0% 100%;
    display: block;
    position: sticky;
    top: calc(50vh - 260px);
  }
}

/* EVENTS */
body section.homeevents {
  --SliderRowHeight: 165px !important;
  --SliderItemMinWidth: 200px;
  padding: 50px 50px 130px 50px !important;
  background-image: linear-gradient(180deg, rgb(var(--color1)) 0%, rgb(var(--color1)) 65%, rgb(var(--color3)) 100%);
  margin-top: 140px;
  &>.filterSourceSideBySideButtons {
    position: absolute;
    right: 165px;
    top: 50px;
    justify-content: flex-end;
  }

  &>h2.bloqTitle {
    line-height: 1em;
    color: white;
    padding-left: 100px;
    margin-bottom: 60px;

    &>span {
      color: rgb(var(--color2));
    }
  }


  &>div.Slider {
    padding: 0 calc(var(--nav-size) + 50px);

    .SliderInner>ul>li .Item {
      &>.ItemBefore {
        background-image: none !important;
        background-color: transparent;

        &>.ItemImage {
          display: none;
        }
      }

      &>.ItemInner {
        height: 100%;
        color: white;
        background-color: transparent;
        justify-content: flex-start;

        &>.Title {
          color: white;
          font-size: 17px;
          line-height: 26px;
          text-transform: none;
          max-width: 130px;
          min-width: 0px;
          margin-top: 13px;
        }

        &>.ItemContent {
          opacity: 1;

          &>.paracontent {
            &>.cardBottomLinks {
              border-top: none !important;
              padding-top: 5px;
              display: block;
              text-align: center;

              a {
                font-weight: 900;
                color: white;
                font-size: 13px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                cursor: pointer;

                &:hover {
                  color: rgb(var(--color2));
                }

                &::before {
                  font-style: normal;
                  font-variant: normal;
                  text-rendering: auto;
                  -webkit-font-smoothing: antialiased;
                  font-family: "Font Awesome 6 Free";
                  font-weight: 900;
                  content: '\2b';
                  font-size: 10px;
                }
              }

              &::before {
                content: '';
                position: absolute;
                width: calc(100% - 39px);
                height: 1px;
                background-color: white;
                left: 50%;
                top: 0;
                transform: translateX(-50%);
              }
            }

            &>.location {
              display: none;
            }
          }
        }

        &>.ItemDate {
          font-size: 22px;
          letter-spacing: 0.08em;

          &>*:nth-child(n+3) {
            display: none;
          }
        }
      }
    }
  }

  &::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 400px;
    right: -25px;
    top: 56px;
    background-image: var(--hwatermark);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 100% 0%;
    opacity: 0.4;
  }
}

/* SOCIAL LINKS AND FACEBOOK FEED */
body section.homesociallinks {
  padding-bottom: 18px !important;
  padding-top: 85px !important;
  z-index: 1;

  &>.bloqTitle {
    text-align: center;
    position: relative;
    color: rgb(var(--color1));
    z-index: 1;
  }

  &>div.Icon {
    &>ul {
      justify-content: center;
      gap: 7px;

      &>li .Item {
        border-radius: 50%;
        background-color: transparent;
        border: 1px solid rgb(var(--color2));

        &>.ItemInner .ItemIcon {
          width: 32px;
          height: 32px;
          font-size: 16px;
          color: rgb(var(--color2));
        }

        &:hover {
          background-color: rgb(var(--color2));

          &>.ItemInner .ItemIcon {
            color: white;
          }
        }
      }
    }

  }
}

body section.mod_overlap_slider.homeslider {
  padding-bottom: 150px !important;
  z-index: 1;

  &>div.Slider {
    &>.SliderInner ul .Item {
      &>.ItemInner {
        &>.ItemDate {
          font-size: 13px;
          letter-spacing: 0.08em;
        }

        &>.Title {
          font-size: 21px;
          margin-top: 2px;
          font-family: var(--font-normal) !important;
          text-transform: none;
        }

        &::before {
          background: linear-gradient(0deg, rgba(var(--color1), 1) 0%, rgba(var(--color1), 0) 70%);
          transition: 0.4s;
        }
      }

      &:hover {
        &>.ItemInner {
          &::before {
            background: rgba(var(--color1), 0.7) !important;
          }
        }
      }
    }
  }

}

body section.homeslider div.Slider .SliderInner ul [data-pos-showing="first"] .Item .ItemInner {
  padding: 10px 30px 30px 46px;
}

/* LOWER QUOTE */
body section.QuotesBloq.homequoteslower {
  padding-bottom: 13vw !important;
  margin: 30px 20px 0 20px;

  &>div.Blockquote {
    &>ul {
      max-width: 1250px;
      margin: 0 0 0 auto;
      padding-right: 25vw;

      &>li .Item .ItemInner {
        display: flex;
        flex-direction: column;

        &>.ItemContent {
          order: -1;
          color: rgb(var(--color3));
          font-style: italic;
          font-weight: 500;
          font-family: var(--font-normal) !important;
          font-size: 28px;
          margin: 0 0 24px 0;

          &::before,
          &::after {
            display: none;
          }
        }

        &>.Title {
          font-size: 29px;
          letter-spacing: 0.08em;
          text-transform: none;
          font-family: var(--font-heading);
          font-weight: 600;
        }

        &>.ItemSubtitle {
          font-size: 15px;
          color: rgb(var(--color2));
          letter-spacing: 0.08em;
          margin: 0 0 0 0;
        }
      }

      &::before {
        content: '';
        position: absolute;
        width: calc(25vw - 20px);
        height: 560px;
        right: 0px;
        top: -120px;
        background-image: var(--hwatermark);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 100% 0%;
      }
    }
  }

  &::before {
    content: '';
    position: absolute;
    width: 100%;
    height: calc(100% + 251px);
    background-image: linear-gradient(0deg, rgb(var(--color4)), white);
    bottom: 0;
    left: 0;
  }
}

@media only screen and (max-width: 1000px) {
  body section.homeevents {
    padding: 50px 20px 130px 20px !important;

    &>div.Slider {
      padding: 0 calc(var(--nav-size) + 5px);
    }

    &>h2.bloqTitle {
      padding-left: 0;
      margin-bottom: 40px;
    }

    &>.filterSourceSideBySideButtons {
      position: relative;
      top: 0;
      right: 0;
      justify-content: flex-start;
      margin-bottom: 40px;
    }
  }
}

@media only screen and (max-width:800px) {
  body section.homequicklinks::before {
    display: none;
  }

  section.homequotes.mod_smooth_magazine {
    padding-top: 50px;
    margin: 0 0;

    &>div.Magazine {
      &>ul {
        margin-top: 0;
        padding: 80px 10px 0 10px;

        &>li .Item .ItemInner .Title {
          font-size: 18px;
        }

        &::before {
          padding-right: 10px;
          line-height: 32px;
          width: fit-content;
          font-size: 17px;
        }
      }
    }

    &::before {
      display: none;
    }
  }

  body section.mod_overlap_slider.homeslider {
    padding-bottom: 80px !important;
  }

  body section.QuotesBloq.homequoteslower {
    margin: 0 0;

    &>div.Blockquote {
      &>ul {
        padding: 0 20px 0 20px !important;

        &>li .Item .ItemInner {
          &>.ItemContent {
            font-size: 18px;
          }
        }

        &::before {
          display: none;
        }
      }
    }
  }
}