/*
 Theme Name:    Faith Child
 description: >-
   A child theme of the Faith WordPress theme
 Author:       Christopher Gamage
 Template:     faith
 Version:      1.0.0
*/



/****** custom theme styling and overrides *********/

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: white;
}

.ilovewp-posts-archive .post-meta a, .ilovewp-page-intro .post-meta a {
	color: #1e74a9 !important;
}

.site-header .site-branding {
    display: inline-block;
    margin-right: auto;
    padding: 10px 0;
    text-align: center;
    vertical-align: middle;
    width: 30%;
}

.site-title {
    display: none !important;
}

.site-description {
    text-align: center;
}

.sf-menu .current-menu-item > a, .sf-menu .sfHover > a, .sf-menu a:hover, .sf-menu a:active, .sf-menu a:focus {
    color: #4179ea;
}

#ilovewp-hero {
    background-color: transparent;
}

#ilovewp-hero a:hover {
    color: #1e74a9 !important;
}

#ilovewp-home-welcome {
    background-color: #f4f4f4;
}

#ilovewp-hero a:hover {
    color: #1e74a9 !important;
}

.display-none {
	display: none !important;
}

.sf-arrows .sf-with-ul:after {
    content: "\f347";
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font: normal 12px/16px 'dashicons';
    vertical-align: top;
    margin: 0 0 0 4px;
    transition: all .25s;
}

.wp-block-column {
    text-align: center;
}

.wp-block-button {
    color: #111;
    display: inline-block;
	margin-top: 25px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
}

.wp-block-button a:hover {
    color: #1e74a9 !important;
}

.page-has-frame .site-content-wrapper {
    background-color: #fff;
    margin-top: -120px;
    padding: 60px;
    position: relative;
    z-index: 100;
    -webkit-box-shadow: 0 0 40px rgba(0,0,0,.1);
    -moz-box-shadow: 0 0 40px rgba(0,0,0,.1);
    box-shadow: 0 0 40px rgba(0,0,0,.5);
}

.content-home .title-page{
    display:none;
}

.ilovewp-page-intro .title-page {
    text-align: center;
}

.ilovewp-page-inner {
    padding-bottom: 0px !important;
}

@media screen and (max-width: 768px) {

    .site-content-wrapper {
        margin-top: auto !important;
        padding: 10px !important;
    }

}

.post-single h1, .post-single h2, .post-single h3, .post-single h4, .post-single h5, .post-single h6 {
    font-weight: 700;
    margin: 1em 0 1em;
    line-height: 1.25em;
}

/****** temporary column content until blog has posts *********/

.ilovewp-column-2 {
    display: none !important;
}

/****** leadership page *********/

#leadership-content, #programs-content {
    display: inline;
    float: right;
    width: 100%;
}

.flex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media screen and (max-width: 768px) {

    #leadership-content {
        padding: 15px !important;
    }

}

/****** bio cards *********/

.bio-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    perspective: 800px;
    font-size: 24px;
    transition: transform .3s;
    transform: translateZ(0);
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    border-top: #f87277 solid 2px;
    border-bottom: #f87277 solid 2px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}

.bio-card * {
    box-sizing: border-box;
}
  
.bio-card:hover, .bio-card:active {
    transform: translateY(-.5em) translateZ(0);
}

.bio-card::before {
    content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;    
    box-shadow: 0 10px 50px 0 rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity 500ms;
}

.bio-card:hover::before {
    opacity: 1;
}    

/*social links area*/
/*.bio-card:hover .bio, .bio-card:active .bio {
    transform: translateY(-3em) translateZ(0);
}*/
    
.bio-card:hover .links, .bio-card:active .links {
    transform: rotateX(0deg);
    background: white;
}

.bio-card .bio {
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1em;
    padding-top: 2em;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    background: white;
    font-size: .625em;
    line-height: 160%;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    transition-duration: .3s;
    transition-property: transform;
}

.bio-card .bio h1,
.bio-card .bio h2,
.bio-card .bio p {
    
}
    
.bio-card .bio h1,
.bio-card .bio h2 {
    margin: 0;
    line-height: 140%;
    font-weight: 900;
}
    
.bio-card .bio h1 {
    font-size: 1.375em;
}
    
.bio-card .bio h2 {
    font-size: 1em;
}
    
.bio-card .bio img {
    display: block;
    width: 200px;
    margin: 0 auto;
    margin-top: .725em;
    margin-bottom: .725em;
}
    
.bio-card .bio a {
    text-decoration: none;
    color: #120759;
    transition: .3s color;
}

.bio-card .bio a:hover {
    color: #27589A;
}      
  
.bio-card .links {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 50px;
    text-align: center;
    margin: 0;
    padding: 5px;
    background: #FFAE66;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    transform-origin: 50% 0%;
    transform: rotateX(-90deg) translateZ(0);
    transition-duration: .3s;
    transition-property: background transform;
}
  
.bio-card li {
    display: inline-block;
    vertical-align: middle;
    width: 20%;
    list-style: none;
    text-align: center;
}
  
.bio-card li a {
    display: block;
    width: 100%;
    height: 1em;
    padding: .5em 0;
    color: #222;
    transition-duration: .5s;
    transition-property: background;
}   

.bio-card li a:hover {
    background: #EEE;
}

.bio-content-wrapper{
    background-color: #fff;
    padding: 60px;
    position: relative;
    -webkit-box-shadow: 0 0 40px rgba(0,0,0,.1);
    -moz-box-shadow: 0 0 40px rgba(0,0,0,.1);
    box-shadow: 0 0 40px rgba(0,0,0,.5);
}

@media screen and (max-width: 768px) {

    .bio-content-wrapper {
        padding: 15px !important;
    }

}

.single-bio-wrapper {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/********Services Page********/
/*.accordion {
    width: 100%;
    max-width: 1080px;
    height: 250px;
    overflow: hidden;
    margin: 50px auto;
}

.accordion ul {
    width: 100%;
    display: table;
    table-layout: fixed;
    margin: 0;
    padding: 0;
}

.accordion ul li {
    display: table-cell;
    vertical-align: bottom;
    position: relative;
    width: 16.666%;
    height: 250px;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 500ms ease;
}

.accordion ul li div {
    display: block;
    overflow: hidden;
    width: 100%;
}

.accordion ul li div a {
    display: block;
    height: 250px;
    width: 100%;
    position: relative;
    z-index: 3;
    vertical-align: bottom;
    padding: 15px 20px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none !important;
    font-family: Open Sans, sans-serif;
    transition: all 200ms ease;
}

.accordion ul li div a * {
    opacity: 0;
    margin: 0;
    width: 100%;
    overflow-wrap: break-word;
    position: relative;
    z-index: 5;
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    -webkit-transition: all 400ms ease;
    transition: all 400ms ease;
}

.accordion ul li div a h2 {
    text-overflow: clip;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.accordion ul li div a p {
    font-size: 13.5px;
    font-style: italic;
}

.accordion ul li:nth-child(1) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/gift-project.jpg');
}

.accordion ul li:nth-child(2) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/car-project.jpg');
}

.accordion ul li:nth-child(3) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/view-project.jpg');
}

.accordion ul li:nth-child(4) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/heat-project.jpg');
}

.accordion ul li:nth-child(5) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/individualized-coaching.jpg');
}

.accordion ul li:nth-child(6) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/aha-project.jpg');
}

.accordion ul li:nth-child(7) {
    background-image: url('http://the2ndchanceproject.org/wp-content/uploads/2020/06/icp-project.jpg');
}

.accordion ul:hover li, .accordion ul:focus-within li {
    width: 8%;
}

.accordion ul li:focus {
    outline: none;
}

.accordion ul:hover li:hover, .accordion ul li:focus, .accordion ul:focus-within li:focus {
    width: 60%;
}

.accordion ul:hover li:hover a, .accordion ul li:focus a, .accordion ul:focus-within li:focus a {
    background: rgba(0, 0, 0, .4);
}

.accordion ul:hover li:hover a *, .accordion ul li:focus a *, .accordion ul:focus-within li:focus a * {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.accordion ul:hover li {
    width: 8%;
}

.accordion ul:hover li a * {
    opacity: 0;
}

.accordion ul:hover li:hover {
    width: 50%;
}

.accordion ul:hover li:hover a {
    background: rgba(0, 0, 0, .4);
}

.accordion ul:hover li:hover a * {
    opacity: 1 !important;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

@media screen and (max-width: 600px) {
    
    body {
        margin: 0;
    }
    
    .accordion {
        height: auto;
    }

    .accordion ul li div a h2 {
        text-overflow: clip;
        font-size: 15px;
        color: #fff;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .accordion ul li div a p {
        font-size: 12px;
        font-style: italic;
    }

    .accordion ul li, .accordion ul:hover li, .accordion ul li:hover, .accordion ul:hover li:hover {
        position: relative;
        display: table;
        table-layout: fixed;
        width: 100%;
        -webkit-transition: none;
        transition: none;
    }

}*/

/********Programs Page********/
.transition ul li i:before, .transition ul li i:after, .transition ul li p {
  transition: all 0.25s ease-in-out;
}

.flipIn ul, .flipIn li, .flipIn h1 {
  animation: flipdown 0.5s ease both;
}

.no-select, h2 {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#programs {
  min-height: 0;
  display: inline-block;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
  max-width: 650px;
  padding: 30px;
}

@media (max-width: 550px) {
  #programs {
    box-sizing: border-box;
    transform: translate(0, 0);
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    left: 0;
  }
}

#programs .accordion h1 {
  text-transform: uppercase;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 3px;
  font-weight: 100;
}

#programs .accordion h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 300;
  letter-spacing: 1px;
  display: block;
  margin: 0;
  cursor: pointer;
}

#programs .accordion ul li p {
  color: rgba(48, 69, 92, 0.8);
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  max-height: 800px;
  opacity: 1;
  transform: translate(0, 0);
  margin-top: 14px;
  z-index: 2;
}

.display-none {
	display: none !important;
}

#programs .accordion ul {
  list-style: none;
  perspective: 900;
  padding: 0;
  margin: 0;
}
#programs .accordion ul li {
	list-style: none;
  position: relative;
  padding: 0;
  margin: 0;
  padding-bottom: 4px;
  padding-top: 18px;
  border-top: 1px dotted #ff6873
}
#programs .accordion ul li:nth-of-type(1) {
  animation-delay: 0.5s;
}
#programs .accordion ul li:nth-of-type(2) {
  animation-delay: 0.75s;
}
#programs .accordion ul li:nth-of-type(3) {
  animation-delay: 1s;
}
#programs .accordion ul li:nth-of-type(4) {
  animation-delay: 1.25s;
}
#programs .accordion ul li:nth-of-type(5) {
  animation-delay: 1.5s;
}
#programs .accordion ul li:nth-of-type(6) {
  animation-delay: 1.75s;
}
#programs .accordion ul li:nth-of-type(7) {
  animation-delay: 2s;
}
#programs .accordion ul li:last-of-type(8) {
	animation-delay: 2.25s;
  	padding-bottom: 0;
}
ul li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 16px;
  right: 0;
}
#programs .accordion ul li i:before, #programs .accordion ul li i:after {
  content: "";
  position: absolute;
  background-color: #ff6873;
  width: 3px;
  height: 9px;
}
#programs .accordion ul li i:before {
  transform: translate(-2px, 0) rotate(45deg);
}
#programs .accordion ul li i:after {
  transform: translate(2px, 0) rotate(-45deg);
}
#programs .accordion ul li input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 60px;
  z-index: 1;
  opacity: 0;
}
#programs .accordion ul li input[type=checkbox]:checked ~ p {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translate(0, 50%);
}
#programs .accordion ul li input[type=checkbox]:checked ~ .wpforms-container {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translate(0, 50%);
}
#programs .accordion ul li input[type=checkbox]:checked ~ i:before {
  transform: translate(2px, 0) rotate(45deg);
}
#programs .accordion ul li input[type=checkbox]:checked ~ i:after {
  transform: translate(-2px, 0) rotate(-45deg);
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}

/********Contact Page********/

div.wpforms-container-full .wpforms-form textarea {
    max-width: 100%;
}

/********Events Page********/

.tribe-events .tribe-events-l-container {
	background-color: #fff;
	margin-top: 60px;
}

#tribe-events-content {
    margin-top: 60px;
    background-color: white;
	padding: 60px;
}

.single-tribe_events .tribe-events-content {
	text-align: left;
}

.single-tribe_events .tribe-events-event-image {
	text-align: center;
}

 