html,body,div,span,applet,object,iframe,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,label,legend,p,blockquote,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}body{line-height:1;color:black;background:white;}:focus{outline:0;}table{border-collapse:collapse;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul{list-style:none;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"" "";}abbr,acronym{border:0;}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@700&display=swap');

body {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 500;
}

header {
    color: white;
    background: url(./images/hero-image.png) no-repeat center;
    height: 540px;
    background-size: cover;
    overflow: hidden;
}

nav a {
    text-decoration: none;
    color: white;
}

nav.nav-grid ul {
    display: grid;
    grid-template-columns: 1fr repeat(5, auto);
    grid-gap: 30px;
    justify-items: end;
    padding-left: 140px;
    padding-right: 140px;
    padding-top: 53px;
}

li {
    line-height: 64px;
}

.fullwidth {
    grid-column: 1 / 2;
    justify-self: start;
}

.post-offer {
    padding-left: 140px;
}

h1 {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 45px;
    font-weight: bold;
    line-height: 64px;
}

h2, h3 {
    font-size: 48px;
    font-weight: bold;
    line-height: 65px;
}

.h2-1 {
    margin-top: 91px;
}

.post-offer p {
    line-height: 27px;
    margin-top: 10px;
}

.login-button {
    font-weight: bold;
    background: #266EFD;
    padding: 13px 24px;
    border-radius: 5px;
    box-shadow: 0 0 17px #3876F1;
}

.post-offer-button {
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: #266EFD;
    padding: 13px 24px;
    border-radius: 5px;
    box-shadow: 0 0 17px #3876F1;
    margin-top: 27px; 
    display: inline-block;
}

.newest-job-offers-heading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.job-offers-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

article.newest-job {
    margin-top: 70px;
    padding-left: 140px;
    padding-right: 140px;
}

.newest-job-h3 {
    justify-self: start;
}

.newest-job-view-all-offers {
    font-size: 18px;
    font-weight: bold;
    color: #276FFB;
    line-height: 24px;
    justify-self: end;
    align-self: center;
}

.job-offers-columns {
    margin-top: 34px;
}

.junior-java-developer1 {
    border-right: 1px solid rgba(0, 0, 0, 0.6);
    position: relative;
    padding-right: 40px;
}

.button-more1 {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: 40px;
}

.junior-project-manager {
    padding-left: 40px;
    padding-right: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.6);
    position: relative;
}

.button-more2 {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: 40px;
}

.junior-java-developer2 {
    padding-left: 40px;
    position: relative;
}

.button-more3 {
    position: absolute;
    right: 0;
    bottom: 0;
}

.job-title {
    font-size: 24px;
    font-weight: bold;
    color: #276FFB;
    line-height: 33px;
    grid-area: job-title;
}

.time {
    font-size: 18px;
    line-height: 24px;
    opacity: 60%;
    grid-area: time;
}

.name {
    line-height: 27px;
    grid-area: name;
    font-weight: bold;
}

.place {
    line-height: 27px;
    opacity: 60%;
    grid-area: place;
}

.text {
    margin-top: 26px;
    line-height: 27px;
    opacity: 80%;
    padding-right: 100px;
    padding-bottom: 40px;
}

.salary {
    opacity: 60%;
}

.button-more {
    text-decoration: none;
    color: white;
    font-size: 35px;
    font-weight: bold;
    background: #266EFD;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 3px 17px #3876F1; 
    display: inline-block;
}

.job-description-heading {
    display: grid;
    grid-template-areas:
    "job-title job-title . time"
    "name place . .";
    grid-template-columns: repeat(4, max-content(100px));
    grid-gap: 5px;
    grid-auto-columns: min-content max-content auto;
}

.junior-java-developer1 .job-title {
    grid-column: span 2;
}

.junior-java-developer1 .time {
    grid-column: 5 / 6;
    justify-self: end;
    align-self: center;
}

.junior-java-developer1 .name {
    grid-column: 1 / 2;
}

.junior-java-developer1 .place {
    grid-column: 2 / 3;
}


.junior-project-manager .job-title {
    grid-column: span 2;
}

.junior-project-manager .time {
    grid-column: 5 / 6;
    justify-self: end;
    align-self: center;
}

.junior-project-manager .name {
    grid-column: 1 / 2;
}

.junior-project-manager .place {
    grid-column: 2 / 3;
}


.junior-java-developer2 .job-title {
    grid-column: span 2;
}

.junior-java-developer2 .time {
    grid-column: 5 / 6;
    justify-self: end;
    align-self: center;
}

.junior-java-developer2 .name {
    grid-column: 1 / 2;
}

.junior-java-developer2 .place {
    grid-column: 2 / 3;
}

article.featured-companies {
    padding-left: 140px;
    padding-right: 140px;
    margin-top: 72px;
}

article div.companies {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

article div.companies div {
    justify-content: center;
    text-align: center;
}

article div.companies figure {
    border-radius: 200px 200px 200px 200px;
    border: 1px solid #B9B9B9;
    display: inline-block;
    padding: 31px 31px;
    width: min-content;
    margin: 0;
}

article div.companies p {
    font-size: 24px;
    font-weight: bold;
    line-height: 33px;
    margin-top: 9px;
    justify-content: center;
}

.newsletter > div {
    position: relative;
    z-index: 1;
}
.newsletter {
    background: black;
    color: white;
    margin-left: 140px;
    margin-right: 140px;
    position: relative;
    margin-top: 60px;
    padding: 58px 67px;
    padding-right: 1040px;
}

.newsletter-image {
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
}

.newsletter-text {
    line-height: 27px;
    margin-top: 11px;
    width: minmax(100px,600px);
}

.newsletter-email-input {
    border-radius: 5px 5px 5px 5px;
    font-size: 16px;
    min-width: 300px;
    margin-top: 27px;
    padding: 11px 22px;
    line-height: 22px;
    margin-right: 27px;
}

.newsletter-button-subscribe {
    font-weight: bold;
    font-size: 16px;
    line-height: 22px;
    color: white;
    background: #266EFD;
    padding: 11px 40px;
    border-radius: 5px;
    box-shadow: 0 0 17px #3876F1;
    min-width: 200px;
}

footer ul {
    margin: 58px auto;
    padding-left: 140px;
    padding-right: 140px;
    font-size: 18px;
    line-height: 24px;
    display: grid;
    grid-template-columns: repeat(9, auto);
    grid-gap: 30px;
    justify-content: center;
}

footer a {
    text-decoration: none;
    color: #141414;
}

@media only screen and (max-width: 1590px) {

    .job-offers-columns {
        grid-template-columns: repeat(2, auto);
    }

    .junior-java-developer2 {
        padding-left: 0;
        margin-top: 90px;
        padding-right: 40px;
    }

    .button-more3 {
        margin-right: 40px;
    }

    .junior-project-manager {
        border: 0;
    }

    .newest-job-view-all-offers {
        padding-right: 40px;
    }

    article div.companies {
        grid-gap: 30px;
    }

    .newsletter-image {
        display: none;
    }

    .newsletter {
    padding-right: 160px;
    padding-left: 160px;
    width: calc(100% - 320px);
    margin-left: auto;
    margin-right: auto;
    }
}

@media only screen and (max-width: 1220px) {

    .job-offers-columns {
        grid-template-columns: repeat(1, auto);
    }

    .junior-java-developer1 {
        border: 0;
        margin-top: 20px;
    }

    .junior-project-manager {
        padding-left: 0;
        margin-top: 90px;
    }

    footer ul {
        font-size: 0.9rem;
        grid-gap: 20px;
    }

}

@media only screen and (max-width: 1015px) {

    .fullwidth {
        display: none;
    }

    nav.nav-grid ul {
        grid-gap: 15px;
    }

    nav.nav-grid ul, .newest-job, .post-offer {
        font-size: 16px;
    }

    nav.nav-grid ul, .post-offer, article.newest-job, article.featured-companies, footer ul {
        padding-left: 50px;
        padding-right: 50px;
    }

    .newsletter-heading {
        font-size: 40px;
    }
    
    .newsletter-email-input {
        border-radius: 5px 5px 5px 5px;
        font-size: 12px;
        min-width: 200px;
        margin-top: 27px;
        padding: 11px 22px;
        line-height: 22px;
    }

    .newsletter-button-subscribe {
        font-size: 12px;
        width: 180px;
    }

    .newsletter {
        padding-right: 100px;
        padding-left: 100px;
        width: calc(100% - 200px);
        margin-left: auto;
        margin-right: auto;
        }
    
}


@media only screen and (max-width: 790px) {

    footer ul {
        grid-template-columns: repeat(auto-fit, minmax(80px, 100px));
        font-size: 0.9rem;
        grid-gap: 5px;
        line-height: 1px;
        margin-left: auto;
        margin-right: auto;
    }
    
}

@media only screen and (max-width: 674px) {

    .newsletter-button-subscribe {
        margin-top: 20px;
    }

}

@media only screen and (max-width: 530px) {

    nav.nav-grid ul  {
        padding-top: 30px;
        padding-left: 30px;
        padding-right: 30px;
        grid-template-columns: 1fr repeat(3, auto);
        grid-template-rows: repeat(2, auto);
        grid-gap: 10px;
        justify-content: center;
        }

    .login-button-li {
        grid-column: -3 / span 2;
        grid-row: 2 / 3;
    }

    .h2-1 {
            font-size: 35px;
            margin-top: 40px;
    }

    .post-offer {
        padding-right: 20px;
        padding-left: 20px;
    }


    .newest-job-h3 {
        font-size: 40px;
    }

    .newest-job-view-all-offers {
        padding: 0;
        justify-self: start;        
    }

    .newest-job-offers-heading {
        grid-template-rows: auto auto;
        grid-template-columns: 100%;
    }
    
    .junior-java-developer1 {
        margin: 0;
    }

    .time {
        display: none;
    }

    .job-offers-columns div {
        padding: 0;
    }

    .newsletter {
        padding-right: 50px;
        padding-left: 50px;
        width: calc(100% - 100px);
        margin-left: auto;
        margin-right: auto;
    }

    .newsletter-heading {
        font-size: 30px;
        line-height: 40px;
    }

    .newsletter-text {
        font-size: 18px;
    }

    .job-description-heading .job-title {
        font-size: 20px;
    }

    .button-more {
        bottom: 10px;
        right: 0;
        margin: 0;
        margin-top: 20px;
    }
    
    .text {
        padding-right: 50px;
    }

    .salary {
        display: none;
    }

    .featured-companies-heading {
        font-size: 40px;
    }
}