/* ************************** */
/* Divi Hype Blurb Stylesheet */
/* ************************** */

/* *************************************** */
/* GENERAL BLURB EFFECTS AND STYLE CHANGES */
/* *************************************** */

/* ROUNDED BLURB: Apply a large border radius to round off the blurb border */
/* NOTE: This can also be done in the Divi settings instead of using our class */
/* HOW TO USE: Add class 'dh_rounded' to the blurb module */
.dh_blurb.dh_rounded {
	border-radius: 30px;
}

/* BOXSHADOW: Apply a box-shadow to the blurb module */
/* NOTE: This can also be done in the Divi settings instead of using our class */
/* HOW TO USE: Add class 'dh_boxshadow' to the blurb module */
.dh_blurb.dh_boxshadow {
	box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3)
}

/* BOX SHADOW ON HOVER: Apply a box-shadow colour when hovering over the blurb module */
/* NOTE: Set the specific color you want below */
/* HOW TO USE: Add class 'dh_shadowhighlight' to the blurb module */
.dh_blurb.dh_shadowhighlight:hover {
	box-shadow: 0px 0px 20px rgba(202,34,183,1);
}

/* General styling for our Blurb modules */
.dh_blurb {
/*	background-color: #fff; */
    padding: 10px;	
	transition: 0.5s all;
}

/* main blurb container */
.dh_blurb .et_pb_blurb_content {
	max-width: 90%;	
}

/* blurb image and icon */
.dh_blurb .et_pb_main_blurb_image {
	display: inline-block;
    max-width: 100%;
    margin-bottom: 30px;
    line-height: 0;	
	transition: 0.5s all;
}

.dh_blurb .et_pb_image_wrap {
    display: block;
    margin: auto;
	transition: 0.5s all;
	overflow: hidden; 
}

.dh_blurb .et_pb_image_wrap img {
	transition: 0.5s all;
}

/* Default size and padding for blurb icons so they're consistent - Can be overriden by the Module options */
.dh_blurb .et-pb-icon {
	font-size: 48px;
    padding: 20px;
    margin: 30px 20px 20px 20px;	
}

.dh_blurb .et-pb-icon-circle {
	transition: 0.5s all;
	transform: 0.5s all;
}

/* blurb header text */
.dh_blurb .et_pb_module_header {
margin-bottom: 10px;
margin-top: -8px;	
}

/* ******************************** */
/* BLURB ICON/IMAGE SHAPING EFFECTS */
/* ******************************** */

/* ICON SHAPING */

/* CIRCULAR BLURB ICON: Make the Blurb icon circular. Applies a 50% border-radius to the icon */
/* HOW TO USE: Add class 'dh_blurb_circle_icon' to the blurb module */
.dh_blurb_circle_icon .et-pb-icon-circle {
   -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
 	border-radius: 100px;
}

/* ROUNDED BLURB ICON: Round the edges of the Blurb icon. Applies a 20px border-radius to the icon */
/* HOW TO USE: Add class 'dh_blurb_rounded_icon' to the blurb module */
.dh_blurb_rounded_icon .et-pb-icon-circle {
   -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
 	border-radius: 20px;
}

/* SQUARE BLURB ICON: Completely square Blurb icon. Applies a zero border-radius to the icon */
/* HOW TO USE: Add class 'dh_blurb_square_icon' to the blurb module */
.dh_blurb_square_icon .et-pb-icon-circle {
   -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
 	border-radius: 0px;
}

/* IMAGE SHAPING */

/* ROUND IMAGE: Make the Blurb image as round as possible. Applies a 50% corner-radius and hides the overflow  */
/* HOW TO USE: Add class 'dh_img_round' to the blurb module */
.dh_img_round .et_pb_image_wrap {
    border-radius: 50%;
    overflow: hidden;
    transition: 0.5s all;
}

/* ROUNDED CORNERS IMAGE: round off the corners of the Blurb image */
/* HOW TO USE: Add class 'dh_img_rounded' to the blurb module */
.dh_img_rounded .et_pb_image_wrap {
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s all;
}

/* OVAL IMAGE: A different rounding effect for the Blurb image producing more of an oval shape */
/* HOW TO USE: Add class 'dh_img_oval' to the blurb module */
.dh_img_oval .et_pb_image_wrap {
    border-radius: 250px;
    overflow: hidden;
    transition: 0.5s all;
}

/* ************************ */
/* BLURB ICON/IMAGE OFFSETS */
/* ************************ */

/* ICON/IMAGE OFFSET TOP: Offset the icon/image centrally above the blurb module */
/* HOW TO USE: Add class 'dh_icon_offset_top' to the blurb module */

/* Add margin to the main blurb module to allow for the image/icon offset */
.dh_blurb.dh_icon_offset_top {
		margin-top: 80px;
}

/* Offset the icon/image TOP using a negative margin */
.dh_blurb.dh_icon_offset_top .et_pb_image_wrap {
	overflow: hidden;
	margin-top: -80px;
}

/* ICON/IMAGE OFFSET TOPLEFT - Offset the icon/image in the TOP LEFT above the blurb module */
/* NOTE: To change the overlap, adjust the margin-top settings below */
/* HOW TO USE: Add class 'dh_icon_offset_topleft' to the blurb module */

/* Add margin to the main blurb module to allow for the image/icon offset */
.dh_blurb.dh_icon_offset_topleft {
	margin-top: 80px;
}

/* Offset the icon/image TOP and LEFT using negative margins */
.dh_blurb.dh_icon_offset_topleft .et_pb_image_wrap {
	overflow: hidden;
	margin-top: -80px;
	margin-left: -100%;
}

/* ICON/IMAGE OFFSET TOPRIGHT - Offset the icon/image in the TOP LEFT above the blurb module */
/* NOTE: To change the overlap, adjust the margin-top settings below */
/* HOW TO USE: Add class 'dh_icon_offset_top' to the blurb module */

/* Add margin to the main blurb module to allow for the image/icon offset */
.dh_blurb.dh_icon_offset_topright {
	margin-top: 80px;
}

/* Offset the icon/image TOP and RIGHT using negative margins */
.dh_blurb.dh_icon_offset_topright .et_pb_image_wrap {
	overflow: hidden;
	margin-top: -80px;
	margin-right: -100%;
}

/* *********************************************** */
/*              BLURB ANIMATIONS                   */
/* *********************************************** */

/* ANIMATIONS FOR BLURBS USING IMAGES */

/* IMAGE ZOOM (Ken Burns) animation: Zoom the Blurb Image on hover */
/* HOW TO USE: Add 'dh_kenburns' class to the blurb module to apply this effect to the blurb image */
.dh_kenburns:hover img {
  animation: dh_kenburns 20s infinite;
}

/* Ken Burns animation used above */
@keyframes dh_kenburns {
    0% {
    }
    5% {
    }
    95% {
        transform: scale3d(1.5, 1.5, 1.5) rotate(5deg);
        animation-timing-function: ease-in;
        opacity: 1;
    }
    100% {
		transform: scale3d(2, 2, 2) rotate(15deg);
        opacity: 0;
    }
}
/* IMAGE GRAYSCALE animation: Make the Blurb image grayscale and fade in to color on hover */
/* HOW TO USE: Add 'dh_grayscalefade' class to the blurb module to apply this effect to the blurb image */
.dh_grayscalefade img {
   -webkit-filter: grayscale(100%); 
    filter: grayscale(100%);
}

.dh_grayscalefade:hover img {
   -webkit-filter: grayscale(0%); 
    filter: grayscale(0%);
}

/* IMAGE DESATURATE animation: Desaturate the blurb image and resaturate on hover. Brightness and contrast have been adjusted to give a retro effect */
/* HOW TO USE: Add 'dh_desaturate' class to the blurb module to apply this effect to the blurb image */
.dh_desaturate img  {
    filter: saturate(0%) brightness(133%) contrast(123%);
}

.dh_desaturate:hover img  {
    filter: saturate(70%) brightness(133%) contrast(123%);
}

/* ANIMATIONS FOR BLURBS USING ICONS */

/* ICON SCALEX animation: Stretch the Blurb Icon background horizontally on hover */
/* HOW TO USE: Add 'dh_blurb_icon_scalex' class to the blurb module to apply this effect to icons */
.dh_blurb_icon_scalex .et-pb-icon {
	transition: 0.5s all;
}
.dh_blurb_icon_scalex:hover .et-pb-icon {
	padding-left: 60px;
	padding-right: 60px;
}

/* ICON BOUNCE animation: Apply a bounce animation to Blurb icon on hover */
/* HOW TO USE: Add 'dh_blurb_icon_bounce' class to the blurb module to apply this effect to icons */
.dh_blurb_icon_bounce .et-pb-icon {
	transform: scale(1);	
	transition: 0.5s all;
}
.dh_blurb_icon_bounce:hover .et-pb-icon {
  -moz-animation: bounce 2s ;
  -webkit-animation: bounce 2s ;
  animation: bounce 2s ;
}

/* Bounce animation used above */
@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}

/* ICON GROW animation: Zoom the Blurb icon on hover */
/* HOW TO USE: Add 'dh_blurb_icon_grow' class to the blurb module to apply this effect to icons */
.dh_blurb_icon_grow .et-pb-icon {
    font-size: 48px;
    padding: 20px;
    margin: 20px;	
	transform: scale(1);	
	transition: 0.5s all;
}
.dh_blurb_icon_grow:hover .et-pb-icon {
    transform: scale(1.25);	
}

/* ************************ */
/* BLURB ICON COLOR EFFECTS */
/* ************************ */

/* Change the icon color to the Heading colour when hovering */
/* NOTE: The color changes are applied using JQuery */
/* HOW TO USE: Add 'dh_icon_color_change' class to blurb module to apply this effect */
.dh_blurb.dh_icon_color_change .et-pb-icon.et-pb-icon-circle  {
	transition: 0.5s all;
}

/* Change the icon CIRCLE color to the Heading colour when hovering */
/* NOTE: The color changes are applied using JQuery */
/* HOW TO USE: Add 'dh_icon_circle_color_change' class to blurb module to apply this effect */
.dh_blurb.dh_icon_circle_color_change .et-pb-icon.et-pb-icon-circle  {
	transition: 0.5s all;
}

/* Invert the icon and Icon CIRCLE colors when hovering */
/* NOTE: The color changes are applied using JQuery */
/* HOW TO USE: Add 'dh_invert_icon_colors' class to blurb module to apply this effect */
.dh_blurb.dh_invert_icon_colors .et-pb-icon.et-pb-icon-circle  {
	transition: 0.5s all;
}


/* ********************** */
/*    BLURBS AS TABS      */
/* ********************** */

/* Style Blurbs as Tabs */

/* Apply our general styles to the borders etc. */
#dh_blurb_tabs .dh_blurb_tab {
	border-radius: 50px 0 0 0;
    overflow: hidden;
    border-left-color: rgba(105,107,125,0.5);
    border-left-width: 5px;
    border-top-color: rgba(105,107,125,0.5);
	border-top-width: 2px;
    padding-top: 20px!important;
    padding-bottom: 0px!important;
    margin-top: 0px!important;
    margin-bottom: 0px!important;
	background-color: #f2F2F2;
}

/* Set the styles for non-active tabs when you hover over them */
#dh_blurb_tabs .dh_blurb_tab:not(.active_tab):hover {
  color: white;
  background: #888;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
}
#dh_blurb_tabs .dh_blurb_tab:not(.active_tab):hover .et_pb_module_header {
  transition: all 0.5s ease-in-out;
  color: white!important;
}
#dh_blurb_tabs .dh_blurb_tab:not(.active_tab):hover .et-pb-icon {
  transition: all 0.5s ease-in-out;
  color: white!important;
}

#dh_blurb_tabs .dh_blurb_tab .et_pb_blurb_content {
  transition: all 0.5s ease-in-out;
}

.dh_tab_content {
	background: white;
}

/* Set styles for different screen widths so the tabs always display well */
/* Tablet styling */
@media (max-width: 767px) {
    #dh_blurb_tabs .dh_blurb_tab .et_pb_main_blurb_image {
      margin-bottom: 10px;
    }
    #dh_blurb_tabs .dh_blurb_tab {
        padding: 10px 0!important;
    }
}

/* Mobile styling */
@media (max-width: 479px) {
    #dh_blurb_tabs .dh_blurb_tab .et_pb_blurb_content {
      display: flex;
      justify-content: flex-start;
      align-items: center;

    }
    #dh_blurb_tabs .dh_blurb_tab .et_pb_main_blurb_image {
      margin-left: 20px;
      margin-right: 10px;
    }

    #dh_blurb_tabs .dh_blurb_tab {
        padding: 10px 0 0 15px!important;
    }

}

/* Set the Active tab styling */
#dh_blurb_tabs .dh_blurb_tab.active_tab {
    background: white;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    border-left-color: #CA22B7;
    border-top-color: #CA22B7;
}

#dh_blurb_tabs .dh_blurb_tab.active_tab .et_pb_blurb_content{
	margin-bottom: 5px;
	margin-top: -5px;
}

#dh_blurb_tabs .dh_blurb_tab.active_tab .et_pb_module_header {
  transition: all 0.5s ease-in-out;
}
#dh_blurb_tabs .dh_blurb_tab.active_tab .et-pb-icon {
  transition: all 0.5s ease-in-out;
}

#dh_blurb_tabs .dh_tab_content {
}

/* Set styles for tab content sections so we can animate them */
#dh_blurb_tabs .dh_active_tab_content {
    opacity: 0;
    animation-name: fadeIn;
    -webkit-animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: both;
}	

/* Animation for Blurb Tab content when it appears */
@keyframes fadeInLeft {
    from {
        transform: translate3d(-20px,0,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@-webkit-keyframes fadeInLeft {
    from {
        transform: translate3d(-20px,0,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
