/*-----------------------------------------*/
/*--- 1. Cookies                    -------*/
/*--- 2. Search                     -------*/
/*--- 3. Powermail                   ------*/
/*--- 4. News                        ------*/
/*-----------------------------------------*/

/*--- 1. Cookies                     ------*/
/* Cookie Settings Button */
#tx_cookies .cookieSettings-btn {
    display: none;
}

/* Cookie Selection Box */
#tx_cookies #tx_cookies_inner {
    position: relative;
    top: 0;
    bottom: unset;
    z-index: unset;
    background-color: #E8EDEE;
    padding: 20px;
}
#tx_cookies #tx_cookies_inner .show {
    display: block;
}
#tx_cookies #tx_cookies_inner #tx_cookies_close {
    display: none;
}
#tx_cookies #tx_cookies_inner #tx_cookies_close::after {
    content: "";
    padding: 0;
}
#tx_cookies #tx_cookies_inner h2 {
    margin: 0px 0 10px;
}
#tx_cookies #tx_cookies_inner h2:before {
    content: none;
}
#tx_cookies #tx_cookies_inner a {
    color: inherit;
}
#tx_cookies #tx_cookies_inner .cookie-controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#tx_cookies #tx_cookies_inner .cookie-controls form {
    width: 100%;
}
#tx_cookies #tx_cookies_inner .cookie-controls input {
    width: 100%;
}
#tx_cookies #tx_cookies_inner .btn-primary,
#tx_cookies #tx_cookies_inner .primary-btn,
#tx_cookies #tx_cookies_inner .btn-secondary {
    display: inline-block;
    padding: 8px 25px;
    outline: none;
    border: 0;
    border-radius: 5px;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    text-decoration: none;
}
#tx_cookies #tx_cookies_inner .btn-primary,
#tx_cookies #tx_cookies_inner .primary-btn {
    background-color: #005EB8;
    color: #fff;
}
#tx_cookies #tx_cookies_inner .btn-secondary {
    background-color: #003087;
    color: #fff;
}
#tx_cookies #tx_cookies_inner .btn-primary:hover,
#tx_cookies #tx_cookies_inner .primary-btn:hover {
    background-color: #003087;
    text-decoration: underline;
}
#tx_cookies #tx_cookies_inner .btn-secondary:hover {
    background-color: #005EB8;
    text-decoration: underline;
}
#tx_cookies #tx_cookies_inner .btn-primary:focus,
#tx_cookies #tx_cookies_inner .primary-btn:focus,
#tx_cookies #tx_cookies_inner .btn-secondary:focus {
    background: #FFB81C!important;
    color: #231F20!important;
    box-shadow: none!important;
    text-decoration: underline;
}

/* Cookie Page Only */
.cookies-btn #tx_cookies #tx_cookies_showPermanent,
.cookies-btn #tx_cookies #tx_cookies_inner {
    position: static;
    transition: none;
}
.cookies-btn #tx_cookies #tx_cookies_inner #tx_cookies_close {
    display: block;
    width: auto;
}

/* Cookies Media Queries */
@media screen and (max-width: 576px) {
    #tx_cookies #tx_cookies_inner .show {
        display: inline-block;
    }
    #tx_cookies #tx_cookies_inner .cookie-controls {
        justify-content: flex-start;
        gap: 0;
        flex-direction: column;
    }
    #tx_cookies #tx_cookies_inner #tx_cookies_close {
        float: none;
        margin-left: 0;
    }
}

/*--- 2. Search                     ------*/
/* Search Box */
.searchBox .frame {
    width: 100%;
}
.searchBox .tx-kesearch-pi1 {
    font-family: inherit;
}
.searchBox .tx-kesearch-pi1 form {
    margin: 0;
}
.searchBox .tx-kesearch-pi1 form fieldset {
    background-color: transparent;
}
.searchBox .tx-kesearch-pi1 input[type="search"] {
    border: 2px solid #005eb8 !important;
    color: #231f20;
    margin-bottom: 5px!important;
    font-size: 1.4rem;
    line-height: calc(1.4rem * 1.5);
    word-spacing: calc(1.4rem * 0.16);
}
.searchBox .tx-kesearch-pi1 .kesearchbox {
    height: auto;
    margin: 0px;
}
.searchBox .tx-kesearch-pi1 .kesearchbox label {
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    margin-bottom: 0;
}
.searchBox .tx-kesearch-pi1 .kesearchbox #ke_search_sword {
    position: relative;
    width: 100%;
    padding: 7px;
}
.submitbutt {
    display: block;
    position: relative;
}
.submitbutt input {
    position: absolute;
    top: -42px;
    right: 2px;
    min-width: 35px!important;
    max-width: 35px!important;
    border: 0px!important;
    background-color: transparent!important;
    padding: 8px;
}
.submitbutt input:hover, .submitbutt input:focus {
    box-shadow: 0 0 0 3px #ffb81C;
}

/* Search Page */
.tx-kesearch-pi1 .result-teaser {
    color: #231f20 !important;
}
.tx-kesearch-pi1 #kesearch_num_results {
    margin-bottom: 10px;
    color: #231f20 !important;
}
.tx-kesearch-pi1 #kesearch_pagebrowser_bottom {
    text-align: left;
    border-top: 2px solid #005eb8;
    margin-top: 30px;
}
.tx-kesearch-pi1 #kesearch_pagebrowser_bottom .result_txt {
    color: #231f20;
    margin: 10px 0;
}
.tx-kesearch-pi1 #kesearch_pagebrowser_bottom .pages_total {
    border-top: none !important;
    color: #231f20;
}
.tx-kesearch-pi1 #kesearch_pagebrowser_top .pages_total, .tx-kesearch-pi1 #kesearch_pagebrowser_bottom .pages_total {
    color: #231f20;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .pagination {
    margin-left: 0;
    flex-wrap: wrap;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .pagination .page-item {
    display: inline-block !important;
    margin:  0 5px 5px;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .pagination .page-item:empty {
    display: none !important;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .pagination .page-item .page-link {
    color: #fff !important;
    padding: 5px 15px !important;
    background-color: #005eb8;
    border-color: transparent;
    border-radius: 0;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
}
.tx-kesearch-pi1 .kesearch_pagebrowser .pagination .page-item .page-link:hover {
    background-color: #003087;
    color: #fff !important;
    text-decoration: underline;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active .page-link, .tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active .page-link:hover, .tx-kesearch-pi1 .kesearch_pagebrowser .pagination .page-item .page-link:focus {
    background: #FFB81C;
    color: #231F20 !important;
    box-shadow: none!important;
}
.tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active .page-link, .tx-kesearch-pi1 .kesearch_pagebrowser .page-item.active .page-link:hover {
    text-decoration: none;
}
.tx-kesearch-pi1 #kesearch_results .result-number, .tx-kesearch-pi1 #kesearch_results .result-title, .tx-kesearch-pi1 #kesearch_results .result-number {
    font-size: 1.6rem!important;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
}
.tx-kesearch-pi1 #kesearch_results .result-list-item {
    margin: 10px 0;
}
.tx-kesearch-pi1 #kesearch_results .result-list-item .hit {
    color: #005eb8 !important;
    font-weight: bold;
}

/*--- 3. Powermail                     ------*/
.tx-powermail {
    border: 1px solid #E8EDEE;
    padding: 10px;
}
.tx-powermail .powermail_fieldset {
    border: 0
}
.tx-powermail .powermail_fieldset:first-of-type {
    padding-top: 10px;
}
.tx-powermail .powermail_fieldset:last-of-type {
    padding-bottom: 10px;
}
.tx-powermail legend {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #E8EDEE;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    line-height: calc(2.2rem * 1.5);
    word-spacing: calc(2.2rem * 0.16);
}
.tx-powermail .powermail_fieldwrap {
    margin-bottom: 10px;
}
.tx-powermail label, .tx-powermail .powermail_fieldwrap p {
    font-weight: 600;
}
.tx-powermail .powermail_input, .tx-powermail .powermail_textarea, .tx-powermail .powermail_select, .tx-powermail .powermail_date {
    background-color: #fff;
    color: #231f20;
    width: 100%;
    padding: 5px;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
}
.tx-powermail .powermail_input:focus, .tx-powermail .powermail_textarea:focus, .tx-powermail .powermail_select:focus, .tx-powermail .powermail_date:focus, .tx-powermail .powermail_radio:focus, .tx-powermail .powermail_checkbox:focus {
    outline: 3px solid #FFB81C;
}
.tx-powermail .powermail_textarea {
    height: 120px !important;
}
.tx-powermail .radio, .tx-powermail .checkbox {
    position: relative;
    margin: 0;
}
.tx-powermail .radio label, .tx-powermail .checkbox label {
    font-weight: normal;
    display: inline-block;
    cursor: pointer;
}

/* Removing the checkbox and radio appearance */
.tx-powermail [type=radio], .tx-powermail [type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    width: 20px;
    height: 20px;
    border: solid 1px #425563;
    margin-right: 8px;
    position: relative;
}
.tx-powermail [type=radio]:checked::before, .tx-powermail [type=checkbox]:checked::before {
    background-color: #005EB8;
    content: "";
    width: 14px;
    height: 14px;
    position: absolute;
    top: 2px;
    left: 2px;
}
.tx-powermail [type=radio] {
    border-radius: 100%;
}
.tx-powermail [type=radio]:checked::before {
    border-radius: 100%;
}
.tx-powermail .powermail_submit {
    width: 100%;
    background-color: #005EB8;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px;
}
.tx-powermail .powermail_submit:hover {
    background-color: #003087;
    text-decoration: underline;
}
.tx-powermail .powermail_submit:focus {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}
.tx-powermail .powermail-errors-list li {
    color: #8b1309;
}

/* Split page buttons */
.tx-powermail .btn-group {
    margin-bottom: 1.5rem
}
.tx-powermail .btn-group .btn-primary, .tx-powermail .btn-group .btn-danger, .tx-powermail .btn-group .btn-default {
    background-color: #003087;
    color: #fff;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    padding: 12px;
    outline: 0;
    border: 0;
    border-radius: 5px !important;
    margin-right: 10px;
    margin-bottom: 0;
}
.tx-powermail .btn-group .btn-primary:hover, .tx-powermail .btn-group .btn-danger:hover, .tx-powermail .btn-group .btn-default:hover {
    background-color: #005EB8;
    text-decoration: underline;
}
.tx-powermail .btn-group .btn-primary:focus, .tx-powermail .btn-group .btn-danger:focus, .tx-powermail .btn-group .btn-default:focus {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}

.tx-powermail .powermail_tab_navigation .btn-primary, .tx-powermail .powermail_tab_navigation .btn-warning {
    width: auto;
    background-color: #003087;
    color: #fff;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    padding: 12px;
    outline: 0;
    border: 0;
    border-radius: 5px;
}
.tx-powermail .powermail_tab_navigation .btn-primary:hover, .tx-powermail .powermail_tab_navigation .btn-warning:hover {
    background-color: #005EB8;
    text-decoration: underline;
}
.tx-powermail .powermail_tab_navigation .btn-primary:focus, .tx-powermail .powermail_tab_navigation .btn-warning:focus {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}

/* Confirmation screen */
.tx-powermail .powermail_confirmation {
    text-align: left;
}
.tx-powermail .powermail_confirmation span {
    display: inline-block;
    margin-bottom: 1.5rem;
}
.tx-powermail .powermail_confirmation .powermail_all_marker_selectacontactrecipient {
    display: none;
}
.tx-powermail .powermail_confirmation .btn-group form:first-child {
    margin-right: 15px;
}
.tx-powermail .powermail_confirmation .btn-group .btn-primary, .tx-powermail .powermail_confirmation .btn-group .btn-default {
    background-color: #005EB8;
    color: #fff;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    padding: 12px;
    outline: 0;
    border: 0;
    border-radius: 5px;
}
.tx-powermail .powermail_confirmation .btn-group .btn-primary:hover, .tx-powermail .powermail_confirmation .btn-group .btn-default:hover {
    background-color: #003087;
    text-decoration: underline;
}
.tx-powermail .powermail_confirmation .btn-group .btn-primary:focus, .tx-powermail .powermail_confirmation .btn-group .btn-default:focus {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}
.tx-powermail .powermail_confirmation .btn-group .btn-danger {
    background-color: #003087;
    color: #fff;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    padding: 12px;
    outline: 0;
    border: 0;
    border-radius: 5px;
}
.tx-powermail .powermail_confirmation .btn-group .btn-danger:hover {
    background-color: #005EB8;
    text-decoration: underline;
}
.tx-powermail .powermail_confirmation .btn-group .btn-danger:focus {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}

/* Submission successful message */
.tx-powermail .powermail_create p {
    color: #006747;
}

/* Powermail Tables */
.powermail_confirmation .table-responsive {
    display: table;
    text-align: left;
}
.tx-powermail .table td {
    color: #231f20 !important;
}
.tx-powermail .table td strong {
    font-weight: normal !important;
}
.tx-powermail .table-hover tbody tr:hover {
    color: inherit;
    background-color: transparent;
}
.tx-powermail .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-bg-type: transparent;
}
.tx-powermail .table-hover > tbody > tr:hover > * {
    color: #231f20;
    background-color: transparent;
    --bs-table-bg-state: transparent;
}
.tx-powermail .table > :not(caption) > * > * {
    padding: 0.75rem;
}

/*--- 4. News                     ------*/
/* - List View - */
.news .news-list-view {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.news .news-list-view .article {
    display: flex;
    flex: 0 0 calc((100% / 4) - (8px * (4 - 1) / 4));
    margin-right: 8px;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}
.news .news-list-view .article:nth-child(4n) {
    margin-right: 0;
}
.news .news-list-view .article a {
    flex-direction: column;
    text-decoration: none;
}
.news .news-list-view .article a:hover .news-text-wrap {
    background-color: #003087;
    box-shadow: none;
    text-decoration: underline;
}
.news .news-list-view .article a:focus .news-text-wrap {
    background-color: #ffb81C;
    color: #231f20;
    box-shadow: none!important;
    outline: none;
}
.news .news-list-view .article a .news-img-wrap {
    float: none;
    margin: 0;
}
.news .news-list-view .article a:hover .news-img-wrap img,
.news .news-list-view .article a:focus .news-img-wrap img {
    outline: 0;
}
.news .news-list-view .article a .news-img-wrap img {
    display: block;
    float: none;
}
.news .news-list-view .article a .news-text-wrap {
    background-color: #005EB8;
    color: #fff;
    height: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 15px;
    margin-bottom: 0;
    font-size: 2rem;
    line-height: calc(2rem * 1.5);
    word-spacing: calc(2rem * 0.16);
    font-weight: normal;
    text-align: center;
}

/* - Detail View -*/
.news.news-single .news-list-date {
    border-top: 1px solid #e8edee;
    color: #425563;
    padding: 5px 0 0;
}

/* - Pagination - */
.news .f3-widget-paginator {
    border-top: 2px solid #005eb8;
    text-align: left;
    padding: 10px 0 0;
    margin-left: 0;
    margin-top: 1.5rem;
}
.news .f3-widget-paginator:first-child {
   display: none;
}
.news .f3-widget-paginator li {
    display: inline-block;
    margin: 0;
    margin-bottom: 1.5rem;
}
.news .f3-widget-paginator li.current {
    background: #FFB81C;
    color: #231F20 !important;
    box-shadow: none!important;
    padding: 6.2px 15px !important;
    text-decoration: none;
}
.news .f3-widget-paginator li a {
    color: #fff !important;
    padding: 10px 15px !important;
    background-color: #005eb8;
    border-color: transparent;
    border-radius: 0;
    font-weight: normal;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    text-decoration: none;
}
.news .f3-widget-paginator li a:hover {
    background-color: #003087;
    color: #fff !important;
    text-decoration: underline;
}
.news .f3-widget-paginator li a:focus {
    background: #FFB81C;
    color: #231F20 !important;
    box-shadow: none!important;
}

/* News Media Queries */
@media screen and (max-width: 991px) {
    /* - List View - */
    .news .news-list-view .article {
        flex: 0 0 calc((100% / 2) - (8px * (2 - 1) / 2));
    }
    .news .news-list-view .article:nth-child(4n) {
        margin-right: 8px;
    }
    .news .news-list-view .article:nth-child(2n) {
        margin-right: 0;
    }
}
@media screen and (max-width: 767px) {
    /* - Details View - */
    .news.news-single .article .news-img-wrap {
        float: none;
        width: 100%;
        margin: 0;
    }
}
@media screen and (max-width: 567px) {
    /* - List View - */
    .news .news-list-view .article {
        flex: 0 0 calc((100% / 1) - (8px * (1 - 1) / 1));
        margin-right: 0;
    }
}