/*
***************WARNING**************
.home-left-side-img {
    margin-left: calc((-35vw +100%) / 2);
}
keep it that way
*/
.home-left-side-img {
    margin-left: calc((-100vw + 100%) / 2);
    position: relative;
    overflow: clip;
    height: 100VH;

}

.home-left-side-img::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    top: 0px;
    left: 0px;
}

.common-title {
    opacity: 0;
}

.common-text {
    opacity: 0;
}

.outside-in {
    margin-top: 38rem;
    margin-left: 25px;
}

.outside-in .common-title-lg {
    color: var(--primary);
    display: block;
    margin-top: 3px;
    margin-bottom: -4px;
    margin-right: -4rem;
}

.outside-in .common-text-lg {
    max-width: 47rem;
    margin-top: 3rem;
    opacity: 0;
}

.outside-in .learn-more {
    margin-top: 5rem;
}

.learn-more {
    display: flex;
}

.learn-more a {
    width: fit-content;
    display: block;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 2.8px;
    font-weight: 500;
    text-transform: uppercase;
    transition: none;
}


.outside-in .learn-more a {
    margin-left: 34rem;

}

.learn-more a:hover {
    color: var(--secondary);
    border-bottom: solid 2px var(--secondary);
    padding-bottom: 3px;
    margin-bottom: -5px;
}

.learn-more:after {
    content: url("/wp-content/themes/oceanwp-child/assets/image/learn-more-arrow.svg");
    margin-left: 15px;
    line-height: 14px;
}

.wrapper-homepage {
    position: relative;
}

.wrapper-homepage:before {
    content: url("/wp-content/themes/oceanwp-child/assets/image/homepage-ball.svg");
    position: absolute;
    z-index: -1;
    top: 65rem;
    right: -17rem;
}

.desktop-brown-bg {
    background-color: var(--primary);
    background-image: url(/wp-content/themes/oceanwp-child/assets/image/lines-pattern.svg);
}

.brown-bg-details {
    padding-top: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: self-end;
}

.brown-bg-boundaries {
    width: 89.5vw;
    margin: 0 auto;
}

.brown-bg-details .learn-more {
    margin-bottom: 4rem;
}

.brown-bg-details .learn-more a:hover {
    color: #F4F2ED;
    border-bottom: solid 2px #F4F2ED;
    padding-bottom: 3px;
    margin-bottom: -5px;
}

.home-services-title .common-title-lg,
.home-services-title .common-title {
    color: #F4F2ED;
}

.home-services-title .common-title {
    font-weight: 100;
    margin-left: -6px;
    margin-bottom: 5px;
}

.home-services-title {
    width: fit-content;
}

.desktop-brown-bg .learn-more a {
    color: #F4F2ED;
}

.desktop-brown-bg .learn-more:after {
    content: url("/wp-content/themes/oceanwp-child/assets/image/learn-more-arrow-white.svg");
}

.brown-bg-services {
    display: flex;
    margin-top: 3rem;
    justify-content: space-between;
}

.service-box {
    padding-left: 35px;
    border-left: solid 1px #F4F2ED;
    color: #F4F2ED;
    height: 33rem;
}


.service-box .common-text-lg {
    max-width: 20rem;
    font-weight: 200;
}

.counter {
    font-size: 24px;
    line-height: 28px;
    font-weight: 900;
    color: #F4F2ED;
    position: relative;
}

.counter:before {
    content: url(/wp-content/themes/oceanwp-child/assets/image/star.svg);
    position: absolute;
    right: calc(100% + 10px);
}

.home-news {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 108rem;
    margin: 45px auto 0;
}

.home-news-title .common-title {
    font-weight: 100;
    color: var(--secondary);
    margin-top: -30px;
    margin-left: 75px;
}

.home-news-title {
    width: fit-content;
}

.home-news .learn-more {
    margin-bottom: 2rem;
}

.home-news .learn-more a:hover {
    color: var(--secondary);
    border-bottom: solid 2px var(--secondary);
    margin-bottom: -5px;
}

.home-news-post {
    padding: 5rem 0 3rem 3rem;
    border: solid 1px #858585;
}

.home-news-post-image {
    max-width: 30rem;
    width: 100%;
    max-height: 45rem;
    height: 45rem;
    position: relative;
}

.home-news-post-image:before {
    content: "";
    background: #A45627;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0;
    transition: ease .3s;
}

.home-news-post:hover .home-news-post-image:before {
    opacity: 0.8;
}

.home-news-post-date.common-text-lg {
    font-weight: 200;
    margin-bottom: 0;
    color: white;
}

.home-news-post-title.common-text-lg {
    font-weight: 700;
    max-width: 24rem;
    color: white;
    margin-bottom: 0;
}

.home-news-posts {
    max-width: 108rem;
    display: flex;
    margin: 3rem auto 13rem;
    justify-content: space-between;
}

.home-post-info {
    position: absolute;
    margin: 0 3rem 3rem;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
}

.home-news-post-image:after {
    content: "";
    background: linear-gradient(180deg, #16151400 0%, #161514 100%);
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    right: 0;
    left: 0;
    transition: ease .3s;
}

.get-in-touch-bg {
    background-color: #551F00;
    padding: 8rem 0;
    border-bottom: solid 1px white;
}

.get-in-touch-bg a {
    max-width: fit-content;
    margin: 0 auto;
    display: flex;
    font-size: 196px;
    line-height: 158px;
    font-weight: 900;
    color: #551F00;
    -webkit-text-stroke: 1px #F4F2ED;
    flex-wrap: nowrap;
    justify-content: end;
    transition: ease-in-out .5s;
}

.get-in-touch-bg a:hover {
    color: white;
    -webkit-text-stroke: 1px white;
}

.get-in-touch-bg svg {
    margin-top: 6rem;
    margin-left: -6px;
}

.home-news-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-left-side-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1439px) {
    .home-left-side-img {
        margin-right: 25px;
    }

    .outside-in {
        margin-top: 24rem;
        margin-left: unset;
    }

    .wrapper-homepage:before {
        content: unset;
    }

    .brown-bg-services {
        column-gap: 1rem;
    }

    .get-in-touch-bg a {
        font-size: 150px;
        line-height: 150px;
    }

    .get-in-touch-bg svg {
        margin-top: 5rem;
        width: 225px;
    }

    .counter6 {
        display: none;
    }

    .home-left-side-img {
        margin-left: calc((-158vw + 100%) / 2);
        height: 100vh;
    }

}

@media screen and (max-width: 1199px) {


    .home-news-posts {
        column-gap: 3rem;
    }

    .home-post-info {
        margin: 0 auto 3rem;
        max-width: 24rem;
    }

    .get-in-touch-bg svg {
        width: 195px;
    }

    .get-in-touch-bg a {
        font-size: 130px;
        line-height: 130px;
    }

    .get-in-touch-bg {
        padding: 7rem 0;
    }

    .counter5 {
        display: none;
    }

    .outside-in .common-title-lg {
        margin-bottom: 0;
    }

    .home-services-title .common-title {
        font-size: 70px;
        line-height: 70px;
    }

    .home-services-title .common-title-lg {
        font-size: 100px;
    }
}

@media screen and (max-width: 991px) {
    .home-left-side-img {
        margin-right: 15px;
    }

    .counter4 {
        display: none;
    }

    .outside-in {
        margin-top: 22rem;
    }

    .outside-in .common-title {
        font-size: 60px;
    }

    .outside-in .common-title-lg {
        margin-top: 0px;
        margin-bottom: -4px;
        font-size: 80px;
        line-height: 50px;
    }

    .outside-in .common-text-lg {
        max-width: 47rem;
        margin-top: 1rem;
        font-size: 16px;
        line-height: 24px;
    }

    .outside-in .learn-more {
        margin-top: 3rem;
    }

    .outside-in .learn-more a {
        margin-left: unset;
    }

    .home-services-title .common-title {
        font-size: 50px;
        line-height: 50px;
    }

    .home-services-title .common-title-lg {
        font-size: 70px;
        line-height: 50px;
    }

    .brown-bg-details .learn-more {
        margin-bottom: 3rem;
    }

    .home-news-post {
        padding: 2rem 0 1rem 1rem;
    }

    .home-post-info {
        margin: 0 1rem 1rem;
    }

    .get-in-touch-bg {
        padding: 5rem 0;
    }

    .get-in-touch-bg svg {
        width: 155px;
        margin-top: 2rem;
        margin-left: -4px;
    }

    .get-in-touch-bg a {
        font-size: 100px;
        line-height: 100px;
    }

    .home-news-post-image {
        max-height: 35rem;
    }
}

@media screen and (max-width: 767px) {
    .swiper {
        margin-left: calc((-100vw + 100%) / 2);
        margin-right: calc((-100vw + 100%) / 2);
        padding-bottom: 6rem;
        height: 100%;
        width: 100vw;
    }

    .home-left-side-img video {
        width: 100%;
        object-fit: cover;
        object-position: top;
    }

    .home-news-post-image {
        max-height: 45rem;
    }

    .swiper1 {
        width: 100%;
        height: 100%;
    }

    .swiper-slide {
        display: flex;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper-slide:nth-child(2n),
    .swiper-slide:nth-child(3n),
    .swiper-slide {
        width: 69%;
    }

    /*______________________________________*/
    .home-left-side-img {
        margin-left: calc((-100vw + 100%) / 2);
        margin-right: calc((-100vw + 100%) / 2);
        height: 32rem;
        margin-top: 7rem;
        position: relative;
        background-image: url(/wp-content/themes/oceanwp-child/assets/image/homepage-video-bg.jpg);
        background-position: top center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .home-left-side-img img {
        max-height: 33rem;
        width: 100%;
        object-fit: cover;
    }

    .outside-in {
        margin-top: 2rem;
    }

    .outside-in .common-title-lg {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .outside-in .learn-more {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    .brown-bg-details {
        padding-top: 3rem;
    }

    .service-box .common-text-lg {
        max-width: unset;
    }

    span.swiper-pagination-bullet {
        background-color: transparent;
        border: solid 2px white;
        opacity: 1;
        width: 11px;
        height: 11px;
    }

    span.swiper-pagination-bullet.swiper-pagination-bullet-active {
        background-color: white;
    }

    .brown-bg-services-mobile .learn-more-mobile {
        justify-content: end;
        margin-top: 30px;
        margin-bottom: -35px;
        margin-right: 3rem;
    }

    .brown-bg-services-mobile .learn-more a:hover {
        color: #F4F2ED;
        border-bottom: solid 2px #F4F2ED;
        margin-bottom: -2px;
    }

    .swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
        bottom: 2rem;
        left: 3rem;
        right: 3rem;
    }

    .swiper-pagination {
        text-align: unset;
    }

    .service-box {
        margin-left: 3rem;
    }

    .home-news-title .common-title {
        margin-top: -20px;
        margin-left: 50px;
    }

    .home-news-post {
        padding: 5rem 0 3rem 3rem;
        margin: 0 auto;
    }

    .swiper-pagination1 .swiper-pagination-bullet {
        background-color: transparent;
        border: solid 2px black;
        opacity: 1;
        width: 11px;
        height: 11px;
    }

    .swiper-pagination1 .swiper-pagination-bullet.swiper-pagination-bullet-active {
        background-color: black;
    }

    .swiper-pagination1.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
        margin-top: 3rem;
    }

    .learn-more-mobile {
        justify-content: end;
        margin-top: -20px;
    }

    .get-in-touch-bg a {
        flex-direction: column;
        font-size: 60px;
        line-height: 30px;
    }

    .get-in-touch-bg svg {
        width: 175px;
        margin: 0 auto;
    }

    .home-news-posts {
        margin: 1.5rem auto 6.5rem;
    }

    .home-services-title .common-title {
        font-size: 30px !important;
        line-height: 30px !important;
        margin-left: -2px;
        margin-right: -1rem;
    }
}

@media screen and (max-width: 575px) {
    .outside-in .common-text-lg {
        max-width: 31rem;
    }

    .outside-in .common-title-lg {
        margin-right: -5px;
    }

    .swiper-slide:nth-child(2n),
    .swiper-slide:nth-child(3n),
    .swiper-slide {
        width: 58%;
    }

    .get-in-touch-bg a {
        font-size: 54px;
    }
}