.icon.pdf {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-pdf.png') no-repeat 0 0;
}

.icon.file {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-file.png') no-repeat 0 0;
}

.icon.excel {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-excel.png') no-repeat 0 0;
}

.icon.html {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-html.png') no-repeat 0 0;
}

.icon.zip {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-zip.png') no-repeat 0 0;
}

.icon.mp3 {
    width: 25px;
    height: 26px;
    background: url('../Media/icon-mp3.png') no-repeat 0 0;
}
.filter-by-year {
    padding: 10px 0;
}

.filter-by-year label {
    display: block;
    color: #000;
    font-weight: normal;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    letter-spacing: 0;
}

.filter-by-year.field input {
    background: #dbdddd;
    border: 1px solid #dbdddd;
    border-radius: 30px;
    font-size: 15px;
    height: 35px;
    line-height: normal;
    margin-right: 2%;
    padding: 8px 38px 8px 18px;
    width: 70%;
    visibility: initial;
}

.filter-by-year.field input:focus {
    border: 2px solid #fdb728;
	outline: 2px solid #005a73;
	outline-offset: 2px;
}

.filter-by-year.field input:focus + label::before {
    border: 2px solid #fdb728;
	outline: 2px solid #005a73;
	outline-offset: 2px;
}

@media screen and (-ms-high-contrast: active) {
	.filter-by-year.field input:focus + label::before {
        outline: 2px solid currentColor;
        outline-offset: 2px;
	}
}

.filter-by-year.field input.error {
    border-color: #f00;
}

.filter-by-year .error-text {
    color: #ff0000;
    display: none;
}

.filter-by-year .error-text.visible {
    display: block;
}

.filter-by-year .btn {
    background-color: #fff;
    padding: 8px 18px;
}

.filter-by-year .btn.btn-add {
    max-width: 25%;
}

.filter-data {
    margin-top: 15px;
}

.filter-data .filter-data-item {
    border-top: 1px solid #aebdc8;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 15px;
}

.filter-data .filter-data-item:first-child {
    border-top: 0;
}

.filter-data .filter-data-item:last-child {
    border-bottom: 1px solid #aebdc8;
}

.filter-data-item .year {
    color: #666666;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.22rem;
}

.filter-data-item .remove-filter {
    color: #fdb728;
    cursor: pointer;
    font-size: 20px;
    margin-right: 0;
    transition: 0.3s ease;
}

.filter-data-item .remove-filter:hover {
    color: #aebdc8;
}

.filter-by-year .apply-filters {
    display: block;
    margin: 20px auto 0;
}

.filter-by-year .apply-filters.hidden {
    display: none;
}

/* Filter checkboxes */

.field-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.filter-by-year.field {
    display: flex;
    flex-wrap: wrap;
}

.dropdown .icon-chevron-down {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

@media only screen and (min-width: 768px) {
    .dropdown-group {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-radius: 3px;
        padding: 25px 30px;
        background-color: #ccd5dc;
        position: relative;
    }

    .dropdown-group .dropdown {
        border-radius: 3px;
        background-color: #fff;
        border: 0;
    }

    .filter-by {
        margin-right: 30px;
        font-size: 18px;
        font-weight: 300;
    }

    .filter__legend .filter-items  {
        padding: 45px 30px 20px;
        position: absolute;
    }

    .filter-apply {
        padding: 33px 31px 41px;
        width: 100%;
        text-align: center;
        display: none;
    }

    .filter-apply .apply-filters {
        width: auto;
    }

    .filter-apply .apply-filters .apply-text-mobile {
        display: none;
    }

    .filter-apply .apply-filters:hover {
        background-color: #efc033;
    }

    .filter-by-year .form-item-wrapper {
        width: 25%;
    }

    .filter-container {
        display: none;
    }

    .dropdown-title {
        display: none;
    }

    .filter__fieldset:not(:last-of-type) {
        margin-right: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .filter-container {
        width: 100%;
    }

    .filter-container .filter-container-button {
        width: 100%;
        position: relative;
        padding: 15px 50px 15px 20px;
        border: 0;
        border-radius: 3px;
        font-size: 18px;
        vertical-align: middle;
        background-color: #ccd5dc;
        cursor: pointer;
        text-decoration: none;
    }

    .dropdown-group {
        display: none;
        position: fixed;
        padding-top: 70px;
        background: #eceeee;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        z-index: 20000;
        overflow: hidden;
        overflow-y: auto;
    }

    .apply-text {
        display: none;
    }

    .dropdown-title {
        position: fixed;
        top: 0;
        display: flex;
        align-items: center;
        width: 100%;
        background: #fff;
        height: 70px;
        padding: 0 20px;
        z-index: 1;
        padding-right: 50px;
    }

    .dropdown-title h2 {
        padding: 0;
        font-size: 23px;
        font-weight: 300;
        display: flex;
    }

    .clear-filters {
        position: relative;
        margin-left: 11px;
        font-size: 15px;
        font-weight: 600;
        border: 0;
        padding: 0;
        background: 0 0;
    }

    .dropdown-group .filter-by {
        display: none;
    }

    .filter-close.close.icon {
        position: absolute;
        margin-top: 0;
        margin-left: 0;
        width: 20px;
        height: 20px;
        right: 15px;
        top: 50%;
        webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    .filter-close.close.icon:before {
        display: block;
        content: '';
        position: absolute;
        top: 4px;
        left: 3px;
        width: 20px;
        height: 1px;
        background-color: #808080;
        -webkit-transition: all .3s ease-in;
        transition: all .3s ease-in;
        webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transform-origin: bottom left;
        -ms-transform-origin: bottom left;
        transform-origin: bottom left;
    }

    .filter-close.close.icon:after {
        display: block;
        content: '';
        position: absolute;
        top: 3px;
        left: 16px;
        width: 20px;
        height: 1px;
        -webkit-transition: all .3s ease-in;
        transition: all .3s ease-in;
        background-color: #808080;
        -webkit-transform: rotate(135deg);
        -ms-transform: rotate(135deg);
        transform: rotate(135deg);
        -webkit-transform-origin: bottom left;
        -ms-transform-origin: bottom left;
        transform-origin: bottom left;
    }

    .filter__legend .filter-items  {
        position: static;
        border-bottom: 1px solid #e5e5e5;
        padding: 45px 30px 20px;
    }

    .dropdown-group .dropdown {
        width: 100%;
        background-color: #f7fafc;
        border: 0;
        border-bottom: 1px solid #eceeee;
        text-align: left;
    }

    .filter-by-year .form-item-wrapper {
        width: 100%;
    }

    .filter-by-year .form-item input {
        width: 100% !important;
        margin: 0 !important;
    }

    .filter-apply {
        display: block;
        position: fixed;
        padding: 25px 30px;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        z-index: 20000;
        left: 0;
        bottom: 0;
    }

    .filter-apply .apply-filters {
        width: 100%;
    }
}

.filter__legend .filter-items  {
    display: none;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #eceeee;
}

.dropdown-group .dropdown {
    flex: 0 0 auto;
    display: inline-block;
    position: relative;
    padding: 15px 50px 15px 20px;
    font-size: 18px;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
}

.filter-by-year .form-item label::before {
    font-size: 16px;
    line-height: 1;
    width: 23px !important;
    height: 23px !important;
    border-radius: 3px;
}

.filter-by-year .form-item label::after {
    left: 5px !important;
    color: #006a84 !important;
    font-weight: bold;
    font-size: 16px;
}

.filter-items__checkboxes {
    display: flex;
    flex-wrap: wrap;
}

.filter-by-year .form-item-wrapper {
    margin-bottom: 30px;
}

.filter-by-year .form-item label {
    line-height: normal !important;
    width: 100%;
}

.filter-apply {
    display: none;
    background-color: #eceeee;
    border-top: 1px solid #e5e5e5;
}

.filter-apply .apply-filters {
    display: none;
    margin-top: 0;
    padding: 0 50px;
    height: 60px;
    background-color: #fdb728;
    color: #000;
    border: 0;
    border-radius: 3px;
    font-size: 16px;
}

.filter__legend--open .filter-items  {
    display: block;
}

.filter__legend--open .dropdown .icon-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

/* end filter checkboxes */

@media only screen and (min-width: 768px) {
    .filter-by-year.field input {
        margin-bottom: 10px;
        width: 75%
    }

    .filter-by-year .btn.btn-add {
        max-width: 25%;
    }


    .filter-by-year .error-text {
        position: absolute;
        left: 0;
        bottom: -20px;
    }
}

.dynamic-content a.clear-filters:link {
    text-decoration: none;
}

.filter-by-year input[type=checkbox] ~ label {
    padding: 6px 0 6px 31px;
}