/*-------------------------------------------------------
Theme Name: DecimalHealth Theme
Theme URI: http://www.elegantthemes.com/gallery/divi/
Description: A child theme template for Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Template: Divi
Version: 1.0.85
-----------------------------------*/

#case-studies {
    display: none;
}

body:not(.home) #main-header:not(.et-fixed-header) {
  background: #fff;
}

body:not(.home) #main-header {
  border-bottom: 1px solid #d7d2e6;
}

.archive #custom_footer {
    padding-bottom: 0 !important;
}

.archive #custom_footer .et_pb_row_1_tb_footer {
    width: 100%  !important;
    max-width: 100% !important;
}

.blog #main-content,
.archive #main-content{
    overflow: hidden;
}

.blog #main-content .container::before,
.archive #main-content .container::before {
    content: none;
}

.blog #main-header,
.archive #main-header {
    background: #fff;
}

.blog {
	font-family: 'Roboto', sans-serif;
	color: #333;
}

div.et_pb_section.blog_hero  {
	background: radial-gradient(circle at top right,rgba(255,255,255,0) 8%,rgba(61,63,105,0.46) 53%),url(/wp-content/uploads/2022/08/bac1.png) no-repeat center/cover;
    padding-top: 7vw;
    padding-bottom: 7vw;
    background-color: #d7d2e6;
  	position: relative;
  	display: flex;
  	align-items: center;
  	min-height: 70vh;
}

.blog_hero .et_pb_text_inner h1 {
	font-size: 54px;
	color: #fff;
}

.blog_hero .et_pb_text_inner p {
	line-height: 1.4em;
	font-size: 26px;
	line-height: 1.4em;
	max-width: 700px;
	font-weight: 400;
  	color: #fff;
}

.blog_hero .et_pb_icon {
	text-align: center;
}

.blog_hero .et-pb-icon {
  	opacity: 0;
	transition: color 300ms ease 0ms;
	font-family: ETmodules !important;
	font-weight: 400 !important;
	color: rgba(255,255,255,0.71);
	font-size: 80px;
  	animation: 1.5s afadeInDown 1s forwards;
}

.et_pb_row_icon {
	position: absolute;
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
}

.c_post_content .et_pb_section {
	padding: 0 !important;
}

.c_post_content .et_pb_row {
  	width: 100% !important;
	padding: 0 !important;
}

.c_post_content,
.c_post_content p {
	font-family: 'Roboto', sans-serif;
	padding-bottom: 1.5em !important;
	line-height: 1.6 !important;
	font-weight: 400;
}

.c_post_content ul {
	padding: .75em 0 23px 1.5em !important;
}

.single-case-studies .et_pb_title_meta_container {
	display: none;
}

.single .et_pb_title_meta_container {
	margin-bottom: .6em;
}

.cat-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-flow: row wrap;
}

.cat-list li {
    margin-right: 12px;
    margin-bottom: .8em;
}

.cat-list_item {
    font-size: 16px;
    color: #232323;
    font-weight: 400;
    padding: 5px 20px;
    background: #f2f5f8;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    display: inline-block;
    border-radius: 20px;
 	-webkit-tap-highlight-color: transparent;
}

.cat-list_item:hover {
    background: #d7d2e6;
}

.cat-list_item.active,
.cat-list_item.events {
    background: #6667ab;
    color: #fff;
}

.case-studies-tiles {
	padding: calc(30px + 50 *(100vw - 360px)/1560) 0;
}

.post-type-archive-education-resources #main-content{
  	background-color: #eceef1 !important;
}

.post-type-archive-education-resources #main-content .container {
  	max-width: 1280px;
  	width: 90%
}

.category_filter h3 {
	font-size: 2.1em;
	font-weight: 600;
	margin-bottom: .7em;
}

.cat-filter_item {
	position: relative;
	font-size: 1.6em;
	line-height: 1.45;
	margin-bottom: .8em;
}

.cat-filter_item a {
  	display: block;
	padding-left: 1.75em;
    position: relative;
  	z-index: 11;
  	color: #000;
  	-webkit-tap-highlight-color: transparent;
}

.cat-filter_item::before {
	position: absolute;
	content: "";
	width: .9em;
	height: .9em;
	background-color: #fff;
	border: 2px solid #6667ab;
	border-radius: 100%;
	display: inline-block;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
  	transition: all .2s ease-in-out;
}

.cat-filter_item.active::before {
  	background-color: #6667ab;
}

._grid {
  display: grid;
}

.filter_search {
	grid-template-columns: 55% 28%;
	width: 97%;
	margin: 0 auto;
}

#search_form {
	position: relative;
}

#search_form button {
	position: absolute;
	right: 0;
	height: 100%;
  	padding: 0;
	width: 80px;
	border-radius: 2em;
	border: 0;
	background: #6667ab;
	-webkit-appearance: none;
	outline: 0;
 	cursor: pointer;
  	transition: all .2s ease-in-out
}

#search_form button:hover {
	opacity: .85;
}

.icon_search {
  display:block;
  height: 100%;
}

.icon_search::before {
	content: '';
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 36 36' style='enable-background:new 0 0 36 36;' xml:space='preserve'%3E%3Cpath fill='%23fff' d='M35.2,31c-2.2-2.2-4.5-4.5-6.7-6.7c-0.4-0.4-0.9-0.7-1.5-0.6c-0.3,0-0.6,0-1,0c2.7-3.5,3.6-7.4,2.9-11.7 c-0.8-4.3-3.2-7.6-6.9-9.8c-5.6-3.4-13.4-2.5-18.3,3C-0.7,10-1.1,17.8,2.8,23c2.1,2.8,4.8,4.9,8.2,5.7c4.6,1.1,8.8,0.3,12.5-2.6 c0,0,0.1,0,0.1,0c0,0.3,0,0.7,0,1c0,0.5,0.2,1,0.5,1.3c2.3,2.3,4.5,4.5,6.8,6.8c0.8,0.8,1.7,0.8,2.5,0c0.6-0.6,1.2-1.1,1.7-1.7 C36,32.7,36,31.8,35.2,31z M14.6,23.6c-4.9,0-9.1-4.1-9-9c-0.1-4.7,3.8-9,9-9c5,0,9,4.1,9,9C23.6,19.7,19.4,23.6,14.6,23.6z'/%3E%3C/svg%3E%0A") no-repeat center/40%;
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
}

input[type="text"].input_search,
.filter_search #filter {
 	width: 100%;
	border: 2px solid #6667ab;
	border-radius: 1.4em;
	padding: .7em 1.5em;
	font-size: 1.4em;
  	color: #6667ab;
  	-webkit-appearance: none;
  	appearance:none
}

.filter_search #filter {
	cursor: pointer;
}

.selectdiv {
  	position: relative;
  	margin-right: 1.5em;
}

.selectdiv::after {
	content: '';
	position: absolute;
	right: 1.5em;
	width: 0;
	height: 0;
	border-left: 1.5em solid transparent;
	border-right: 1.5em solid transparent;
	border-top: 1.5em solid #6667ab;
	pointer-events: none;
	top: 50%;
	transform: translateY(-50%);
}

._resources {
	grid-template-columns: 20% auto;
	margin: calc(3vw + 3em) 0;
	grid-column-gap: 4%;
}

.resources_grid {
	grid-template-columns: repeat(3,1fr);
	grid-gap: 2em;
}

.et_resource_post {
  	border: 2px solid #6667ab;
	border-radius: 1.5em;
	background: #fff;
  	animation: 1s fadeIn;
}

.resource-featured-image img {
  	border-radius: 1.35em 1.35em 0 0;
}

.et_resource_post .entry-content {
    font-size: 15px;
    font-weight: 400;
  	padding: 1.5em;
  	line-height: 1.5;
}

.more_btn {
	display: block;
	margin: 1em auto .25em;
	text-align: center;
	width: 120px;
	padding: .3em;
	line-height: 1.6 !important;
}

.single-education-resources .mfp-content .mfp-img {
  	max-height: none !important;
}

.single-education-resources .mfp-image-holder .mfp-content {
	max-width: 80%;
}

.single .mfp-image-holder .mfp-close {
	opacity: .6;
}

.single .mfp-image-holder .mfp-close:hover {
	opacity: 1;
}

.align_justify {
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between; }

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

  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes afadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes afadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
  }

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

.et_jj_post {
    display: grid;
    grid-template-columns: 61% 36%;
    grid-column-gap: 3%;
    padding: 0 0 30px;
    margin: 0 0 33px;
    border-bottom: 1px solid #ccc;
	animation: 1s fadeIn;
}

.et_jj_post .entry-title {
    margin: 0 0 .5em;
    line-height: 1.3;
}

.et_jj_post .entry-content {
    font-size: 16px;
    font-weight: 400;
}

.et_jj_post .entry-featured-image a {
    position: relative;
}

.et_jj_post .entry-featured-image a {
    background-color: #3d3f69;
    border-radius: 13px;
    display: block;
}

.et_jj_post:hover .entry-featured-image img {
    opacity: 0.5;
    transition: .3s
}

.et_jj_post .entry-featured-image a::before {
    content: '';
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 1px solid #fff;
    z-index: 1;
    transition: 0.3s;
}

.et_jj_post .entry-featured-image a::after {
    content: 'Read More';
    display: block;
    opacity: 0;
    position: absolute;
    top: 50%;
    color: #fff;
    transform: translate(80%, -50%);
    width: 80%;
    font-size: 22px;
    text-align: right;
    font-weight: 400;
    transition: 0.3s;
}

.et_jj_post:hover .entry-featured-image a::before {
    transition-delay: 0.3s;
    opacity: 1;
    top: 15px;
    left: 15px;
    bottom: 15px;
    right: 15px;
    border-radius: 10px;
}

.et_jj_post:hover .entry-featured-image a::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.et_jj_post .entry-featured-image img {
    border-radius: 10px;
    display: block;
}

.postid-239140 .et_pb_title_featured_container {
	display: none;
}

.postid-239140 .et_pb_post_content_0_tb_body {
	padding-right: 0;
	padding-left: 0;
	width: 93.5%;
}

#top-menu li a {
	font-size: 16px;
}

@media only screen and (min-width:981px) {
    #logo {
        max-height: 73%;
    }
	._published {
		align-self: flex-start;
		padding: 1em;
		background: #f2f5f8;
		display: block;
		margin: 0 1em 1em 0;
		border-radius: 15px;
		text-align: center;
		font-weight: 400;
	}

	._published span {
		display: block;
		font-size: 2.2em;
		margin: .3em 0;
		color: #3d3f69;
		font-weight: 500;
	}
}
@media only screen and (max-width:1280px) {
  .resources_grid {
      grid-template-columns: repeat(2,1fr);
      grid-gap: 3em;
  }
}

@media only screen and (max-width:980px) {
    .et_jj_post {
        grid-template-columns: 100%;
    }
	
	.et_jj_post .entry-content {
		margin: 1em 0;
	}
	
	.postid-239140 .et_pb_post_content_0_tb_body {
		padding-right: 1em;
		padding-left: 1em;
	}
  
  	.blog_hero .et_pb_text_inner h1 {
      	font-size: calc(38px + 6 * (100vw - 360px)/620);
  	}

  	.blog_hero .et_pb_text_inner p {
      	font-size:  calc(18px + 4 * (100vw - 360px)/620);;
  	}
  
  	div.et_pb_section.blog_hero {
        padding: 24vw 0 15vw;
      	min-height: auto;
    }
  
    .et_pb_row_icon {
      	display: none;
  	}
}
@media only screen and (max-width:768px) {
  	.resources_grid {
      	grid-template-columns: 100%;
  	}
  
  	.post-type-archive-education-resources #main-content .container {
		width: 80%;
	}
    .cat-filter {
        margin-bottom: 1em;
    }
  
  	.cat-filter_item {
      	display: inline-block;
      	margin: 0 .81em .5em 0;
      	font-size: 1.4em;
  	}
  
  	.cat-filter_item a {
        padding-left: 1.5em;
    }
  
  	.filter_search {
        grid-template-columns: 55% 35%;
        width: 100%;
  	}
  
  	input[type="text"].input_search, .filter_search #filter {
        padding: .5em .5em;
    }
  
  	._resources {
      	grid-template-columns: 100%;
      	margin: calc(3vw + 2em) 0;
  	}
}
@media only screen and (max-width:600px) {
    .filter_search {
        display: none;
    }
  
  	._resources {
      	margin-top: 0;
  	}
  
    .single-education-resources .mfp-image-holder .mfp-content {
      max-width: 95%;
  }
}

@media only screen and (max-width:480px) {
  div.et_pb_section.blog_hero {
      padding: 13em 0 8em;
  }
}
