/**
 * Scrolling Text Banner Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Container */
.scrolling-text-banner {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 0;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scrolling-text-banner-container {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 840px;
}

/* Background Image */
.scrolling-text-banner-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.scrolling-text-banner-background-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Content Overlay */
.scrolling-text-banner-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	height: 840px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Top Text - Handwritten style, white, uppercase */
.scrolling-text-banner-top-text {
	font-family: 'Palmer Lake Print';
	font-size: 30px;
	font-weight: 400;
	line-height: 22px;
	color: #F8F2DF;
	text-transform: uppercase;
	margin-bottom: 2px;
	max-width: 236px;
	transform: rotate(-5deg);
	padding-top: 210px;
}

/* Tagline - Handwritten style, golden color */
.scrolling-text-banner-tagline {
	font-family: 'Palmer Lake Print';
	font-size: 30px;
	font-weight: 400;
	line-height: 22px;
	color: #D2B055;
	margin-bottom: 0;
	transform: rotate(-5deg);
}

/* Scrolling Locations Container */
.scrolling-text-banner-locations {
	position: relative;
	width: 100%;
	margin: 2rem 0;
	padding: 1rem 0;
}

.scrolling-text-banner-locations-container {
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* Swiper Container */
.scrolling-text-banner-swiper {
	width: 100%;
	overflow: hidden;
}

/* Swiper Wrapper */
.scrolling-text-banner-wrapper {
	display: flex;
	white-space: nowrap;
	width: fit-content;
}

/* RTL container - ensure proper positioning */
.scrolling-text-banner-rtl .scrolling-text-banner-locations-container {
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: flex-end;
}

/* RTL wrapper with CSS animation for right-to-left scrolling */
.scrolling-text-banner-rtl .scrolling-text-banner-wrapper {
	animation: scroll-locations-left 60s linear infinite;
	will-change: transform;
}

/* Pause animation on hover */
.scrolling-text-banner-rtl:hover .scrolling-text-banner-wrapper {
	animation-play-state: paused;
}

/* Swiper Slide */
.scrolling-text-banner-slide {
	width: auto !important;
	display: inline-block;
}

/* Location Content */
.scrolling-text-banner-location-content {
	display: inline-block;
	padding: 0;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
	color: #F8F2DF;
	font-family: 'Article Century';
}

.lower-button .scrolling-text-banner-content {
	height: 779px;
}
.lower-button .scrolling-text-banner-bottom-text {
	margin-top:250px;
}
.lower-button .scrolling-text-banner-button-wrapper{
	    margin-bottom: 46px;
}

.lower-button .scrolling-text-banner-container {
	min-height:779px;
}

/* Bottom Text - Sans-serif, white */
.scrolling-text-banner-bottom-text {
	font-weight: 400;
	line-height: 1.5;
	color: #F8F2DF;
	margin: 0;
	font-family: 'Sunrider';
	font-size: 15px;
}

/* Button */
.scrolling-text-banner-button-wrapper {
	margin-top: 11px;
}

.scrolling-text-banner-button {
	display: inline-block;
	padding: 4px 12px 2px;
	background-color: #D4B055;
	border: 2px solid #4C4C3B;
	color: #ffffff;
	text-decoration: none;
	border-radius: 7px;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #4C4C3B;
	font-family: 'Sunrider';
}

.scrolling-text-banner-button:hover,
.scrolling-text-banner-button:focus {
}

.scrolling-text-banner-button:focus-visible {

}

/* Animation for scrolling locations - right to left */
@keyframes scroll-locations-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-33.333%);
	}
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
	.scrolling-text-banner {
		min-height: 500px;
	}

	.scrolling-text-banner-container {
		min-height: 500px;
	}

	.scrolling-text-banner-content {
		min-height: 500px;
	}

	.scrolling-text-banner-top-text {
		margin-bottom: 0.75rem;
	}

	.scrolling-text-banner-tagline {
		margin-bottom: 1.5rem;
	}

	.scrolling-text-banner-locations {
		margin: 1.5rem 0;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.scrolling-text-banner {
		min-height: 400px;
	}

	.scrolling-text-banner-container {
		min-height: 400px;
	}

	.scrolling-text-banner-content {
		min-height: 400px;
		padding: 2rem 1rem;
	}

	.scrolling-text-banner-top-text {
		margin-bottom: 0.5rem;
	}

	.scrolling-text-banner-tagline {
		margin-bottom: 1rem;
	}

	.scrolling-text-banner-locations {
		margin: 1rem 0;
		padding: 0.75rem 0;
	}

	.scrolling-text-banner-location-content {
		padding: 0 3px;
		font-size: 13px;
	}

	.scrolling-text-banner-bottom-text {
		margin: 1.5rem 0 1rem;
	}

	.scrolling-text-banner-button {
		padding: 2px 13px 0;
	}
}

/* Extra Small Devices */
@media (max-width: 500px) {
	.scrolling-text-banner {
		min-height: 350px;
	}
	.scrolling-text-banner-bottom-text {
        margin: 0;
        font-size: 13px;
    }
	    .scrolling-text-banner-locations {
        margin: 0rem 0;
        padding: 0.75rem 0;
    }
	.scrolling-text-banner-top-text {
	    font-size: 22px;
	    font-weight: 400;
	    line-height: 18px;
	    transform: rotate(-5deg);
	    padding-top: 50px;
	    margin:0;
	}
	    .scrolling-text-banner-tagline {
       font-size:22px;
			margin:0;
    }
	.scrolling-text-banner-container {
		min-height: 350px;
	}
	.lower-button .scrolling-text-banner-container {
    min-height: 350px;
}
	.lower-button .scrolling-text-banner-bottom-text {
    margin-top: 50px;
}

	.scrolling-text-banner-content {
		min-height: 350px;
		padding: 0;
		height: 360px;
	}
	.lower-button .scrolling-text-banner-content {
    height: 360px;
}

	.scrolling-text-banner-locations-wrapper {
		animation-duration: 30s;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.scrolling-text-banner-top-text,
	.scrolling-text-banner-bottom-text,
	.scrolling-text-banner-location-content {
		color: #ffffff;
		text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
		font-weight: 700;
	}

	.scrolling-text-banner-tagline {
		color: #FFD700;
		font-weight: 700;
		text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
	}

	.scrolling-text-banner-button {
		background-color: #FFD700;
		color: #000000;
		border: 3px solid #000000;
		font-weight: 700;
	}
}

/* Reduced Motion Support - Disable animation */
@media (prefers-reduced-motion: reduce) {
	.scrolling-text-banner-wrapper {
		justify-content: center;
	}

	.scrolling-text-banner-slide:not(:first-child) {
		display: none;
	}
}

/* Print Styles */
@media print {
	.scrolling-text-banner {
		min-height: auto;
		background-color: #ffffff;
		padding: 1rem 0;
	}

	.scrolling-text-banner-background {
		display: none;
	}

	.scrolling-text-banner-content {
		min-height: auto;
		padding: 1rem;
		color: #000000;
	}

	.scrolling-text-banner-top-text,
	.scrolling-text-banner-bottom-text,
	.scrolling-text-banner-location-content {
		color: #000000;
		text-shadow: none;
	}

	.scrolling-text-banner-tagline {
		color: #000000;
		text-shadow: none;
	}

	.scrolling-text-banner-wrapper {
		justify-content: center;
	}

	.scrolling-text-banner-slide:not(:first-child) {
		display: none;
	}

	.scrolling-text-banner-button {
		background-color: #000000;
		color: #ffffff;
		border: 1px solid #000000;
	}
}

/* Support for block wrapper color classes */
.scrolling-text-banner.has-background {
	padding: 0;
}

.scrolling-text-banner.has-text-color .scrolling-text-banner-top-text,
.scrolling-text-banner.has-text-color .scrolling-text-banner-bottom-text,
.scrolling-text-banner.has-text-color .scrolling-text-banner-location-content {
	color: inherit;
}

.scrolling-text-banner.has-text-color .scrolling-text-banner-tagline {
	color: inherit;
	opacity: 0.9;
}

/* Ensure proper contrast when custom colors are used */
.scrolling-text-banner.has-background .scrolling-text-banner-button {
	background-color: currentColor;
	color: inherit;
}

