.header-wrapper {
    position: relative;
    background-attachment: fixed;
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("../images/courses/courses_header.png");
}

.header-wrapper::before {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.masthead-wrapper {
    padding-top: 5em;
    padding-bottom: 5em;
}

.subpage-masthead-wrapper {
    z-index: 2;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 5em !important;
    min-height: 4em;
    text-align: center;
    padding-top: 5em;
    padding-bottom: 10em;
}

.masthead-action-button {
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    padding: 15px;
    color: white;
    border: 2px white solid;
    border-radius: 2px;
    background: none;
    margin: 40px var(--content-margin) auto var(--content-margin);
    transition: 0.2s ease-in-out;
}

.masthead-action-button:hover {
    color: rgba(255, 255, 255, 0.705);
    border: 2px rgba(255, 255, 255, 0.705) solid;
    transition: 0.2s ease-in-out;
}

.masthead-title-text {
    margin-top: auto;
}

.masthead-title-text h1 {
    line-height: 1.0;
    position: relative;
    color: white;
    font-weight: 800;
    padding: 0;
    margin: 6px auto;
    font-size: 3.25rem;
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s ease-in-out;
    /* font-family: "Poppins" sans-serif; */
}

.subpage-masthead-title-text h1 {
    line-height: 1.0;
    position: relative;
    color: white;
    font-weight: 800;
    padding: 0;
    margin: 6px auto;
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.subpage-masthead-title-text h2,
.masthead-title-text h2 {
    position: relative;
    color: white;
    font-weight: 400;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
}

.subpage-masthead-title-text h3,
.masthead-title-text h3 {
    position: relative;
    color: rgba(255, 255, 255, 0.822);
    font-weight: 300;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.page-contents {
    color: rgb(253, 253, 253) !important;
}

.page-section-header {
    margin: 5vh auto 0 auto;
    text-align: center;
}

.page-section-header h2 {
    text-align: center;
    font-weight: 550;
    margin: 0 0 5px 0;
    color: #fff;
}

.page-section-header h4 {
    text-align: center;
    font-weight: 450;
    margin: 0;
}


.filter-wrapper {
    display: flex;
    align-items: baseline;
    margin-top: 30px;
}

.filter-wrapper .filter-label {
    margin-right: 15px;
}

.filter-wrapper .filter-options {
    display: flex;
}

.filter-wrapper .filter-options .option {
    margin-right: 20px;
}

.courses-container {
    margin-top: 20px;
    margin-bottom: 40px;
    width: auto;
}

.section {
    margin-bottom: 15px;
}

.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    position: relative;
    height: 85px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.card:hover::before {
    opacity: 1;
}

.card::before,
.card::after {
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    transition: opacity 500ms;
    width: 100%;
}

.card::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.068), transparent 40%);
    z-index: 3;
}

.card::after {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgb(78, 78, 78), transparent 40%);
    z-index: 1;
}

.card .card-content {
    background-color: rgb(23, 23, 23);
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    inset: 1px;
    padding: 10px;
    position: absolute;
    z-index: 2;
}

.card .card-info-wrapper {
    flex-grow: 1;
    padding: 0px 20px;
    width: 100%;
}

.card .card-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}

.card .card-info .card-title h3 {
    font-size: 1.15em;
}

.card .card-info .toggle-action h4 {
    margin: 0;
    padding: 0;
    font-size: 0.85em;
    margin-right: 40px;
}

.section-content {
    background: rgba(255, 255, 255, 0.062);
}

.course-item-contents {
    margin-left: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.course-item .course-title h3 {
    font-size: 1.1em;
    margin: 0;
    color: var(--theme-colour);
    padding-bottom: 5px;
}

.course-item .course-title h4 {
    font-size: 0.9em;
    margin: 0;
    padding-bottom: 20px;
    color: lightgray;
    font-weight: 400;
}

.course-item code {
    color: rgb(56, 179, 228);
    font-size: auto;
}

.course-item .course-details {
    display: flex;
    gap: 50px;
}

.course-item .course-details .detail {
    padding-bottom: 10px;
}

.course-item .course-action a {
    text-decoration: none;
}

.course-footer {
    padding: 15px 30px;
    background: #424242;
}

.course-footer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.course-footer-content .label {
    color: darkgray;
}

.find-more-section {
    margin-bottom: 40px;
}

.find-more-section h3 {
    margin-bottom: 5px;
}

.find-more-section h4 {
    margin-top: 0;
    font-weight: 300;
}

.find-more-section a {
    color: var(--text-colour-dark);
    text-decoration: none;
}

.find-more-section .button-container {
    display: flex;
    gap: 10px;
}

@media only screen and (max-width: 830px) {
    .filter-wrapper {
        display: block;
    }
}

@media only screen and (max-width: 550px) {
    .filter-wrapper .filter-options {
        display: block;
    }
}