/* 
 *   Main Josie TV Theme Style
 */

.josie-tv * {
    font-family: "Work Sans";
}

.josie-tv h1,
.josie-tv h2,
.josie-tv h3,
.josie-tv h4,
.josie-tv h5 {
    font-family: "Work Sans";
    font-weight: 300;
    font-style: normal;
    text-transform: uppercase;
    color: #1d2833;
}



/* page header */

header.page-header {
    background-size: cover;
    background-position: center bottom;
    padding: 0;
    margin: 0;
}

header.page-header .page-header-flex {
    display: flex;
    align-items: center;
    min-height: 350px;
}

header.page-header .page-header-flex .josie-tv-logo {
    width: 240px;
    margin-bottom: 0px;
}

header.page-header .page-header-flex .page-header-content {
    max-width: 50%;
    padding: 0 0 20px 0;
}

header.page-header .page-header-flex .page-header-content h3 {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1em;
}

header.page-header .page-header-flex .page-header-content p {
    color: #fff;
    font-size: 1.5em;
    line-height: 1.2em;
    text-transform: uppercase;
    margin: 0;
}


.tax-1 {
    grid-area: tax-1;
}

.tax-2 {
    grid-area: tax-2;
}

.tax-3 {
    grid-area: tax-3;
}

.tax-4 {
    grid-area: tax-4;
}

.tax-5 {
    grid-area: tax-5;
}

.tax-6 {
    grid-area: tax-6;
}

.tax-7 {
    grid-area: tax-7;
}

.tax-8 {
    grid-area: tax-8;
}

.tax-9 {
    grid-area: tax-9;
}

.tax-10 {
    grid-area: tax-10;
}

.tax-11 {
    grid-area: tax-11;
}

.tax-12 {
    grid-area: tax-12;
}


.channel-tax-block {
    margin: 70px 0;
}

.channel-tax-block .channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-gap: 0px;
    justify-content: center;
    align-items: center;
    justify-items: center;
    row-gap: 0px;
    column-gap: 10px;
}

.channel-tax-block .channel-list .channel-item {
    display: inline-block;
    aspect-ratio: 1;
    margin: 0px;
    padding: 0px;
    width: 120px;
}


/* .channel-tax-block .channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-gap: 60px;
    row-gap: 0px;

}

.channel-tax-block .channel-list .channel-item {
    display: inline-block;
    aspect-ratio: 1;
    flex: 1 0 120px;
    margin: 0px;
    padding: 0px;

} */

.channel-tax-block .channel-list .channel-item a.channel-tax-link {
    color: #fff;
    display: inline-flex;
    aspect-ratio: 1;
    width: 100%;
    border: 2px solid #fff;
    border-radius: 4px;
    text-align: center;
    align-self: center;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all ease 0.3s;
    /* border: 2px solid transparent; */
}

.channel-tax-block .channel-list:hover .channel-item a.channel-tax-link:not(:hover) {
    filter: grayscale(50%);

}

.channel-tax-block .channel-list .channel-item a.channel-tax-link:hover,
.channel-tax-block .channel-list .channel-item a.channel-tax-link.selected {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border-color: rgb(0, 0, 0);

}

.channel-tax-block .channel-list .channel-item:nth-of-type(even) a {
    transform: rotate(45deg);
    /* transform: rotate(45deg) translate(-30px, -30px); */

}

.channel-tax-block .channel-list .channel-item:nth-of-type(odd) a {
    transform: rotate(45deg);
    /* transform: rotate(45deg) translate(30px, 30px); */
}


.channel-tax-block .channel-list .channel-item a.channel-tax-link span {
    transform: rotate(-45deg);
}


/* Mobile Responsiveness - Desktop */
@media only screen and (min-width: 1024px) {

    .top5-list {
        flex-wrap: nowrap;
    }

    .top5-list .top5-video {
        flex: 1 1 20%;
    }

    .channel-tax-block .channel-list {
        grid-template-columns: 1fr 0px 1fr 0px 1fr 0px 1fr 0px 1fr 0px 1fr 0px 1fr;
        grid-template-areas: ". tax-1 . tax-2 . tax-3 . tax-4 . tax-6 . tax-7 ."
            "tax-5 . tax-8 . tax-9 . tax-10 . tax-11 . tax-12 . .";
    }

    /* 
        .channel-tax-block .channel-list {
            grid-template-columns: 1fr 0px 1fr 0px 1fr 0px 1fr 0px 1fr 0px 1fr;
            grid-template-areas: ". . . . . tax-5 . . . . ."
                "tax-1 . tax-2 . tax-3 . tax-4 . tax-6 . tax-7"
                ". tax-8 . tax-9 . tax-10 . tax-11 . tax-12 .";
        } 
    */


    .channel-tax-block .channel-list .channel-item {
        width: 120px;
    }


}

/* Mobile Responsiveness - Tablet */
@media only screen and (max-width: 1024px) {


    .top5-list .top5-video {
        flex: 0 0 30%;
        margin-bottom: 20px
    }

    .top5-list .top5-video .count {
        top: 0px;
        right: 0px;
        bottom: unset;
        left: unset;
        z-index: 22;
        mix-blend-mode: soft-light;
        opacity: 0.75;
        font-size: 9em;
    }

    .top5-list .video_block .video_thumbnail,
    .top5-list .video_block .video_thumbnail:after,
    .top5-list .video_block .video_thumbnail img.thumbnail_image {
        aspect-ratio: 16/9;
    }

    .channel-tax-block .channel-list .channel-item {
        width: 110px;
    }

}

/* Mobile Responsiveness - Mobile */
@media only screen and (max-width: 1024px) {
    .channel-tax-block .channel-list {
        grid-template-areas:
            ". . . tax-5 . . ."
            "tax-1 . tax-2 . tax-3 . tax-4"
            ". tax-6 . tax-7 . tax-8 ."
            "tax-9 . tax-10 . tax-11 . tax-12";
        grid-template-columns: 1fr 0px 1fr 0px 1fr 0px 1fr;
    }
}

/* Mobile Responsiveness - Mobile */
@media only screen and (max-width: 768px) {

    .channel-tax-block .channel-list .channel-item {
        width: 100px;
    }

    .top5-list .top5-video {
        flex: 0 0 100%;
        margin-bottom: 20px
    }

    .top5-list .top5-video .count {
        top: 0px;
        right: 0px;
        bottom: unset;
        left: unset;
        z-index: 22;
        mix-blend-mode: soft-light;
        opacity: 0.75;
        font-size: 9em;
    }

    .top5-list .video_block .video_thumbnail,
    .top5-list .video_block .video_thumbnail:after,
    .top5-list .video_block .video_thumbnail img.thumbnail_image {
        aspect-ratio: 16/9;
    }
}

/* Mobile Responsiveness - Mobile */
@media only screen and (max-width: 560px) {
    .channel-tax-block .channel-list {
        grid-template-areas: " . tax-5 . "
            "tax-1 . tax-2"
            " . tax-3 . "
            "tax-4 . tax-6"
            ". tax-7 . "
            "tax-8 . tax-9"
            ". tax-10 . "
            "tax-11 . tax-12";
        grid-template-columns: 1fr 0px 1fr;
    }

    .channel-tax-block .channel-list .channel-item {
        width: 120px;
    }
}


/* Archive Style */

.taxonomy-page-header {
    padding: 50px 0;
}

h1.archive_page_title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-weight: 700;
    font: "Work Sans";
}

.video_archive .posts-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

}

.channel-wrapper .channel {
    margin-bottom: 40px;
    border-bottom: 1px solid #efefef;
}

.video_archive .channel-title {
    margin: 0px;
}

.view-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d2833;
    text-transform: uppercase;
    font-weight: 600;

}

/* .svg-arrow-right {

} */

.view-all svg {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    fill: #1d2833;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    align-items: center;
}

.video_archive {}

.video_archive .posts-wrapper .video_block {
    flex-basis: calc(33% - 20px);
}

.filter-section-container {
    background: #efefef5e;
    margin-bottom: 30px;
}

.filter-section {
    margin: 30px 0px;
}

.filter-title {
    font-weight: 300;
    text-transform: uppercase;
}

.page-template-page-tv-catchup .filter-title {
    margin: 0;
}

.filterlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.filterlist li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.filterlist li a {
    display: block;
    padding: 7px 12px;
    background: #1d2833;
    color: #fff;
    border-radius: 50px;
    margin: 5px;
    font-size: 13px;
    line-height: 1em;
    font-weight: 600;
    text-transform: uppercase;
    transform: all ease 0.3s;
    border: 3px solid #00000000;
}

.filterlist li a.selected {
    background: #f3930b !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);

}

.breadcrumbs {
    background: #efefef;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 10px 0;
}

.breadcrumb-list li {
    padding: 0px;
    margin: 0;
}

.breadcrumb-list li a {
    color: #1d2833;
    line-height: 1em;
    text-transform: uppercase;
    transition: all ease 0.3s;

}

.breadcrumb-list li a:hover {
    color: #e62984;
}

.breadcrumb-list li:after {
    content: ">";
    padding: 0 10px;
}

.breadcrumb-list li:last-of-type:after {
    content: "";
}

.breadcrumb-list li:first-of-type a {
    padding-left: 0;
}

/* Taxonomy Page  */

.events-wrapper {
    padding: 50px 0;
    background-color: #efefef;

}

.videos-wrapper {
    padding: 0 0 50px 0;
}

.section-header {}


/* Catchup Page */

.channel-filter {
    padding: 50px;
    background: #efefef;
}

/* Search Page  */
.search-results-wrapper {
    padding: 0 0 100px 0;
}

#search-text-form {}

.search-section {
    display: none;
}

.error-message {
    flex-basis: 100%;
    text-align: center;
    padding: 50px 0;
}

.filter-search-text {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #1d2833;
}

.search_text {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.filter-search-text .submit_btn {
    color: #1d2833;
    text-transform: uppercase;
    font-size: 18px;
}

.filter-search-text .submit:hover {
    background-color: transparent;
    color: #1d2833;
    box-shadow: none !important;
    transform: none !important;
}

.search-input {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    position: relative;
}

.search-input input {
    /* width: 90% !important; */
    margin: 0 !important;
}

.search-input svg {
    display: none;
    position: absolute;
    right: 10px;
    top: 12px;
    z-index: 9;
}


/* Responsive Code */
/* Mobile */
@media only screen and (max-width: 680px) {

    header.page-header .page-header-flex {
        min-height: 275px;
    }

    header.page-header .page-header-flex .page-header-content {
        max-width: 75%;
        padding: 0 0 20px 0;
    }

    .events-by-week-header {
        flex-direction: column;
    }

    .video_archive .posts-wrapper,
    .event-date-wrapper,
    .filter-section,
    .event-meta {
        flex-direction: column;
    }

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

    #search_text {
        width: 14em;
    }

    .channel-header {
        align-items: flex-end;
        flex-direction: column;
    }

    .flex {
        flex-wrap: wrap;
    }

    .channel-terms .terms-list .term {
        margin-bottom: 5px;
    }

    .channel-terms .terms-list .term .term-link {
        padding: 4px 8px;
        font-size: 12px;
    }

    .single-event-wrapper .channel-terms .terms-list .term .term-link {
        font-size: 1.2em;
        padding: 8px 16px;
    }

    .title_block .play_icon {
        padding: 5px;
        margin-right: 5px;
        width: 50px;
    }

    .title_block .video_title {
        font-size: 14px;
        padding: 6px;
        line-height: 1.2em;
        font-weight: 600;
    }
}


/* Josie PD - CDP page  */

.cdp-wrapper {
    background: #e6e8ea;
    border: 5px solid #ccd500;
    padding: 30px;
}

.filter_form .selects {
    flex-basis: 40%;
}

.filter_form .button_submit {
    flex-basis: 20%;
}

.filter_form label {
    display: block;
}

.filter_form select {
    display: block;
    width: 100%;
}

.cdp-wrapper button:disabled,
.cdp-wrapper button[disabled],
.cdp-wrapper select:disabled,
.cdp-wrapper select[disabled],
.cdp-wrapper button:disabled:hover,
.cdp-wrapper button[disabled]:hover {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-wrapper {
    padding: 30px;
}

.results-wrapper h3 {
    font-family: "Work Sans";
    font-weight: 600;
    font-size: 1.5em;
    color: #ccd500;
}