/* THIRD SECTION */

.goal_section {
    display: flex;
    position: relative;
    align-items: center;
    background: no-repeat center center/cover;
}

.goal_section .container {
    width: auto;
    padding: 0;
}

.goal_section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../img/texture.png) no-repeat center center/cover;
    z-index: 1; 
    pointer-events: none;
}

.goal_video_container {
    position: relative;
    width: 50%;
    height: auto; 
    align-self: stretch;
}

.goal_video_container video {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    object-fit: cover;
    object-position: right;
}

.goal_video_container video::-webkit-media-controls,
.goal_video_container video::-webkit-media-controls-enclosure,
.goal_video_container video::-webkit-media-controls-panel {
    display: none !important;
}

.goal_video_container .overlay-rectangle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 100px;
    height: calc(100% - 30px);
    background: #090909;
    filter: blur(25px);
    pointer-events: none;
    transform: translate(50%, -50%); 
}

.goal_container {
    padding: 228px 50px 0px 50px;
}

.goal_heading-box {
    position: relative;
    z-index: 2;
} 

.goal_heading-box .heading_secondary {
    background: url(../../img/heading-bg.png) center center/cover;
    background-size: 20%; 
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    line-height: 90px;
}

.goal_heading-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.goal_heading-box .heading_secondary.desktop,
.goal_heading-row .heading_element.desktop,
.goal_heading-box .heading_secondary.mobile {
    display: none;
}

.goal_heading-row .heading_element.full_hd,
.goal_heading-box .heading_secondary.full_hd {
    display: block;
}

.goal_heading-row:first-child .heading_element.full_hd {
    display: inline-block;
    margin-left: 30px;
}

.goal_cards {
    display: flex;
    gap: 27px;
    margin-top: 77px;
    margin-bottom: 185px;
}

.goal_card {
    width: 370px;
    height: 359px;
    background-color: #101010;
}

.goal_card:first-child {
    padding: 31px 21px 29px 32px;
}

.goal_card:nth-child(2) {
    padding: 55px 41px;
}

.goal_card-text {
    font-family: 'Impact Cyr';
    font-weight: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.goal_card img {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
}

.goal_card-caption {
    font-family: 'Helvetica Neue';
    font-size: 16px;
    line-height: 23px;
    margin-top: 10px;
    color:  var(--white);
}

/* ADAPTIVE */

@media (max-width: 1919px) {
    .goal_container {
        padding-top: 158px;
    }

    .goal_cards {
        margin-top: 30px;
    }

    .goal_card  {
        width: 310px;
        height: 290px;
    }

    .goal_card-text {
        font-size: 20px;
        line-height: 27.5px;
    }

    .goal_card-caption {
        font-size: 13px;
        line-height: 19px;
    }

    .goal_card:nth-child(2) {
        padding: 45px 34px;
        text-align: center;
    }

    .goal_card img {
        margin-bottom: 15px;
    }

    .goal_heading-row:first-child .heading_element.full_hd,
    .goal_heading-box .heading_secondary.full_hd {
        display: none;
    }

    .goal_heading-row .heading_element.desktop,
    .goal_heading-box .heading_secondary.desktop {
        display: block;
    }

    .goal_heading-box .heading_secondary {
        line-height: 75px;
    }
}

@media (max-width: 1280px) {
    .goal_section .container {
        width: 100%;
        padding: 0 20px;
    }

    .goal_cards {
        justify-content: center;
        gap: 53px;
        margin-bottom: 0;
    }
    
    .goal_card {
        width: 234px;
        height: 234px;
    }

    .goal_card-text {
        font-size: 14px;
        line-height: 20px;
    }

    .goal_card:first-child {
        padding: 46px 21px;
    }    

    .goal_card:nth-child(2) {
        padding: 35px 15px;
    }

    .goal_section {
        flex-direction: column;
    }

    .goal_video_container .overlay-rectangle {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        top: 100%;
        right: 0;
        transform: translate(0, -50%);
    }

    .goal_video_container {
        width: 100%;
        height: auto; 
    }
    
    .goal_container {
        padding: 40px 20px 75px 20px;
    }
    
    .goal_heading-box {
       margin-left: 106px;
    }

    .goal_heading-box .heading_secondary.desktop,
    .goal_heading-box .heading_secondary.mobile,
    .goal_heading-row .heading_element.desktop {
        display: none;
    }
    
    .goal_heading-box .heading_secondary.tablet{
        display: block;
    }

    .goal_heading-row:first-child .heading_element.tablet {
        display: inline-block;
        margin-left: 30px;
    }

    .goal_heading-row {
        gap: 15px;
    }

    .goal_heading-box .heading_secondary {
        line-height: 55px;
    }
}

@media (max-width: 767px) {
    .goal_container {
        padding: 0px;
        padding-bottom: 34px;
    }

    .goal_card {
        width: 100%;
        height: auto;
        text-align: center;
    }

    .goal_cards {
        flex-direction: column;
        gap: 9px;
    }

    .goal_card img {
        max-width: 193px;
        margin-bottom: 7px;
    }

    .goal_card-caption {
        margin-top: 4px;
        font-family: 'Helvetica Neue Light';
    }

    .goal_card:first-child {
        padding: 22px;
    }  

    .goal_card:nth-child(2) {
        padding: 22px 50px;
    }
    
    .goal_card-text:first-child {
        text-transform: lowercase;
    }

    .goal_heading-box {
        margin-left: 0px;
     }

     .goal_heading-row:first-child .heading_element.tablet,
     .goal_heading-box .heading_secondary.tablet {
        display: none;
    }

    .goal_heading-row .heading_element.mobile,
    .goal_heading-box .heading_secondary.mobile {
        display: block;
    }

    .goal_heading-row:nth-child(2) {
        justify-content: space-between;
    }

    .goal_heading-box .heading_secondary {
        line-height: 39px;
    }
}
