/** 3D-FLIPPING CARD EFFECT **/
.custom-flipping-cards .flipping-card {
  display: inline-block;
  width: 15%;
  margin: 0 15px 0 0;
}
@media (max-width: 980px) {
  .custom-flipping-cards .flipping-card {
    width: 30%;
  }
}
@media (max-width: 768px) {
  .custom-flipping-cards .flipping-card {
    width: 45%;
  }
}
@media (max-width: 680px) {
  .custom-flipping-cards .flipping-card {
    width: 80%;
  }
}
.custom-flipping-cards .flipping-card:first-child {
  margin-left: 0;
}
.custom-flipping-cards .flipping-card:last-child {
  margin-right: 0;
}

.five-three-two-one-blocks-row {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.five-three-two-one-blocks-row >.item {
  background: white;
  -ms-flex-preferred-size: 30%;
  flex-basis: 18%;
  padding: 1%;
}
@media (max-width: 1200px) {
  .five-three-two-one-blocks-row {
    width: 100%;
  }
  .five-three-two-one-blocks-row >.item {
    -ms-flex-preferred-size: 31%;
    flex-basis: 31%;
  }
}
@media (max-width: 850px) {
  .five-three-two-one-blocks-row >.item {
    -ms-flex-preferred-size: 48%;
    flex-basis: 48%;
  }
}
@media (max-width: 576px) {
  .five-three-two-one-blocks-row >.item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    padding: 15px 0;
  }
}
.three-two-one-blocks-row {
  max-width: 1000px;
  width: 75%;
  margin: 0 auto;
}
.three-two-one-blocks-row >.item {
  background: white;
  -ms-flex-preferred-size: 30%;
  flex-basis: 30%;
  padding: 1.5%;
}
@media (max-width: 1200px) {
  .three-two-one-blocks-row {
    width: 100%;
  }
  .three-two-one-blocks-row >.item {
    -ms-flex-preferred-size: 47%;
    flex-basis: 47%;
  }
}
@media (max-width: 576px) {
  .three-two-one-blocks-row >.item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    padding: 15px 0;
  }
}


.fc-container{
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
	-webkit-perspective: 1000px;
	        perspective: 1000px;
}

.front,
.back{
  background-size: cover;
	background-position: center;
	-webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
	-webkit-backface-visibility: hidden;
	        backface-visibility: hidden;
	text-align: center;
	min-height: 300px;
	height: auto;
	color: #fff;
  background-color: #0A024B;
  border-radius: 24px;
  overflow: hidden;
}

.fc-front-thumbnail {
  max-width: 80% !important;
  border: 4px solid #fff;
  border-radius: 50%;
}

.fc-front-title {
  font-size: 22px;
  font-weight: bold;
  color: #CC9900;
}

.fc-front-subtitle {
  font-size: 16px;
  color: #fff;
}

.back{
    background: #0A024B;
    /* background: -webkit-linear-gradient(45deg, #cedce7 0%,#596a72 100%); */
    background: -o-linear-gradient(45deg, #cedce7 0%,#596a72 100%);
    /* background: linear-gradient(45deg, #cedce7 0%,#596a72 100%); */
    color: #fff;
}


.fc-container:hover .front,
.fc-container:hover .back{
    -webkit-transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    -o-transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1), -webkit-transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    place-items: center;
    place-content: center;
}

.inner{
   position: relative;
   width: 100%;
   padding: 25px 20px;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
   outline: none;
   -webkit-perspective: inherit;
   perspective: inherit;
   z-index: 2;
   text-align: center;
   height: 100%;
   display: flex;
   flex-flow: column;
   align-items: center;
   justify-content: center;
}

.fc-container .back{
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.fc-container .front{
    -webkit-transform: rotateY(0deg);
            transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}

.fc-container:hover .back{
  -webkit-transform: rotateY(0deg);
          transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.fc-container:hover .front{
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.front .inner {
	height: 100%;
}

.front .inner .front-inner-content{
	padding: 0;
  text-align: center;
  font-size: 16px;
  width: 100%;
  display: flex;
  flex-flow: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
 }

.front .inner p{
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  line-height:1.2em;
}

.inner-gradient-fadeout-bg {
	position:absolute;
    right:0; bottom:0; left:0;
    height:150px;
    background: none;
    background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,1) 80%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(80%,rgba(0,0,0,1)));
    background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 80%);
    background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 80%);
    background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 80%);
    background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 80%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000', endColorstr='#000',GradientType=0 );
}

/*.front .inner p:after{
    content: '';
    width: 4rem;
    height: 1px;
    position: absolute;
    background: #C6D4DF;
    display: block;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -1.5rem;
}*/

.front .inner span{
  /*color: rgba(255,255,255,0.7);
  font-family: 'Montserrat';
  font-weight: 300;*/
}
.back p {
    font-size:20px;
}