/*==============*/
/*ARTICLE DETAIL*/
/*==============*/

.custom-article-detail {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 50px;

    color: #5a5a5a
}

.custom-article-detail header {
    align-items: flex-start;
    padding-bottom: 30px;
    margin-bottom: 25px;

    border-bottom: 1px solid #a0a6aa;
}

.custom-article-detail header h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.custom-article-detail header p {
    font-size: 14px;
}

.custom-article-detail header span {
    color: #2762a7;
    font-weight: bold;
}

.custom-article-detail .blog-visual {
    display: contents;
}

.custom-article-detail img {
    width: 100%;
    max-width: 700px;
    height: auto;

    align-self: center;
}

.custom-article-detail h3 {
    padding-top: 30px;
    padding-bottom: 5px;
    border-bottom: 1px solid #a0a6aa;
    margin-bottom: 30px;
}

.custom-article-detail .blog-content {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-bottom: 30px;

    border-bottom: 1px solid #a0a6aa;
}
/*==============*/
/*NOSCI page*/
/*==============*/
.custom-nosci {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 50px;

    color: #5a5a5a
}

.custom-nosci header {
    align-items: flex-start;
    padding-bottom: 30px;
    margin-bottom: 25px;

    border-bottom: 1px solid #a0a6aa;
}

.custom-nosci header h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.custom-nosci header span {
    color: #2762a7;
    font-weight: bold;
}

.nosci-h2 {
    font-weight: bold;
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 30px;
}

.nosci-pdf {
    position: relative;
    bottom: 50px;
    left: 851px;
}

.custom-nosci .blog-visual {
    display: contents;
}

.custom-nosci img {
    width: 100%;
    max-width: 800px;
    height: auto;

    align-self: center;
}

@media screen and (max-width: 700px) {
    .custom-article-detail ul div {
        flex-direction: column;
    }

    .custom-article-detail ul div:first-of-type {
        margin-bottom: 20px;
    }

    .custom-article-detail ul div > p {
        margin-bottom: 20px;
    }
}

/*===============*/
/*LATEST ARTICLES*/
/*===============*/
.section-latest-posts {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    padding: 35px 30px 25px 30px;

    background-color: #e4e3e3;
}

.section-latest-posts > h2 {
    font-weight: bold;
    padding-bottom: 23px;
}

.custom-latest-articles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

@media (min-width: 576px) {
    .section-latest-posts {
        padding: 35px 80px 25px 80px;
    }
}

/*SECTION SERVICES*/

.section-services {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 50px;
    row-gap: 30px;
}

.section-services__label-categories {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;

    padding-bottom: 10px;
    border-bottom: 1px solid #a0a6aa;

    font-size: 20px;
    color: #5a5a5a;
    font-weight: bold;
}

.section-services__categories {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
}

.section-services__article {
    grid-column: 2 / span 1;
    grid-row: 1 / span 4;

    display: grid;
    grid-auto-rows: min-content;
    row-gap: 30px;
}

/* ARTICLE SERVICE */

.article-service {
    display: grid;
    grid-template-columns: 1fr max-content;
    column-gap: 60px;
    row-gap: 30px;
    border: 1px solid #B7BDC1;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.15);
    padding: 35px;
}

.article-service__title {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    align-self: center;

    color: #0782C1;
    font-size: 25px;
}

.article-service__logo {
    grid-column: 2 / span 1;
    grid-row: 1 / span 2;

    align-self: center;
}

.article-service__logo > img {
    width: 100px;
    height: auto;
}

.article-service__description {
    color: #5a5a5a;
    line-height: 140%;
}

.article-service__btn {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
    align-self: center;
    justify-self: center;

    font-size: 15px;
    text-decoration: none;
    color: white;

    border-radius: 20px;
    padding: 10px 15px;
    background-color: #CF1F25;
}

.article-service__btn:hover {
    background-color: #860404;
}

.service-categories {

}

.service-categories__item {

}

.service-categories__item:not(:last-of-type) {
    margin-bottom: 10px;
}

.service-categories__link {
    display: block;
    text-decoration: none;
    padding: 15px 10px;

    color: #0782C1;
}

.service-categories__link:hover {
    background-color: #0782C1;
    color: #fff;
}

.service-categories__item.selected > .service-categories__link {
    font-weight: bold;
    background-color: #076faf;
    color: white;
}

.service-categories__item.selected > .service-categories__link:hover {
    background-color: #0782C1;
    color: #fff;
}

.article-extra {
    color: #5a5a5a;
    font-size: 15px;
}

.article-extra__item:not(:last-of-type) {
    margin-bottom: 6px;
}

.article-extra__value {
    color: #0782C1;
}

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

    .article-service {
        grid-template-columns: 1fr;
    }

    .article-service__description {
        grid-row: 2 / span 1;
    }

    .article-extra {
        grid-row: 3 / span 1;
    }

    .article-service__logo {
        grid-column: unset;
        grid-row: 4 / span 1;
    }

    .article-service__btn {
        grid-column: unset;
        grid-row: 5 / span 1;

        justify-self: flex-start;
    }
}

@media screen and (max-width: 800px) {
    .section-services {
        grid-template-columns: 1fr;
    }

    .section-services__article {
        grid-column: unset;
        grid-row: unset;
    }
}

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

    .article-service {
        padding: 20px;
    }

    .article-service__description {
        font-size: 15px;
    }
}

/*
Form now on the term ARTICLE is equivalent with POST.
In future I will remove the term ARTICLE.
*/

/* POST PROJECT-RESULTS */

.post-project-result {
    display: grid;
    grid-template-columns: 320px 1fr;
    column-gap: 50px;

    color: #777777;
    line-height: 1.6;

    padding: 25px;
    border-bottom: 1px solid #ddd;
}

.post-project-result:last-of-type {
    margin-bottom: 60px;
}

.post-project-result.even {
    background-color: #f9f9f9;
}

.post-project-result.odd {
    background-color: #fff;
}

.post-project-result__title {
    line-height: 1.6;
}

.post-project-result__link {
    text-decoration: none;
    color: #466ab8;
}

.post-project-result__link:hover {
    text-decoration: underline;
}

.post-project-result__description {

}

@media screen and (max-width: 880px) {
    .post-project-result {
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 0;
    }
}

/* SECTION POSTS OUR-TEAM */

.section-our-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;

    gap: 50px;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* POST OUR-TEAM */
.post-our-team {
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-rows: repeat(5, min-content);

    column-gap: 50px;
    row-gap: 10px;

    align-items: center;
    justify-content: center;
}

.post-our-team__img {
    grid-column: 1 / span 1;
    grid-row: 1 / -1;

    width: 120px;
    height: 120px;

    border-radius: 50%;
    overflow: hidden;
}

.post-our-team__img > img {
    width: 100%;
    height: auto;
}


.post-our-team__name {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
    font-size: 25px;
}

.post-our-team__position {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
    color: #db545a;
    font-weight: 700;
}

.post-our-team__email {
    grid-column: 2 / span 1;
    grid-row: 4 / span 1;
    color: #466ab8;
}

@media screen and (max-width: 900px) {
    .section-our-team {
        grid-template-columns: 1fr minmax(min-content, max-content) 1fr;
        column-gap: 0;
    }

    .post-our-team {
        grid-column: 2 / span 1;
    }

}

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

    .section-our-team {

    }

    .post-our-team {
        grid-template-columns: auto;
        grid-template-rows: unset;

        justify-items: center;
    }

    .post-our-team__img,
    .post-our-team__name,
    .post-our-team__position,
    .post-our-team__email {
        grid-column: unset;
        grid-row: unset;
    }

    .post-our-team__img {
        margin-bottom: 10px;
    }

}

.tags {
    display: flex;
}

.tags:not(:last-child) {
    margin-bottom: 15px;
}

.tags__label {
    margin-right: 15px;
}

.list--row {
    display: flex;
    flex-wrap: wrap;
}

.list--row__item {
    flex-shrink: 0;
    color: #099ae4;
    margin-bottom: 15px;
}

.list--row__item:not(:last-child) {
    margin-right: 7px;
}

.list--row__link:link,
.list--row__link:visited {
    color: #099ae4;
    text-decoration: none;
}

.list--row__link:hover,
.list--row__link:active {
    color: #0782C1;
    text-decoration: underline;
}

.card-post {
    display: flex;
    border-bottom: 1px solid #a0a6aa;
    padding: 29px 0;
}

.card-post__header {
    flex-shrink: 0;
    display: block;
    width: 250px;
    margin-right: 30px;
    cursor: pointer;
    overflow: hidden;
}

.card-post__img {
    width: 100%;
    height: auto;
    transition: all .3s;
}

.card-post__header:hover > .card-post__img {
    transform: scale(1.1);
}

.card-post__body {

}

.card-post__link {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    font-size: 19px;
    margin-bottom: 15px;
}

.card-post__link:link,
.card-post__link:visited {
    color: #5a5a5a;
}

.card-post__link:hover,
.card-post__link:active {
    color: #737373;
}


.card-post__subtitle {
    color: rgba(90, 90, 90, .8);
}

@media screen and (max-width: 700px) {
    .card-post {
        flex-direction: column;
    }

    .card-post__header {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

.card-post--vertical {
    display: flex;
    flex-direction: column;
    width: 250px;
    margin-bottom: 35px;

    background-color: white;

    color: #5a5a5a;
    text-decoration: none;
    transition: all .4s;
}

.card-post--vertical:hover {
    transform: scale(1.03) translateY(-5px);
}

.card-post--vertical:not(:last-child) {
    margin-right: 30px;
}


.card-post--vertical__header {

}

.card-post--vertical__body {
    padding: 20px;
}

.card-post--vertical__date {
    margin-bottom: 15px;
}

.card-post--vertical__title {

}
