/*WELCOME*/

.home .contentsection {
    position: relative;
    padding: 4em 0;
}

.home h1.page-title {
    font-size: 30px;
    text-align: center;
    letter-spacing: 1.5px;
    color: var(--purple-color);
}

p.vid-desc {
    text-align: center;
}

a.welcome-vid img {
    display: block;
    margin: 1em auto;
    border: 1px solid #000;
}

.welcome-img {
    position: absolute;
    bottom: -7px;
    right: -6vw;
    z-index: 1;
}

/*PROJECTS*/

.projects-section {
    position: relative;
    z-index: 2;
}

.loaded.no-webp .projects-section {
	background-image: url(../images/project-bg.jpg);
}
.loaded.webp .projects-section {
	background-image: url(../images/project-bg.webp);
}

.project-box {
	width: 13%;
	display: inline-block;
	vertical-align: top;
	position: relative;
}

.img-wrap.relative {
	max-width: 200px;
	margin: auto;
	position: relative;
	max-height: 170px;
	overflow: hidden;
	z-index: 30;
}

.img-wrap.relative p.large-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	font-weight: 400;
}

.project-box:hover img.project-static {
	display: none;
}

.project-box:hover {
	-webkit-transform: scale(1.1, 1.1);
	-moz-transform: scale(1.1, 1.1);
	transform: scale(1.1, 1.1);
	z-index: 50;
}

.project-box:hover .project-info {
	display: block;
}

.project-box:hover .img-wrap p.large-body {
	display: none;
}

.project-info {
	position: absolute;
	left: 50%;
	top: 25px;
	background: #784c63;
	text-align: left;
	padding-left: 120px;
	display: none;
	width: 400px;
	padding-top: 10px;
	padding-right: 10px;
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
}

.project-info p.large-body {
	color: #ffffff;
	font-size: 22px;
	line-height: 1.4;
	margin: 0 0 5px;
}

.project-info p {
	color: #fff;
	font-size: 18px;
	line-height: 22px;
	font-weight: 300;
}

.project-box:nth-child(even) {
	margin-top: 100px;
}

/*REVIEWS*/

.review-section {
    margin: 0 70px;
}

.rev-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev-slide.slick-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rev-slide img {
    width: 100%;
    max-width: 550px;
    margin: auto 0.6em;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
}

.rev-con {
    position: relative;
    margin: 1em 2.5em;
    max-width: 560px;
}

.rev-con:before {
    content: '';
	position: absolute;
	top: 20%;
    left: -46px;
	width: 40px;
    height: 31px;
	background-image: url(../images/quote-black-left.png);
	background-repeat: no-repeat;
    background-size: contain;
}
.rev-con:after {
    content: '';
	position: absolute;
	bottom: 20%;
    right: -46px;
	width: 40px;
    height: 31px;
	background-image: url(../images/quote-black-right.png);
	background-repeat: no-repeat;
    background-size: contain;
}
.rev-con p:nth-child(2) {
    margin: 1em 0;
}

.rev-slide ul {
    margin: 1em 0 10px 50px;
}

.home img.slick-arrow {
    filter: brightness(0.3);
    opacity: 1;
}

img.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: calc(100% + 50px);
    cursor: pointer;
}
img.slick-arrow.next-arrow {
    right: unset;
    left: calc(100% + 50px);
}

/*BY THE NUMBERS*/

.stats {
    position: relative;
    z-index: 2;
}

.loaded.no-webp .stats {
	background-image: url(../images/stats-bg.png);
}
.loaded.webp .stats {
	background-image: url(../images/stats-bg.webp);
}

.stat-box {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.stat-box img.addMARG {
    margin-top: 10px;
}
span.count {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 4px;
}

span.under {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 2.4px;
}
.stat-box {
    padding: 15px 0;
}

.stat-box-wrap.toothbrush-box .stat-box {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.stat-box-wrap.toothbrush-box .stat-box div {
    width: 100%;
    margin-top: 10px;
}
/*DENTAL CARE FOR KIDS*/

.for-kids {
    position: relative;
    margin-top: -15px;
    z-index: 1;
}

.loaded.no-webp .for-kids {
	background-image: url(../images/bottom-bg.png);
}
.loaded.webp .for-kids {
	background-image: url(../images/bottom-bg.webp);
}

.for-con-box {
    max-width: 620px;
    margin-bottom: 2em;
}

.for-con-box h4 {
    margin-bottom: 0.6em;
}

/*PARTNERS*/

.loaded.no-webp .partners {
	background-image: url(../images/partners-bg.png);
}
.loaded.webp .partners {
	background-image: url(../images/partners-bg.webp);
}

.aff-top {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.aff-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -1em;
}

.partners svg.external-link {
    display: none;
}

.partners a:hover img {
    -webkit-transform: scale(1.1,1.1);
    -moz-transform: scale(1.1,1.1);
    transform: scale(1.1,1.1);
}

/* RESPONSIVE 
-----------------------------------------------*/
@media (min-width: 1026px) {
	.stat-wrap {
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		flex-wrap: wrap;
	}	
	.review-section .slick-list {
		max-height: 400px;
	}
	.guidestar img {
		margin: 0 5vw;
		max-width: 140px;
	}
	.stat-box-wrap {
        max-width: 410px;
        width: 100%;
    }
    .stat-box-wrap.toothbrush-box {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 992px) {
	.col-lg-8.home-content {
		max-width: 740px;
	}
} 

@media (max-width: 1880px) {
	.project-box:last-child .project-info,
	.project-box:nth-child(6) .project-info {
		right: 50%;
		left: auto;
		padding-left: 10px;
		padding-right: 120px;
	}
}

@media (max-width: 1440px) {
	.welcome-img {
		max-width: 40vw;
		right: -10px;
	}	
}

@media (max-width: 1300px) {
	.aff-top,
	.aff-bottom {
		flex-wrap: wrap;
		justify-content: center;
	}
	.aff-top a,
	.aff-bottom a {
		margin: 1em;
	}
	.rev-con p{
	    font-size: 17px;
	}
	.rev-con h4{
	    font-size: 27px;
	}
}

@media (max-width: 1025px) {
    .stats{
        background-color: #3794d1;
        background-image: none!important;
    }
	.home .contentsection {
		padding: 4em 0 0;
	}
	.welcome-img {
		display: block;
		position: relative;
		max-width: 100%;
		margin: 1em auto 0;
	}
	.guidestar img {
		display: block;
		margin: 0 auto;
	}
	.project-box,
	.project-box:nth-child(even) {
		width: 31%;
		margin: 2em auto;
	}
	.project-box:nth-child(3) .project-info {
		right: 50%;
		left: auto;
		padding-left: 10px;
		padding-right: 120px;
	}
	.img-wrap.relative p.large-body {
		font-size: 24px;
	}
	.review-section.md-padding {
		padding: 4em 0;
	}
	.rev-slide.slick-slide {
		flex-flow: column;
		justify-content: center;
		align-items: center;
	}
	.rev-slide img {
		max-width: 580px;
	}
	img.slick-arrow {
		right: calc(90% + 80px);
	}
	img.slick-arrow.next-arrow {
		right: unset; 
		left: calc(90% + 80px);
	}
	.stat-box-wrap br {
		display: none;
	}
	.stat-box {
		display: flex;
		margin: 1.5em auto;
		max-width: 520px;
	}
	.stat-box img.alignleft {
		min-width: 85px;
		padding: 5px;
		float: none;
		margin: 0 1em 0 0;
	}
	span.count {
		font-size: 28px;
	}
	span.under {
		font-size: 22px;
	}
	.for-kids.bg-cover.md-padding {
		background-position: right center;
		padding: 0;
	}
	.for-kids .container {
		background-color: rgb(255 255 255 / 50%);
		padding: 2em;
	}
	.for-con-box .main-btn {
		margin: 1em 0;
	}
	.rev-con p{
	    font-size: 20px;
	}
	
}

@media only screen and (max-width: 979px) {
	.project-box,
	.project-box, .project-box:nth-child(even) {
		width: 45%;
	}
	.project-box:hover .project-info {
		display: none;
	}
}

@media only screen and (max-width: 767px) {
	
} 

@media all and (max-width: 600px) {
	.project-box,
	.project-box, .project-box:nth-child(even) {
		width: 47%;
	}
	.review-section {
		margin: 0 40px;
	}
	img.slick-arrow {
		right: calc(90% + 60px);
	}
	img.slick-arrow.next-arrow {
		right: unset; 
		left: calc(90% + 60px);
	}
	.stat-box img.alignleft {
		min-width: unset;
		max-width: 50px;
		margin: 0 0.2em 0 0;
	}
	span.count {
		display: block;
		font-size: 20px;
	}
	span.under {
		display: block;
		font-size: 18px;
	}
}

@media only screen and (max-width: 480px) {
	.project-box,
	.project-box, .project-box:nth-child(even) {
		width: 100%;
	}
	.rev-con {
		margin: 1em 0;
	}
	.rev-con:before,
	.rev-con:after {
		display: none;
	}
}

@media screen and (max-width: 360px) {
	.review-section {
		margin: 0 20px;
	}
	img.slick-arrow {
		right: calc(100% + 15px);
		max-width: 20px;
	}
	img.slick-arrow.next-arrow {
		right: unset; 
		left: calc(100% + 15px);
		max-width: 20px;
	}
}