  .panel.panel-default {
    max-height: 300px;
    overflow-y: auto;
}

.course-categories,
.course-card-title {
    display: none;
}

ul.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li {
    margin: 0;
}

.brand-light-grey {
    background-color: #efefef;
}

.card-container {
    border-bottom: 1px solid black;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

/* Masthead START */
.id7-masthead .id7-header-text.affix.headroom,
nav.navbar,
.id7-header-text {
    background-color: var(--w-sys-colors-masthead) !important;
}

.navbar-nav .dropdown-menu {
    background-color: var(--w-sys-colors-masthead-secondary) !important;
    box-shadow: none;
}

.navbar-primary {
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 1);
    z-index: 1;
}

.id7-masthead .id7-header-text .id7-parent-site-link,
.navbar-nav > li,
.navbar-nav .dropdown-menu > li > a,
.id7-logo-row nav a {
    color: var(--w-sys-colors-masthead-color) !important;
}

.navbar-nav > li:focus,
.navbar-nav > li:hover,
.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav > .open {
    background-color: transparent !important;
}

.dropdown-menu > li > a:focus {
    background-color: var(--w-sys-focusOutline) !important;
}

.navbar-nav > li > a:hover,
.dropdown-menu > li > a:hover,
.id7-site-links a:hover,
.h1 a:hover {
    text-decoration: underline;
    text-underline-offset: 25%;
}

.navbar-nav > li.active::before {
    display: none !important;
}

.id7-masthead .id7-header-text .id7-parent-site-link::after {
    border-bottom: 5px solid #0000;
    border-left: 7px solid var(--w-sys-colors-masthead-color);
    border-top: 5px solid #0000;
}

.search-button i {
    color: rgba(0, 0, 0, 0.5) !important;
}

.search-button i:hover {
    color: rgba(0, 0, 0, 1) !important;
}

@media (min-width: 768px) {
    .navbar-secondary,
    .navbar-tertiary {
        display: none;
    }

    .id7-masthead .id7-header-text .h1,
    .id7-masthead .id7-header-text h1 {
        font-size: 20px;
    }

    html.id7-borderless .id7-masthead .id7-header-text.affix::after,
    html.id7-borderless .id7-masthead .id7-header-text.affix::before {
        background: var(--w-sys-colors-masthead);
    }
}

.id7-search .typeahead.dropdown-menu > li.active > a {
    background: var(--w-sys-colors-masthead-color);
    color: #fff;
}

@media (max-width: 767px) {
    .id7-masthead .id7-logo-row nav ul > li {
        display: none;
    }
}

.id7-navigation .navbar-nav > li:last-child + li::before,
.id7-navigation .navbar-nav > li:not(.nav-breadcrumb):not(:last-child)::after {
    border-right: 1px solid var(--w-sys-colors-masthead-color);
}

.id7-navigation .navbar-nav > li.dropdown > a::after {
    border-top: 4px solid var(--w-sys-colors-masthead-color);
}
/* Masthead END */

/* Centred separators between selected Subject area options.
   These rules do not alter the existing tag or filter layouts. */
.subject-area-ampersand {
    box-sizing: border-box;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-align: center;
}

/* Own line inside the Subject area checkbox list. */
.filter-container .subject-area-ampersand--filter {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin: 4px 0;
    padding: 0;
    list-style: none;
}

/* Own line between Subject area tags without changing the tag-list layout. */
#tag-list .subject-area-ampersand--tag-list {
    display: block;
    flex: 0 0 100%;
    clear: both;
    width: 100%;
    margin: 4px 0;
    padding: 0;
}
