@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

*{
    margin: 0px;
    padding: 0px;
    font-family: 'Poppons', sans-serif;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
    --third-bg-color: yellowgreen;
    --fourth-bg-color: yellow;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    padding: 0 1.5rem;
}

.service-container {
    margin-top: 150px;
}

.service-container h2 {
    /*letter-spacing: 1px;
    font-size: 50px;
    color: yellow;
    padding: 10px;
    border: 2px dashed #0181a0;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    margin-top: 90px;
    margin-left: 375px;*/
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: yellow;
    
}

.service-post {
    width: 100%;
    max-width: 98rem;
    padding: 5rem;
    background-color: var(--second-bg-color);
    box-shadow: 0 1.4rem 8rem rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    border-radius: .8rem;
    margin: 10px;
}

.service-post_img {
    min-width: 35rem;
    max-width: 35rem;
    height: 30rem;
    transform: translateX(-8rem);
    position: relative;
}

.service-post_img img {
    width: 100%;
    height: 100%;
    border-radius: 2%;
    object-fit: cover;
    display: block;
}

.service-post_img img::before {
    content: '';
    width: 100%;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: .5rem .5rem 3rem 1px rgba(0, 0, 0, 0.5);
}

.service-post_date span {
    display: block;
    color: var(--main-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: .5rem 0;
    line-height: 3rem;
}

.service-post_title {
    font-size: 2.5rem;
    margin: 1.5rem 0 2rem;
    text-transform: uppercase;
    color: yellow;
}

.service-post_text {
    margin-bottom: 3rem;
    font-size: 16px;
    color: white;
    line-height: 2rem;
    font-style: normal;
}

@media screen and (max-width: 1068px) {
    .service-post {
        max-width: 80rem;
    }

    .service-post_img {
        max-width: 30rem;
        min-width: 30rem;
    }

    .service-container h2 {
        margin-top: 120px;
        margin-left: 275px;
    }
}

@media screen and (max-width: 868px) {
    .service-post {
        max-width: 70rem;
    }

    .service-container h2 {
        margin-top: 20px;
        margin-left: 142px;
    }
}

@media screen and (max-width: 823px) {
    .service-container h2 {
        margin-top: 35px;
        margin-left: 142px;
    }
}

@media screen and (max-width: 768px) {
    .service-post {
        padding: 2.5rem;
        flex-direction: column;
    }

    .service-post_img {
        min-width: 100%;
        max-width: 100%;
        transform: translate(0, .1rem);
    }
    .service-container h2 {
        margin-top: center;
 
    }
}

