/*
 Theme Name:   C4DT - Divi Child
 Description:  A child theme for Divi 3.0.66+
 Author:       Jorge Stamatio
 Author URI:   https://paperboy.ch
 Template:     Divi
 Version:      1.6.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Bitbucket Theme URI: https://bitbucket.org/jorge_stamatio/divi-c4dt
*/

/** Relatively position the logo **/
.et_header_style_left div.logo_container {
    position: relative;
    float: right;
    width: auto;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-right: 0px;
    padding-left: 0;
}

.et_hide_primary_logo #main-header div.logo_container {
    /*display: none;*/
}

/** On smaller screens, make sure the menu is on a new line below the logo */
#mega-menu-wrap-primary-menu {
    clear: both;
}

/** On wider screens, float the menu over to the right of the logo **/
@media only screen and (min-width: 980px) {
    #mega-menu-wrap-primary-menu {
        float: left;
        clear: none;
    }

    .et_fullwidth_nav #mega-menu-wrap-primary-menu {
        float: left;
        clear: none;
    }
}

/** Make menu full width when both logo is hidden and full width nav is enabled */
.et_fullwidth_nav.et_hide_primary_logo #main-header .container {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 1700px;
}

.et_fullwidth_nav #main-header .container {
    max-width: 1700px !important;
}

/** Display secondary menu on mobiles **/
#top-header #et-secondary-nav,
#top-header #et-secondary-menu,
#top-header {
    display: inline-block !important;
}

.pagination a{
    color: #fff !important;
    padding: 10px 8px;
    background: #faac71;
}

.grid--item { width: 100%; }

@media screen and (min-width:768px) {
    .grid--item {
        width: 50%;
    }
    .grid--item.type-post {
        width: 48%;
        margin: 1%;
    }
    .grid--item .event-card{
        overflow: hidden;
        min-height: 410px;
    }
}

@media screen and (min-width:1200px) {
    .grid--item {
        width: 33.3332%;
    }
    .grid--item .event-card{
        min-height: 410px;
    }
}

.clearfix::after {
    display: block;
    content: "";
    clear: both;
}

/*Customizer css*/
body:not(.home){
    margin-top: 100px;
}

#logo{
    max-height: none;
    width: 80px;
    margin-top: 0px;
    height: auto;
}

#footer-widgets{
    border-top: 5px solid #faac7b;
    background: #fff;
  padding: 20px;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item.mega-epfl-logo > a.mega-menu-link:hover{
    border-top: 3px solid transparent !important;
}

.top-container-left{
    display: none;
}

body:not(.et_pb_pagebuilder_layout) #main-content .container {
    padding-top: 60px !important;
}

@media all and (min-width: 981px){

    body:not(.et_pb_pagebuilder_layout) #main-content .container {
        padding-top: 100px !important;
    }

    .logo_container{
        padding-top: 30px !important;
    }
    #mega-menu-wrap-primary-menu #mega-menu-primary-menu li.epfl-logo a.mega-menu-link, #mega-menu-wrap-primary-menu #mega-menu-primary-menu li.epfl-logo:hover a.mega-menu-link{
        width: 70px !important;
    }
    #logo{
        max-height: none;
    width: 55px;
    margin-top: 0px;
    height: auto;
}
    #mega-menu-wrap-primary-menu{
        margin-left: 20px;
        width: auto !important;
    }

    .top-container-left{
        float: left;
        display: block;
        width: 70px;
        padding-top: 30px;
        margin-left: 30px;
    }

    #main-header .et_menu_container:before{
        content: " ";
        opacity: 0;
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 50px 50px 0 0;
        border-color: rgba(255,255,255,1) transparent transparent transparent;
        position: absolute;
        left: 0px;
        bottom: -50px;
        transition: opacity 0.3s ease-in-out;
    }

    #main-header.et-fixed-header .et_menu_container:before{
        opacity: 1;
    }

    h1.page-title{ padding-left: 20px; }

    .footer-widget{

    }
}

@media all and (min-width: 1200px){
    .logo_container{
        padding-top: 30px !important;
        margin-right: 30px;
    }
    #mega-menu-wrap-primary-menu #mega-menu-primary-menu li.epfl-logo a.mega-menu-link, #mega-menu-wrap-primary-menu #mega-menu-primary-menu li.epfl-logo:hover a.mega-menu-link,
    .top-container-left{
        padding-top: 18px;
        margin-left: 30px;
        width: 120px;
    }
    #logo{
        max-height: none;
    width: 100px;
    margin-top: 0px;
    height: auto;
    }
}


body:not(.et_pb_pagebuilder_layout) #page-container,
.et_pb_pagebuilder_layout.single-event{
    padding-top: 60px!important;
}


h1.page-title{
    margin-bottom: 40px;
}

#main-content,.et_pb_section{
    background: transparent;
}

#main-content{
    min-height: 70vh;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-flyout.menu-dropdown-large ul.mega-sub-menu{
    min-width: 280px;
}

.mega-sub-header.sub-header a.mega-menu-link{
    text-align: left !important;
    padding-left: 10px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: default !important;
}

body{
    margin-top: 0 !important;
}

body #main-header .container {
    background: rgba(255,255,255,0);
    transition: all 0.3s ease-in-out
}

body #main-header.et-fixed-header .container {
    background: rgba(255,255,255,1);
}

body #mega-menu-primary-menu > li > a.mega-menu-link{
/* color: #111; */
}

body #logo{
    filter: invert(1);
}


body,
body h1,
body h2,
body h3,
body h4,
body h5,
body p{
    color: #111 !important;
}

@media all and (max-width: 980px){
    .et_header_style_left div.logo_container {
        position: absolute;
        padding-top: 13px;
        z-index: 999;
        top: 0;
        left: 90px;
    }

    #logo{
        width: 100px;
    }

    #main-header .container {
        width: 100%;
        padding: 0 10px !important;
        background: #fff !important;
    }

    #main-header{
        background: #fff;
        position: fixed !important;
    }

    .top-container-left{
        display: block;
        width: 70px;
        padding-top: 10px;
        float: left;
    }

    #mega-menu-wrap-primary-menu .mega-menu-toggle.mega-menu-open + #mega-menu-primary-menu{
        max-height: 90vh;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15vh;
    }
}

#left-area{
    padding-left: 20px;
}

#main-header .container{
    background: rgba(0,0,0,0.5);
    padding: 0 0 0 20px;
}


#mega-menu-wrap-primary-menu .mega-menu-toggle .mega-toggle-block-1:after{
    color: #111;
}

#mega-menu-wrap-primary-menu {
    clear: none;
}

.home #logo{
    opacity: 1;
}

.equal-tabs.et_pb_tabs_vertically_stacked .et_pb_tabs_controls li {
    width: 50%;
      float: left;
}
@media screen and (max-width: 768px){
.equal-tabs.et_pb_tabs_vertically_stacked .et_pb_tabs_controls li {
    width: 100%;
}
}



.home #logo,
.home .et-fixed-header #logo{
    opacity: 1;
}

#main-content .container:before{
    display: none;
}

.et_pb_widget_area_left{
    border-right: none;
}

#top-header{
    display: none !important;
}

.news-article{
    min-width: 100%;
    padding: 5px 5px;
    background: rgba(255,255,255,0);
    border-top: 1px solid #444;
    margin: 0 0 0px 0;
}

.news-article.dark{
    color: #111;
    border-top: 1px solid #555;
}

.news-article.white{
    color: #111;
}

.news-article span{
    float: none;
}

.news-article:hover,
.event-card:hover,
.grid--item .event-card:hover,
.archive .hentry.event:hover,
.blog article.post:hover{
    background: rgba(0,145,170,0.1);
}

.news-article:hover a,
.event-card:hover a,
.grid--item .event-card:hover a,
.archive .hentry.event:hover a,
.blog article.post:hover a{
    color: #faac71 !important;
}

.category-links a{
    float: left;
    font-size: 14px;
    clear: both;
    padding: 5px 10px;
    background: transparent;
    margin: 0px 10px 10px 0px;
    color: #111;
/*  border: 1px solid transparent; */
    border-left: 19px solid #faac71;
    border-radius: 20px 0px 0px 20px;
    text-transform: uppercase;
    font-weight: 400;
}

.category-links a:hover{
    background: #faac71;
}

.category-links-v2 a{
    display: block;
    width: 100%;
    min-height: 130px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
  justify-content: center;
    float: left;
    background: rgba(0,145,170,0.5);
    color: #0091aa;
    padding: 20px 20px;
    text-align: center;
    margin: 0 5px 5px 0;
}

.category-links-v2 a{
    background: rgba(0,145,170,0.5);
    color: #111;
}

@media only screen and (min-width:600px) {
    .category-links-v2 a {
        width: calc(50% - 10px)
    }
}

.category-links-v2 a:hover {
    background: #faac71;
    color: #fff
}

.smallerText {
    font-size: 0.8em
}

.logos-mobile img {
    width: 50px;
    height: auto;
    margin: 5px 10px
}

.widget_search input#s,
.widget_search input#searchsubmit {
    background: transparent;
    border-radius: 0;
    border-color: #888
}

.widget_search input#s:focus {
    background: #333;
    color: #fff
}

body {
    background-image: none !important
}

body:after {
    display: block;
    position: fixed;
    content: ' ';
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    margin: 0;
    background: url(https://www.c4dt.org/wp-content/uploads/2018/12/bg-c4dt.png) bottom center no-repeat;
    -webkit-background-size: 117.5% auto;
    -moz-background-size: 117.5% auto;
    -o-background-size: 117.5% auto;
    background-size: 117.5% auto
}

@media only screen and (min-width:1363px) {
    body:after {
        display: none
    }

    body {
        background-image: url(https://www.c4dt.org/wp-content/uploads/2018/12/bg-c4dt.png) !important;
        background-size: auto !important;
        background-position: top center !important
    }
}

.single #main-content .container {
    padding-top: 70px !important
}

article .et_post_meta_wrapper img {
    max-width: 45%;
    float: left;
    margin: 0 30px 30px 0
}

.single article .entry-content {
    padding-top: 0
}

.page-id-1046 {
    background-image: none !important;
    background-color: #0091aa !important
}

.page-id-1046 #main-header .container {
    background: #0091aa;
    padding: 0 20px
}

.event-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box
}


.event-item {
    float: left;
    display: flex;
    overflow: hidden;
    width: 100%;
    margin: 0
}

@media screen and (min-width:768px) {
    .event-item {
        width: 50%;
        min-height: 420px
    }
}

@media screen and (min-width:1200px) {
    .event-item {
        width: 33.3333%
    }
}

.event-card {
    box-sizing: border-box;
    position: relative;
    background: rgba(0, 0, 0, .1);
    margin: 2px;
    padding: 1rem;
    float: left;
    width: 100%
}

.event-card {
    background: rgba(0, 0, 0, 0.1)
}

.event-card .event-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0 5px 0;
    display: block;
    clear: both
}

.type-event .event-date,
.type-event .event-type,
.event-card .event-date,
.event-card .event-type {
    color: #fff;
    width: auto;
    float: left;
    padding: 2px 0px;
    font-size: 12px;
    background: #111
}

.type-event .event-date.upcoming,
.event-card .event-date.upcoming{
    /*background: #faac71;*/
}

.home .event-card {
    margin-left: 0
}

.event-card.full-event-card{
    padding: 0 0 20px 0 !important;
    margin-bottom: 5px;
    overflow: hidden;
}

.upcoming-text{
    text-align: center;
    background: #faac71;
    color: #fff;
    font-size: 11px;
    padding: 0;
    text-transform: uppercase;
}

.home .event-card:last-child {
    margin-bottom: 15px
}

.home .event-card .event-date {
    clear: both
}

.event-status {
    color: #fff;
    background: #b77772;
    float: left;
    padding: 2px 5px;
    font-size: 15px
}

.event-status.upcoming {
    background: rgba(44, 151, 183, 0.82)
}

.home .event-card .event-title {
    clear: both;
    float: left;
    font-size: 16px;
    margin: 0
}

.event-item.Workshop .event-type {
    background: #0099a1
}

.event-card .event-type {
    text-align: right;
    border-left: 2px solid #444
}

.event-card .content {
    clear: both;
    float: left;
    margin: 10px 0 5px;
    line-height: 1.1em
}

.event-card .content h2,
.event-card .content h3 {
    font-size: 16px;
    line-height: 1.4em;
    font-weight: 400;
    text-transform: none;
    margin: 10px 0 10px
}

.event-card .content a {
    display: block;
    margin: 10px
}

.event-card .content a {
    margin: 15px 0 0 0;
    text-transform: uppercase;
    font-weight: 700
}

.archive article.event {
    background: rgba(220, 220, 220, 0.6);
    padding: 20px;
    margin-bottom: 10px
}

.blog .post{
    position: relative;
    overflow: hidden;
}

a.view-btn{
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    border-top: 1px solid #faac71;
    border-bottom: 0px solid #faac71;
    background: #faac71;
    color: #fff !important;
    opacity: 0;
    transform: translate3d(0,30px,0);
    transition: all 0.3s ease-in-out;
}

.blog .post:hover a.view-btn,
.event-card:hover a.view-btn{
    transform: translate3d(0,0,0);
    opacity: 1;
    color: #fff !important;
}

@media all and (min-width: 980px){
    .view-btn{
        position: absolute;
        bottom: 1px;
        left: 0;
        display: block;
        width: 100%;
        text-align: center;
        padding: 5px 0;
        border-top: 1px solid #faac71;
        border-bottom: 1px solid #faac71;
    }
}

@media (max-width:767px) {
    .archive article.event {
        margin-bottom: 10px
    }
}

@media all and (min-width:981px) {
    #left-area {
        width: 100% !important;
        padding-right: 0 !important
    }
}

.et_pb_post .entry-featured-image-url {
    display: block;
    position: relative;
    margin-bottom: 10px;
    height: 180px;
    overflow: hidden
}

.et_pb_post .entry-featured-image-url img{
    transition: transform 0.3s ease-in-out;
    transform: scale(1);
}

.et_pb_post:hover .entry-featured-image-url img{
    transform: scale(1.1);
}

.post.type-post{
    padding: 1.5em;
}

.blog .post.type-post{
    padding: 0;
}

.blog .post.type-post .entry-title,
.blog .post.type-post .post-meta,
.blog .post.type-post p{
    padding: 5px 15px !important;
}

.blog .post.type-post p{
    font-size: 13px;
    line-height: 1.6;
}

.post.type-post .entry-title{
    color: #faac71;
    text-transform: none;
    font-size: 1.4em;
    margin-bottom: 0.4em;
}

@media all and (min-width: 980px){
    body.blog:not(.single) .post.type-post{
        margin-bottom: 1em;
        width: 45%;
        margin-right: 1em !important;
        height: 680px !important;
        float: left;
    }
}

@media all and (min-width: 1200px){
    body.blog:not(.single) .post.type-post{
        width: 30%;
        height: 740px !important;
    }
}

.post-meta .published{
    background: #000;
    color: #fff;
    padding: 4px 6px;
}


@media all and (min-width: 1300px){
    .blog .post.type-post{
        margin-bottom: 1%;
        width: 31.66%;
        margin: 0.5%;
        height: 640px;
        float: left;
    }
}

body.category #page-container #left-area{
    width: 100%;
}

.category-description{
    font-size: 16px;
    padding: 15px;
/*  line-height: 1.6em; */
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

section.category-related-news,
section.category-related-events,
section.category-related-articles{
    width: 50%;
    float: left;
    margin: 40px 0;
    padding: 20px;
}

@media all and (min-width: 768px){
    .category-description{
        margin: 0 0 0 1em;
        max-width: 65%;
        font-size: 17px;
        line-height: 1.6em;
    }
    .category-description:before{
        display: block;
        content: ' ';
        width: 15vw;
        height: 30vw;
        background: rgba(255,255,255,0.2);
        position: absolute;
        right: 0;
        top: 20%;
        border-radius: 25vw 0 0 25vw;
    }
}

h3:before{
        display: block;
        content: ' ';
        width: 15px;
        height: 30px;
        left: 0;
        background: rgba(255,255,255,0.1);
        position: absolute;
        border-radius: 30px 0 0 30px;
    margin-left: -20px;
}

.et_pb_text_align_center h3:before,
h3:before{
    display: none;
}

.card-img{
    width: 100%;
    height: auto;
    display: block;
    float: left;
    margin-bottom: 10px;
    padding-bottom: 20px;
    background: rgba(0,0,0,0.1);
}

.card-img .thumb .thumb{
    position: relative;
    width: 30%;
    height: auto;
    margin: 0 0 20px 0;
    padding: 0;
}

@media all and (min-width: 768px){
    .card-img{
                    background: rgba(0,0,0,0);
        width: 30%;
        height: 340px;
                padding-bottom: 0px;
                margin-bottom: 0px;
    }
    .card-img .thumb .thumb{
        position: relative;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        margin: 10px auto;
        padding: 0;
    }
}
@media all and (min-width: 1100px){
    .card-img{
        width: 25%;
    }
}

.card-img>a{
    display: block;
    margin: 0 4px 4px 0;
    padding: 15px 20px 0;
}

.card-img .name{
    margin: 0 auto;
    color: #111;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.card-img img{
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    -webkit-filter: sepia(100%) grayscale(100%);
    filter: sepia(100%) grayscale(100%);
}

.card-img .thumb .thumb:after{
    position: absolute;
    top: 0;
    left: 0%;
    content: "";
    background: rgba(44, 151, 183, 1);
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.card-img .card-img_name{
        font-weight: bold;
    font-size: 14px;
    margin: 10px auto;
    display: block;
/*  height: 80px; */
    overflow: hidden;
    text-align: left;
    line-height: 18px;
}

.linked-in-url{
    padding: 0 0 0 20px;
}

.card-img .card-excerpt{
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 16px;
}

.time_of_event{
    display: block;
    clear: both;
    font-size: 13px;
    color: #444;
}

.et-pb-contact-message{

}

.et-pb-contact-message p{
    background: rgba(0,145,170,0.38);
    padding: 15px !important;
    color: #fff !important;
}

.pagination{
    margin-top: 20px;
}

.pagination a{
    color: #fff !important;
    padding: 10px 8px;
    background: #faac71;
}

.grid--item{
    padding: 0 0 0 0;
    margin-bottom: 10px;
}

@media screen and (min-width:768px) {
    .grid--item{
        padding: 0 20px 0 2px;
        margin-bottom: 10px;
    }
}

.grid--item .event-card{
    background: transparent;
    display: block;
    padding: 0;
    margin: 0;
    width: 100% !important;
    min-height: 420px;
}

.grid--item .event-card:hover a h3.event-title{
    color: #faac71 !important;
}

.event-card .event-content{
    padding: 0 20px;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.event-card h3.event-title{
    font-size: 17px;
    line-height: 1.3;
}

.type-event .event-type,
.event-card .event-type{
    background: rgba(69, 139, 166, 0.84);
}

.filter-button-group{
    padding: 10px 0 20px;
}

.type-event .event-info{
    max-width: 390px;
    margin-left: -19px;
    margin-top: -19px;
    margin-bottom: 10px;
}

.type-event .event-date,
.event-card .event-date{
    float: left;
    text-align: center;
    width: 55%;
}

.type-event .event-type,
.event-card .event-type{
    float: left;
    text-align: center;
    width: 45%;
}

.event-archive-btn{
    float: right;
    margin-bottom: 20px;
    margin-right: 20px;
}

a.btn{
    background: #faac71;
    border: 2px solid #faac71;
    padding: 5px 7px;
    font-size: 14px;
    color: #fff !important;
}

a.btn.btn-blue{
    border: none;
}

button{
    background: transparent;
    border: 2px solid #faac71;
    padding: 5px 7px;
    font-size: 14px;
    color: #111 !important;
}

button.is-checked{
    color: #fff !important;
    background: #faac71;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link:after{
    content: " ";
    display: block;
    position: absolute;
    top: 0em;
    width: 7px;
    height: 6px;
    background: red;
    opacity: 0;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: opacity .3s;
    transition: opacity .3s;
}

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link:after,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link:hover:after{
    opacity: 1;
}



/* Wp Navi */

#loopage_pagination{
padding: 10px 0;
}

@media all and (max-width: 980px){
#loopage_pagination{
    text-align: center;
} 
}

#loopage_pagination .page-numbers{
display: inline-block;
width: 35px;
height: 40px;
line-height: 36px;
text-align: center;
border: 2px solid #faac71;
background: transparent;
color: #111;
margin-right: 3px;
}

#loopage_pagination .page-numbers.dots{
background: transparent;
border: none;
line-height: 40px;
width: 5px;
opacity: 0;
}

#loopage_pagination .page-numbers:hover,
#loopage_pagination .page-numbers.current,
.post_type_btn .btn.active,
.post_type_btn .btn:hover{
background: #faac71;
color: #fff !important;
}

.post_type_btn{
padding: 5px;
margin-bottom: 10px;
}

.post_type_btn .btn{
white-space: nowrap;
display: block;
float: left;
margin: 0 4px 4px 0;
background: transparent;
color: #111 !important;
}

@media all and (min-width: 1300px){
.blog .post.type-post{
    height: auto;
    min-height: 690px;
    padding-bottom: 40px;
}
}