/* Filters */

.filters-select {
    border: none;
    color: #00316C;
    font-size: 20px;
    font-weight: 500;
    border-bottom: 2px solid #00316C;
    outline: none;
    padding: 15px 10px 5px;
    transition: all ease-in-out 0.3s;
    height: 75px;
    max-width: 285px;
}

.filters-select:focus {
    background-color: #F3F3F3;
    border-radius: 10px 10px 0 0;
}

select.filters-select option:hover {
    box-shadow: 0 0 10px 100px #1882A8 inset;
}

.filters-select option {
    font-weight: 500;
    color: #00316C;
    font-size: 20px;
}

.filter-wrapper {
    margin-bottom: 5rem;
    row-gap: 2rem;
}

.archive-section form.search-form, #breadcrumbs form.search-form {
    background: #EFF1FA;
    border-radius: 10px;
    color: #00316C;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 20px;
    height: 75px;
    display: flex;
    align-items: center;
}

.archive-section form.search-form input, #breadcrumbs form.search-form input {
    border: none;
    outline: none;
    background: transparent;
    color: #00316C;
    font-size: 20px;
    font-weight: 500;
}

.archive-section form.search-form i, #breadcrumbs form.search-form i {
    color: #03316C;
    opacity: 0.55;
}

.archive-section form.search-form input::-webkit-input-placeholder,
#breadcrumbs form.search-form input::-webkit-input-placeholder {
    color: #00316C !important;
    font-weight: 500;
    font-size: 20px;
    opacity: 0.55;
}

.archive-section form.search-form input::-moz-placeholder,
#breadcrumbs form.search-form input::-moz-placeholder {
    color: #00316C !important;
    font-weight: 500;
    font-size: 20px;
    opacity: 0.55;
}

.archive-section form.search-form input:-ms-input-placeholder,
#breadcrumbs form.search-form input:-ms-input-placeholder {
    color: #00316C !important;
    font-weight: 500;
    font-size: 20px;
    opacity: 0.55;
}

.archive-section form.search-form input::-ms-input-placeholder,
#breadcrumbs form.search-form input::-ms-input-placeholder {
    color: #00316C !important;
    font-weight: 500;
    font-size: 20px;
    opacity: 0.55;
}

.archive-section form.search-form input::placeholder,
#breadcrumbs form.search-form input::placeholder {
    color: #00316C !important;
    font-weight: 500;
    font-size: 20px;
    opacity: 0.55;
}

.post-search-form-wrapper {
    width: fit-content;
    margin-left: auto;
    white-space: nowrap;
}

.post-search-form-wrapper form.search-form {
    border-radius: 31px !important;
    padding: 10px 20px !important;
    background: #F4F4F4 !important;
    height: auto !important;
}

.daterange-wrapper {
    background: #EFF1FA;
    border-radius: 10px;
    color: #00316C;
    width: 340px;
    padding: 12px 25px;
    transition: all ease-in-out 0.3s;
}

.daterange-wrapper:focus-within {
    background: #003170;
    color: #EFF1FA;
}

.daterange-wrapper:focus-within input#daterange {
    color: #EFF1FA !important;
}

.daterange-wrapper label {
    font-size: 14px;
    font-weight: 500;
}

.range-labels {
    display: flex;
}

.daterange-wrapper label div span {
    font-size: 20px;
    font-weight: 500;
}

input#daterange {
    display: none;
    border: none;
    outline: none;
    background: transparent;
    color: #00316C;
    font-weight: 500;
    font-size: 20px;
}

/* Press releases */

.press-posts-wrapper {
    display: grid;
    row-gap: 5rem;
    column-gap: 3rem;
    grid-template-columns: repeat(auto-fit, 275px);
    grid-auto-rows: minmax(250px, auto);
    grid-auto-flow: dense;
    justify-items: center;
    justify-content: center;
}

.press-release-post-wrapper {
    width: 245px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.press-release-post-wrapper .post-title {
    height: 90px;
    font-weight: 500;
    font-size: 20px;
    color: #000000 !important;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.press-release-post-wrapper .post-date {
    font-size: 15px;
    font-weight: 500;
    color: #FF8400;
}

.press-release-post-wrapper .post-preview {
    font-size: 16px;
    font-weight: 300;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

h2.title {
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-thumbnail img {
    max-height: 245px;
    width: 100%;
    object-fit: cover;
}

.post-link {
    color: #073668 !important;
    font-size: 14px;
}

.post-link i {
    background: #F2F2F2;
    border-radius: 50%;
    padding: 10px 14px;
}

.post-link:hover i::before {
    content: "\f061";
}

/* Photo Material */

.photos-container, .post-container {
    display: grid;
    row-gap: 4rem;
    column-gap: 3rem;
    grid-template-columns: repeat(auto-fit, 285px);
    grid-auto-flow: dense;
    justify-items: center;
    justify-content: center;
}

section#personalized-content .photos-container {
    grid-template-columns: repeat(auto-fit, 280px);
}

.photo-container-box {
    position: relative;
}

.photo-container-box::before {
    content: "\f065";
    /* the Unicode value for the Font Awesome icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all ease-in-out 0.3s;
    z-index: 10;
    color: #FFFFFF;
    font-size: 30px;
    cursor: pointer;
}

.photo-container-box:hover::before {
    opacity: 1;
}

.photo-container-box:hover {
    cursor: pointer;
}

.photo-post-wrapper img {
    transition: all ease-in-out 0.3s;
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.photo-post-wrapper:hover img {
    filter: brightness(50%);
}

.photo-title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 1rem;
}

div#fancybox-photo-material-gallery {
    z-index: 99999;
}

/* Org-Chart*/

.org-chart-title {
    color: #FF8400;
    font-weight: bold;
}

.accordion-top-level .accordion-item .accordion-button {
    color: #FFFFFF;
}

.accordion-top-level .accordion-item.accordion-level-1 .accordion-button {
    background-color: #2D87E1;
    box-shadow: none !important;
}

#archive-org-chart .accordion-top-level .accordion-item {
    border: none;
}

.accordion-top-level .accordion-item.accordion-level-2 .accordion-button {
    background-color: #69ADF0;
}

.accordion-top-level .accordion-item.accordion-level-3 .accordion-button {
    background-color: #90C2F4;
}

.accordion-top-level .accordion-item.accordion-level-4 .accordion-button {
    background-color: #B8D9F7;
}

.accordion-top-level .accordion-item.accordion-level-3 .accordion-button:not(.collapsed),
.accordion-top-level .accordion-item.accordion-level-4 .accordion-button:not(.collapsed) {
    color: #003168;
}

.accordion-body {
    padding: 0 !important;
}

.accordion .accordion-item .accordion-collapse.no-children {
    display: none;
}

#archive-org-chart button.accordion-button {
    gap: 1rem;
}

#archive-org-chart .accordion-button::after {
    background: none;
    content: "\f107";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    color: #FFFFFF;
    transition: transform .2s ease-in-out;
}

#archive-org-chart .accordion-button:not(.collapsed)::after {
    transform: rotate(-90deg);
}

#archive-org-chart .accordion-item.accordion-level-3 .accordion-button:not(.collapsed)::after,
#archive-org-chart .accordion-item.accordion-level-4 .accordion-button:not(.collapsed)::after {
    color: #003168;
}

.content-accordion {
    background: #FFFFFF;
    box-shadow: 0px 0px 15px #00000024;
    border-radius: 10px;
}

.dept-field-label {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
}

.dept-field-value {
    color: #000000;
    font-size: 16px;
    font-weight: 400;
}

.accordion-top-level:last-of-type>.accordion-item>.accordion-header .accordion-button.collapsed {
    border-bottom-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;

}

.accordion-item:first-of-type .accordion-button {
    border-radius: 0 !important;
}

/* Phonebook */

.phonebook-title {
    color: #FF8400;
    font-weight: bold;
}

#archive-phonebook .accordion-top-level .accordion-item {
    border: none;
}

#archive-phonebook button.accordion-button {
    gap: 1rem;
}

#archive-phonebook .accordion-button::after {
    background: none;
    content: "\f107";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    color: #FFFFFF;
    transition: transform .2s ease-in-out;
}

#archive-phonebook .accordion-button:not(.collapsed)::after {
    transform: rotate(-90deg);
}

#archive-phonebook .accordion-item.accordion-level-3 .accordion-button:not(.collapsed)::after,
#archive-phonebook .accordion-item.accordion-level-4 .accordion-button:not(.collapsed)::after {
    color: #003168;
}

.accordion-top-level:first-of-type .accordion-item.accordion-level-1>.accordion-header .accordion-button.collapsed {
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
}

/* Links */

.links-wrapper .post-title {
    font-weight: 500;
    font-size: 20px;
    color: #000000 !important;
}

.links-wrapper .post-title:hover {
    text-decoration: underline;
}

/* Digital Services */

#digital-services-archive .bg-light-gray {
    background-color: #F6F6F6;
}

table#digital-services-table {
    box-shadow: 0px 0px 15px #0000000A;
    border-radius: 10px;
}

table#digital-services-table th, table#digital-services-table tr td {
    text-align: center;
    border: 1px solid #C7C7C7;
}

table#digital-services-table th {
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 600;
    background-color: #003168;
    padding: 1rem;
    border: none;

}

table#digital-services-table tbody tr td:first-child {
    color: #FF8400;
    border-left: none;
}

table#digital-services-table tbody tr td:last-child {
    border-right: none;
}

table#digital-services-table tr td {
    padding: 2rem;
    vertical-align: bottom;
}


table#digital-services-table th:first-child {
    border-top-left-radius: 10px;

}

table#digital-services-table th:last-child {
    border-top-right-radius: 10px;

}

table#digital-services-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;

}

table#digital-services-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;

}

table#digital-services-table tr:last-child td {
    border-bottom: none;
}

.service-url {
    transition: all ease-in-out 0.2s;
    font-weight: 500;
}

.service-url:hover {
    color: #2D87E1 !important;
}

table#digital-services-table .sortby {
    cursor: pointer;
}


/* Pagination */

.posts-pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.posts-pagination i {
    font-size: 20px;
    color: #EFF1FB;
}

.posts-pagination .active-page,
.current {
    font-size: 20px;
    font-weight: 500;
    color: #EFF1FB !important;
    border-radius: 50%;
    padding: 0 10px;
    background-color: #003074 !important;
    width: 36px;
    height: 36px;
    transition: all ease-in-out 0.2s;
}

.custom-page-number,
.page-numbers {
    font-size: 20px;
    font-weight: 500;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #002F79;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out 0.2s;
}

.custom-page-number:hover,
.custom-page-number:focus,
.page-numbers:hover,
.page-numbers:focus {
    background-color: #D9DFF8;
    color: #002F79;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

a.next.page-numbers,
a.prev.page-numbers {
    background: #003074;
}


/* Personalized Content */

.select2-container {
    border: none !important;
    color: #00316C !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    border-bottom: 2px solid #00316C !important;
    outline: none !important;
    padding: 15px 10px 5px !important;
    transition: all ease-in-out 0.3s !important;
    width: 410px !important;
}

span.select2-selection.select2-selection--multiple {
    border: none !important;
}

ul.select2-selection__rendered {
    white-space: normal !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: start;
    flex-direction: row-reverse;
    max-height: 300px;
    overflow: auto !important;
}

.select2-container .select2-selection__rendered>*:first-child.select2-search--inline {
    width: 100% !important;
}

.select2-container .select2-selection__rendered>*:first-child.select2-search--inline .select2-search__field {
    width: 100% !important;
}

li.select2-selection__choice {
    margin-bottom: 5px;
    padding: 5px 15px !important;
}

input.select2-search__field {
    width: auto !important;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid #aaa;
}

span.select2-dropdown.select2-dropdown--below {
    border-top: 1px solid #aaa;
}

span.select2-container.select2-container--default.select2-container--open {
    margin-top: 10px;
}

section#personalized-content .files-container .table-row-files:first-child {
    padding-top: 30px;
    border-radius: 10px 10px 0 0;
}

section#personalized-content .files-container .table-row-files {
    border-radius: 0;
}

section#personalized-content .files-container .table-row-files:last-of-type {
    border-radius: 0px 0px 10px 10px;
}

section#personalized-content .files-container .table-row-files li.table {
    margin-bottom: 2rem;
}

.org-chart {
    background-color: #69ADF0;
    padding: 1rem;
}

@media screen and (max-width: 1200px) {
    .filter-wrapper {
        gap: 2rem;
        justify-content: end;
    }
}

@media only screen and (max-width: 768px) {
    .post-search-form-wrapper {
        margin-right: auto;
        margin-top: 3rem;
    }
}


@media screen and (max-width: 500px) {
    .row .posts-pagination {
        justify-content: center !important;
    }
}