/*
Theme Name: Codex
Theme URL: https://codex.com
Description: Sage child theme
Author: Codex
Author URL: https://codex
Template: sage
Version: 1.0.0
Text Domain: cdx
*/ 

/* Home hero (when not carousel)*/
.home-hero .item{
    height: 500px;
    position: relative;
}
@media(min-width: 1200px){
    .home-hero .item{
        height: 620px;
    }
}
.home-hero .item:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    top: 0;
    left: 0;
    opacity: .25;
    z-index: 0;
}
.home-hero .info-wrap{
    position: relative;
    z-index: 1;
    max-width: 525px;
    margin: auto;
    color: #fff;
    padding-top: 10%;
}
.home-hero .info-wrap .event-text>h2{
    font-size: 35px;
    line-height: 39px;
    font-weight: 600;
    color: #fbfbfb;
}
.home-hero .info-wrap .event-text>p{
    color: #fbfbfb;
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 22px;
}
.home-hero .info-wrap .event-tickets{
    float: left;
    width: 50%;
    padding-left: 20px;
}
.home-hero .sold-wrap {
    background: url('/wp-content/themes/sage/dist/images/sold_out.png') no-repeat;
    height: 150px;
    width: 185px;
    position: absolute;
    z-index: 100;
    background-size: contain;
    right: 50px;
    top: 50px;
    z-index: 10;
}

@media(max-width: 992px){
    .home-hero .item{
        height: 350px;
    }
    .home-hero .info-wrap{
        max-width: 400px;
        padding: 90px 20px 20px 20px;
    }
    .home-hero .info-wrap .event-text>h2{
        font-size: 21px;
        line-height: 23px;
    }
    .home-hero .info-wrap .event-text>p{
        font-size: 15px;
        line-height: 21px;
    }
    .home-hero .coming-soon-wrap{
        width: 100px!important;
        top: 20px!important;
        right: 20px!important;
    }
    .home-hero .sold-wrap {
        width: 100px;
        top: 13px;
        right: 13px;
    }
}
/* End Home hero (when not carousel)*/

/* Events screens */

.single-post #event-info,
.page-template-template-event #event-info
{
    font-size: 16px
}

.event-program-button{
    color: #fff;
    position: relative;
    top: -14px;
    font-size: 20px;
    margin-bottom: 12px;
}

.event-program-button:focus, .event-program-button:visited{
    color: #fff;
}
.event-program-button:hover{
    color: #c1001f;
}

.event-program-button .fa{
    font-size: 30px;
    margin-right: 12px;
    position: relative;
    top: 2px;
}

.event-schedule__program{
    float: right;
    position: relative;
    top: -25px;
}

.attend2event-wrap button, .attend2event-wrap a {
    width: 175px;
    display: inline-block;
    max-width: 175px;
}

/* some javascript is adding display block to links in the event desc, this is a quick fix */
#event-info a{
    display: inline-block!important;
    width: auto!important;
}

#event-info a:hover{
    color: #c1001f;
    text-decoration: underline;
}

/** coming soon badge (similarly to sold out badge)**/
.main-event-wrap .main-event .main-event-bg .coming-soon-wrap {
    background: url(/wp-content/themes/sage/dist/images/coming_soon.png) no-repeat;
    height: 100px;
    width: 123px;
    position: absolute;
    z-index: 100;
    background-size: contain;
    right: 0;
    top: 175px;
}

#owl-demo .coming-soon-wrap, .home-hero .coming-soon-wrap {
    background: url(/wp-content/themes/sage/dist/images/coming_soon.png) no-repeat;
    height: 150px;
    width: 185px;
    position: absolute;
    z-index: 100;
    background-size: contain;
    right: 50px;
    top: 50px;
    z-index: 10;
}

.main-event-wrap .main-event .multiple-event .tab-content .inner-tab.coming_soon{
    position: relative;
}

.main-event-wrap .main-event .multiple-event .tab-content .inner-tab.coming_soon:before{
    content: "";
    background: url(/wp-content/themes/sage/dist/images/coming_soon.png) 100% no-repeat;
    height: 80px;
    width: 100px;
    position: absolute;
    right: 15px;
    background-size: contain;
    top: 20px;
    z-index: 1;
}

@media(min-width:769px){
    /* fix for blancpain logo */
    .event-sponsors .owl-carousel .owl-item:nth-child(2) img{
        width: 188px;
        position: relative;
        left: 24px;
    }

    
}
/* fix for imcrc logo */
.event-sponsors .owl-carousel .owl-item:nth-child(3) img{
    width: 170px;
    position: relative;
    top: 9px;
    left: 46px;
}
@media(max-width: 768px){
    .event-sponsors .owl-carousel .owl-item:nth-child(3) img{
        width: 155px;
        left: 0;
        top: 0;
    }   
}

/** end coming soon badge **/

/* End Events screens */

/** Share icon for whatsapp **/
.apss-whatsapp .apss-icon-block {
    background-color: #41D03F;
}

.apss-whatsapp a:hover .fa {
    color: #41D03F;
}
/** end Share icon for whatsapp **/

.grecaptcha-badge{
    opacity: 0!important;
}


/** Nominate speaker form **/
.nominate-tech-sector p{
    margin-bottom: 0px;
}
.nominate-tech-sector small{
    margin-bottom: 10px;
    display: block;
}
.nominate-tech-sector .wpcf7-form-control-wrap{
    margin-bottom: 16px;
    display: block;
}
.nominate-tech-sector .wpcf7-form-control-wrap .wpcf7-list-item{
    display: block;
}
.nominate-tech-sector .wpcf7-form-control-wrap .wpcf7-list-item .wpcf7-list-item-label{
    font-weight: 300;
    font-size: 13px;
    position: relative;
    top: -1px;
}
/** End Nominate speaker form **/


/** Contact form 7 general **/
.wpcf7 form.sent .wpcf7-response-output{
    border: none;
    font-weight: bold;
}

/** End Contact form 7 general **/

/** homepage blancpain watches**/
.banner_watch{position:relative;width:100%;margin:auto}
.banner_watch img{position:absolute;top:0;left:0;width:100%;height:auto;z-index:0}
.banner_watch canvas{border-radius:0!important;box-shadow:none!important;position:relative}
.banner_watch canvas,.banner_watch img{margin-left:5%}
@media (max-width:767px){.banner_watch{max-width:125px}.banner_watch+.time-info{margin-bottom:50px}}
/** end homepage blancpain watches**/

/** homepage fix for first sponsor logo **/
#sponsors.home-section .owl-carousel .owl-item:first-child img{
    width: 146px;
    position: relative;
    left: 53px;
    top: 15px;
}

@media(max-width: 767px){
    #sponsors.home-section .owl-carousel .owl-item:first-child img{
        left: 25px;
    }
}
@media(max-width: 479px){
    #sponsors.home-section .owl-carousel .owl-item:first-child img{
        left: 0;
    }
}

/** Homepage owl carousel fixes **/

#owl-demo .info-wrap{
    top: 40%;
}
#owl-demo .info-wrap .event-actions .btn{
    max-width: 175px;
    float: none!important;
}

#owl-demo .info-wrap .event-text{
    padding-right: 20px;
}


#owl-demo .info-wrap .event-actions{
    text-align: left;    
}

#owl-demo .info-wrap .event-tickets{
    display: block;
}


@media screen and (max-width: 1440px){
    #owl-demo .info-wrap {
        top: 37%;
    }
}

@media(max-width:1255px){
    #owl-demo .info-wrap .event-actions .btn{
        float: left!important;
    }
}

@media(max-width: 767px){
    #owl-demo .info-wrap .event-actions{
        text-align: right;
        max-width: 370px;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
}
@media(max-width: 430px){
    #owl-demo .info-wrap{
        top: 20%!important;
    }
    #owl-demo .info-wrap .event-actions{
        text-align: center;
    }
    #owl-demo .info-wrap .event-actions .btn{
        float: none!important;
        margin: 0 0 6px 0;;
    }
    #owl-demo .info-wrap .event-tickets{
        display: block;
        text-align:center;
    }
}


/** End Homepage owl carousel fixes **/


/** twitter-x-logo as svg (avoiding to update fontawesome to v6 as it will break a lot of things)**/
.twitter-x-logo svg {
    width: 12px;
    height: 16px;
    position: relative;
    top: 3px;
}
.twitter-x-logo svg path {
    fill: white;
    transition: fill 400ms ease-in-out;
}
.twitter-x-logo:hover svg path {
    fill: #c1001f;
}

/* social share sidebar on single post */
.sidebar .social-menu  .twitter-x-logo svg{
    width: 13px;
    height: 14px;
    position: relative;
    top: 0;
}
.sidebar .social-menu  .twitter-x-logo svg path {
    fill: #6a6a6a;
}
.sidebar .social-menu  .twitter-x-logo:hover svg path {
    fill: #c1001f;
}
/* end social share sidebar on single post */

/* AccessPress social share plugin style replaced twitter logo  */
.apss-twitter.apss-single-icon .apss-icon-block{
    background-color: #000;
}

.apss-twitter.apss-single-icon .apss-icon-block .twitter-x-logo { 
    position: absolute;
    right: 12px;
    top: 7px;
    z-index: 1;
}

.apss-twitter.apss-single-icon a:hover .twitter-x-logo svg path{
    fill: #000;
}
/* End AccessPress social share plugin style replaced twitter logo  */

/** twitter-x-logo as svg **/


