﻿.div-category {
    display: grid;
    grid-template: repeat(4, auto) / repeat(10, 1fr);
    grid-gap: 10px;
    grid-auto-rows: minmax(200px, auto);
    grid-template-areas:
        "o o o o o o o o o o "
        "a a a a a a a a a a "
        "ra ra ra ra ra ra ra ra ra ra "
        "b b b b b b b b b b ";
    /*padding-top: 1rem;*/
    margin: 0 auto 35px;
    width: 100%;
    min-height: 300px;
    background-color: #f7f7f7;
}

.div-overview {
    grid-area: o;
    background-color: #f7f7f7;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.div-overview-header {
    filter: brightness(.9);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

.div-overview-header-title {
    width: 100%;
    height: 100%;
    color: #fff !important;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 110px;
    padding-bottom: 5.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

    .div-overview-header-title h1 {
        font-weight: 400;
        font-size: 5rem;
        color: #fff !important;
        text-shadow: 1px 1px 2px #353535,0 0 1em rgba(0,0,0,.4);
    }

    .div-overview-header-title h3 {
        font-weight: 400;
        font-size: 2.55rem;
        line-height: 1.3;
        color: #fff !important;
        text-shadow: 1px 1px 2px #353535,0 0 1em rgba(0,0,0,.4);
    }

.div-overview-main {
    width: 100%;
    max-width: 1280px;
    /*min-height: 100px;*/
    margin-left: auto;
    margin-right: auto;
    margin-top: -20px;
    /*background-color: burlywood;*/
    /*opacity: 0;*/
    display: grid;
    grid-template: 1fr / repeat(6, 1fr);
    grid-gap: 10px;
    grid-auto-rows: minmax(200px, auto);
    grid-template-areas: "cards1 cards2 cards3 . . .";
    z-index: 3;
}

.div-overview .div-content {
    margin-top: -20px;
    z-index: 3;
}

.div-overview-header-title h3 {
    background: rgba(0,0,0,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.3), inset 0 10px rgba(255,255,255,0.2), inset 0 10px 20px rgba(255,255,255,0.25), inset 0 -15px 30px rgba(0,0,0,0.3);
}

.service-card {
    width: 100% !important;
    max-width: 150px !important;
}

.div-article-list {
    grid-area: a;
    background-color: #f7f7f7;
}

.div-content {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

    .div-content h2 {
        font-weight: 400;
        font-size: 3.15rem;
        line-height: 1.3;
        /*color: #fff !important;*/
    }

    .div-content .article {
        margin-bottom: 1rem;
    }

        .div-content .article hr {
            width: 100%;
        }

.article a, .basic a, .recentarticle a {
    text-decoration: none;
    color: #333;
}

a:hover h3 {
    color: #1155cc;
}

.article {
    width: 100%;
}


.article-body {
    display: flex;
    flex-direction: row;
}

    .article-body.reverse-order {
        flex-direction: row-reverse;
    }

/*.article-body {
    display: grid;
    grid-template: auto / auto 1fr 1fr;
    grid-gap: 5px;
    grid-auto-rows: minmax(200px, auto);
    grid-template-areas: "left right right";
}

    .article-body.reverse-order {
        grid-template: auto / 1fr 1fr auto;
        grid-template-areas: "right right left";
    }*/

.article-image {
    grid-area: left;
    min-height: 200px;
    filter: brightness(.9);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

    .article-image img {
        height: 200px;
    }

.article-text {
    padding-left: 15px;
    padding-right: 15px;
}

    .article-text h3 {
        margin-top: 0 !important;
    }

.div-recent-article-list {
    grid-area: ra;
    background-color: #f7f7f7;
}

    .div-recent-article-list .div-content {
        display: block;
    }


.ra-list-content {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-gap: 5px;
}

.recentarticle {
    grid-column-end: span 6;
    padding-left: 5px;
    padding-right: 5px;
}

    .recentarticle hr {
        margin-top: 5px;
        margin-bottom: 5px;
    }

.ra-content {
    /*display: inline;*/
    vertical-align: central;
    align-items: center;
    justify-content: flex-start;
    display: flex;
}

.ra-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    /*filter: brightness(.9);*/
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 100%;
    display: block;
    /*    margin-top: 10px;
    margin-right: 10px;*/
    margin-right: 15px;
}

    .ra-image img {
        width: 50px;
        margin: 0 auto;
    }

.ra-text {
    display: block;
    min-height: 32px;
}

    .ra-text h3 {
        /*        margin: 5px 0 5px;
        padding-bottom:10px;*/
        margin: 0;
    }

.recentarticle h3 {
    font-size: 18px;
}

.div-basics {
    grid-area: b;
    background-color: #f7f7f7;
}

    .div-basics .div-content {
        display: block;
    }

.basics-content {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    grid-gap: 5px;
    /*grid-auto-rows: minmax(200px, auto);*/
}

.basic {
    grid-column-end: span 4;
    padding-left: 5px;
    padding-right: 5px;
}

.main-image {
    filter: brightness(.9);
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    margin: 0;
    padding: 0;
    border-style: none;
}

    .main-image::after, .main-image::before {
        box-sizing: border-box;
    }


.wrapper {
    padding-top: 5rem;
    margin: 0 auto;
    width: 600px;
}


.div-basic-link {
    display: none;
}

    .div-basic-link.custom-content-editable {
        display: block;
    }

.mobile-only {
    display: none !important;
}

@media (max-width: 800px) {

    .popular-services-item {
        padding: 0 10px !important;
    }

    .mobile-only {
        display: inline-block !important;
    }

    .non-mobile {
        display: none !important;
    }

    .service-card, .article {
        max-width: 800px !important;
    }

        .service-card.adaptive {
            height: 80px !important;
        }

    .popular-services-item > div {
        padding: 0 15px;
    }

    .service-button.adaptive a {
        height: 64px !important;
        display: grid !important;
        grid-template-columns: 1fr auto 6fr;
        grid-column-gap: 10px;
        align-items: center !important;
    }

    .service-button.adaptive img {
        grid-column: 2/2;
        margin-top: 10px !important;
    }

    .service-button.adaptive h3 {
        grid-column: 3/3;
        text-align: left;
        margin-top: 20px !important;
        margin-bottom: 5px !important;
    }

    /*    .article-body {
        grid-template: 1fr 1fr / auto;
        grid-template-areas:
            "top"
            "bottom";
    }

    .article-image, .article-image.reverse-order {
        grid-area: top;
    }

    .article-text, .article-text.reverse-order {
        grid-area: bottom;
    }*/

    .article-body, .article-body.reverse-order {
        flex-direction: column;
    }

    .article-text {
        padding: 0;
    }

    .basics-content {
        grid-template-columns: minmax(0,1fr);
    }

    .basic {
        grid-column-start: unset !important;
        padding-left: 5px;
        padding-right: 5px;
    }

    .ra-list-content {
        grid-template-columns: minmax(0,1fr);
    }

    .recentarticle {
        grid-column-start: unset !important;
        padding-left: 5px;
        padding-right: 5px;
    }

    .navbar .dropdown-menu a {
        padding: 10px 22px !important;
    }

    .footer-bottom {
        padding-bottom: 190px !important;
    }

    .footer-menu {
        margin-top: 10px !important;
        text-align: center !important;
        display: grid !important;
        grid-template-columns: 0 repeat(3, 1fr) 0 !important;
    }

        .footer-menu li:after {
            content: "" !important;
        }

    .div-overview-header-title {
        padding-top: 10px;
    }

        .div-overview-header-title h1 {
            font-size: 4rem;
        }

        .div-overview-header-title h3 {
            font-size: 1.75rem;
            line-height: 1.15;
        }
}

@media (max-width: 625px) {

    .popular-services-item > div {
        padding: 0 15px;
    }

    .service-card, .article {
        max-width: 625px !important;
    }
}
