/*
Theme Name: SBS Learn child theme.
Version: 1.0
Description: Child theme for SBS Learn
Author: The Code Company
Author URI: https://thecode.co
template: bb-theme
*/

/* Global Styles */

:root {
    /* Colours */
    --dark: #333333;
    --night: #2D2D2D;
    --sky: #4DBCF6;
    --day: #F3F0E9;
    --light: #3DF0FB;
    --ocean: #053A4E;
    --river: #438BA5;
    --secondary-light-charcoal: #828181;
    /* Gap */
    --py: 2.2rem;
    --half-py: 1.1rem;
    --half-px: 1.2rem;
    --px: 2.4rem;
    /* Fonts */
    --text-base: 1.8rem;
    --text-menu: 1.6rem;
    --bold: 700;
    --regular: 400;
    /* Transitions */
    --trans-button: background-color 0.25s, color 0.25s;
    --trans-text: color 0.25s;
}

@media screen and (min-width: 1019px) {
    :root {
        /* Gap */
        --half-px: 2rem;
        --px: 4rem;
        --half-py: 2rem;
        --py: 3rem;
        /* Fonts */
        --text-menu: 1.8rem;
        --text-base: 2.2rem;
    }
}

/* Helpers */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.grid {
    display: grid;
}

.grid-cols-12 {
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: var(--px);
}

.align-start {
    align-items: flex-start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.fl-rich-text ul {
    padding: 0 0 0 18px;
}

.fl-rich-text li {
    margin: 2px 0;
}

.fl-rich-text img {
    margin: 8px 0;
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

/* Global */

.btn, .facetwp-load-more,
div div.fl-row div.fl-module a.fl-button,
.fl-rich-text .gform_wrapper.gravity-theme input[type="submit"] {
    font-family: raleway, sans-serif;
	color: var(--night);
    background-color: var(--sky);
	transition: var(--trans-button);
    font-weight: var(--bold);
    position: relative;
	text-decoration: none !important;
    border: 1px solid var(--sky);
    border-radius: 0;
    font-size: var(--text-base);
    font-size: 18px;
    padding: 12px 18px;
}

.btn:hover, .facetwp-load-more:hover,
.fl-rich-text .gform_wrapper.gravity-theme input[type="submit"]:hover {
    background-color: var(--night);
    color: var(--sky);
}

.btn.btn-secondary,
.btn.btn-secondary div.fl-row div.fl-module a.fl-button {
    border-color: var(--sky);
    background-color: transparent;
    color: var(--sky);
}

.btn.btn-secondary:hover {
    border-color: var(--night);
    background-color: var(--sky);
    color: var(--night);
}

.btn-icon {
    align-items: center;
}

.btn-icon:before {
    font-family: "Font Awesome 5 Free";
}

.btn-icon-download:before {
    content: "\f019";
    font-weight: 900;
    font-size: 12px;
    margin-right: 10px;
}

.button-list {
    display: flex;
    flex-wrap: wrap;
}

.button-list .btn {
    margin-top: 0;
    margin-right: 12px;
    margin-bottom: 12px;
}

.fl-button-text {
    font-family: raleway;
}

@media screen and (max-width: 1020px) {
    .site-header .menu-nav {
        flex: 1 0 auto;
    }
}


/* Gravity Forms */

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="date"]::placeholder,
input[type="month"]::placeholder,
input[type="week"]::placeholder,
input[type="time"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: var(--night);
}

.fl-rich-text .gform_required_legend {
    display: none;
}

.fl-rich-text .gform_wrapper .gfield label {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.fl-rich-text .gform_wrapper .gfield input {
    text-align: left;
    padding: 10px 16px;
    border-radius: 0;
    background: white;
    font-size: var(--text-menu);
    line-height: 1.444em;
    border-color: var(--secondary-light-charcoal);
    margin-bottom: 0.25em;
}
.fl-rich-text .gform_wrapper .gfield input:focus {
    border-color: var(--sky);
}

.fl-rich-text .gform_wrapper textarea {
    background-color: white;
    border-color: var(--secondary-light-charcoal);
    border-radius: 0;
}

.fl-rich-text .gform_wrapper fieldset {
    margin-top: var(--py);
}

.fl-rich-text .gform_wrapper fieldset legend {
    font-weight: var(--bold);
    border-bottom: none;
}
.fl-rich-text .gform_wrapper fieldset label {
    font-weight: 400;
}

.fl-rich-text .gform_wrapper .gform_footer {
    padding: var(--py) 0;
}

@media screen and ( max-width: 1019px ) {
    .fl-rich-text .gform_wrapper .gfield input {
        padding: 13px 16px;
    }
}

/* Gravity Forms Checkboxes */

.fl-rich-text .gform_wrapper .gfield_checkbox,
.fl-rich-text .gform_wrapper .gf_list_3col .gfield_checkbox {
    display: flex;
    flex-wrap: wrap;
}

.fl-rich-text .gform_wrapper .gf_list_2col .gfield_checkbox .gchoice,
.fl-rich-text .gform_wrapper .gf_list_3col .gfield_checkbox .gchoice {
    padding-right: var(--half-px);
}

.fl-rich-text .gform_wrapper .gf_list_2col .gfield_checkbox .gchoice {
    flex: 1 0 50%;
}

.fl-rich-text .gform_wrapper .gfield_checkbox .gchoice {
    position: relative;
}

.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox] {
    opacity: 0;
    position: absolute;
}

.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox] + label {
    position: relative;
    overflow: hidden;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
}

.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox] + label:before,
.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox] + label:after {
    content: '';
    position: absolute;
    z-index: 1;
    -webkit-transition: .2s;
    transition: .2s;
    top: 0px;
    left: 0px;
}

/* after */
.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox]:not(:checked) + label:after {
    width: 22px;
    height: 22px;
    border: 2px solid var(--sky);
    top: 0px;
}

.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox]:checked + label:after {
    top: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--sky);
    background-color: var(--sky);
    z-index: 0;
}

/* before */
.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox]:not(:checked) + label:before {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
}

.fl-rich-text .gform_wrapper .gfield_checkbox input[type=checkbox]:checked + label:before {
    background: url(images/checkbox.svg);
    width: 16px;
    height: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    top: 3px;
    left: 3px;
}
@media only screen and (max-width: 641px) {
    .fl-rich-text .gform_wrapper.gravity-theme input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]) {
        line-height: 1em;
    }
}
@media screen and ( max-width: 500px ) {
    .fl-rich-text .gform_wrapper .gf_list_2col .gfield_checkbox .gchoice {
        flex: 1 0 100%;
        padding-top: var(--py);
    }
}



/* Themes */

.day-bg {
    background-color: var(--day);
}

.night-bg {
    background-color: var(--night);
}

.sky-bg {
    background-color: var(--sky);
}

.light-bg {
    background-color: var(--light);
}

.ocean-bg {
    background-color: var(--ocean);
}

/* Subscribe Block */

.subscribe-block form {
    position: relative;
    display: grid;
    grid-column-gap: 2%;
    grid-row-gap: 16px;
    grid-template-columns: repeat(12,1fr);
    grid-template-rows: repeat(auto-fill,auto);
    width: 100%;
}

.subscribe-block .gform_wrapper .gform_body {
    grid-column: 1/12;
}

.subscribe-block .gform_wrapper .gform_footer {
    padding: 0;
    margin: 0;
    grid-column-start: 12;
    grid-column-end: 12;
}

.subscribe-block .gform_wrapper .gfield input[type="email"] {
    width: 100%;
}

@media screen and ( max-width: 500px ) {
    .subscribe-block form {
        display: block;
    }

    .subscribe-block .gform_wrapper .gform_body {
        padding-right: 0;
    }

    .subscribe-block .gform_wrapper .gform_footer {
        padding-top: var(--py);
    }

    .subscribe-block .gform_wrapper .gform_footer input[type="submit"] {
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Colour Theme - Night */

.theme--night {
    color: var(--day);
    background-color: var(--night);
}

.theme--night h1,
.theme--night h2,
.theme--night h3,
.theme--night h4,
.theme--night h5,
.theme--night h6 {
    color: var(--day);
}

/* Colour Theme - Day */

.theme--day {
    color: var(--night);
    background-color: var(--day);
}

.theme--day h1,
.theme--day h2,
.theme--day h3,
.theme--day h4,
.theme--day h5,
.theme--day h6 {
    color: var(--night);
}


/* Colour Theme - Ocean */

.theme--ocean {
    color: var(--day);
    background-color: var(--ocean);
}

.theme--ocean h1,
.theme--ocean h2,
.theme--ocean h3,
.theme--ocean h4,
.theme--ocean h5,
.theme--ocean h6 {
    color: var(--day);
}

/* Colour Theme - Ocean */

.theme--sky {
    color: var(--day);
    background-color: var(--sky);
}

.theme--sky h1,
.theme--sky h2,
.theme--sky h3,
.theme--sky h4,
.theme--sky h5,
.theme--sky h6 {
    color: var(--day);
}


.h5-medium {
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
}

.body-copy-small {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
}

.body-copy-reg {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
}

.large-body-copy-reg {
    font-family: raleway, sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 30px;
}

.large-body-copy-reg p {
    margin-bottom: 36px;
}

.large-body-copy-bold {
    font-family: raleway, sans-serif;
    font-weight: var(--bold);
    font-size: 22px;
    line-height: 30px;
}
.large-body-copy-bold p {
    margin-bottom: 36px;
}

@media screen and (max-width: 768px) {
    .large-body-copy-reg {
        font-size: 18px;
        line-height: 26px;
    }
    .large-body-copy-reg p {
        margin-bottom: var(--py);
    }
}

/* The Modal (background) */
.modal {
    display: flex; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 55; /* Sit on top */
    left: 0;
    overflow: hidden;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    align-items: center;
    background-color: var(--night); /* Fallback Color */
    background-color: RGBA(45, 45, 45, 0.75); /* Primary Night w/ opacity */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.modal-text {
    position: relative;
    z-index: 1;
}

.gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 8px !important;
}

.modal .close-pop {
    z-index: 102;
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--sky);
    font-size: 30px;
}

.modal .modal-content {
    overflow: hidden;
    padding: 96px;
    margin: auto; /* 15% from the top and centered */
    max-width: 904px;
    position: relative;
    color: var(--sky);
    width: calc(100% - 2rem); /* Could be more or less, depending on screen size */
    background-size: cover;
    background-position: center top;
}

.close-pop:hover,
.close-pop:focus {
    color: var(--sky);
    text-decoration: none;
    cursor: pointer;
}

@keyframes modal {
    from {transform: translateY(-10px); opacity: 0;}
    to { transform: translateY(0px); opacity: 1;}
}

@media screen and (min-width: 768px) {
    .logo-menu {
        flex: 1 0 250px
    }
}

@media screen and (max-width: 768px) {
    .modal .modal-content {
        padding: 60px 16px;
    }
    .modal .close-pop {
        top: 18px;
        right: 18px;
    }
}

h5, .h5 {
    font-style: normal;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.125em;
}

h6, .h6 {
    font-style: normal;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.22em;
}

/* Download */

.download:before {
    font-family: "Font Awesome 5 Free";
    content: "\f2f6";
    display: inline-block;
    margin-right: 8px;
    transform: rotate(90deg);
    font-size: 0.8em;
}

footer .menu li.menu-item a {
    transition: color 0.25s;
}

footer .menu li.menu-item:hover a {
    color: var(--sky);
}

footer .download:before {
    display: inline-block;
    color: var(--secondary-light-charcoal);
    transition: color 0.25s;
}

footer .download:hover:before {
    color: var(--sky);
}

footer .download a {
    display: inline-block;
}

footer .fl-rich-text .gform_wrapper form {
    display: flex;
    flex-wrap: wrap;
}

footer .fl-rich-text .gform_wrapper form .gform_body {
    flex-grow: 1;
    padding: 0 var(--half-px) 0 0;
}

footer .fl-rich-text .gform_wrapper form .gform_body input {
    padding: 10px 16px;
    font-size: var(--text-menu);
}

footer .fl-rich-text .gform_wrapper form .gform_footer {
    margin: 0;
    padding: 0;
}

footer div.fl-row-content div.fl-module .fl-button-wrap a.fl-button {
    font-size: 18px;
    line-height: 18px;
    background-color: var(--night);
    border: 1px solid var(--sky);
}

footer div.fl-row-content div.fl-module .fl-button-wrap a.fl-button:hover {
    background-color: var(--sky);
}

footer div.fl-row-content div.fl-module .fl-button-wrap a.fl-button span {
    color: var(--sky);
}

footer div.fl-row-content div.fl-module .fl-button-wrap a.fl-button:hover span {
    color: var(--night);
}

@media screen and (max-width: 1020px) {
    footer .fl-rich-text .gform_wrapper form .gform_body {
        padding: 0 0 var(--half-py) 0;
    }

    footer .fl-rich-text .gform_wrapper form .gform_footer,
    footer .fl-rich-text .gform_wrapper form input[type="submit"] {
        width: 100%;
    }
}


/* Selectric (Dropdowns)  */

.selectric-wrapper {
    position: relative;
    cursor: pointer;
}

.selectric-responsive {
    width: 100%;
}

.selectric {
    border: 1px solid var(--secondary-light-charcoal);
    border-radius: 0px;
    background: #FFF;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.selectric .label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 4px 28px 4px 16px;
    height: auto;
    font-size: var(--text-menu);
    line-height: 38px;
    color: var(--night);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectric .button {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 2em;
    height: 2em;
    line-height: 2.3em;
    margin: 0;
    background-color: transparent;
    color: transparent;
    text-align: center;
}

.selectric .button:after {
    content: "\f078";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background-color: transparent;
    color: var(--sky);
    font-family: "Font Awesome 5 Free";
    font-size: 20px;
}

.selectric-focus .selectric {
    border-color: #aaaaaa;
}

.selectric-hover .selectric {
    border-color: var(--sky);
}

.selectric-open {
    z-index: 9999;
}

.selectric-open .selectric {
    border-color: var(--sky);
}

.selectric-open .selectric-items {
    display: block;
}

.selectric-disabled {
    filter: alpha(opacity=50);
    opacity: 0.5;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectric-hide-select {
    position: relative;
    overflow: hidden;
    width: 0;
    height: 0;
}

.selectric-hide-select select {
    position: absolute;
    left: -100%;
}

.selectric-hide-select.selectric-is-native {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.selectric-hide-select.selectric-is-native select {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    border: none;
    z-index: 1;
    box-sizing: border-box;
    opacity: 0;
}

.selectric-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 1px !important;
    height: 1px !important;
    outline: none !important;
    border: none !important;
    *font: 0/0 a !important;
    background: none !important;
}

.selectric-temp-show {
    position: absolute !important;
    visibility: hidden !important;
    display: block !important;
}

/* Items box */
.selectric-items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #F8F8F8;
    border: 1px solid #c4c4c4;
    z-index: -1;
}

.selectric-items .selectric-scroll {
    height: 100%;
    overflow: auto;
}

.selectric-above .selectric-items {
    top: auto;
    bottom: 100%;
}

.selectric-items ul, .selectric-items li {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-menu);
    line-height: 20px;
    min-height: 20px;
}

.selectric-items li {
    display: block;
    padding: 16px;
    color: #000;
    cursor: pointer;
}

.selectric-items li.selected {
    background: #E0E0E0;
    color: #444;
}

.selectric-items li.highlighted {
    background: var(--sky);
    color: #fff;
}

.selectric-items li:hover {
    background: #D5D5D5;
    color: #444;
}

.selectric-items .disabled {
    filter: alpha(opacity=50);
    opacity: 0.5;
    cursor: default !important;
    background: none !important;
    color: #666 !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selectric-items .selectric-group .selectric-group-label {
    font-weight: bold;
    padding-left: 10px;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: none;
    color: #444;
}

.selectric-items .selectric-group.disabled li {
    filter: alpha(opacity=100);
    opacity: 1;
}

.selectric-items .selectric-group li {
    padding-left: 25px;
}

.facetwp-facet {
    font-size: 18px;
}

.news-content .fl-rich-text h2 {
    font-size: 32px;
}

.news-content .fl-rich-text h3 {
    font-size: 28px;
}

.news-content .fl-rich-text h4 {
    font-size: 24px;
}

.news-content .fl-rich-text h5 {
    font-size: 22px;
}

.news-content .fl-rich-text h6 {
    font-size: 20px;
}

.news-content.fl-rich-text ul {
    padding: 16px 0 16px 18px;
}

.gform_wrapper.gravity-theme .gfield input.large, .gform_wrapper.gravity-theme .gfield select.large {
    background-color: #f1ede6 !important;
    padding: 10px 8px;
}

.gform_wrapper select, .gform_wrapper input[type=text], .gform_wrapper input[type=email], .gform_wrapper textarea {
    border: 1px solid #c8bfb2 !important;
    padding: 12px !important;
    border-radius: 5px !important;
}

.resource-content-area h2 {
    font-size: 28px;
    margin-top: 12px;
}

.resource-content-area h3 {
    font-size: 24px;
    margin-top: 8px;
}

.resource-content-area h4 {
    font-size: 22px;
    margin-top: 8px;
}

.resource-content-area p, .resource-content-area li {
    font-size: 18px;
}

@media screen and ( max-width: 500px ) {
    .selectric .label {
        margin: 0 28px 0 16px;
        height: 3em;
        line-height: 3em;
    }

    .selectric .button {
        width: 3em;
        height: 3em;
        line-height: 3em;
    }

    .selectric .button::after {
        top: -3px;
    }

}

.fl-content .mejs-controls .mejs-time-rail .mejs-time-current {
    background: var(--sky);
}

.fl-content .mejs-overlay-button {
    background-image: url(images/mejs-controls-sbs.svg);
}

.fl-content .mejs-overlay.mejs-layer.mejs-overlay-play {
    background: linear-gradient(79deg, rgba(1, 59, 79, 0.5) 18.72%, rgba(1, 59, 79, 0) 95.93%, rgba(1, 59, 79, 0) 99.73%);
}

.fl-html iframe[src*="player.vimeo.com"],
.fl-html iframe[src*="youtube.com"],
.fl-rich-text iframe[src*="player.vimeo.com"],
.fl-rich-text iframe[src*="youtube.com"] {
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
}

/* Quick fixes for contact button width etc. */
li.contact.menu-item a,
.global-header .secondary-menu-nav .on-demand {
    min-width: 187px;
}

li.contact.menu-item a {
    justify-content: center;
}

.footer-explore ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-explore li {
    flex: 0 1 33.33%;
}

.facetwp-input-wrap, .facetwp-facet input.facetwp-search {
    width: 100%;
}

.facetwp-icon {
    right: 8px !important;
}

.home-search .fl-form-field input[type=search], .facetwp-facet input.facetwp-search, .search-form input[type="search"] {
    border-radius: 0;
    padding-top: 13px;
    padding-right: 16px;
    padding-bottom: 14px;
    padding-left: 16px;
    font-size: 18px;
}

.search-form .search-submit {
    font-family: raleway, sans-serif;
    color: var(--night);
    background-color: var(--sky);
    transition: var(--trans-button);
    font-weight: var(--bold);
    position: relative;
    text-decoration: none !important;
    border: 1px solid var(--sky);
    border-radius: 0;
    font-size: var(--text-base);
    font-size: 18px;
    margin-left: 16px;
    padding: 12px 18px;
}

.home-search .fl-search-form-wrap {
    padding: 0;
}

.facet-row .fl-rich-text {
    display: flex;
    justify-content: flex-end;
}

.facet-row .fl-rich-text p {
    display: none;
}

.facet-row .facetwp-facet {
    margin-bottom: 0;
}

.facetwp-facet-pagination_counter {
    margin-right: 16px;
}

.facet-row .facetwp-facet select {
    border: 0;
    background: transparent;
    font-weight: 700;
}

.video-js {
    width: 100% !important;
    aspect-ratio: 16/9;
    margin-top: 24px;
    margin-bottom: 24px;
    height: auto !important;
}

@media screen and (max-width: 767px) {
    .search-form input[type="search"], .search-form .search-submit {
        font-size: 16px !important;
    }
}

@media print {
    .print-page, .no-print {
       visibility: hidden;
    }
}

figcaption span.attribution,
.fl-photo-caption span.attribution {
    display: block;
}

.wp-block-embed-youtube iframe {
    aspect-ratio: 16/9;
    margin: 24px 0 4px;
    width: 100%;
    height: auto;
}