.psts-section {
	padding: 40px 0;
	background: #fffaf7;
	overflow: visible;
}

.psts-container {
	width: min(1320px, calc(100% - 40px));
	margin: 0 auto;
}

/* slider wrapper */
.psts-slider-shell {
	--psts-slide-height: clamp(560px, 46vw, 680px);
	position: relative;
	min-height: var(--psts-slide-height);
}

.psts-slider {
	margin: 0;
	min-height: var(--psts-slide-height);
}

.js-psts-slider .slick-list {
	overflow: visible;
	min-height: var(--psts-slide-height);
}

.js-psts-slider .slick-track {
	display: flex !important;
	align-items: stretch;
	min-height: var(--psts-slide-height);
	height: var(--psts-slide-height);
}

.js-psts-slider .slick-slide {
	height: var(--psts-slide-height) !important;
	padding: 0 14px;
	opacity: 0.28;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.js-psts-slider .slick-slide > div {
	height: 100%;
}

.js-psts-slider .slick-center,
.js-psts-slider .slick-current {
	opacity: 1;
}

/* card */
.psts-card {
	position: relative;
	height: var(--psts-slide-height);
	border-radius: 8px;
	overflow: hidden;
	background: #d8d8d8;
}

/* media layer forced to fill entire card */
.psts-media {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* force all possible WP image outputs to cover */
.psts-media img,
.psts-main-image,
.psts-media .attachment-full,
.psts-media .attachment-large,
.psts-media picture,
.psts-media picture img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.psts-media-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #cfd4d8, #ececec);
}

.psts-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(90deg, rgba(0,0,0,0.24) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.00) 66%),
		linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.02) 45%, rgba(0,0,0,0.12) 100%);
}

/* quote panel */
.psts-content {
	position: absolute;
	left: 42px;
	bottom: 42px;
	z-index: 3;
	width: min(510px, calc(100% - 84px));
	background: #efebe6;
	padding: 38px 32px 34px;
	box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}

.psts-logo-wrap {
	margin-bottom: 12px;
}

.psts-logo {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 42px;
	object-fit: contain;
}

.psts-quote {
	margin: 0 0 26px;
}

.psts-quote p {
	margin: 0;
	font-size: clamp(1.05rem, 1.25vw, 1.65rem);
	line-height: 1.24;
	letter-spacing: -0.015em;
	font-weight: 700;
	color: #111111;
}

.psts-person {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.psts-name {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: #1f2937;
}

.psts-role,
.psts-company {
	display: block;
	width: 100%;
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #4b5563;
}

.psts-company {
	margin-top: 2px;
}

.psts-cta-wrap {
	margin-top: 18px;
}

.psts-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 15px;
	border-radius: 2px;
	background: #f15922;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.psts-cta:hover {
	color: #fff;
	background: #d84d1d;
}

/* arrows overlay like Procore on desktop */
.psts-nav {
	position: absolute;
	inset: 50% 0 auto 0;
	transform: translateY(-50%);
	z-index: 5;
	pointer-events: none;
}

.psts-arrow {
	position: absolute;
	top: 0;
	width: 72px;
	height: 72px;
	border: 0;
	border-radius: 4px;
	background: rgba(36, 36, 36, 0.82);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.psts-prev {
	left: 58px;
}

.psts-next {
	right: 58px;
}

.psts-arrow:hover {
	background: rgba(24, 24, 24, 0.92);
}

.psts-arrow.slick-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.psts-arrow svg {
	width: 34px;
	height: 34px;
	display: block;
}

/* play pause button */
.psts-toggle {
	position: absolute;
	right: 38px;
	bottom: 28px;
	z-index: 6;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 4px;
	background: rgba(255,255,255,0.96);
	color: #111;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.psts-toggle-play {
	display: none;
}

.psts-toggle.is-paused .psts-toggle-pause {
	display: none;
}

.psts-toggle.is-paused .psts-toggle-play {
	display: inline;
}

/* tablet */
@media (max-width: 1199px) {
	.psts-section {
		padding: 40px 0;
	}

	.psts-slider-shell {
		--psts-slide-height: 620px;
	}

	.psts-content {
		width: min(460px, calc(100% - 56px));
		left: 28px;
		bottom: 28px;
		padding: 28px 26px 26px;
	}

	.psts-prev {
		left: 28px;
	}

	.psts-next {
		right: 28px;
	}
}

/* mobile */
@media (max-width: 767px) {
	.psts-section {
		padding: 40px 0;
	}

	.psts-container {
		width: min(100% - 24px, 1320px);
	}

	.psts-slider-shell {
		--psts-slide-height: 500px;
		padding-bottom: 64px;
	}

	.js-psts-slider .slick-slide {
		padding: 0 6px;
		opacity: 1;
	}

	.psts-content {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
		padding: 20px 18px;
	}

	/* mobile quote text smaller */
	.psts-quote p {
		font-size: clamp(0.8rem, 3.4vw, 1rem);
		line-height: 1.26;
	}

	.psts-name {
		font-size: 18px;
	}

	.psts-role,
	.psts-company {
		font-size: 12px;
	}

	.psts-logo {
		max-width: 190px;
		max-height: 42px;
	}

	/* move arrows outside the card on mobile */
	.psts-nav {
		position: absolute;
		inset: auto 0 0 auto;
		transform: none;
		width: auto;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 10px;
		pointer-events: auto;
		bottom: 0;
		right: 0;
	}

	.psts-arrow {
		position: static;
		width: 42px;
		height: 42px;
		border-radius: 999px;
		background: #ffffff;
		color: #111111;
		border: 1px solid #d6d6d6;
		box-shadow: none;
	}

	.psts-arrow:hover {
		background: #ffffff;
		color: #111111;
		border-color: #bdbdbd;
	}

	.psts-arrow svg {
		width: 20px;
		height: 20px;
	}

	/* move play/pause beside arrows on mobile */
	.psts-toggle {
		right: 102px;
		bottom: 0;
		width: 42px;
		height: 42px;
		border-radius: 999px;
		background: #ffffff;
		border: 1px solid #d6d6d6;
		box-shadow: none;
	}
}