/*---------TAB CONTROL------------------------*/

.tabs-widget {
    margin: 0px 0px 5px 0;
}

.cstab-button {
    display: flex;
    table-layout: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cstab-button li {
    display: table-cell;
    width: 20%;
}

.cstab-button li a {
    display: block;
    padding: .5em;
    background: #eee;
    border: 1px solid #ddd;
    text-align: center;
    color: #000;
    text-decoration: none;
    height: 100%;
}

.cstab-button li:not(:first-child) a {
    border-left: none;
}

.cstab-button li a:hover,
.cstab-button .is-active a {
    border-bottom-color: transparent;
    background: #fff;
}

.tab-contents {
    padding: 0.5em;
    border: 1px solid #ddd;
}

.tab-button-outer {
    display: none;
}

.tab-contents {
    margin-top: 20px;
}

.tab-contents .tabs-list-items img {
    width: 100%;
}

.tabs-widget .items-card {
    height: 100%;
}

.tabs-widget .items-card .card-body {
    padding-left: 0px;
    padding-right: 0px;
}

.tabs-widget .card-img img {
    width: 100%;
}

.tabs-list-items a.card-title {
    color: #0a237c;
}

.tabs-widget-news-index .cstab-button .is-active a {
    color: #f00 !important;
    font-weight: bold;
}

.tabs-widget-news-index .cstab-button {
    display: inherit;
}


/*---------LAYOUT-------------*/

.layout-wd-blue .tabs-widget li a {
    background-color: #0a237c;
    color: #fff;
}

.layout-wd-blue .tabs-widget .is-active a {
    color: #0a237c;
    background-color: transparent;
}

.layout-wd-blue-light .tabs-widget li a {
    background-color: #0019CC;
    color: #fff;
}

.layout-wd-blue-light .tabs-widget .is-active a {
    color: #0a237c;
    background-color: transparent;
}

.tabs-widget .cstab-button li a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs-widget .cstab-button li a span {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    padding: 0px !important;
    margin: 10px 0px !important;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 62px;
    margin-top: 0px !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin-bottom: 0px !important;
}

.tabs-list-items .items .card .card-body .card-text {
    margin-bottom: 0px;
    color: #959595;
}

@media screen and (min-width: 768px) {
    .tab-button-outer {
        position: relative;
        z-index: 2;
        display: block;
    }
    .tab-select-outer {
        display: none;
    }
    .tab-contents {
        position: relative;
        top: -1px;
        margin-top: 0;
    }
}