:root {
    --primary-font: "Roboto", sans-serif;
    --secondary-font: "Roboto Condensed", serif;

    --grid-gutter-x: 1rem;
    --border-color: rgb(228, 228, 228);
}

body {
    font-family: var(--primary-font);
    color: #555555;
    font-size: 16px;
    /*background: #e7f7fe;*/
}

a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: #f44336;
}

.btn {
    transition: all 0.3s ease-in-out;
}

.btn-clear {
    border: unset;
    outline: unset;
    background: transparent;
}

.btn-primary {
    background: #000;
    border-color: #000;
    border-radius: 0;

}

.btn-primary:hover {
    background: #F44336;
    border-color: #F44336;
}

/* HEADER */

header {

}

header .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 4px solid #000;
    padding: 10px 0 10px 0;
}

header .logo {
    display: block;
    width: 130px;
}

header .links {
    display: flex;
    gap: 10px;
    align-items: center;
}

header .menu-toggler {
    display: none;
}

header .main-menu {
    display: flex;
    width: max-content;
    padding: 5px 0;
    margin: auto;
}

header .main-menu .menu-item {
    display: block;
    font-family: var(--secondary-font);
    font-size: 19px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.2px;
    color: #000000;
    padding: 5px 10px;
}

header .main-menu .menu-header {
    display: none;
}

header .main-menu .menu-header .close-menu {
    font-size: 22px;
    background: transparent;
    border: none;
    outline: unset;
    padding: 5px 15px;
}

header .main-menu .menu-item:hover, header .main-menu .menu-item.active {
    color: #F44336;
}


@media (max-width: 576px) {
    header {
        position: sticky;
        top: 0;
        padding: 0;
        z-index: 2000;
    }

    header .top-bar {
        padding: 10px 10px;
        margin: 0 -12px;
    }

    header .logo {
        width: 90px;
    }

    header .menu-toggler {
        display: block;
        font-size: 18px;
        background: transparent;
        border: none;
        outline: unset;
    }

    header .main-menu {
        display: block;
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 350px;
        max-width: 100%;
        background: #fff;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.45);
        -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.45);
        -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.45);
        transition: all 0.3s ease-in-out;
        transform: translateX(110%);
        z-index: 3000;
    }

    header .main-menu.open {
        transform: translateX(0);
    }

    header .main-menu .menu-header {
        display: flex;
        justify-content: end;
    }

    header .main-menu .menu-item {
        padding: 10px 10px;
    }

    main {
        padding-top: 20px;
    }
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
}

.top-search .top-search-body {
    position: absolute;
    max-width: 0;
    max-height: 1px;
    width: 100%;
    right: 30px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.top-search .top-search-body.expanded {
    max-width: 230px;
    max-height: unset;
    width: 230px;
    opacity: 1;
}

.top-search .top-search-input {
    width: 100%;
    border: unset;
    outline: unset;
}

.top-search .top-search-input::placeholder {
    opacity: 0.3;
}

.top-search .top-search-body.expanded .top-search-input {
    border-bottom: 1px solid #c8c8cd;
}

.top-search .top-search-button {

}

@media (max-width: 576px) {
    .top-search-body {
        position: fixed !important;
        top: 70px;
        left: 0;
        width: 100% !important;
        transform: translateY(-210%);
        max-width: 100% !important;
        background: #fff;
        border: 1px solid #ccc;
        opacity: 0;
        padding: 0 10px;
    }

    .top-search-body.expanded {
        transform: translateY(0);
        padding: 10px;
    }
}


/* FOOTER */

footer {
    background: #000000;
}


.footer-row {
    align-items: center;
}

.footer-logo {
    /*width: 200px;*/
}

.footer-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    width: max-content;
    float: right;
    margin-top: 15px;
}

.footer-menu .menu-item {
    display: block;
    font-family: var(--secondary-font);
    font-size: 20px;
    color: #fff;
}

.footer-top {
    padding: 20px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 576px) {
    .footer-logo {
        width: 110px;
        margin: 0 auto 20px auto;
    }

    .footer-menu {
        float: unset;
        margin: auto;
    }
}


/* PAGES */

.page-title {
    font-family: var(--secondary-font);
    color: #000;
    padding: 0;
    margin: 0;
}

/* SECTIONS */

.section-title {
    border-bottom: 4px solid #000;
}

.section-title .title {
    font-family: var(--secondary-font);
    color: #000;
    padding: 0;
    margin: 0;
}

.section-subtitle {
    font-family: var(--secondary-font);
    color: #000;
    padding: 0;
    margin: 0;
}

.section-py {
    padding: 40px 0;
}

.section-pt {
    padding-top: 40px;
}

.section-pb {
    padding-bottom: 40px;
}


/* ARTICLES */

.article-title {
    font-family: var(--secondary-font);
    color: #000000;
    font-weight: 400;
}

.article-title:hover {
    color: #607D8B;
}

.article-title a {
    color: inherit;
}

.article-attributes {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #607D8B;
    /*margin-top: 4px;*/
}

.article-attributes .attribute {
    /*display: inline-block;*/
    color: #607D8B;
    /*margin-right: 10px;*/
}

.article-attributes .attribute i {
    display: inline-block;
    padding-right: 5px;
}

.article-attributes a.attribute:hover {
    color: #f44336;
}

.article-attributes .attribute.category {
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    background: #f44336;
    padding: 3px 5px;
}

.article-attributes .attribute.category:hover {
    color: #fff;
    background-color: rgb(255, 105, 92);
}

.article-attributes .attribute.pin-to-top {
    color: #f44336;
}


/* POPULAR ARTICLES */

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-height: 100%;
    border: 1px solid #E4E4E4;
    padding: 40px 30px 30px 30px;
}

.popular-article {
    display: flex;
    gap: 10px;
}

.popular-article .image {
    max-width: 35%;
    flex: 0 0 35%;
}

.popular-article .image img {
    width: 100%;
}

.popular-article .body {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.popular-article .body .title {
    font-family: unset;
    font-size: 16px;
}

@media (max-width: 576px) {
    .popular-articles {
        gap: 40px !important;
        padding: 40px 15px 30px 15px;
        border: none;
    }

    .popular-article {
        flex-direction: column;
    }

    .popular-article .image {
        max-width: 100% !important;
    }

    .popular-article .body .title {
        font-size: 20px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .popular-articles {
        padding: 30px 20px 20px 20px;
    }

    .popular-article {
        flex-direction: column;
    }

    .popular-article .image {
        max-width: 100% !important;
    }

    .popular-article .body .title {
        font-size: 20px !important;
    }
}


/* GRID ARTICLES */

.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.article-grid .article {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(33.333333333333% - 20px);
    padding: 0;
    overflow: hidden;
}

.article-grid .article.grid-2 {
    width: calc(50% - 20px);
}

.article-grid .article.grid-3 {
    width: calc(33.333333333333% - 20px);
}

.article-grid .article .image {
    display: flex;
    height: 250px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.article-grid .article .image img {
    scale: 1.1;
}

.article-grid .article .image-top {
    display: block;
    height: 250px;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-grid .article .body {
    position: relative;
    height: 172px;
    overflow: hidden;
}

.article-grid .article .body .shader {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 30px;
    background: #ffffff;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.article-grid .article .title {
    font-family: unset;
    font-size: 18px;
}

.article-grid .article .description {
    font-weight: 300;
    line-height: 1.4;
    color: #000;
}

@media (max-width: 576px) {
    .article-grid {
        flex-direction: column;
        gap: 40px !important;
    }

    .article-grid .article {
        width: 100% !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 30px;
    }

    .article-grid .article:last-child {
        border-bottom: none;
    }

    .article-grid .article .image {
        height: max-content;
    }

    .article-grid .article .body {
        height: max-content !important;
    }

    .article-grid .article .body .shader {
        display: none;
    }
}

/*@media (max-width: 767px) {*/
/*    .article-grid .article {*/
/*        margin-bottom: 60px;*/
/*    }*/

/*    .article-grid .column-lg-6, .article-grid .column-lg-3 {*/
/*        -ms-flex: 100%;*/
/*        flex: 100%;*/
/*        width: 100%;*/
/*        max-width: 100%*/
/*    }*/
/*}*/

/*@media (min-width: 768px) and (max-width: 1024px) {*/
/*    .article-grid .column-md-6 {*/
/*        -ms-flex: 0 0 calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        flex: 0 0 calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        width: calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        max-width: calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*    }*/
/*}*/

/*@media (min-width: 1025px) {*/
/*    .article-grid .column-lg-3 {*/
/*        -ms-flex: 0 0 calc(100% / 4 - 2 * var(--grid-gutter-x));*/
/*        flex: 0 0 calc(100% / 4 - 2 * var(--grid-gutter-x));*/
/*        width: calc(100% / 4 - 2 * var(--grid-gutter-x));*/
/*        max-width: calc(100% / 4 - 2 * var(--grid-gutter-x));*/
/*    }*/

/*    .article-grid .column-lg-4 {*/
/*        -ms-flex: 0 0 calc(100% / 3 - 2 * var(--grid-gutter-x));*/
/*        flex: 0 0 calc(100% / 3 - 2 * var(--grid-gutter-x));*/
/*        width: calc(100% / 3 - 2 * var(--grid-gutter-x));*/
/*        max-width: calc(100% / 3 - 2 * var(--grid-gutter-x));*/
/*    }*/

/*    .article-grid .column-lg-6 {*/
/*        -ms-flex: 0 0 calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        flex: 0 0 calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        width: calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*        max-width: calc(100% / 2 - 2 * var(--grid-gutter-x));*/
/*    }*/
/*}*/

.article-list {
    /*display: flex;*/
}

.article-list .article-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.article-list .article-item .image {
    display: flex;
    align-items: center;
    width: 30%;
}

.article-list .article-item .image img {
    width: 100%;
}

.article-list .article-item .body {
    width: 70%;
}

.article-list .article-item .body .title {
    font-family: var(--secondary-font);
    font-size: 18px;
}

.article-list .article-item .body .description {
    position: relative;
    font-weight: 300;
    font-size: 14px;
    max-height: 68px;
    min-height: 42px;
    overflow: hidden;
}

.article-list .article-item .body .description .shader {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 30px;
    background: #ffffff;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}


@media (max-width: 576px) {
    .article-list .article-item {
        flex-direction: column;
        margin: 0 0 40px 0;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--border-color);
    }

    .article-list .article-item .image {
        width: 100%;
    }

    .article-list .article-item .body {
        width: 100%;
    }


    .article-list .article-item .body .description {
        min-height: unset;
        max-height: unset;
    }

    .article-list .article-item .body .description .shader {
        display: none;
    }
}


/* ARTICLE DETAILS */
.article-details {

}

.article-details .title {
    font-family: var(--secondary-font);
    color: #000;
}

.article-details .article-content {
    /*font-weight: 300;*/
}

/*.article-details:after {*/
/*    content: "";*/
/*    clear: both;*/
/*    display: table;*/
/*}*/

.article-details .image-center {
    width: max-content;
    max-width: 100%;
    margin: 15px auto;
}

.article-details .image-left {
    float: left;
    width: 30%;
    margin-right: 15px;
    margin-bottom: 15px;
}

.article-details .image-right {
    float: right;
    width: 30%;
    margin-left: 15px;
    margin-bottom: 15px;
}

.article-details blockquote {
    color: #3b3d42;
    border-left: 2px solid #f44336;
    margin: 30px 0 30px 50px;
    padding: 0 0 0 23px;
    line-height: 1.33;
    font-weight: 700;
    font-style: italic;
    text-align: left;
}

.article-details blockquote::before {
    color: #607d8b;
    content: "\f10d";
    position: relative;
    font: normal normal normal 24px / 1 "FontAwesome";
    top: -7px;
    left: -3px;
    display: block;
    margin-bottom: -3px;
    font-size: 14px;
    line-height: 30px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.article-details.not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 377px);
}

@media (max-width: 576px) {
    .article-details .image-left, .article-details .image-right {
        float: unset;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 577px) and (max-width: 767px) {

}

/* Medium devices (tablets, 768px and up) (col-sm) */
@media (min-width: 768px) and (max-width: 991px) {

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

}


/* BREADCRUMB */

.nav-bread {
    font-size: 14px;
    font-family: var(--secondary-font);
    border-bottom: 1px solid #000;
    margin-bottom: 20px;
    padding: 20px 0;
}

.bread {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.bread .bread-item {
    display: flex;
    align-items: center;
}

.bread .bread-item .fa {
    display: block;
    font-size: 10px;
    padding-right: 7px;
    margin-top: -2px;
}

.bread .bread-item a {
    color: #000000;
}

.bread .bread-item a:hover {
    color: #F44336;
}

.bread .bread-item .title {
    display: block;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bread .bread-item.active {
    color: #607D8B;
}

@media (max-width: 576px) {
    .nav-bread {
        display: none;
    }
}


.embed-pdf {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    border: 1px solid #E4E4E4;
    padding: 5px;
}

.embed-pdf span {
    display: block;
}

.embed-pdf span.title {
    font-size: 10px;
}

@media (min-width: 768px) {
    .embed-pdf {
        width: max-content;
        max-width: 100%;
        margin: auto;
    }
}


.clearfix:after {
    content: "";
    clear: both;
    display: table;
}


@media (max-width: 576px) {
    .hidden-xs {
        display: none;
    }
    .hidden-sm {
        display: none;
    }
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 577px) and (max-width: 767px) {
    .hidden-sm {
        display: none;
    }
}
/* Medium devices (tablets, 768px and up) (col-sm) */
@media (min-width: 768px) and (max-width: 991px) {
    .hidden-md {
        display: none;
    }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hidden-lg {
        display: none;
    }
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hidden-xl {
        display: none;
    }
}