/* **********************************************************
 * ELEMENT STYLES
 * ******************************************************** */

/* *****************************
 * BUTTON ADDITIONAL STYLING
 * *************************** */
.elementor-button {
    background-color: #1E7EC2 !important;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);	
	border: 0;
	padding: 1rem 3rem 1rem 3rem !important;
}
.elementor-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #8DC440;
    transform-origin: 100% 100% !important;
    transition: width 0.55s ease-in-out, height 0.55s ease-in-out;
    z-index: 1;
    border-left: 2px solid #FFF;
    border-top: 2px solid #FFF;
}
.elementor-button:hover:after {
    width: 110%;
    height: 110%;
}
.elementor-button .elementor-button-text {
    position: relative;
    z-index: 2;	
    transition: color 0.5s ease-in-out;
}


/* ******************************
 * ELEMENTOR MOTION EFFECTS TRANSITION
 * *************************** */
.elementor-element .elementor-widget-container.elementor-motion-effects-element {
    transition-duration: 2s;
}


/* *****************************
 * ELEMENT PADDING & MARGINS
 * *************************** */
.element-margin-bottom-0.elementor-element {
	margin-bottom: 0 !important;	
}


/* ******************************
 * BANNERS WITH OVERLAYS
 * *************************** */
.banner-overlay .jet-banner__overlay {
    mix-blend-mode: multiply;
    transition: all .5s ease-in-out;	
}
.banner-overlay .elementor-jet-banner {
	overflow: hidden;
}
.banner-overlay .elementor-jet-banner .jet-banner__img {
  transition: transform 1s, filter 2s ease-in-out;
  filter: blur(0px);
  transform: scale(1.0);
}
.banner-overlay .elementor-jet-banner:hover .jet-banner__img {
  transition: transform 1s, filter 2s ease-in-out;
  filter: blur(2px);
  transform: scale(1.1);
}
.banner-overlay .elementor-jet-banner:hover i {
	border-bottom: 2px solid #fff;
	padding-bottom: .5rem;
}

@media (max-width: 767px) {
	/* BANNER OVERLAY */
	.banner-overlay .elementor-jet-banner .jet-banner__img {
		transform: scale(1.65);	
	}	
	.banner-overlay .elementor-jet-banner:hover .jet-banner__img {
		transform: scale(1.75);	
	}	
}


/* ******************************
 * BLOG LISTING GRID SLIDER
 * *************************** */
.blog-slider .jet-listing-grid .jet-engine-listing-overlay-wrap .elementor-inner {
    height: 100%;
}
.blog-slider .blog-card .section-col .elementor-widget-wrap.elementor-element-populated {
    flex-direction: column;
}
.blog-slider .blog-card .section-col .inner-section-content {
    margin-bottom: auto;
}
.blog-slider .blog-card .elementor-container.elementor-column-gap-default {
    width: 100%;
}
.blog-slider .blog-card .inner-section-content {
    margin-bottom: 2rem;
}
.blog-slider .blog-card .blog-title {
    height: auto !important;	
	margin-bottom: 0 !important;
}
.blog-slider .blog-card .blog-title .elementor-widget-container {
    height: auto !important;
}


/* SET SAME HEIGHT */
.blog-slider .slick-track  {
	display: flex !important;	
}
.blog-slider .jet-listing-grid__item {
    height: auto !important;
} 
.blog-slider .blog-card {
    display: flex;	
	height: 100%;
}
.blog-slider .jet-listing-grid__item,
.blog-slider .jet-listing-grid__item .jet-engine-listing-overlay-wrap,
.blog-slider .jet-listing-grid__item .jet-engine-listing-overlay-wrap > div,
.blog-slider .jet-listing-grid__item .jet-engine-listing-overlay-wrap > div .elementor-section-wrap,
.blog-slider .jet-listing-grid__item .jet-engine-listing-overlay-wrap > div .elementor-section-wrap .blog-card {
  height: 100%;
}

/* No Padding on Bottom Button */
.page-template-full-width .jupiterx-main .elementor-section.elementor-section-boxed.inner-section-link .elementor-container,
.page-template-full-width .jupiterx-main .elementor-section.elementor-section-boxed.inner-section-link .elementor-container .elementor-widget-wrap {
    padding: 0 !important;
}
.blog-slider .inner-section-link {
    position: absolute !important;
    bottom: 0;
}


/* ******************************
 * PRODUCT LISTING GRID SLIDER
 * *************************** */
.product-slider .product-card {
    display: flex;	
}
.product-slider .product-card .section-col .elementor-widget-wrap.elementor-element-populated {
    flex-direction: column;
}
.product-slider .product-card .section-col .inner-section-content {
    margin-bottom: 3rem;
}
.product-slider .product-card .elementor-container.elementor-column-gap-default {
    width: 100%;
}
.product-slider .product-card .inner-section-content {

}
.product-slider .product-card .product-title {
	margin-bottom: 0 !important;
}
.product-slider .product-card .product-desc {

}
.product-slider .inner-section-link {
    position: absolute !important;
    bottom: 0;
}
.product-slider .product-card .jet-listing.jet-listing-dynamic-link {
    display: flex;
    flex-direction: row;
    align-content: stretch;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    height: 100%;
}
.product-slider .product-card a.jet-listing-dynamic-link__link {
    width: 100%;
    height: 100%;
    display: flex !important;
	font-size: 1.125rem !important;
}


/* ******************************
 * DEFAULT PAGER - SEARCH RESULTS, ETC
   NOTE: You CAN typically style the element directly
 * *************************** */
/* Default Pager - Search Results, etc */
.page-item.active .page-link {
    color: #fff;
    background-color: #555 !important;
    border-color: #111 !important;
}


/* ******************************
 * IMAGE GRID GALLERY LIGHTBOX
 * *************************** */
.mfp-close {
	font-size: 24px !important;
}
/* Kill Close & Arrow Background Hover Color */
.mfp-arrow,
.mfp-close:hover {
	background-color: transparent !important;
	border: none !important;
}

/* Hide Lightbox Alt Text Caption
 .mfp-bottom-bar .mfp-title { 
	display: none; 
} */


/* ******************************
 * FLIP BOX
 * *************************** */
@media (max-width: 1024px) {		
	/* Fix for iOS z-index like bug - Flip Boxes cover Header, Mobile Menu, etc */
	.ios .ha-flip-box-container.ha-flip-effect-3d .ha-flip-box-back-inner, 
	.ios .ha-flip-box-container.ha-flip-effect-3d .ha-flip-box-front-inner {
		-webkit-transform: translateZ(0px) scale(.9) !important;
		transform: translateZ(0px) scale(.9) !important;
	}
}

@media (max-width: 767px) {
	/* FLIP BOX IOS FIX - not all but Design 9 caused Flip Box to appear on top of Header  */
	.ios .flip-boxes-icon-title-txt .ha-flip-box-container.ha-flip-effect-3d .ha-flip-box-inner-wrapper {
	  -webkit-transform-style: flat;
	  transform-style: preserve-3d;
	}	
}


/* ******************************
 * GOOGLE MAPS
 * *************************** */
.gm-style iframe + div {
    border: 0 !important;
}


/* ******************************
 * BACKGROUND OVERLAY for iPHONE - Add Class if Needed
 * *************************** */
@media (max-width: 767px) {
	/* Overlay */
	.responsive-phone-overlay-opacity .elementor-background-overlay {
		opacity: .7 !important;
	}
}


/* ******************************
 * JET HEADLINE
 * *************************** */
span.jet-headline__space {
    line-height: 1px;
}


/* ******************************
 * TEXT EDITOR BULLET LIST STYLING
 * *************************** */\
/* OL LISTS */
.elementor-widget-text-editor ol {
  padding-left: 1.5rem;
}
.elementor-widget-text-editor ol li {
  padding: 0 0 2rem 0;
}

/* UL LISTS */
.elementor-widget-text-editor ul {
  list-style-type: none;
  padding-left: 0; 
}
.elementor-widget-text-editor li {
  padding: 0 0 2rem 3rem;
}
.elementor-widget-text-editor li::before {
  content: "■";
  font-size: 2.5rem;
  position: absolute;
  left: 0;
  line-height: 0.65em;
}

/* Apply colors to the squares based on their position in the list */
/* Every 1st, 4th, 7th, etc. item */
.elementor-widget-text-editor li:nth-of-type(3n + 1)::before {
  color: #1E7EC2; /* Blue */
}

/* Every 2nd, 5th, 8th, etc. item */
.elementor-widget-text-editor li:nth-of-type(3n + 2)::before {
  color: #8DC440; /* Green */
}

/* Every 3rd, 6th, 9th, etc. item */
.elementor-widget-text-editor li:nth-of-type(3n + 3)::before {
  color: #F68629; /* Orange */
}

@media (max-width: 1024px) {
  .center-1024 .elementor-widget-text-editor li {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 0 2rem 0;
    flex-direction: column;
  }	
  .center-1024 .elementor-widget-text-editor li::before {
    position: relative;
    margin: 0 0 15px;
    display: inline;
  }	
}

@media (max-width: 768px) {
  .center-768 .elementor-widget-text-editor li {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 0 2rem 0;
    flex-direction: column;
  }	
  .center-768 .elementor-widget-text-editor li::before {
    position: relative;
    margin: 0 0 15px;
    display: inline;
  }	
}


/* ******************************
 * ICON LIST CENTERED ON MOBILE - add class mobile-center
 * *************************** */
@media (max-width: 1024px) {
	.mobile-center .elementor-icon-list-item,
	.mobile-center .elementor-icon-list-item a {
		text-align: center !important;
	}
}

@media (max-width: 768px) {
	.mobile-768-center .elementor-icon-list-item,
	.mobile-768-center .elementor-icon-list-item a {
		text-align: center !important;
	}
}


/* *****************************
 * JUPITER RAVEN ADVANCED VIDEO ELEMENT
 * *************************** */
.raven-video-mejs-player {
    z-index: 9000 !important;
    display: block;
    background: rgba(0,0,0,.9) !important;
}
.raven-video-mejs-player .raven-video-mejs-player {
	z-index: 9000 !important;
}

/* Keep Header, Scroll Buttons, Hero Overlay Behind Popup*/
.mejs-fullscreen header.jupiterx-header,
.safari.mejs-fullscreen header.jupiterx-header,
.mejs-fullscreen .ha-has-bg-overlay>.elementor-widget-container,
.safari.mejs-fullscreen .ha-has-bg-overlay>.elementor-widget-container,
.mejs-fullscreen .jupiterx-corner-buttons {
	z-index: 0;
}


/* *****************************
 * ADVANCED ACCORDION - some helpers if needed
 * *************************** */
 /* Space Between Toggles */
.jupiterx-single-advanced-accordion-wrapper {
	margin-bottom: 5px;	
}

/* Force the Border Color on Toggle Header */
.jx-single-accordion-header {
    border-color: #EEE !important;
}
.jx-ac-inactive .jx-single-accordion-header {
    border-color: transparent !important;
}


/* *****************************
 * JUPITER TESTIMONIAL CAROUSEL TWEAKS
 * *************************** */
.elementor-widget-raven-testimonial-carousel .swiper-wrapper {
  margin-bottom: 3rem !important;
   min-height: fit-content !important;    
}
.elementor-widget-raven-testimonial-carousel .raven-main-swiper {
   min-height: fit-content !important;
}
.elementor-widget-raven-testimonial-carousel .raven-main-swiper .swiper-slide {
    overflow-y: visible;
    min-height: fit-content !important;
    display: flex;
	justify-content: center;
}
.elementor-widget-raven-testimonial-carousel .raven-main-swiper .swiper-slide .raven-testimonial {
    justify-content: center;
}


/* *****************************
 * ADVANCED HEADING
 * *************************** */
@media (max-width: 1024px) {
	.adv-heading-center-1024 .ha-advanced-heading-wrap {
		text-align: center !important;
		width: 100%;
    	display: flex;
    	flex-direction: column;
	}
}


@media (max-width: 768px) {
	.adv-heading-center-768 .ha-advanced-heading-wrap {
		text-align: center !important;
		width: 100%;
    	display: flex;
    	flex-direction: column;		
	}
}


/* *****************************
 * MM CIRCLE ICON
 * *************************** */
.mm-circle-icon .raven-image img {
    transform-origin: center center;
    animation: rotate 90s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* *****************************
 * GOOGLE REVIEWS
 * *************************** */
.es-header-heading-container {
    display: flex !important; /* Keep flexible layout */
    align-items: center !important; /* Keep vertical alignment */
    width: auto !important; /* Allow container to grow */
    margin-bottom: 20px !important; /* Add space below to prevent overlap */
    gap: 0.5rem !important;
}
.es-google-logo {
    width: auto !important; /* Allow container to adapt */
    display: inline-block !important; /* Fit to content */
}
.es-google-logo svg {
    width: 10rem !important; /* Keep your logo size */
    height: auto !important; /* Maintain aspect ratio */
}
.es-header-heading-text {
  font-size: clamp(22px, calc(22px + (28 - 22) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.0125))), 100vw) !important;	
}

/* BUTTON */
.google-reviews button.es-header-write-review-button {
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 320px) / (1920 - 320)) + max(0px, ((100vw - 1920px) * 0.0125))), 100vw) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
    background-color: #1E7EC2 !important;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);	
	border: 0;
	padding: 1rem 3rem 1rem 3rem !important;
}
.google-reviews button.es-header-write-review-button:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #8DC440;
    transform-origin: 100% 100% !important;
    transition: width 0.55s ease-in-out, height 0.55s ease-in-out;
    z-index: 1;
    border-left: 2px solid #FFF;
    border-top: 2px solid #FFF;
}
.google-reviews button.es-header-write-review-button:hover:after {
    width: 110%;
    height: 110%;
}
.google-reviews button.es-header-write-review-button:hover span {
	background: none !important;
}
.google-reviews button.es-header-write-review-button span span {
    position: relative;
    z-index: 2;	
    transition: color 0.5s ease-in-out;
}


/* *****************************
 *  ROUND NUMBER HEADING ELEMENT
 * *************************** */
.round-number {
	border-radius: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 5rem !important;
	height: 5rem !important;
	text-align: center !important;
}
.round-number .e-con-inner,
.round-number .elementor-widget-heading,
.round-number .elementor-widget-container .elementor-heading-title {
	border-radius: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
    padding: 0;
    text-align: center !important;
}
.round-number .elementor-widget-container .elementor-heading-title {
	margin-top: -2px
}


/* *****************************
 *  MORTGAGE CALCULATOR
 * *************************** */
#mc-form #mc-submit {
	background-image: linear-gradient(#8DC440, #8DC440);
	background-position: right bottom;
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-color: #1E7EC2;
	border: 0;
	padding: 1rem 3rem 3rem !important;
	cursor: pointer;
	line-height: auto !important;
	transition: all .5s ease;
}
#mc-form #mc-submit:hover {
	background-color: #8DC440;
}