@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

@font-face {
    font-family: 'Avenir Next';
    src: url(../fonts/AvenirNextLTPro-Regular.otf);
    font-weight: 300;
}


@font-face {
    font-family: 'Avenir Next';
    src: url(../fonts/Metropolis-SemiBold.otf);
    font-weight: 500;
}

@font-face {
    font-family: 'Avenir Next';
    src: url(../fonts/AvenirNextLTPro-Bold.otf);
    font-weight: 600;
}

body {
    overflow-x: hidden;
    font-family: 'Avenir Next', sans-serif;

}

a {
    color: #000;
}

.calculator {
    position: relative;
    top: 30vh;
}

.spacing {
    position: relative;
    height: 200px;
    width: 100vw;
}

.intro {
    position: relative;
    top: 0;
    height: 650px;
    width: 100vw;
}

.intro-img {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(.9);
}


.buying-guide-title {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 60%;
    height: 150px;
    z-index: 1;
    box-shadow: 3px 3px 20px 0 rgba(0, 0, 0, 0.425);
    background-color: #203337;
    color: #fff;
}

.buying-guide-title .title-line {
    position: absolute;
    bottom: 35px;
    width: 85%;
}

.buying-guide-title .title-logo {
    position: absolute;
    bottom: 0;
    right: 3%;
}

.buying-guide-title h1 {
    position: absolute;
    bottom: 60px;
    left: calc((100vw - 1200px)/2);
    font-size: 50px;
    font-weight: 300;
}

.intro-img-filter {
    position: absolute;
    height: 50%;
    width: 100%;
    z-index: 1;
    background: linear-gradient(to top, #ffffff, transparent);
    bottom: 0;

}

.slideshow {
    position: relative;
    padding-bottom: 50px;
    overflow: scroll;
}

.buying-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    background-color: rgb(255, 255, 255);
    padding-top: 100px;
    margin-bottom: -200px;
}

.buying-content-wrap {
    width: min(1200px, 85vw);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
}

.buying-content-text {
    width: 65%;
    margin-right: 100px;
}

.buying-content-text a {
    color: rgb(26, 119, 54);
}
.buying-content-text h2 {
    font-size: 36px;
    font-weight: 400;
}

.buying-content-text img {
    margin: 15px 0;
}

.buying-content-text p {
    max-width: 600px;
    /* padding-right: 100px; */
    font-size: 18px;
    line-height: 2;
    letter-spacing: .02rem;

}

.buying-content-img {
    width: 35%;
}

.buying-content-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

.social-media-mortgage {
    width: 80px;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.social-media-mortgage img {
    height: 20px;
}

.apply-now-button {
    width: 180px;
    margin-top: 10px;
}

@media screen and (max-width: 1300px) {
    .buying-guide-title h1 {
        left: 50px;
    }

}


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

    .buying-guide-title h1 {
        font-size: 40px;
        bottom: 50px;
    }
}

@media screen and (max-width: 950px) {
   
    .buying-guide-title h1 {
        left: 50px;
    }

    .buying-content-img img {
        height: 500px;
    }

    .buying-content-img {
        width: 40%;
    }

    .buying-content-text {
        width: 60%;
        margin-right: 70px;
    }
}


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

    .buying-guide-title {
        height: 120px;
    }
    
    .buying-guide-title .title-line {
        position: absolute;
        bottom: 25px;
        width: 85%;
    }
    
    
    .buying-guide-title h1 {
        bottom: 35px;
        font-size: 35px;
    }


    .buying-content-img {
        width: 50%;
    }

    .buying-content-text {
        width: 50%;
        margin-right: 70px;
    }

    .buying-content-text h2 {
        font-size: 28px;
    }

    .buying-content-text > img {
        margin: 10px 0;
        height: 8px;
    }

    .buying-content-text p {
        font-size: 16px;
        letter-spacing: .015rem;
    }

    
}


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

    .buying-guide-title {
        height: 90px;
    }
    
    .buying-guide-title .title-line {
        position: absolute;
        bottom: 25px;
        width: 95%;
    }
    
    .buying-guide-title h1 {
        bottom: 32px;
        font-size: 25px;
    }
    
    .buying-content-img {
        width: min(300px, 90vw);
        margin-top: 30px;
    }

    .buying-content-wrap {
        flex-direction: column;
    }

    .buying-content-img img {
        width: 100%;
    }

    .buying-content-text {
        width: 100%;
        margin: 0;
    }

    .social-media-mortgage img {
        height: 20px;
    }
}






