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

/* Container */
.scrolling-text-copy {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 0;
	 /* Light beige background */
	 /* Dark brown text */
}

.scrolling-text-copy-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 3rem;
	align-items: start;
	position: relative;
}

/* Left Scrolling Text */
.scrolling-text-copy-left {
	position: relative;
	width: 200px;
	height: 835px;
	overflow: hidden;
}

.scrolling-text-copy-left-wrapper {
	display: flex;
	flex-direction: column;
	animation: scroll-down 30s linear infinite;
	will-change: transform;
	height: 100%;
}

/* Right Scrolling Text */
.scrolling-text-copy-right {
	position: relative;
	width: 200px;
	height: 835px;
	overflow: hidden;
}

.scrolling-text-copy-right-wrapper {
	display: flex;
	flex-direction: column;
	animation: scroll-up 30s linear infinite;
	will-change: transform;
	height: 100%;
}

/* Scrolling Text Items */
.scrolling-text-copy-item {
	padding: 0;
	font-size: 26px;
	font-weight: 400;
	line-height: 1.6;
	color: #BF9E75!important; /* Light beige text for sidebars */
	writing-mode: vertical-rl;
	text-orientation: mixed;
	white-space: nowrap;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	font-family: 'Article Century';
}

.scrolling-text-copy-left-item {
	text-align: left;
}

.scrolling-text-copy-right-item {
	text-align: right;
}

/* Central Content Area */
.scrolling-text-copy-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 723px;
	margin: 0 auto;
	width: 100%;
}

.scrolling-text-copy-title {
	font-size: 35px;
	font-weight: 100;
	line-height: 41px;
	margin: 61px 0 -27px;
	color: #3d2817; /* Dark brown */
	text-transform: uppercase;
}

.scrolling-text-copy-image-wrapper {
	position: relative;
	width: 100%;
	margin: 0;
}

.scrolling-text-copy-image {
	width: 100%;
	height: 541px;
	display: block;
	border-radius: 12px;
	object-fit: cover;
	object-position: center;
}

.scrolling-text-copy-button-wrapper {
	margin-top: -14px;
}

.scrolling-text-copy-button {
	display: inline-block;
	padding: 4px 8px 0;
	background-color: #BF9E74; /* Dark brown */
	color: #4C4C3B; /* Light beige */
	text-decoration: none;
	border-radius: 7px;
	transition: background-color 0.3s ease, color 0.3s ease;
	cursor: pointer;
	border: 2px solid #4C4C3B;
	font-family: 'Sunrider';
	font-weight: unset;
	font-size: 15px;
	transition: all 0.5s;
}

.scrolling-text-copy-button:hover,
.scrolling-text-copy-button:focus {
		transform: translateY(-2px);
}

.scrolling-text-copy-button:focus-visible {
	outline: 3px solid #3d2817;
	outline-offset: 3px;
}

.scrolling-text-copy-copy {
	color: #3d2817; /* Dark brown */
	max-width: 509px;
	margin: 27px auto 0;
}

.scrolling-text-copy-copy p {
	margin: 0 0 1rem;
}

.scrolling-text-copy-copy p:last-child {
	margin-bottom: 0;
}

/* Animations */
@keyframes scroll-down {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-33.333%);
	}
}

@keyframes scroll-up {
	0% {
		transform: translateY(-33.333%);
	}
	100% {
		transform: translateY(0);
	}
}


/* Responsive Design - Tablet */
@media (max-width: 1080px) {
	.scrolling-text-copy-container {
		grid-template-columns: 150px 1fr 150px;
		gap: 1rem;
		padding: 0 1.5rem;
	}

	.scrolling-text-copy-left,
	.scrolling-text-copy-right {
		width: 150px;

	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.scrolling-text-copy-container {
        grid-template-columns: 50px 1fr 50px;
        gap: 1rem;
        padding: 0 0;
    }
	.scrolling-text-copy-left, .scrolling-text-copy-right {
        width: 50px;
    }
}

/* Mobile horizontal scroll animations */
@keyframes scroll-right {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-33.333%);
	}
}

@keyframes scroll-left {
	0% {
		transform: translateX(-33.333%);
	}
	100% {
		transform: translateX(0);
	}
}

/* Extra Small Devices */
@media (max-width: 550px) {
 .scrolling-text-copy-title {
	 font-size:25px;
	 line-height:23px;
	 margin-top:25px;
 } 
	.scrolling-text-copy-image {
		height:400px;
	}
	.scrolling-text-copy-left, .scrolling-text-copy-right{
		height: 675px;
	}
	.scrolling-text-copy-item {
		font-size:20px;
	}
}
@media (max-width:410px) {
	    .scrolling-text-copy-image {
        height: 350px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.scrolling-text-copy {
		background-color: #ffffff;
		border: 2px solid #000000;
	}

	.scrolling-text-copy-item {
		color: #000000;
		font-weight: 600;
	}

	.scrolling-text-copy-title,
	.scrolling-text-copy-copy {
		color: #000000;
		font-weight: 700;
	}

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

/* Reduced Motion Support - Disable animations */
@media (prefers-reduced-motion: reduce) {
	.scrolling-text-copy-left-wrapper,
	.scrolling-text-copy-right-wrapper {
		animation: none;
		transform: translateY(0);
	}

	.scrolling-text-copy-left,
	.scrolling-text-copy-right {
		overflow-y: auto;
		overflow-x: hidden;
	}

	.scrolling-text-copy-left-wrapper,
	.scrolling-text-copy-right-wrapper {
		display: flex;
		flex-direction: column;
	}

	/* Show only first set of items when reduced motion */
	.scrolling-text-copy-left-item:nth-child(n + 4),
	.scrolling-text-copy-right-item:nth-child(n + 4) {
		display: none;
	}

	/* Mobile reduced motion */
	@media (max-width: 768px) {
		.scrolling-text-copy-left-wrapper,
		.scrolling-text-copy-right-wrapper {
			flex-direction: row;
			overflow-x: auto;
			overflow-y: hidden;
		}

		.scrolling-text-copy-left-item:nth-child(n + 4),
		.scrolling-text-copy-right-item:nth-child(n + 4) {
			display: flex;
		}
	}
}

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

	.scrolling-text-copy-left,
	.scrolling-text-copy-right {
		display: none;
	}

	.scrolling-text-copy-container {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.scrolling-text-copy-title,
	.scrolling-text-copy-copy {
		color: #000000;
	}

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

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

.scrolling-text-copy.has-text-color .scrolling-text-copy-title,
.scrolling-text-copy.has-text-color .scrolling-text-copy-copy {
	color: inherit;
}

.scrolling-text-copy.has-text-color .scrolling-text-copy-item {
	color: inherit;
	opacity: 1;
}

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

