.course-search-header {
    margin: 20px 0;
}

.course-search-title {
    font-size: 2.75rem;
    font-family: var(--secondaryFont);
    font-weight: 600;
    color: var(--mainColour);
    text-align: center;
    width: 100%;
}

.course-search-header p {
    font-size: 1.063rem;
    text-align: center;
}

.course-search-form {
    height: 70px;
    border: 1px solid var(--border);
    padding: 0 0 0 20px;
    background: #fff;
    width: 900px;
}
.course-search-form:before {
    content: '';
    width: 50px;
    height: 50px;
    background: url(../images/search.svg) no-repeat left center;
    flex: 0 0 auto;
}

.course-search-form input[type=search] {
    height: 100%;
    flex: 1;
    border: 0;
    font-size: 1rem;
}
.course-search-form input[type=submit] {
    height: 100%;
    background: var(--mainColour);
    color: #fff;
    border: 0;
    outline: 0;
    font-size: 1rem;
    padding: 0 30px;
    font-weight: 600;
}

.course-category-title {
    font-family: var(--secondaryFont);
    font-size: 1.188rem;
    font-weight: 600;
    color: var(--mainColour);
}

.course-category-list {
    width: 100%;
}

.course-search-results { 
    gap: 20px;
    margin: 20px 0 40px;
}

.course-pager {
    display: flex;
    background: #fff;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 60px;
    margin: 20px 0;
}

.course-pager > a {    
    font-size: 1rem;
    color: var(--mainColour);
}

.course-pager > a.current-page {
    
    text-decoration: underline;
}

.course-pager > a.nextPage, 
.course-pager > a.prevPage {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    margin: 0 auto 0 0;
    background: var(--mainColour) url(../images/chevron-left-white.svg) no-repeat center;   
}

.course-pager > a.nextPage {
    margin: 0 0 0 auto;
    transform: rotate(180deg);
}

.course-pager > a[disabled]{
    background-color: #999;
    pointer-events:none;
    cursor: default;
}



/* Course block */
.course {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    width: calc((100% - 40px) / 3);
    height: auto;
}

.course-image {
    width: 100%; 
    aspect-ratio: 1.4/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-image img {
    height: 100%;
    width: auto;
}

.course-title {
    font-family: var(--secondaryFont);
    font-size: 1.375rem;
    color: var(--mainColour);
    font-weight: 600;
    text-align: center;
}
.course-description {
    font-size: .875rem;
    line-height: 22px;
    color: #222222;
    text-align: center;
}
.course-buttons {
    margin-top: auto;
    text-align: center;
    gap: 10px;
}
.course-buttons * {width: 100%;}


/* Course Details */

.course-header {
    padding: 60px 0;
}

h1.course-header-title { color: #fff; font-size: 3.188rem; line-height: 1; }

.course-header p {padding: 0; color: #fff; margin: 0; font-size: 1.125rem;  }

.course-header-video {
    width: 100%;
    aspect-ratio: 1.5/1;
}

.course-header *[class^="button-"],
.course-header *[class*=" button-"] {
    padding: 0 40px;
    height: 60px;
}


.course-access-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.063rem
}

.course-access-title{
    font-family: var(--secondaryFont);
    font-size: 1.5rem;
    font-weight: 600;
}

.course-access-links a {
    width: 100%;
}

.button-free {
    border: 1px solid #CDCED5;
    background: #F8FAFC;
    color: #1F2152;
}

.button-free:hover {
    text-decoration: underline;
}


.course-modules {
    margin: 40px 0;
}
.course-modules-title {
    font-family: var(--secondaryFont);
    font-size: 2.438rem;
    font-weight:500;
    margin-bottom: 40px;

}
.course-modules-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    background:#fff;
}
.course-modules-list > div {
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 70px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.course-modules-list > div:last-child {
    border: 0;
}

.course-modules-header {
    background:#F2F5F9;
}

.course-modules-list > div > div:first-child {
    width: 120px;
    flex: 0 0 auto;
}
.course-modules-list > div > div:nth-child(2) {
    flex: auto;
}
.course-modules-list > div > div:last-child {
    width: 120px;
    flex: 0 0 auto;
}

/* Course Category Module */
.course-category-module {
    padding: 40px 0;
    gap: 10px;
    background: #fff;
}
.course-cat-header {
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.course-cat-subheading {
    font-size: 1.375rem;
    color: var(--secondaryColour);
    font-family: var(--secondaryFont);
    line-height: 1.4;
    text-align: center;
}
.course-cat-heading {
    font-size: 2.5635rem;
    color: var(--mainColour);
    font-family: var(--secondaryFont);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}
.course-cat-headertext {
    color: #2F2F2F;
    font-size: 1.063rem;
    text-align: center;
}

.course-cat {
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 5px;
    height: auto;
}
.course-cat-image {
    width: 100%;
    aspect-ratio: 1.75/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-cat-image img {
    height: 100%;
    width: auto;
}

.course-cat-info {
    display:flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.course-cat-title {
    font-family: var(--secondaryFont);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mainColour);

}
.course-cat-courses {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
}

.course-cat-courses > span {
    color: var(--secondaryColour);
    font-size: .938rem;
    text-transform: uppercase;
    font-weight: 600;
}
.course-cat-courses > a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .813rem;
    color: #13212B;
    font-weight: 500;
    text-decoration: underline;
}

.course-cat-courses > a:before {
    content: '';
    width: 12px;
    height: 12px;
    background: url(../images/chevron-down-blue.svg) no-repeat left center;
    background-size: contain;
    transform: rotate(-90deg);
}

.course-category-module a[class^="button-"] {
    margin-top: auto;
}
.course-category-module .container, .course-list-module .container {
    position: relative;
}

.course-nav-disabled {
    display: none !important;
}


.course-list-module {
    background: #fff;
    padding: 40px 0;
}


@media (max-width:991px) {

    .course-search-header {
        align-items: flex-start !important;
    }
    .course-search-form {
        width: 100%;
    }

    .course-category-selector {
        width: 100%;
    }

    .course {
        width: calc((100% - 20px) / 2);
    }
    .course-header .row {
        flex-direction: column-reverse;
    }
    .course-info {
        align-items: center !important;
        text-align: center;

    }
    
}


@media (max-width:767px) {
    
    .course-search-title { 
        font-size: 1.688rem;
    }

    .course-search-form {
        padding: 0;
        height: 50px;
    }
    .course-search-form:before {
        display: none;
    }
    .course-search-form input[type=submit]{
        background-image: url(../images/search-white.svg);
        background-repeat: no-repeat;
        background-position: center;
        width: 50px;
        font-size: 0;
    }
    
    .course-search-form input[type=search]{

        font-size: .625rem;
    }
    .course {
        width: 100%;
    }
    .course-pager a:not([class]) {display: none;}

    h1.course-header-title {
        font-size: 1.688rem;
    }
    .course-header p {
        font-size: .813rem;
    }

    .course-header-buttons {
        flex-direction: column;
        width: 100%;
    }
    .course-header-buttons a {
        width: 100%;
    }

    .block-layout-module .layout-inner {
        padding: 0;
        gap: 0;
    }

    .course-modules-list > div > div:first-child {
        display: none;
    }
    
    .course-modules-list > div > div:nth-child(3) {
        width: 50px;
        text-align: right;
    }

    .course-modules-title {
        font-size: 1.313rem;
        margin: 0 0 10px;

    }

    .course-modules-list > div {
        font-size: .688rem;
        font-weight: 500;
        height: 60px;
    }

    
    .course-cat-heading {
        font-size: 1.5rem;
    }
    .course-cat-subheading {
        font-size: .875rem;
        font-weight: 400;
    }
    .course-cat-headertext {
        font-size: .938rem;
        font-weight: 400;
    }

}