/** CUSTOM ADS APPLICATIONS TEMPLATE **/
header.entry-header {
	margin-top:50px;
}

.custom-cta .entry-content {
	padding-bottom:50px;
}
header.entry-header .breadcrumbs {
    position: relative;
    top: unset;
    left: unset;
    margin-left: 15px;
    max-width: 500px;
    margin-bottom: 20px;
}

.custom-cta .sidebar-cta {
	background:#638C1C;
	color:#fff;
	margin-bottom:40px;
	text-align:center;
	border-radius:25px;
}
.custom-cta .sidebar-cta .content {
	padding:20px;
}
.custom-cta .sidebar-cta p {
	font-size: 1.4em;
}
.custom-cta .sidebar-cta .btn-primary {
	background:#fff;
	color:#33647E;
}
.custom-cta .sidebar-cta .btn-primary:not(:disabled):not(.disabled):hover,
.custom-cta .sidebar-cta .btn-primary:not(:disabled):not(.disabled):active,
.custom-cta .sidebar-cta .btn-primary:not(:disabled):not(.disabled):focus {
	background:#f4f4f4;
	color:#33647E;
}
.custom-cta .sidebar-cta .btn-primary:not(:disabled):not(.disabled):focus {
	-webkit-box-shadow: 0 0 0 0.2rem #c2c2c2;
    box-shadow: 0 0 0 0.2rem #c2c2c2;
}
.custom-cta .sidebar-cta .image {
	overflow:hidden;
}

.custom-cta .sidebar-cta.mobile {
	display:none;
}


@media (max-width:768px) {
	.custom-cta header.entry-header {
		margin-top:0px;
	}
	
	.custom-cta .sidebar-cta.mobile {
		display:flex;
		margin-bottom:20px;
	}
	.custom-cta .sidebar-cta.mobile .image {
		display:none;
	}
	.custom-cta .sidebar-cta .content {
		flex:1 auto;
		display:flex;
	}
	.custom-cta .sidebar-cta p {
	    font-size: .9em;
    	flex: 1 auto;
    	margin-bottom: 0;
    	padding-right: 5px;
	}
	.custom-cta .sidebar-cta .btn-primary {
		font-size: .75em;
    	padding: 0.2rem 1rem;
	}
		.custom-cta .sidebar-cta.desktop {
		display:none;
	}
}

.custom-cta #custom_html-2 {
	display:none;
}
.custom-cta .related-content-sidebar,
.custom-cta .sidebar-cta.sticky{
	position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 110px;
    bottom: auto;
    margin-bottom:20px;
}

.custom-cta .col-md-3 {
	display: flex;
	flex-direction:column;
}
.custom-cta .col-md-3 > aside {
	flex:1;
}
.custom-cta .midpage-cta {
	margin-top:40px;
}
.custom-cta .midpage-cta .ovrly {
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background: rgba(0,0,0,.5);
	transition: all 1s;
	visibility: hidden;
	opacity: 0;
	z-index:9999;
	pointer-events: none;
}
.custom-cta .midpage-cta.active .ovrly {
	visibility: visible;
	opacity: 1;
	transition: all 1s;
}
.custom-cta .midpage-cta .content-wrap {
	position:relative;
	background:#F8F8F8;
	display:flex;
	z-index:9999;
	transition: all 1s;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	border-radius:25px;
	color:#638C1C;
	padding: 30px;
}
.custom-cta .midpage-cta .content-wrap .content {
	flex:1 auto;
	
}
.custom-cta .midpage-cta .content-wrap .image ~ .content {
	padding-left:30px;
}
.custom-cta .midpage-cta p {
	font-size: 1.5em;
	margin-bottom:30px;
}
.custom-cta .midpage-cta .btn-primary {
	background:#638C1C;
	color:#fff;
}
.custom-cta .midpage-cta .btn-primary:not(:disabled):not(.disabled):hover,
.custom-cta .midpage-cta .btn-primary:not(:disabled):not(.disabled):focus,
.custom-cta .midpage-cta .btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background: #4c6c16;
}
.custom-cta .midpage-cta .content-wrap .image {
	width:25%;
}
.custom-cta .newsletter-cta {
	background:#f4f4f4;
	text-align:center;
}
.custom-cta .newsletter-cta .content-wrap {
	max-width:900px;
	margin:auto;
	padding:20px;
	display:flex;
	align-items:center;
	flex-direction:row;
	gap:10px;
}
.custom-cta .newsletter-cta .content {
	flex:1 auto;
	text-align:left;
}
.custom-cta .newsletter-cta p {
	font-size: 1.5em;
	margin-bottom:0;
}

/** POPUP **/

.custom-cta .popup-container {
   height: 100vh;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,.75);
    position: fixed;
    top: 0;
    left: 0;
	z-index:9999999;
}
.custom-cta .popup {
	padding: 25px;
	background: #fff;
	border-radius: 25px;
	width: 750px;
	position:relative;
	text-align:center;
}
.custom-cta .popup h2 {
	color:#33647E;
}
.custom-cta .popup .close {
	position: absolute;
	top: 20px;
	right: 30px;
	transition: all 200ms;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	color: #333;
}

.custom-cta .popup .content {
	max-height: 30%;
	overflow: auto;
}

@media (max-width:768px) {
	.custom-cta .popup {
		width:90%;
	}
}
/** END POPUP **/

.custom-cta .footer-cta {
	background:#638C1C;
	color:#fff;
	text-align:center;
}
.custom-cta .footer-cta .content-wrap {
	max-width:620px;
	margin:auto;
	padding:60px 20px;
}
.custom-cta .footer-cta .content {
	padding-bottom:20px;
}
.custom-cta .footer-cta p {
	font-size: 1.5em;
}
.custom-cta .footer-cta .btn-primary {
	background:#fff;
	color:#33647E;
}
.custom-cta .footer-cta .btn-primary:not(:disabled):not(.disabled):hover,
.custom-cta .footer-cta .btn-primary:not(:disabled):not(.disabled):active,
.custom-cta .footer-cta .btn-primary:not(:disabled):not(.disabled):focus {
	background:#f4f4f4;
	color:#33647E;
}
.custom-cta .footer-cta .btn-primary:not(:disabled):not(.disabled):focus {
	-webkit-box-shadow: 0 0 0 0.2rem #c2c2c2;
    box-shadow: 0 0 0 0.2rem #c2c2c2;
}
.sidebar-cta.mobile .btn-container {
	align-items: center;
	display: flex;
}
   
@media (max-width:768px) {	
	.custom-cta .newsletter-cta p {
		font-size: 1.2em;
	}
	.custom-cta .midpage-cta .content-wrap .image {
		width: 20%;
	}	
	.custom-cta .sidebar-cta.mobile {
		padding: 15px;
		align-items: center;
	}
	.custom-cta .sidebar-cta.mobile .content{
		padding:0;
	}
	#newsletter-signup .popup .desktop {
		display:none;
	}
	#newsletter-signup .popup iframe {
		height:650px;
	}
	.custom-cta .popup-container {
		overflow: auto;
	}
}










#newsletter-signup {
	position: fixed;
    height: 100%;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.8);
	display: flex;
	justify-content: center;
    align-items: center;
    pointer-events: all;
	z-index: 99999999;
	visibility: hidden;
	opacity:0;
	transition: opacity .15s ease-in;
}

#newsletter-signup .newsletter-wrapper {
	position: absolute;
	box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 20%);
    border-radius: 25px;
    overflow: hidden;
	width: 750px;
	max-width: 100%;
    max-height: 100%;
	height:auto;
    pointer-events: all;
	margin:auto;
	background:#FFF;
	display: flex;
}
#newsletter-signup .newsletter-wrapper .newsletter-content {
    padding: 20px 20px 0px 20px;
	text-align: center;
}

#newsletter-signup .newsletter-wrapper .newsletter-content h2 {
	color:#34718e;
	margin-bottom: 20px;
}

#newsletter-signup .newsletter-wrapper .newsletter-shape-bottom {
    overflow: hidden;
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    direction: ltr;
	transform: rotate(180deg);
    bottom: -1px;
}
#newsletter-signup .newsletter-wrapper svg {
    display: block;
    width: calc(100% + 1.3px);
    position: relative;
	height:25px;
    left: 50%;
    transform: translateX(-50%);
}
#newsletter-signup .newsletter-wrapper svg .newsletter-shape-fill {
    fill: #FBE785;
    transform-origin: center;
    transform: rotateY(0deg);
}
#newsletter-signup .newsletter-wrapper .newsletter-close {
	position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
