:root {
    --angle: 45deg;
    --opacity: 0.5;
    --color1: #FFFFFF;
    --color2: #0057B7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Helvetica Neue Bold';
    src: url('assets/fonts/HelveticaNeueBold.otf') format('opentype');
}

@font-face {
    font-family: 'Helvetica Neue Regular';
    src: url('assets/fonts/HelveticaNeueLight.otf') format('opentype');
}

body {
    font-family: 'Helvetica Neue Regular', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    background-image: url('assets/images/Header.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    padding: 20px 20%;
    height: 630px;
    display: flex;
    align-items: center;
}

header h1 {
    width: 60%;
    height: min-content;
    font: normal normal bold 68px/85px  'Helvetica Neue Bold', sans-serif;
    text-align: left;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
}

.ypo-header-logo {
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 300px;
}

.section1 {
    padding: 90px 20% 20px;
    content: "";
    background: url(assets/images/block_bg_triangles.png);
    background-size: cover;
    background-position: bottom;
    margin-top: -70px;
}

.content {
    padding: 40px 0;
}

.content__subtitle {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin: 20px 0;
}

.content__subtitle h4 {
    margin: 0;
    font: normal normal normal 48px/40px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #0057B7;
    opacity: 1;
}

.content__subtitle--arrow::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 0 13px 25px;
    border-color: transparent transparent transparent #0057B7;
    margin-right: 20px;
    margin-top: 7px;
}

.content__text {
    margin: 20px 0;
    text-align: left;
    font: normal normal normal 24px/30px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #222222;
    opacity: 1;
}

.content__text b {
    text-align: left;
    font: normal normal bold 24px/30px 'Helvetica Neue Bold', sans-serif;
    letter-spacing: 0px;
    color: #222222;
}


.container {
    display: flex;
    padding: 40px 0;
}

.cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0057B7;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.cta-block__subtitle {
    display: flex;
    align-items: flex-start;
    margin: 20px 33%;
    letter-spacing: 0px;
    opacity: 1;
    color: #FFFFFF;
    font: normal normal normal 30px/42px 'Helvetica Neue Regular', sans-serif;
}

.cta-block__subtitle p {
    margin: 0;
}


.cta-block__subtitle::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 13px 0 13px 25px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-right: 20px;
    margin-top: 7px;
}

.cta-block__overlay--triangles {
    content: "";
    background: url(assets/images/cta-block-triangles.svg);
    background-size: cover;
    opacity: 0.4;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-position: center;
}

.cta-block__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 380px;
    height: 44px;
    border: 1px solid #FFFFFF;
    opacity: 1;
    text-align: center;
    font: normal 16px/42px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 1;
    text-decoration: none;
}
  
.cta-block__button {
    --border-size: 2px;
    border: var(--border-size) solid transparent;

    border-image: conic-gradient(
        from var(--angle),
        var(--color1) 0deg 100deg,
        var(--color1) 90deg 180deg,
        var(--color1) 180deg 275deg,
        var(--color1) 275deg 360deg
    )
    1 stretch;

    background: transparent;
}

.cta-block__button:hover {
    border-image: conic-gradient(
        from var(--angle),
        var(--color1) 0deg 90deg,
        var(--color1) 90deg 180deg,
        var(--color1) 180deg 270deg,
        var(--color2) 270deg 360deg
    ) 1 stretch;
    animation: rotate 3s linear infinite, opacityChange 3s infinite alternate;
}
  
@supports (background: paint(houdini)) {
    @property --opacity {
      syntax: "<number>";
      initial-value: 0.5;
      inherits: false;
    }
  
    @property --angle {
      syntax: "<angle>";
      initial-value: 0deg;
      inherits: false;
    }
  
    @keyframes opacityChange {
      to {
        --opacity: 1;
      }
    }
  
    @keyframes rotate {
      to {
        --angle: 360deg;
      }
    }
  
}


.container .image {
    width: 50%;
}

.container .content {
    padding: 0;
    width: 50%;
}

.container .image img {
    width: 100%;
}

.image--rightPadding, .content--rightPadding {
    margin-right: 30px;
}

.image--leftPadding, .content--leftPadding {
    margin-left: 30px;
}


footer {
    display: flex;
    align-items: center;
    background-color: #041E42;
    height: 240px;
    color: #fff;
    text-align: center;
    padding: 10px;
    bottom: 0;
    padding: 20px 20%;
}

.footer__image {
    display: flex;
    width: 50%;
}

.footer__image img{
    width: 77px;
}


.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__contact--social {
    display: flex;
    align-items: center;
}

.footer__contact--social p {
    margin-right: 58.5px;
}

.footer__contact--social a {
    text-align: left;
    font: normal normal normal 16px/32px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
    margin: 0 12.5px;
}

.footer__contact--social a:hover g {
    fill: #0057B7;
}

.footer__contact--mail a {
    text-align: left;
    font: normal normal normal 16px/32px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
    text-decoration: none;
}

.footer__contact--rights {
    margin-top: 40px;
    text-align: left;
    font: normal normal normal 16px/32px 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
    text-align: left;
}

br {
    display: block;
    content: "";
    border-bottom: 15px solid transparent;
}

@-moz-document url-prefix() {
    br {
      margin-bottom: 15px;
    }
  }

@media screen and (max-width: 1200px) {
    .ypo-header-logo {
        left: 5%;
    }
    .section1, header, footer {
        padding: 20px 10%;
    }
    .container {
        flex-direction: column;
    }
    .container .content,  .container .image{
        width: 100%;
        margin: 0;
    }
    header h1 {
        width: 100%;
    }
    .cta-block__subtitle {
        margin: 20px 15%;
    }
    .container--precentages .content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer {
        flex-direction: column;
        height: auto;
    }
    .footer__contact--social p{
        margin-right: 0;
    }
    .footer__contact {
        flex-direction: column;
        align-items: center;
    }
    .footer__image {
        width: auto;
    }
    .footer__contact--social {
        align-items: center;
        flex-direction: column;
    }
}