/**
 * School Programme Listings
 *
 * Created 13 Nov 2018
 * Updated 17 May 2023
 *
 * Last update: accessibility fixes to search form, AB
 *
 * @author Darren Coutts
 * @author Allan A Beattie
 */

.hidden-sm {
    display: none;
}

@media only screen and (min-width: 45em) {  /* 720px */
    .hidden-sm {
        display: block;
    }
}

/* ==== SEARCH BOX ==== */
.programme_search {
    background: #4c4c4c;
    padding: 1em;
    margin-bottom: 2em;
}

.programme_search fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.programme_search legend {
    color: #fff;
    font-size: 1.3em;
    font-weight: 400;
    margin: 0 0 0.5em 0;
    display: block;
}

.programme_search .row {
    --abdn-gutter-y: 1em;
}

.programme_search_container {
    position: relative;
}

.programme_search select,
.programme_search button {
    background: #f4c900;
    padding: 12px;
    transition: background-color .2s ease-in-out;
}

.programme_search select {
    background: #fff;
    appearance: none;
    width: 100%;
    border: none;
    cursor: pointer !important;
    background-clip: padding-box;
}

.programme_search .submit_button::before {
    font-family: FontAwesome;
    content: '\f002';
    display: inline;
    padding-right: 12px;
}

.programme_search .compare_button::before {
    font-family: FontAwesome;
    content: '\f0ec';
    display: inline;
    padding-right: 12px;
}

.programme_search button:hover,
.programme_search button:focus {
    background-color: #ffd263;
}

.programme_search .submit_button {
    display: block;
    width: 100%;
    border: none;
    height: 45px;
}

.programme_search .select {
    height: 50px;
    width: 100%;
    position: relative;
    display: block;
}

.programme_search select::-ms-expand {
    display: none;
}

.programme_search .select::after {
    content: '\f078';
    font-family: FontAwesome;
    color: #000;
    padding: 12px 8px;
    position: absolute;
    right: 16px;
    top: 2px;
    z-index: 1;
    text-align: center;
    width: 10%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

.programme_header {
    background: #4c4c4c;
    color: #fff;
    font-size: 1em;
}

.programme_header:hover {
    outline: 4px solid #ffca00;
}

.programme_header .programme_title {
    padding: 2em;
    min-height: 150px;
}

.programme_header .programme_title:hover {
    color: #ffca00;
}

.programme_header .programme_title abbr {
    font-style: italic;
}

@media screen and (min-width: 640px) {
    .programme_details {
        margin: 0;
    }
}

.detailed_result_container {
    border: 1px solid #dfdfdf;
    padding: 1em;
    margin-bottom: 2em;
}

.detailed_result_container, .detailed_result_container * {
    box-sizing: border-box;
}

.detailed_result_content {
    padding: 0 1.5em 0 0;
    vertical-align: top;
}

.detailed_result_title {
    font-size: 1.5em;
    margin: 0;
}

.detailed_result_facts_title {
    font-size: 1.25em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1em;
    color: #707070;
}

.detailed_result_facts_title::after {
    display: block;
    width: 4em;
    margin: 0 auto 1.5em;
    padding: .5em 0 0;
    border-bottom: 2px solid #f4c900;
    content: ' ';
}

.detailed_result_subtitle {
    display: block;
    margin-bottom: 1em;
}

.detailed_result_facts {
    background-color: #f5f5f5;
    color: #333;
    padding: 1em;
    margin-bottom: 1em;
}

.detailed_result_facts .icon {
    margin-right: 5px;
    font-weight: normal;
}

.detailed_result_facts table {
    text-align: left;
}

.detailed_result_facts th {
    text-transform: uppercase;
    font-weight: bold;
    opacity: .69;
    float: left;
    width: 60%;
    white-space: nowrap;
}

.detailed_result_facts th, .detailed_result_facts td {
    padding: .3em .4em;
}

.detailed_result_button {
    margin-bottom: 1em;
    display: inline-block;
    padding: .5em 1em;
    background-color: #1c4392;
    color: #fff;
    border-radius: 5px;
    border-bottom: 0;
}

.detailed_result_button:hover, .detailed_result_button:active {
    text-decoration: none;
    background-color: #003c5f;
    border-bottom: 0;
}

.detailed_result_button .icon {
    font-size: .8em;
}

@media screen and (min-width: 780px) {
    .detailed_result_container {
        display: table;
        width: 100%;
    }

    .detailed_result {
        display: table-row;
    }

    .detailed_result > * {
        display: table-cell;
    }

    .detailed_result_content {
        width: 60%;
        position: relative;
        padding-bottom: 3em;
    }

    .detailed_result_facts {
        font-size: .9em;
    }

    .detailed_result_button {
        position: absolute;
        bottom: 0;
        left: 0;
        margin-bottom: 0;
    }
}

.feature_image.programme_header {
    width: 100%;
    float: none;
}

.feature_image.programme_header::after {
    content: none;
}

.feature_2box > *::before {
    border: none;
}
