/* Horizontal Scroll Section Styles */
@media screen and (min-width: 768px) {
    .animate-anything-spacer {
        position: relative;
        width: 100%;
    }

    .animate-anything-sticky-container {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        margin-top: -63px;
    }

    .animate-anything-cards-wrapper {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-start !important;
        gap: 40px;
        width: max-content;
        max-width: none !important;
        margin: 0 !important;
        will-change: transform;
    }

    .animate-anything-cards-wrapper .animate-anything-card {
        flex-shrink: 0;
        transition: transform 0.4s ease, z-index 0.4s ease;
        z-index: 1;
    }

    /* Odd/Even Card Rotation Effect */
    .animate-anything-cards-wrapper .animate-anything-card:nth-child(odd) {
        transform: rotate(5deg);
    }

    .animate-anything-cards-wrapper .animate-anything-card:nth-child(even) {
        transform: rotate(-5deg);
    }
}

/* Responsive Fix for Mobile/Tablet */
@media screen and (max-width: 767px) {
    .animate-anything-spacer {
        height: auto !important;
    }

    .animate-anything-sticky-container {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }

    .animate-anything-cards-wrapper {
        flex-direction: column;
        gap: 30px;
        width: 100% !important;
        transform: none !important;
    }

    .animate-anything-cards-wrapper .animate-anything-card {
        transform: none !important;
        width: 100%;
    }
}

/* Hero Popup Video */
.hero-video-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: .3s ease;
	z-index: 999999;
}

.hero-video-modal.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hero-video-modal-inner {
	position: relative;
	width: 90%;
	max-width: 860px;
}
@media only screen and (max-width: 1024px) {
	.hero-video-modal-inner {
		max-width: 700px;
	}
}

.hero-video-frame iframe {
	width: 100%;
    height: auto;
    aspect-ratio: 876 / 493;
    border-radius: 12px;
    border: 0;
}

.hero-video-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

/* video popup */
.video-testimonial-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 30px;
}
@media only screen and (max-width: 1024px) {
	.video-testimonial-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media only screen and (max-width: 767px) {
	.video-testimonial-wrapper {
		grid-template-columns: repeat(1, 1fr);
	}
}
.video-testimonial {
	display: flex;
	flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--wp--frontis--color--custom-gray-200);
    background: #fff;
	transition: all 0.3s ease-in-out;
}
.video-testimonial:hover {
    border-width: 1px 1px 6px 1px;
	border-color: transparent;
    background: linear-gradient(#fff, #fff) padding-box,
    var(--wp--frontis--color--custom-color-2) border-box;
	transition: all 0.3s ease-in-out;
}
.video-testimonial_image {
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
	position: relative;
	border-bottom: 1px solid var(--wp--frontis--color--custom-gray-200);
}
.video-testimonial_image img {
    width: 100%;
	height: 100%;
	object-fit: cover;
}
.video-play-btn {
	display: flex;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	z-index: 2;
}
.video-testimonial_content {
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.video-testimonial-title {
    margin: 0 0 10px;
    font-family: var(--fb-global-fb_customtypo_geqtj--font-family);
    font-size: var(--fb-global-fb_customtypo_geqtj--font-size);
    font-weight: var(--fb-global-fb_customtypo_geqtj--font-weight);
    line-height: var(--fb-global-fb_customtypo_geqtj--line-height);
    color: var(--wp--frontis--color--custom-gray-900);
}
.video-testimonial-desc p {
    font-family: var(--fb-global-fb_customtypo_tredf--font-family);
    font-size: var(--fb-global-fb_customtypo_tredf--font-size);
    line-height: var(--fb-global-fb_customtypo_tredf--line-height);
    font-weight: 500;
    color: var(--wp--frontis--color--custom-gray-700);
}

.video-popup {
	position: fixed !important;
	inset: 0;
	background: rgba(0,0,0,.8);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
	z-index: 999999;
}

.video-popup.active {
	opacity: 1;
	visibility: visible;
}

.video-popup-inner {
	position: relative;
	width: 90%;
	max-width: 860px;
}
@media only screen and (max-width: 1024px) {
	.video-popup-inner {
		max-width: 700px;
	}
}

.video-popup-content iframe {
	width: 100%;
    height: auto;
    aspect-ratio: 876 / 493;
    border-radius: 12px;
    border: 0;
}

.video-popup-close {
	position: absolute;
	right: 10px;
	top: 10px;
	background: #fff;
	border: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}