//
// CURRICULUM PAGE
// --------------------------

$progress-bar-height: 10px;

#agave_curriculum {

    .roadmap {
        padding: 60px 0 15px;

        h3 {
            margin-bottom: 30px;
        }

        .page-description {
            font-size: 20px;
            margin-bottom: 60px;
        }
    } // .roadmap

    .training-progress {

        max-width: 750px;
        margin: 0 auto;

        .required-training-progress,
        .additional-training-progress {
            margin: 30px 0;
        }

        .webinar-progress-bar {
            width: 100%;
            height: $progress-bar-height;
            position: relative;
            display: flex;
            justify-content: space-around;

            .progress-block {
                height: $progress-bar-height;
                transform: skew(-20deg);
                background-color: $bg-gray;
                margin-right: 4px;

                @include breakpoint(small down) {
                    transform: skew(-10deg);
                }

                &.complete {
                    background-color: $agave-light-blue;
                }

                &:first-of-type {
                    border-top-left-radius: 25px;
                    margin-left: 0;
                    border-bottom-left-radius: 55px;

                    @include breakpoint(small down) {
                        border-bottom-left-radius: 35px;
                    }
                }

                &:last-of-type {
                    border-top-right-radius: 55px;
                    border-bottom-right-radius: 25px;

                    margin-right: 0;

                    @include breakpoint(small down) {
                        border-top-right-radius: 35px;
                    }
                }
            }
        } // .webinar-progress-bar

        .webinar-progress-info {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;

            .title,
            .complete-status {
                color: $agave-dark;
                font-size: 21px;
                font-weight: 700;
                line-height: 1.4;
            }

            .webinar-progress-total {
                display: none;

                @include breakpoint(medium) {
                    display: block;
                }

            }

        }
    } // .training-progress

    .required-training,
    .additional-training,
    .completed-training {
        margin: 20px 0 80px;

        .section-header-wrapper {
            margin-bottom: 30px;

            p {
                font-family: $hdr-font;
                font-size: 21px;
                font-weight: 700;
            }
        } // .section-header-wrapper
    }

    .required-training {

        .req-trainings-container {
            width: 100%;

            @include breakpoint(large up) {
                display: flex;
            }

            .req-training-block {
                position: relative;
                height: auto;
                background-color: $agave-dark;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                padding: 50px 25px 60px;

                flex: 1 1 0;

                transition: all 0.3s linear;

                @include breakpoint(large) {
                    border-right: 2px solid #fff;
                    padding: 150px 40px 220px;
                    height: 700px;
                }

                &:last-of-type {
                    border-right: 0;
                }

                .content-wrapper {
                    //transition: all 0.3s linear;

                    @include breakpoint(large) {
                        max-width: 350px;
                        margin: 0 auto;
                        text-align: center;
                    }
                } // .content-wrapper

                .icon-wrapper {
                    margin-bottom: 10px;
                    width: 100%;
                    height: 100px;
                    text-align: center;

                    i {
                        color: #fff;
                        font-size: 100px;
                    }
                }

                .webinar-title {
                    color: #fff;
                    font-family: $hdr-font;
                    font-size: 30px;
                    line-height: 1.3;
                    font-weight: 700;

                }

                .webinar-date {
                    font-size: 20px;
                    font-weight: 700;
                    color: #fff;
                    letter-spacing: 2px;
                    margin-bottom: 6px;
                }

                .webinar-start-time {
                    color: #fff;
                    font-weight: 700;
                    line-height: 1.1;
                    font-size: 16px;
                }

                .webinar-description {
                    font-size: 18px;
                    color: #fff;

                    @include breakpoint(large) {
                        display: none;
                    }
                }

                .btn-register {
                    margin: 24px 0;
                    display: inline-block;

                    @include breakpoint(large) {
                        display: none;
                    }
                }

                .bottom-bar {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    height: 8px;
                    width: 100%;
                    background-color: $agave-dark;
                    height: 50px;

                    // If the webinar has been completed
                    &.complete {
                        background-color: darken($bg-gray, 30%);
                    }

                    .webinar-num {
                        display: block;
                        color: #fff;
                        font-size: 32px;
                        line-height: 50px;
                        font-weight: 700;
                        font-family: $hdr-font;
                        z-index: 1;
                        text-align: center;
                    }
                } // .bottom-bar

                // If training is completed
                &.completed {

                    .bottom-bar {
                        background-color: $agave-light-blue;

                        .webinar-num {
                            background-color: $agave-light-blue;
                        }
                    }
                }

                // If training is expanded
                &:hover,
                &.expanded {
                    justify-content: flex-start;
                    flex-basis: 25%;

                    .content-wrapper {
                        @include breakpoint(large) {
                            text-align: left;
                            width: 100%;
                            max-width: 500px;
                            margin-left: 0;
                        }
                    }

                    .icon-wrapper {
                        text-align: left;
                    }

                    .webinar-description {
                        @include breakpoint(large) {
                            display: block;
                        }
                    }

                    .btn-register {
                        @include breakpoint(large) {
                            display: inline-block;
                        }
                    }
                } // .expanded
            } // .req-training-block
        }
    } // .required-training

    .additional-training {

        .add-trainings-container {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding-left: 15px;
            padding-right: 15px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;

            @include breakpoint(large) {
                justify-content: flex-start;
            }

            .add-training-block {
                position: relative;
                width: 295px; // updated to fit 4 columns in desktop/smaller laptops
                height: 300px;
                margin: 10px 5px;
                padding: 25px 30px 50px;
                display: flex;
                align-items: center;
                background-repeat: no-repeat;
                background-position: center;
                overflow: hidden;

                &:hover {
                    .webinar-description-overlay {
                        transform: translateY(0);
                    }
                }

                @include breakpoint(medium only) {
                    width: 40%;
                }

                .content-wrapper {
                    width: 100%;
                    text-align: center;
                }

                .webinar-title {
                    color: #fff;
                    font-size: 24px;
                    line-height: 1.1;
                    font-weight: 700;
                    letter-spacing: 1px;
                    margin-bottom: 25px;
                }

                .webinar-date {
                    color: #fff;
                    font-weight: 700;
                    letter-spacing: 2px;
                    font-family: $hdr-font;
                    font-size: 18px;
                    margin-bottom: 6px;
                    line-height: 1.1;
                }

                .webinar-start-time {
                    color: #fff;
                    font-family: $hdr-font;
                    font-weight: 700;
                    font-size: 15px;
                    margin-bottom: 0;
                    line-height: 1.1;
                }

                .webinar-description-overlay {
                    background-color: transparentize($agave-green, 0.10);
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: absolute;
                    left: 0;
                    top: 0;
                    transform: translateY(100%); // starting point
                    transition: all 0.3s ease-in;
                    z-index: 1;
                    padding: 10px 15px 30px;

                    p {
                        text-align: center;
                        color: #fff;
                        font-size: 20px;
                        line-height: 1.2;
                        margin: 0;
                        font-weight: 700;
                        font-family: $hdr-font;

                    }
                } // .webinar-description-overlay

                .register-bar {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    background-color: $agave-dark;
                    font-family: $hdr-font;
                    text-transform: uppercase;
                    display: block;
                    height: 60px;
                    font-size: 21px;
                    text-align: center;
                    cursor: pointer;
                    transition: all 0.2s linear;
                    z-index: 2;

                    &:hover {
                        background-color: lighten($agave-dark, 10%);
                    }

                    &.complete {
                        background-color: darken($bg-gray, 30%);
                    }

                    a {
                        height: 100%;
                        width: 100%;
                        line-height: 60px;
                        color: #fff;
                        font-weight: 700;
                    }

                }

                &.complete {
                    background-image: url('../images/add-webinar-bg-complete-default.png') !important;

                    .webinar-title {
                        color: #fff;
                    }

                    .webinar-date {
                        display: none;
                    }

                    .register-bar {
                        background-color: $agave-light-blue;
                    }
                }
            } // .add-training-block

        } // .add-trainings-container
    } // .additional-training

    .completed-training {
        .completed-trainings-container {
            width: 100%;
            max-width: 1300px;
            margin: 0 auto;
            padding-left: 15px;
            padding-right: 15px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;

            @include breakpoint(large) {
                justify-content: flex-start;
            }

            .completed-training-block {
                position: relative;
                width: 295px;
                height: 300px;
                margin: 10px 5px;
                padding: 25px 30px 50px;
                display: flex;
                align-items: center;
                overflow: hidden;

                @include breakpoint(medium only) {
                    width: 40%;
                }

                .content-wrapper {
                    width: 100%;
                    text-align: center;
                }

                .webinar-title {
                    color: #fff;
                    font-size: 24px;
                    line-height: 1.1;
                    font-weight: 700;
                    letter-spacing: 1px;
                }

                .webinar-notice {
                    color: #fff;
                    line-height: 1.1;
                }

                .webinar-date {
                    color: #fff;
                    font-weight: 700;
                    letter-spacing: 3px;
                    font-family: $hdr-font;
                }

                 &:hover {
                    .webinar-description-overlay {
                        transform: translateY(0);
                    }
                }

                .webinar-description-overlay {
                    background-color: transparentize($agave-max-blue, 0.10);
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    position: absolute;
                    left: 0;
                    top: 0;
                    transform: translateY(100%); // starting point
                    transition: all 0.3s ease-in;
                    z-index: 1;
                    padding: 10px 15px 30px;

                    p {
                        text-align: center;
                        color: #fff;
                        font-size: 20px;
                        line-height: 1.2;
                        margin: 0;
                        font-weight: 700;
                        font-family: $hdr-font;

                    }
                } // .webinar-description-overlay

                .register-bar {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    background-color: $agave-dark;
                    font-family: $hdr-font;
                    text-transform: uppercase;
                    display: block;
                    height: 60px;
                    font-size: 21px;
                    text-align: center;
                    cursor: pointer;
                    transition: all 0.2s linear;
                    z-index: 2;

                    &:hover {
                        background-color: lighten($agave-dark, 10%);
                    }

                    &.complete {
                        background-color: darken($bg-gray, 30%);
                    }

                    a {
                        height: 100%;
                        width: 100%;
                        line-height: 60px;
                        color: #fff;
                        font-weight: 700;
                    }
                }

                &.complete {
                    background-image: url('../images/add-webinar-bg-complete-default.png') !important;

                    .webinar-title {
                        color: #fff;
                    }

                    .webinar-date {
                        display: none;
                    }

                    .register-bar {
                        background-color: $agave-light-blue;
                    }
                }
            } // .completed-training-block

        } // .completed-trainings-container
    } // .completed-training

}