:root {
    --custom-primary-color: #215BF0;
    --custom-font-primary-color: #5A5A5A;
    --custom-font: 'Satoshi', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    font-family: var(--custom-font);
}

header .navbar-brand {
    background-image: none;
}

.navbar-collapse {
    flex-grow: 0;
}

.menu-section {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
}

#menu-collapse {
    margin-right: .25rem;
}

.menu-section a {
    font-size: 1rem;
    color: var(--custom-font-primary-color);
    width: 100%;
}

.nav>li>a:hover,
.nav>li>a:focus {
    background-color: var(--custom-primary-color);
}


/* Top menu */
#loginOptions a {
    background-color: var(--custom-primary-color);
    color: #FFFFFF !important;
    border-radius: 4px;
    padding: .5rem 3rem;
    width: auto;
}

#loginOptions a,
#loginOptions a span {
    font-size: 1rem;
}

.navbar-nav .nav-link {
    padding: .5rem 1rem;
}

.navbar nav {
    margin-bottom: 0;
}

.strip-bar {
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem .25rem;
}

/* Hero image */
.hero {
    height: 444px;
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .1);
    z-index: 100;
}

.hero .image {
    position: relative;
    background-image: url("../images/search-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    height: inherit;
}

.hero .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .heading {
    text-align: center;
    font-size: 65px;
    font-weight: 900;
    color: #FFFFFF;
    padding: 10rem .5rem 0 .5rem;
    margin: 0;
}

.hero .sub-heading {
    font-size: 16px;
    text-align: center;
    padding: 16px 8px;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0;
}

.main.container:has(.tiles-container),
.main.container:has(.ads) {
    background-color: #F8F8F8;
    max-width: unset;
    margin: 0;
    padding: 0;
    /* background-color: #FFF; */
}

/* Custom Search */
.custom-search {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px -75px 87.5px 0px #0000001C;
    padding: 24px;
    margin-top: -100px;
}

.custom-search .searchForm-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: inherit;
    row-gap: 16px;
}

.custom-search .searchForm-query {
    width: inherit;
}

.custom-search .custom-input-lg {
    width: 100%;
    position: relative;
    padding-left: 38px;
    border-color: #EAEAEA;
    box-shadow: 0px -75px 87.5px 0px #0000001C;
}

.custom-search .custom-input-lg.form-control:focus {
    border-color: #EAEAEA;
}

.custom-search .searchForm-query {
    position: relative;

}

.custom-search .search-icon {
    position: absolute;
    top: 7px;
    left: 5px;
}

.custom-search-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    column-gap: 16px;
    width: 100%;
}

.custom-search-control .form-control {
    border-color: #EAEAEA;
}

.custom-search-select-opt {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;
    width: 60%;
}

.custom-search-select-opt-form-control {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-search-select-opt-form-control label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #3A3A3A;
}

.custom-search-select-opt-form-control select {
    width: 100%;
    font-size: 16px;
    padding-left: 0;
    padding-top: 0;
    background-color: #fff;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1.5px solid #EAEAEA;
    cursor: pointer;
}

.custom-search-select-opt-form-control select.form-control:focus {
    box-shadow: none;
    border-color: #EAEAEA;
}

option[value=""] {
    display: none;
}

.custom-search-select-opt-form-control button {
    width: 100%;
    font-size: inherit;
    padding-left: 0;
    padding-top: 0;
    background-color: #fff;
    color: #999999;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1.5px solid #EAEAEA;
    cursor: pointer;
    padding: .375rem .75rem .375rem 0;
}

.custom-search-select-opt-form-control .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    color: #3A3A3A;
}

.custom-language-selector ul {
    width: 100%;
    background-color: #FFFFFF;
}

.custom-language-selector ul li {
    padding: 8px 16px;
    color: #3A3A3A;
}

.custom-language-selector ul li a {
    color: #3A3A3A;
    text-decoration: none;
}

.flag-lang {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    column-gap: 8px;
    align-items: center;
}

.flag-lang img {
    width: 24px;
    height: 24px;
}

.custom-language-selector ul li:hover,
.custom-language-selector ul li.active {
    background-color: #F8F8F8;
}

#dropdown-menu-lang {
    height: 300px;
    overflow-y: scroll;
}

#footer-dropdown-menu-lang {
    height: 300px;
    overflow-y: scroll;
}

.custom-search-action {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 40%;
}

.search-action {
    flex: 1;
}

.custom-search-control .search-btn {
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
    border-radius: 4px;
    padding: 8px 16px;
    border: unset;
    font-size: 16px;
}

.custom-search-control .custom-search-link {
    color: #5A5A5A;
    padding: 8px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Tiles */
.tiles-container {
    display: flex;
    flex-direction: column;
    padding: 48px 0;
    align-items: center;
    justify-content: center;
}

.tiles-container .tile-headings {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.tiles-container .tile-headings .heading {
    flex: 1;
}

.tiles-container .heading {
    font-size: 24px;
    font-weight: 700;
    color: #3A3A3A;
}

.tiles-container .tiles {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    column-gap: 16px;
    width: 100%;
}

.tiles-container .tiles ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 16px;
    column-gap: 16px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.tiles-container .tiles ul li {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #CEC8D433;
    padding: 12px;
    box-shadow: 0px 4px 12px 0px #0000000A;
    min-width: 125px
}

.tiles-container .tiles ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #3A3A3A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.tiles-container.align-start .tiles ul li {
    min-width: 215px
}

.tiles-container.align-start .tiles ul li a {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    align-items: flex-start;
    color: #3A3A3A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.tiles-container .tiles ul li.active {
    background-color: var(--custom-primary-color);
    color: #fff;
}

.tiles-container .tiles ul li.active a {
    background-color: var(--custom-primary-color);
    color: #fff;
}

.tiles-container .tiles ul li.active a svg path {
    fill: #FFFFFF;
}

.tiles-container .tiles ul li:hover {
    background-color: var(--custom-primary-color);
    color: #fff;
}

.tiles-container .tiles ul li:hover svg path {
    fill: #FFFFFF;
}

.tiles-container .tiles ul li:hover a {
    background-color: var(--custom-primary-color);
    color: #fff;
}

.tiles-container .tiles ul li .fa::before {
    font-size: 44px;
    color: #8A8A8A;
}

.tiles-container .tiles ul li.active .fa::before,
.tiles-container .tiles ul li:hover .fa::before {
    color: #FFFFFF;
}

.tiles-container .tiles ul li .icon--font {
    line-height: unset;
    max-width: unset;
}


/* Ads */
.ads {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
}

.ads .items {
    flex: 1;
}

.ads .items.left {
    position: relative;
}

.first-circle {
    /* margin-top: 87px;
    margin-left: -25px; */
    position: absolute;
    top: 92px;
    left: -103px;
}

.second-circle {
    /* margin-top: -217px; */
    position: absolute;
    bottom: -31px;
    left: -92px;
    transform: rotate(-8deg);
}

.girl-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 100;
}

.ads .items.right {
    padding-top: 90px;
}

.ads-content {
    width: 400px;
}

.ads-content .heading {
    margin: 0;
    padding: 0;
    font-size: 32px;
    font-weight: 900;
    color: #FFFFFF;
}

.ads-content .sub-heading {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 16px 0;
}

.ads-action {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.ads-action a {
    flex: 1;
}

.ads-action .btn-link {
    background-color: #1E1E1E;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
}

.ads-action .free-link {
    color: #FFD018;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ads-action .free-link:hover {
    text-decoration: none;
}

footer {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: unset;
}

.footer-logo {
    margin-bottom: 16px;
}

footer .title {
    margin: 0;
    padding: 0;
    color: #1E1E1E;
    font-size: 24px;
    font-weight: 800;
}

footer .more-info {
    display: flex;
    flex-direction: row;
    width: inherit;
    justify-content: space-between;
    margin: 0;
    padding: 48px 0;
}

footer .more-info .sections {
    flex: 1;
}

footer .more-info .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 16px;
}

footer .text {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #52525B;
    margin: -10px 0 0 0;
    max-width: 447px;
}

footer .social-media {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}

footer .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 16px;
    width: 100%;
}

footer .menu .items {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    column-gap: 16px;
    align-items: flex-start;
    width: 33%;
}

footer .menu .items ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer .menu .items ul li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
}

footer .menu .items ul li a {
    color: #3A3A3A;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

footer .menu .items ul li a:hover {
    text-decoration: underline;
}

footer .bottom {
    background-color: var(--custom-primary-color);
    width: 100%;
    color: #FFFFFF;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 500;
}

footer .bottom .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: inherit;
    padding: 0;
}

footer .bottom .container::before,
footer .bottom .container::after {
    content: unset;
}

footer .bottom .container a {
    color: #FFFFFF;
}

.language-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    margin-left: -16px;
}

.language-selector select {
    width: 100%;
    font-size: 16px;
    padding-left: 0;
    padding-top: 0;
    background-color: #fff;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1.5px solid #EAEAEA;
    cursor: pointer;
}

.language-selector select.form-control:focus {
    box-shadow: none;
    border-color: #EAEAEA;
}

.language-selector button {
    width: 100%;
    font-size: inherit;
    padding-left: 0;
    padding-top: 0;
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    padding: 0;
}

.language-selector .dropdown-toggle::after {
    position: absolute;
    right: 10px;
    color: #3A3A3A;
}

.language-selector a,
.language-selector a span {
    color: #3A3A3A !important;
}

.language-selector .dropdown-toggle::after {
    position: absolute;
    right: -16px;
    bottom: 5px;
    color: #FFFFFF;
}

/* -- Search -- */
.breadcrumb {
    background-color: #FFFFFF;
    font-size: 18px;
}

.breadcrumb li.active {
    color: #8A8A8A;
}

.top-facets {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E6E0E9;
}

.top-title,
a.top-title span {
    font-size: 32px;
    font-weight: 700;
    color: #1E1E1E;
    text-decoration: none;
}

.padding-bottom {
    padding-bottom: 16px;
}

.top-facets-contents .facet {
    background-color: #F9F9F9;
    padding: 8px;
    color: #3A3A3A;
}

.top-facet-inner {
    border: none;
    padding: 0;
}

.top-facet-inner a {
    color: #3A3A3A;
    font-size: 14px;
    font-weight: 500;
}

.badge {
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
}

.facet-group {
    background-color: #FAFAFA;
    /*  border: 1px solid #CEC8D433; */
}

.facet-title {
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 700;
}

.facet-group .title {
    border: none;
}

.facet-group .collapse,
.facet-group .collapsing,
.facet-group.full-facet-list .facet {
    border: none;
}

.facet__list__item a {
    color: #3A3A3A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.facet__list__item a:hover {
    text-decoration: underline;
}

.facet-group .facet,
.facet-load-indicator,
.facet-load-failed {
    border: none;
}

.date-range {
    border: 1px solid #F3EDF7;
    background-color: #FFFFFF;
    border-color: #F3EDF7 !important;
    color: #999999;
}

.form-control:focus {
    box-shadow: none;
    background-color: #FFFFFF;
}

.custom-submit-btn {
    background-color: #EAEAEA;
    color: #A5A5A5;
    padding: 8px 24px;
    margin-top: 16px;
    border: none;
}

.custom-submit-btn:hover {
    background-color: var(--custom-primary-color);
    color: #FFFFFF;
}

.active-filters .filters .filter-value {
    background: var(--custom-primary-color);
    color: #FFFFFF;
}

.active-filters .filters a.filter-value:hover,
.active-filters .filters a.filter-value:focus {
    background: var(--custom-primary-color);
}

.active-filters .facet,
.facet-group .facet.active {
    background: var(--custom-primary-color);
}

.search-header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E6E0E9;
}

.search-header-container .search-title {
    font-size: 24px;
    font-weight: 700;
    color: #1E1E1E;
    margin: 0;
    padding: 0;
}

.search-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: inherit;
}

.search-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-grow: unset;
    width: 33%;
}
.search-controls {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    width: 66%;
}
.search-controls form #limit{
    width: 75px;
}

.js-search-stats,
.search-sort label,
.search-result-limit label,
.set-page-range label {
    color: #999999 !important;
    font-size: 14px;
}

form.search-sort .form-control,
.set-page-range select {
    border-color: #D9D9D9;
    border-radius: 5px;
}

.set-page-range select {
    margin-left: 5px;
    height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
    color: #3A3A3A;
}

.js-search-stats strong:first-of-type {
    color: var(--custom-primary-color);
}

.js-search-stats strong {
    font-weight: 400;
}

.result-body a.title {
    font-size: 24px;
    font-weight: 700;
    color: #1E1E1E;
    text-decoration: none;
}

.result-body a.title:hover {
    text-decoration: underline;
}

.highlight,
mark,
.mark {
    background-color: unset;
    padding: 0;
}

.result-body .authors,
.result-body .authors a {
    font-size: 14px;
    color: #5A5A5A;
    text-decoration: none;
}

.result-body .authors a:hover {
    text-decoration: underline;
}

.published-container {
    padding: 0 0 8px 0;
    font-size: 16px;
    font-weight: 400;
}

.callnumAndLocation {
    font-size: 16px;
    color: #5A5A5A;
}

.callnumAndLocation strong {
    font-weight: 400;
}

.result-body .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    column-gap: 16px;
    margin-top: 16px;
}

.result-body .actions a {
    color: #FFF;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    padding: 8px 32px;
    border-radius: 5px;
}

.result-body .actions a.primary {
    background-color: var(--custom-primary-color);
}

.result-body .actions a.icon-link,
.result-body .actions a.icon-link .icon-link__label {
    background-color: #F5F7FC;
    color: #3A3A3A;
    text-decoration: none;
}

.record-versions a span:first-of-type {
    display: none;
}

#dropdown-menu-lang .dropdown-item.active a, #dropdown-menu-lang .dropdown-item:active a {
    color: #3A3A3A;
    background-color: unset;
}
#dropdown-menu-lang .dropdown-item.active {
    color: #3A3A3A;
    background-color: #F8F8F8;;
}
.facet__list li {
    margin-bottom: 1px;
}

@media (max-width: 768px) {
    .menu-section {
        width: 100%;
    }
    #menu-collapse, #person-collapse {
        margin-bottom: 8px;
    }

    .hero .image {
        background-image: url("../images/search-bg-mobile.png");
        background-position: top center;
    }

    .hero .heading {
        text-align: center;
        font-size: 32px;
        font-weight: 700;
        color: #FFFFFF;
        padding: 5rem .5rem 0 .5rem;
        margin: 0;
    }

    .hero .sub-heading {
        font-size: 14px;
    }

    .custom-search {
        margin-top: -185px;
    }

    .custom-search-control {
        flex-direction: column;
        row-gap: 16px;
    }

    .custom-search-control .search-btn,
    .custom-search-control .custom-search-link {
        padding: 8px;
    }

    .custom-search-select-opt {
        flex-direction: column;
        width: 100%;
        row-gap: 16px;
    }

    .custom-search-select-opt-form-control {
        width: inherit;
    }

    .custom-search-action {
        width: 100%;
    }

    .ads {
        flex-direction: column-reverse;
    }

    .ads .items.right {
        padding: 32px 16px;
    }

    .ads-content {
        width: auto;
    }

    .ads-action a {
        flex: auto;
    }

    .ads-action .btn-link {
        padding: 8px;
    }

    .first-circle {
        top: 25px;
        left: 36px;
        transform: rotate(-19deg);
    }

    .second-circle {
        top: 92px;
        left: -76px;
        transform: rotate(-66deg);
    }

    .tiles-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tiles-container .tiles ul li {
        width: calc(50vw - 25px);
        min-width: unset !important;
    }

    .tiles-container .tile-headings {
        flex-direction: column-reverse;
    }

    footer .more-info {
        flex-direction: column;
        row-gap: 32px;
        padding: 0 16px;
    }

    footer .text {
        max-width: 100%;
    }

    footer .menu .items {
        width: 50%;
        padding-right: 16px;
    }

    footer .bottom {
        padding: 16px;
    }

    footer .bottom .container {
        flex-direction: column;
        align-items: center;
        row-gap: 32px;
    }

    .top-title,
    a.top-title span {
        font-size: 24px;
    }

    .search-header,
    .search-stats {
        flex-direction: column;
        row-gap: 8px;
        align-items: flex-start;
    }
    .search-stats, .search-controls {
        width: 100%;
    }
    .search-controls {
        flex-direction: column-reverse;
        row-gap: 8px;
        align-items: flex-start;
    }
    .result-body .actions {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
    }
    .result-body .actions a,  .result-body .actions a span.icon-link__label, .result-body .actions .record-versions{
        width: 100%;
    }
}

@media (min-width: 769px) {
    .custom-input-lg.form-control {
        max-width: unset;
    }

    .navbar-expand-md .navbar-toggler {
        display: none;
    }

    .navbar-expand-md .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-md .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: var(--bs-navbar-nav-link-padding-x);
        padding-left: var(--bs-navbar-nav-link-padding-x);
    }

    .result .media-left.medium {
        width: 165px;
    }
}