/*-------------------------------------
KANNABIS PAGE TITLE & BREADCRUMB
---------------------------------------*/

body.float {
    .yolo-page-title-section {
        margin: 0;
    }

    header.yolo-main-header .yolo-header-nav-wrapper.nav-fullwith {
        padding: 0;

        &.sticky-on {
            padding-left: var(--header_nav_layout_padding);
            padding-right: var(--header_nav_layout_padding);
        }
    }
}

.page-template-default .yolo-page-title-section {
    padding-bottom: 120px;
}

.woocommerce-checkout,
.woocommerce-account,
.woocommerce-cart {
    &.page-template-default .yolo-page-title-section {
        padding-bottom: 130px;
    }

}

.yolo-page-title-section {
    margin-top: 0;
    margin-bottom: 0;

    .content-page-title {
        position: absolute;
        width: 100%;

        h1 {
            line-height: 1;
            word-break: break-word;

            @media (max-width: 1024px) {
                font-size: 30px;
            }
        }
    }

    .container {
        position: relative;

        @media (max-width: 1300px) {
            padding-left: 10px;
            padding-right: 10px;
        }
    }

    .yolo-breadcrumb-wrap {
        color: @white;

        i {
            color: var(--primary_color);
            margin-right: 5px;
        }

        margin-top: 15px;

        @media (max-width: 768px) {
            position: relative;
        }
    }

    .entry-post-meta-wrap {
        font-weight: 500;
        margin-top: 15px;
        color: var(--page_title_color);
        opacity: 0.9;

        span {
            margin-right: 12px;
            padding-left: 22px;
            margin-bottom: 7px;
            position: relative;

            &:first-child {
                margin-left: 0;
                padding-left: 0;

                &:before {
                    content: none;
                }
            }

            &:last-child {
                margin-right: 0;

            }

            &:before {
                position: absolute;
                left: 0;
                top: 9px;
                width: 6px;
                height: 6px;
                border-radius: 50%;
                -webkit-border-radius: 50%;
                -ms-border-radius: 50%;
                content: '';
                background-color: var(--page_title_color);
            }

            @media (max-width: 360px) {
                display: block;

                &.meta-author,
                &.meta-comment {
                    display: none;
                }
            }

            i {
                color: var(--primary_color);
                margin-right: 5px;
            }
        }
    }

    &.page-title-style-2 .content-page-title {
        left: 50%;
        .translateX(-50%);
        text-align: center;
    }

    &.page-title-style-3 .content-page-title {
        text-align: right;
    }

    &.page-title-style-4 {
        .content-page-title {
            bottom: 40px;

            .yolo-breadcrumb-wrap {
                margin: 0;
                position: absolute;
                right: 15px;
                bottom: 0;

                @media (max-width: 768px) {
                    position: relative;
                    right: inherit;
                }
            }
        }
    }

    &.page-title-style-5 {
        .content-page-title {
            bottom: 40px;

            .page-title-inner {
                float: right;
            }
        }
    }

    // For single trainer
    &.yolo-trainer-heading {
        padding-bottom: 100px;

        .content-page-title {
            top: ~"calc(100% - 100px)";
        }

        .heading-info-left {
            display: flex;
            align-items: center;

            img {
                border-radius: 50%;
                height: 200px;
                width: 200px;
                object-fit: cover;
                margin-right: 25px;

                @media (max-width: 768px) {
                    height: 150px;
                    width: 150px;
                }

                @media (max-width: 380px) {
                    display: none;
                }
            }

            .block-inner {
                .rating {
                    margin-top: 18px;

                    .average-stars {
                        color: #f3c410;
                    }
                }
            }

            .item-title {
                color: @white;

                @media (max-width: 768px) {
                    font-size: 24px;
                }
            }

            .item-category {
                margin-top: 20px;

                @media (max-width: 768px) {
                    font-size: 16px;
                }
            }

            .item-social {
                line-height: 1em;
                margin-top: 8px;

                a {
                    margin-right: 25px;
                    display: inline-block;

                    @media (max-width: 768px) {
                        font-size: 1em;
                    }

                    @media (max-width: 480px) {
                        margin-right: 15px;
                    }

                    &.fa-facebook {
                        &:hover {
                            color: #4b6ea8;
                        }
                    }

                    &.fa-twitter {
                        &:hover {
                            color: #29aae2;
                        }
                    }

                    &.fa-pinterest {
                        &:hover {
                            color: #d83633;
                        }
                    }

                    &.fa-google-plus {
                        &:hover {
                            color: #dd553b;
                        }
                    }
                }
            }
        }
    }

    // For single page
    &.yolo-class-heading {
        .heading-info-left {
            display: flex;
            align-items: flex-end;

            img {
                border-radius: 50%;
                height: 200px;
                width: 200px;
                object-fit: cover;
                margin-right: 25px;

                @media (max-width: 768px) {
                    height: 150px;
                    width: 150px;
                }

                @media (max-width: 380px) {
                    display: none;
                }
            }

            .block-inner {
                color: @white;

                .rating {
                    margin-top: 18px;

                    .average-stars {
                        color: #f3c410;
                    }
                }
            }

            .item-title {
                color: @white;

                @media (max-width: 768px) {
                    font-size: 24px;
                }
            }

            .item-category {
                color: @white;
                margin: 10px 0 15px;

                @media (max-width: 768px) {
                    font-size: 16px;
                }
            }

            .item-social {
                line-height: 1em;

                a {
                    margin-right: 25px;
                    display: inline-block;

                    @media (max-width: 768px) {
                        font-size: 1em;
                    }

                    @media (max-width: 480px) {
                        margin-right: 15px;
                    }

                    &.fa-facebook {
                        &:hover {
                            color: #4b6ea8;
                        }
                    }

                    &.fa-twitter {
                        &:hover {
                            color: #29aae2;
                        }
                    }

                    &.fa-pinterest {
                        &:hover {
                            color: #d83633;
                        }
                    }

                    &.fa-google-plus {
                        &:hover {
                            color: #dd553b;
                        }
                    }
                }
            }
        }
    }
}

.yolo-page-title-wrap {
    height: var(--page_title_height);
    width: 100%;
    position: relative;
    background-color: var(--page_title_bg_color);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;

    &:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        background-color: var(--page_title_bg_color);
    }
}

.page-title-inner h1 {
    color: var(--page_title_color);
}

.page-title-inner .page-sub-title {
    color: var(--page_sub_title_color);
    display: block;
    position: relative;
    margin-top: 15px;
    margin-bottom: 25px;
}

.page-title-parallax {
    background-attachment: fixed;

    @media(max-width: @screen-sm-max) {
        background-position: center !important;
    }
}

/*--------
BREADCRUMB
---------*/

ul.breadcrumbs {
    margin: 0;
    padding: 0;
    color: var(--page_title_color);
    opacity: 0.9;
    display: inline-block;
    font-weight: 500;

    @media (max-width: 480px) {
        font-size: 13px;
        padding: 5.5px 10px;
    }

    li {
        margin-right: 12px;
        padding-left: 22px;
        margin-bottom: 7px;
        position: relative;
        display: inline-block;

        &:first-child {
            margin-left: 0;
            padding-left: 0;

            &:before {
                content: none;
            }
        }

        &:last-child {
            margin-right: 0;

        }

        &:before {
            position: absolute;
            left: 0;
            top: 9px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -ms-border-radius: 50%;
            content: '';
            background: var(--page_title_color);
        }
    }
}