.ps-home-ad-carousel-section {
	padding: 0;
	position: relative;
	z-index: 1;
}

.ps-home-ad-carousel-section .container {
	width: min(100%, 1200px);
	margin: 0 auto;
	padding: 0 24px;
}

.ps-home-ad-carousel {
	overflow: hidden;
}

.ps-home-ad-carousel__viewport {
	position: relative;
}

.ps-home-ad-carousel__track {
	position: relative;
}

.ps-home-ad-carousel__slide {
	display: none;
	animation: ps-home-ad-fade 0.35s ease;
}

.ps-home-ad-carousel__slide.is-active {
	display: block;
}

.ps-home-ad-carousel__card {
	display: grid;
	grid-template-columns: 46% 54%;
	grid-template-rows: 1fr;
	grid-auto-rows: 0;
	gap: 0;
	align-items: stretch;
	height: var(--ps-slide-height, 340px);
	background: linear-gradient(135deg, #fff9f4 0%, #ffffff 48%, #f1dfcd 100%);
	border: 1px solid rgba(255, 238, 225, 0.7);
	border-radius: 26px;
	overflow: hidden;
}

.ps-home-ad-carousel__media {
	position: relative;
	overflow: hidden;
}

.ps-home-ad-carousel__card--image-only {
	grid-template-columns: 1fr;
}

.ps-home-ad-carousel__card--image-only .ps-home-ad-carousel__media img {
	object-fit: cover;
	width: 100%;
}

/* Desktop: image-only */
@media (min-width: 992px) {
	.ps-home-ad-carousel__card--image-only-desktop {
		grid-template-columns: 1fr;
	}

	.ps-home-ad-carousel__card--image-only-desktop .ps-home-ad-carousel__content {
		display: none;
	}

	.ps-home-ad-carousel__card--image-only-desktop .ps-home-ad-carousel__media img {
		object-fit: cover;
		width: 100%;
	}
}

.ps-home-ad-carousel__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(18, 24, 26, 0.04) 0%, rgba(18, 24, 26, 0.18) 100%),
		linear-gradient(135deg, rgba(195, 95, 39, 0.12) 0%, transparent 45%);
	z-index: 1;
	pointer-events: none;
}

.ps-home-ad-carousel__media-link {
	display: block;
	color: inherit;
	height: 100%;
}

.ps-home-ad-carousel__media picture {
	display: block;
	height: 100%;
}

.ps-home-ad-carousel__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.ps-home-ad-carousel__content {
	position: relative;
	isolation: isolate;
	padding: 28px 34px 26px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 12px;
	font-size: calc(1rem * var(--ps-slide-font-scale, 1));
}

.ps-home-ad-carousel__content::before {
	content: "";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(247, 197, 159, 0.24) 0%, rgba(247, 197, 159, 0) 72%);
	z-index: -1;
}

.ps-home-ad-carousel__badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #8e3f16 0%, #c35f27 100%);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 12px 24px rgba(142, 63, 22, 0.22);
}

.ps-home-ad-carousel__content h3 {
	margin: 0;
	font-size: clamp(calc(1.7rem * var(--ps-slide-font-scale, 1)), 2.6vw, calc(2.7rem * var(--ps-slide-font-scale, 1)));
	line-height: 1.08;
	color: #2f170c;
}

.ps-home-ad-carousel__text {
	color: #5e4537;
	font-size: inherit;
	line-height: 1.6;
}

.ps-home-ad-carousel__text p {
	margin: 0 0 10px;
}

.ps-home-ad-carousel__text p:last-child {
	margin-bottom: 0;
}

.ps-home-ad-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, #c35f27 0%, #8e3f16 100%);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 12px 24px rgba(142, 63, 22, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ps-home-ad-carousel__button::after {
	content: ">";
	font-size: 0.95rem;
	line-height: 1;
}

.ps-home-ad-carousel__button:hover,
.ps-home-ad-carousel__button:focus {
	color: #fff;
	background: linear-gradient(135deg, #d06d34 0%, #9a4619 100%);
	box-shadow: 0 14px 28px rgba(142, 63, 22, 0.26);
	transform: translateY(-2px);
}

.ps-home-ad-carousel__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
	padding: 0 6px;
}

.ps-home-ad-carousel__nav {
	border: 0;
	background: rgba(255, 248, 241, 0.16);
	color: #fff;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	backdrop-filter: blur(8px);
}

.ps-home-ad-carousel__nav:hover,
.ps-home-ad-carousel__nav:focus {
	background: rgba(255, 248, 241, 0.28);
	transform: scale(1.04);
}

.ps-home-ad-carousel__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex: 1;
}

.ps-home-ad-carousel__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	padding: 0;
	border: 0;
	background: rgba(255, 244, 235, 0.32);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.ps-home-ad-carousel__dot.is-active {
	background: #ffffff;
	transform: scale(1.15);
}

@keyframes ps-home-ad-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 991px) {
	.ps-home-ad-carousel-section {
		padding-bottom: 24px;
	}

	.ps-home-ad-carousel__card {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		grid-auto-rows: auto;
		height: auto;
	}

	.ps-home-ad-carousel__content {
		padding: 22px 22px 20px;
	}

	.ps-home-ad-carousel__media img {
		width: 100%;
		height: auto;
		object-fit: contain;
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.ps-home-ad-carousel-section {
		padding-bottom: 18px;
	}

	.ps-home-ad-carousel-section .container {
		width: 100%;
		padding: 0;
	}

	.ps-home-ad-carousel__card {
		border-radius: 0;
		grid-template-rows: auto auto;
		grid-auto-rows: auto;
		height: auto;
	}

	.ps-home-ad-carousel__media img {
		width: 100%;
		height: auto;
		object-fit: contain;
		max-width: 100%;
	}

	.ps-home-ad-carousel__content {
		padding: 18px 20px 20px;
	}

	.ps-home-ad-carousel__content::before {
		display: none;
	}

	.ps-home-ad-carousel__text {
		font-size: 1rem;
	}

	.ps-home-ad-carousel__controls {
		padding: 0 20px 18px;
		margin-top: 0;
	}

	.ps-home-ad-carousel__nav {
		width: 44px;
		height: 44px;
	}
}

/* Image-only overrides — must be after general media queries */
@media (max-width: 991px) {
	.ps-home-ad-carousel__card--image-only-mobile {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		grid-auto-rows: 0;
	}

	.ps-home-ad-carousel__card--image-only-mobile .ps-home-ad-carousel__content {
		display: none;
	}

	.ps-home-ad-carousel__card--image-only-mobile .ps-home-ad-carousel__media img {
		object-fit: contain;
		width: 100%;
		max-width: 100%;
	}
}