body{
  --hp-bloq-span-font-size: clamp( calc(2.986rem - 17px + 15px), calc(calc(((1.6847rem + 4.6268vw) * (1 - 0.266)) + (15px * 0.266)) - 17px + 15px), calc(6.3115rem - 37px + 15px))
}

.mainwrapper{
  &::before{
    display: none;
  }
  .container main{
    padding: 0px !important;
  }
}

/* WELCOME */

@keyframes welcome-line-draw {
  from {
    height: 0;
  }
  to {
    height: 150px;
  }
}

body section.mod_blocky_welcome.animationcomplete{
  &::after{
    animation: welcome-line-draw 1s ease-out 0s 1 forwards;
  }
}

body section.mod_blocky_welcome{
  background-color: rgb(var(--color1));
  padding-bottom: 110px !important;
  padding-inline: 40px !important;
  &::before{
    content: '';
    width: 300px;
    height: 300px;
    background-image: var(--white-watermark);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    opacity: 0.1;
    right: max(calc(50% - 620px),-30px);
    bottom: -20px;
  }
  &::after{
    content: '';
    width: 1px;
    height: 0px;
    background-color: white;
    position: absolute;
    left: 50%;
    top: -40px;
    visibility: visible;
  }
  div.Welcome{
    --welcome-max-width: min(1100px, 95%);
    &> div.WelcomeFlex{
      padding-left: calc(min(var(--welcome-max-width) / 3, 33.33%) + 1vw - 10px);
      padding-right: 150px;
      min-height: calc((var(--welcome-max-width) / 3) + 150px);
      &::before{
        background-color: rgb(var(--color2));
        right: 130px;
        left: calc(33.33% - 5vw - 150px);
      }
      .Title{
        padding-left: 0;
        padding-right: 4vw;
        color: white !important;
        text-align: right;
        span{
          color: white;
          text-align: left;
          display: inline-block;
          width: 100%;
        }
      }
      .ItemContent{
        padding-left: 0;
        padding-right: 4vw;
        .paracontent{
          color: white;
          font-weight: 100;
        }
      }
      .ItemImage{
        right: auto;
        left: 0;
        .ItemBefore{
          left: -30px;
          width: 90%;
        }
      }
      label{
        left: -4vw;
        margin: 0 40px 0px 0;
      }
      .LinkWrapper{
        right: auto;
        left: -30px;
        width: 30%;
        padding: 0;
        background-color: transparent;
        transform: translateY(65px);
        .buttonstyle{
          width: 100%;
          background-color: white;
          border-color: white;
          color: rgb(var(--color1));
          &:hover{
            background-color: rgb(var(--color4));
            border-color: rgb(var(--color4));
            color: white;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  body section.mod_blocky_welcome div.Welcome > div.WelcomeFlex{
    padding-right: 0px;
    &::before {
      right: -20px;
    }
  }
}

@media screen and (max-width: 600px) {
  body section.mod_blocky_welcome{
    padding-top: 110px !important;
    div.Welcome > div.WelcomeFlex{
      padding: 0 10px! important;
      &::before{
        left: -20px;
      }
      .ItemImage .ItemBefore{
        width: calc(100% + 60px);
      }
      .LinkWrapper{
        left: 0;
        width: 100%;
        transform: translateY(26px);
      }
      .Title, .ItemContent{
        padding-right: 0;
      }
      .Title{
        padding-top: 40px;
      }
    }
  }
}

/* QUICK LINKS */

@keyframes ql-line-draw {
  from {
    height: 0;
  }
  to {
    height: 110px;
  }
}

body section.LinksBloq.mod_none.animationcomplete{
  &::before{
    animation: ql-line-draw 1s ease-out 0s 1 forwards;
  }
}

body section.LinksBloq.mod_none{
  &::before{
    content: '';
    width: 1px;
    height: 0px;
    background-color: white;
    position: absolute;
    left: 50%;
    top: -110px;
    visibility: visible;
  }
  padding-top: 20px !important;
  .bloqTitle{
    text-align: center;
    padding-bottom: 50px;
    span{
      color: white;
    }
  }
  div.Grid>ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1320px;
    width: 100%;
    row-gap: 60px;
    margin: 0 auto;
    li{
      min-width: 315px;
      .Item {
        height: 270px;
        overflow: visible;
        .ItemInner{
          border-radius: 20px;
          background-color: transparent;
          &::before{
            content: '';
            position: absolute;
            inset: 0;
            background-color: var(--item-color);
            opacity: 0;
            border-radius: 20px;
            transition: 0.2s;
          }
          .Title{
            background-color: var(--item-color);
            position: absolute;
            top: calc(100% - 26px);
            text-transform: uppercase;
            font-size: 16px;
            font-weight: 400;
            height: 52px;
            width: calc(100% - 100px);
            border-radius: 26px;
            display: grid;
            place-items: center;
            padding-bottom: 2px;
          }
        }
        &:hover{
          .ItemInner::before{
            opacity: 0.5;
          }
        }
      }
    }
  }
}

/* NEWS SLIDER */

body section.DataBloq.mod_none{
  --SliderRowHeight: 480px;
  --SliderItemMinWidth: 215px;
  min-height: 650px;
  &::before{
    content: '';
    width: 300px;
    height: 300px;
    background-image: var(--color-watermark);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    opacity: 0.09;
    left: max(calc(50% - 840px),-220px);
    bottom: 125px;
  }
  .bloqTitle{
    width: calc(50% - 70px);
    position: absolute;
    right: calc(50% + 50px);
    bottom: 400px;
    max-width: 550px;
  }
  .filterSourceSideBySideButtons{
    position: absolute;
    right: calc(50% + 50px);
    width: calc(50% - 70px);
    max-width: 550px;
    top: 280px;
    .sourceButtonWrapper .sourceLink{
       min-width: max-content;
       padding: var(--button-padding);
       padding-inline: 40px;
       background-color: white;
       color: rgb(var(--color1));
       &:hover{
         background-color: rgb(var(--color1));
         border-color: rgb(var(--color1));
         color: white;
       }
       &::before{
         display: none;
       }
       &::after{
         content: 'ALL NEWS';
       }
    }
  }
  div.Slider{
    width: calc(50% + 30px);
    position: absolute;
    left: calc(50% - 50px);
    top: 50px;
    max-width: 650px;
    padding: 0;
    .nav{
      top: 245px;
      &.last{
        left: calc(300px - 100%);
      }
      &.next{
        right: auto;
        left: calc(360px - 100%);
      }
    }
    .SliderInner>ul>li .Item{
      .ItemInner{
        height: 220px;
        background-color: rgb(var(--color2));
        .ItemIcon{
          color: rgb(var(--color2));
          padding-top: 2px;
          &::before{
            content: '\f27a';
          }
        }
        .Title, .ItemDate{
          color: white;
        }
        .ItemContent{
          color: white;
          .paracontent{
            text-align: left;
            padding-inline: 20px;
          }
        }
      }
      &:hover .ItemInner{
        height: 100%;
        .ItemIcon{
          top: calc(70px - var(--nav-size) / 2);
        }
      }
    }
  }
}

@media screen and (max-width: 800px) {
  body section.DataBloq.mod_none {
    .bloqTitle {
      position: relative;
      width: 100%;
      bottom: auto;
      right: auto;
      max-width: unset;
    }
    .filterSourceSideBySideButtons{
      position: static;
      right: auto;
      top: auto;
    }
    div.Slider {
      width: 100%;
      position: relative;
      left: 0;
      top: 0;
      max-width: unset;
      padding: 0;
      .nav{
        top: -67px;
        &.last{
          left: auto;
          right: 60px;
        }
        &.next{
          right: 0;
          left: auto;
        }
      }
    }
  }
}

