.wrapper {
    display: grid;
    grid-template-rows: 500px auto auto auto;
}

header {
    position: relative;
    background-position: right;
}

.headerinfo {
    position: absolute;
    top: 44%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 75%;
    text-align: center;
    display: grid;
    grid-template-rows: auto auto auto;
}

.header_logo {
    text-align: center;
}

.title_text {
    font-size: 1.5em;
    color: black;
    margin-bottom: 1em;
}

.text-overview-section {
    max-width: 1500px;
    margin: 0em 1em 0em 1em;
    line-height: 1.4em;
    font-size: 1.2em;
}

.services_wrapper {
    display: grid;
    grid-template-rows: 5em 1fr;
    background-color: rgb(249, 249, 249);
    padding-top: 24px;
    padding-bottom: 24px;
}

.services_header {
    text-align: center;
}

.services_header h1 {
    font-size: 2.2em;
}

.logo_img {
    max-width: 100%;
}

.orderBtn {
    padding: 15px 40px 15px 40px;
    color: black;
    font-size: 2rem;
    border: 1px solid #ADB46E;
    cursor: pointer;
    border-radius: 8px;
    background: #ADB46E;
}

.orderBtn:hover {
    border: 1px solid #D6D769;
}

.title_text p {
    margin: 0em 0em 1em 0em;
}

.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

/* Services ----------------------------------------------------- */

hr {
    margin: 0 0.5em;
}

.services {
    display: grid;
    grid-template-rows: auto auto auto auto;
    margin: 1em 1em 1em;
    grid-gap: 1em;
}

/* Course -----------------------------------------------------------*/


.course-section {
    background-color: rgb(249, 249, 249);
}
.courses {
    height: 600px;
    padding: 1em;
}

.upcoming-courses-container h1 {
    font-size: 2.2em;
}

.courses h1::after{
    content: ' ';
    display: block;
    margin: 16px 0;
    width: 60px;
    height: 8px;
    background: #f2e400;
}

/* News ------------------------------------------------------------ */

.articles {
    background-color: #58636e;
    overflow: hidden;
    box-sizing: border-box;
}

.articles header {
    padding: 0em 1em;
    color: white;
}

.articles header h1 {
    font-size: 2.2em;
}

.articles header h1::after {
    content: ' ';
    display: block;
    margin: 16px 0;
    width: 60px;
    height: 8px;
    background: #f2e400;
}

header.articles h1 {
    font-size: 2.2em;
    color: white;
}

.post-info-container {
    background: unset;
    color: white;
    padding: 0em 2em 0em 2em;
}

.post-info-container h2::after {
    content: ' ';
    display: block;
    margin: 16px 0;
    width: 40px;
    height: 8px;
    background: #f2e400;
}

.post-info-container a {
    padding: 1em;
}

.blogpost-info {
    height: 230px;
    overflow: hidden;
}

.post-summary {
    padding: 0;
}

.post-summary .rich-text {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-info-container {
    position: relative;
}

.post-summary .rich-text p {
    max-height: 180px;
    overflow: hidden;
}

.blogpost-info {
    margin-bottom: 1em;
}

.blogpost-info::before{
    content:'';
    width:100%;
    height:100%;
    position:absolute;
    left:0;
    top:0;
    background-image: -webkit-linear-gradient(top, rgba(88, 99, 110, 0.01) 80%, #58636e 100%, #58636e 100%);
    z-index: 1;
}

.post-title {
    text-align: unset;
}

.glide__arrows {
    display: table;
    margin: auto;
    width: fit-content;
}

.glide__arrow {
    display: inline-block;
    width: 100px;
    position: unset;
}

.glide__arrow--left {
    margin-right: 10em;
}

#order-modal {
    height: 50%;
    position: relative;
}

.close-modal-btn {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translate(-50%, 0%);
}

@media only screen and (min-width: 768px) {

    .headerinfo {
        top: 55%
    }

    .text-overview-section {
        display: block;
        margin: 0em auto;
    }


    .services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        margin: 1em 4em;
    }

    .articles header {
        padding: 0em 4em;
        color: white;
    }

    .post-section {
        margin: 0em 4em;
    }
}