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

/* *****************************
 * BUTTON ADDITIONAL STYLING
 * *************************** */
.elementor-button-wrapper {
    display: inline-block;
    position: relative;
}

/* Base button styles */
.elementor-button {
    position: relative;
    border: 2px solid #1B1F2B !important;
}
.elementor-button-text {
	transition: all 1s ease;
}
/* Keep border navy during hover animation */
.elementor-button:hover {
    border: 2px solid #1B1F2B;
}

/* Top border animation */
.elementor-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 0;
    height: 2px;
    background: #924610;
    pointer-events: none;
}

/* Right border animation */
.elementor-button::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 2px;
    height: 0;
    background: #924610;
    pointer-events: none;
}

/* Bottom border animation - using wrapper's pseudo-element */
.elementor-button-wrapper::before {
    content: '';
    position: absolute;
    bottom: -0px;
    right: -0px;
    width: 0;
    height: 2px;
    background: #924610;
    pointer-events: none;
    z-index: 10;
}

/* Left border animation - using wrapper's pseudo-element */
.elementor-button-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 2px;
    height: 0;
    background: #924610;
    pointer-events: none;
}

/* Hover animations */
.elementor-button:hover::before {
    animation: border-top 0.25s linear forwards;
}
.elementor-button:hover::after {
    animation: border-right 0.25s linear 0.4s forwards;
}
.elementor-button-wrapper:hover::before {
    animation: border-bottom 0.25s linear 0.8s forwards;
}
.elementor-button-wrapper:hover::after {
    animation: border-left 0.25s linear 1.2s forwards;
}

/* Reverse animations for mouseout */
.elementor-button:not(:hover)::before {
    animation: border-top-reverse 0.25s linear 1.2s forwards;
}
.elementor-button:not(:hover)::after {
    animation: border-right-reverse 0.25s linear 0.8s forwards;
}
.elementor-button-wrapper:not(:hover)::before {
    animation: border-bottom-reverse 0.25s linear 0.4s forwards;
}
.elementor-button-wrapper:not(:hover)::after {
    animation: border-left-reverse 0.25s linear forwards;
}

/* Hover animations */
@keyframes border-top {
    0% { width: 0; }
    100% { width: 101%; }
}
@keyframes border-right {
    0% { height: 0; }
    100% { height: 104%; }
}
@keyframes border-bottom {
    0% { width: 0; }
    100% { width: 100%; }
}
@keyframes border-left {
    0% { height: 0; }
    100% { height: 100%; }
}

/* Reverse animations */
@keyframes border-top-reverse {
    0% { width: 100%; background: #924610; }
    100% { width: 0; background: #924610; }
}
@keyframes border-right-reverse {
    0% { height: 100%; background: #924610; }
    100% { height: 0; background: #924610; }
}
@keyframes border-bottom-reverse {
    0% { width: 100%; background: #924610; }
    100% { width: 0; background: #924610; }
}
@keyframes border-left-reverse {
    0% { height: 100%; background: #924610; }
    100% { height: 0; background: #924610; }
}

/* Final border state 
.elementor-button {
    transition: border 0s 1s;
}
.elementor-button:hover {
    border: 2px solid #924610;
} */


/* *****************************
 * WHITE BUTTON ADDITIONAL STYLING
 * *************************** */
.white-btn .elementor-button-wrapper {
    display: inline-block;
    position: relative;
}

/* Base button styles */
.white-btn .elementor-button {
    position: relative;
    border: 2px solid #F9F4F4 !important;
}
.white-btn .elementor-button-text {
	color: #F9F4F4;
	transition: all 1s ease;
}
/* Keep border navy during hover animation */
.white-btn .elementor-button:hover {
    border: 2px solid #F9F4F4;
}

/* Top border animation */
.white-btn .elementor-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 0;
    height: 2px;
    background: #924610;
    pointer-events: none;
}

/* Right border animation */
.white-btn .elementor-button::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 2px;
    height: 0;
    background: #924610;
    pointer-events: none;
}

/* Bottom border animation - using wrapper's pseudo-element */
.white-btn .elementor-button-wrapper::before {
    content: '';
    position: absolute;
    bottom: -0px;
    right: -0px;
    width: 0;
    height: 2px;
    background: #924610;
    pointer-events: none;
    z-index: 10;
}

/* Left border animation - using wrapper's pseudo-element */
.white-btn .elementor-button-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 2px;
    height: 0;
    background: #924610;
    pointer-events: none;
}

/* Hover animations */
.white-btn .elementor-button:hover::before {
    animation: white-btn-border-top 0.25s linear forwards;
}
.white-btn .elementor-button:hover::after {
    animation: white-btn-border-right 0.25s linear 0.4s forwards;
}
.white-btn .elementor-button-wrapper:hover::before {
    animation: white-btn-border-bottom 0.25s linear 0.8s forwards;
}
.white-btn .elementor-button-wrapper:hover::after {
    animation: white-btn-border-left 0.25s linear 1.2s forwards;
}

/* Reverse animations for mouseout */
.white-btn .elementor-button:not(:hover)::before {
    animation: white-btn-border-top-reverse 0.25s linear 1.2s forwards;
}
.white-btn .elementor-button:not(:hover)::after {
    animation: white-btn-border-right-reverse 0.25s linear 0.8s forwards;
}
.white-btn .elementor-button-wrapper:not(:hover)::before {
    animation: white-btn-border-bottom-reverse 0.25s linear 0.4s forwards;
}
.white-btn .elementor-button-wrapper:not(:hover)::after {
    animation: white-btn-border-left-reverse 0.25s linear forwards;
}

/* Hover animations */
@keyframes white-btn-border-top {
    0% { width: 0; }
    100% { width: 101%; }
}
@keyframes white-btn-border-right {
    0% { height: 0; }
    100% { height: 104%; }
}
@keyframes white-btn-border-bottom {
    0% { width: 0; }
    100% { width: 100%; }
}
@keyframes white-btn-border-left {
    0% { height: 0; }
    100% { height: 100%; }
}

/* Reverse animations */
@keyframes white-btn-border-top-reverse {
    0% { width: 100%; background: #924610; }
    100% { width: 0; background: #924610; }
}
@keyframes white-btn-border-right-reverse {
    0% { height: 100%; background: #924610; }
    100% { height: 0; background: #924610; }
}
@keyframes white-btn-border-bottom-reverse {
    0% { width: 100%; background: #924610; }
    100% { width: 0; background: #924610; }
}
@keyframes white-btn-border-left-reverse {
    0% { height: 100%; background: #924610; }
    100% { height: 0; background: #924610; }
}

/* Final border state
.white-btn .elementor-button {
    transition: border 0s 1s;
}
.white-btn .elementor-button:hover {
    border: 2px solid #924610;
} */


/* ******************************
 * 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;
}
.ha-google-map {
	width: 100%;
    height: 100% !important;	
}
.ha-google-map .elementor-widget-container {
    height: 100% !important;
}
.ha-adv-google-map {
    height: 100%;
}
.ha-adv-google-map__wrapper {
    height: 100% !important;
	min-height: 500px; 
}


/* ******************************
 * 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;
}


/* ******************************
 * ICON LIST CENTERED ON MOBILE - add class mobile-center
 * *************************** */
@media (max-width: 767px) {
	.mobile-center .elementor-icon-list-item,
	.mobile-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;
}


/* *****************************
 * ACCORDION
 * *************************** */
.elementor-widget-n-accordion .e-n-accordion-item-title-text {
	font-family: "Archivo Extra Light", Sans-serif !important;
	line-height: 1.35em !important;
	text-align: center;
}
.elementor-widget-n-accordion summary.e-n-accordion-item-title {
    transition: all .5s ease;
}


/* *****************************
 * POPUPS
 * *************************** */
.dialog-lightbox-message .elementor-widget-text-editor p:last-of-type {
	margin-bottom: 0;
}