/*---------------------------------------------------------------------------------
Theme Name:   Calvin Center
Theme URI:
Description:  Calvin Center
Theme
 Author:       fuseStarter
Author URI:   https://fusestarter.com
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
 License
URI:  http://www.gnu.org/licenses/gpl-2.0.html
------------------------------ ADDITIONAL CSS HERE ------------------------------*/

/* ###Core Elements### */
.fs-margin-auto {
    margin:auto;
}

.cc-cta-button {
    position: relative;
}

.cc-cta-button .et_pb_promo_button {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 20px;
}

/*---
The Calvin Center Colour Quote]
---*/
.colour-wrap {
  margin: 60px 20px 20px -10%;
}
blockquote.colour-quote p {
  font-size: 22px;
  line-height: 35px;
  font-style: italic;
  letter-spacing: 1px;
  color: #666;
  font-weight: 300;
  margin-top: -50px;
}
blockquote.colour-quote {
  position: relative;
  border-left: none;
}
/*Quotation Mark*/
blockquote.colour-quote:before {
  content: "\201C";
  font-size: 175px;
  font-family: 'Alegreya', serif;
  background: -webkit-linear-gradient(180deg, #50C878 60%, #2E8B57 40%);/*Change the Colours here*/
  -webkit-background-clip: text;
  color: transparent;
}
/*Author*/
.colour-author {
  padding-left: 20px;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1em;
}
/*Source or Organisation*/
.colour-org {
  padding-left: 20px;
  font-size: 12px;
  font-style: italic;
  line-height: 1em;
}

/* ###Text Elements### */
h1, h2, h3, h4, h5, h6, a {
    overflow-wrap: normal;
}

/* ###Header and Nav Elements### */

.et_mobile_menu li a, .nav li li a {
    font-size: 18px!important;
}

.mega-link > a {
    text-align: center;
    font-size: 16px !important;
    text-transform: uppercase;
}
 
.mega-link > a img {
    margin-bottom: 8px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
 
}

/***
Top Nav Shadow
*/
#main-header {
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.15)!important;
}

/* ###Events Elements### */

.tribe-events-pg-template{
    height: 100vh;
}

ul.ecs-event-list{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style: none;    
}

li.ecs-event {
    display: flex;
    flex-direction: column;
    flex:1;
    margin: 10px;
}

.entry-title{
    font-size: 1.4em;
    font-weight: bold;
}

.entry-title a:hover{
    color: #c00;
}

.ecs-excerpt{}

.ecs-event span.time{
    text-transform: uppercase;
    font-size: 0.9em;
}

.ecs-event img {
    width: 100% !important;
}

.ecs-all-events {
    margin: auto;
    text-align: center;
    padding: 20px;
    display: block;
    width: 50%;
    text-transform: uppercase;
}

#tribe-events .tribe-events-button, .tribe-events-button {
    padding: 10px 20px !important;
    border-radius: 0px !important;
    text-transform: uppercase !important;
}

h3.tribe-events-list-event-title a {
    font-size: 1.8em !important;
    text-transform: uppercase !important;
    font-weight: 800;
}

/*Side List Styles*/
.fs-event-list ul.ecs-event-list{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    list-style: none;
    
}
.fs-event-list li.ecs-event {
    display: flex;
    flex-direction: column;
    margin: 10px;
}
.entry-title{
    font-size: 1.4em;
    font-weight: bold;
    text-transform: uppercase;
    color: #bd2128!important;
}
.entry-title a:hover{
    color: #c00;
}

/* ###Divi Elements### */
.person-number .percent-value:after { 
    content:'/person';font-size: 10px;
}

.et_pb_button {
    box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.1);
}

.et_pb_button:hover {
    box-shadow: 0px 0px 5px 0px rgba(100,100,100,0.2);
    cursor: pointer;
}

/***
Blurbs
*/
.fs-blurb-effect-1 > .et_pb_blurb_description {
    display: none;
}

.et_pb_blurb:hover > .et_pb_blurb_description {
    display: flex;
    cursor: pointer;
}

.et_pb_blurb:hover > .et_pb_module_header {
    display: none;
    cursor: pointer;
}

.host-blurbs .et_pb_blurb_description a {
    padding: 4px 20px; 
    border: 1px solid #50c878; 
    color: #50c878;
    margin-top: 20px;
}
.host-blurbs .et_pb_blurb_description a:hover {
    color: #0b6623;
    border-color:#0b6623;
}


/* ######Mobile Styles###### */
@media (max-width: 1280px){
    #et_mobile_nav_menu {
        display: block !important;
    }
    #top-menu {
        display: none!important;
    }
    .mega-link > a img {
        display: none !important;
        margin-bottom: 0px !important;
    }
}

@media (min-width: 981px){
    .cc-gallery-three .et_pb_gallery_item {
        width: 33.33% !important; /*six columns*/
        clear: none !important;
    }
}

@media (max-width: 980px){
    .host-blurbs .et_pb_blurb_description a {
        padding: 4px 20px; 
        border: none !important;
        color: #50c878;
        margin-top: 20px;
    }
    
    .flex-columns .et_pb_row {
        display: flex; }
    
    .flex-columns.twobytwo .et_pb_row {
        display: flex; }
    
    .flex-columns.twobytwo .et_pb_row {
        flex-wrap: wrap; }
    
    .flex-columns.twobytwo .et_pb_row .et_pb_column {
        width: 50% !important; }

    .cc-gallery-three .et_pb_gallery_item {
        width: 33.33% !important; /*four columns*/
        clear: none !important;
    }

}

@media (max-width: 767px){
    .cc-gallery-three .et_pb_gallery_item {
        width: 50% !important; /*three columns*/
        clear: none !important;
    }
}

@media all and (min-width: 700px) {
    .colour-wrap {
        float: left;
        margin: 20px 20px 20px -10%;
    }
    
    blockquote.colour-quote {
        padding: 10px 20px;
        max-width: 35vw;
    }
    
    .cc-staff-image-alignment .et_pb_team_member_image {
        text-align: left !important;
    }
}

@media (max-width: 479px) {
    .flex-columns.twobytwo .et_pb_row {
        flex-wrap: wrap; 
    }
    
    .flex-columns.twobytwo .et_pb_row .et_pb_column {
        width: 50% !important; 
    }
    
    .cc-gallery-three .et_pb_gallery_item {
        width: 50% !important; /*two columns*/
        clear: none !important;
    }
}