/**
 * Post Highlight Slider Block Styles
 * Styles for the Post Highlight Slider custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.post-highlight-slider-block {
	width: 100%;
	margin: 0 auto;
	padding: 2px 0;
	position: relative;
}

.post-highlight-slider-container {
	width: 100%;
    max-width: 985px;
    position: relative;
    margin: 0 auto;
}

/* Icon - Top Left */
.post-highlight-slider-icon {
	position: absolute;
	top: -95px;
	left: -89px;
	z-index: 10;
	max-width: 155px;
	height: auto;
	transform: rotate(-15deg);
}

.post-highlight-slider-icon img {
	width: 100%;
	height: auto;
	display: block;
}

/* Swiper Wrapper */
.post-highlight-slider-swiper-wrapper {
	position: relative;
	width: 100%;
	margin-top: 3rem;
	padding: 0;
}

.post-highlight-slider-swiper {
    position: relative;
    width: 100%;
    margin-top: -8px;
    padding: 39px 0;
    overflow: hidden;
}

.post-highlight-slider-swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.post-highlight-slider-swiper .swiper-slide {
	height: auto;
	display: flex;
	transition: transform 0.3s ease, z-index 0.3s ease;
	opacity: 1!important;
}
.post-highlight-slider-swiper .swiper-slide-prev {margin-right: -42px;}

/* Center Slide - Larger and Overlapping */
.post-highlight-slider-swiper .swiper-slide-active {
	z-index: 2;
	width: 450px!important;
	text-align: center;
	margin-right:-80px!important;
	transform: scale(1.1);
}

/* Side Slides - Smaller */
.post-highlight-slider-swiper .swiper-slide:not(.swiper-slide-active) {
	z-index: 1;
	opacity: 0.8;
}

/* Post Cards */
.post-highlight-slider-card {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-highlight-slider-link {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.post-highlight-slider-link:focus {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Image Wrapper */
.post-highlight-slider-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    border: 2px solid var(--SMOKED, #6D240B);
    background: var(--Yolk, #FFC856);
    padding: 16px;
    width: 100%;
    height: 282.256px;
    box-sizing: border-box;
}
.swiper-slide-active .post-highlight-slider-image-wrapper {
	padding:20px;
	width: 390px;
	height: 312px;
	margin: 0 auto;
}

.post-highlight-slider-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	border-radius: 10px;
}

/* .post-highlight-slider-card:hover .post-highlight-slider-image-wrapper img,
.post-highlight-slider-card:focus-within .post-highlight-slider-image-wrapper img {
	transform: scale(1.05);
} */

/* Content (Hidden on side slides, shown on center slide) */
.post-highlight-slider-content {
	padding: 30px 0;
	flex-grow: 1;
	display: none;
	flex-direction: column;
}

/* Show content only on active (centered) slide */
.post-highlight-slider-swiper .swiper-slide-active .post-highlight-slider-content {
	display: flex;
}

.post-highlight-slider-title {
	margin: 0 0 10px;
	color: inherit;
	font-family: "Perfectly Nineties";
	font-size: 36px;
	font-style: normal;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	transform: scale(0.9);
}

.post-highlight-slider-excerpt {
	margin: 0 0 15px;
	color: inherit;
	flex-grow: 1;
	font-family: "Google Sans Flex";
	font-size: 17px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%; /* 23.8px */
	letter-spacing: 0.01rem;
	transform: scale(0.9);
}

.post-highlight-slider-button {
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    border-radius: 50px;
    border: 1.5px solid var(--SMOKED, #6D240B);
    background: var(--Yolk, #FFC856);
    box-sizing: border-box;
    display: flex;
    height: 40px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: "Google Sans Flex";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 130%;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin: 0 auto;
    transform: scale(0.9);
}

.post-highlight-slider-card:hover .post-highlight-slider-button,
.post-highlight-slider-card:focus-within .post-highlight-slider-button {
	border-radius: 50px;
border: 1.5px solid var(--LEMON, #FFFB8B);
background: var(--SMOKED, #6D240B);
	color:var(--LEMON, #FFFB8B);
}

/* Navigation Arrows */
.post-highlight-slider-nav-prev,
.post-highlight-slider-nav-next {
	position: absolute;
	top: 61%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	margin-top: 0;
	background-color: #D4AF37;
	border: 2px solid currentColor;
	border-radius: 50%;
	color: currentColor;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
	z-index: 10;
}

.post-highlight-slider-nav-prev {
	left: 125px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42' fill='none'%3E%3Cg clip-path='url(%23clip0_274_1526)'%3E%3Cpath d='M20.9994 1.90961C10.4558 1.90961 1.90851 10.4569 1.90851 21.0005C1.90851 31.5441 10.4558 40.0914 20.9994 40.0914C31.543 40.0914 40.0903 31.5441 40.0903 21.0005C40.0903 10.4569 31.543 1.90961 20.9994 1.90961Z' fill='%23FFC856'/%3E%3Cpath d='M20.9994 13.3642L13.3631 21.0005L20.9994 28.6369' fill='%23FFC856'/%3E%3Cpath d='M20.9994 13.3642L13.3631 21.0005M13.3631 21.0005L20.9994 28.6369M13.3631 21.0005L28.6358 21.0005M1.90851 21.0005C1.90851 10.4569 10.4558 1.90961 20.9994 1.90961C31.543 1.90961 40.0903 10.4569 40.0903 21.0005C40.0903 31.5441 31.543 40.0914 20.9994 40.0914C10.4558 40.0914 1.90851 31.5441 1.90851 21.0005Z' stroke='%236D240B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_274_1526'%3E%3Crect width='42' height='42' fill='white' transform='translate(42 42) rotate(-180)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 42px;
	height: 42px;
	background-color: transparent;
	border: none;
}

.post-highlight-slider-nav-prev::after {
	display: none;
}

.post-highlight-slider-nav-next {
	right: 120px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42' fill='none'%3E%3Cg clip-path='url(%23clip0_274_1524)'%3E%3Cpath d='M21.0006 40.0903C31.5442 40.0903 40.0915 31.543 40.0915 20.9994C40.0915 10.4557 31.5442 1.90845 21.0006 1.90845C10.457 1.90845 1.90967 10.4557 1.90967 20.9994C1.90967 31.543 10.457 40.0903 21.0006 40.0903Z' fill='%23FFC856'/%3E%3Cpath d='M21.0006 28.6357L28.6369 20.9994L21.0006 13.363' fill='%23FFC856'/%3E%3Cpath d='M21.0006 28.6357L28.6369 20.9994M28.6369 20.9994L21.0006 13.363M28.6369 20.9994H13.3642M40.0915 20.9994C40.0915 31.543 31.5442 40.0903 21.0006 40.0903C10.457 40.0903 1.90967 31.543 1.90967 20.9994C1.90967 10.4557 10.457 1.90845 21.0006 1.90845C31.5442 1.90845 40.0915 10.4557 40.0915 20.9994Z' stroke='%236D240B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_274_1524'%3E%3Crect width='42' height='42' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 42px;
	height: 42px;
	background-color: transparent;
	border: none;
}

.post-highlight-slider-nav-next::after {
	display: none;
}

.post-highlight-slider-nav-prev:hover,
.post-highlight-slider-nav-prev:focus,
.post-highlight-slider-nav-next:hover,
.post-highlight-slider-nav-next:focus {
	transform: translateY(-50%) scale(1.1);
	outline: none;
}

.post-highlight-slider-nav-prev:active,
.post-highlight-slider-nav-next:active {
	transform: translateY(-50%) scale(0.95);
}

.post-highlight-slider-nav-prev::after,
.post-highlight-slider-nav-next::after {
	font-size: 18px;
	font-weight: bold;
}

.post-highlight-slider-nav-prev.swiper-button-disabled,
.post-highlight-slider-nav-next.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width:1170px) {
	.post-highlight-slider-icon {
		left:0;
	}
}


@media (max-width: 850px) {
	.post-highlight-slider-container {
	max-width:500px;
	}
	.swiper-slide-active .post-highlight-slider-image-wrapper {
	width:100%;
	}
	.post-highlight-slider-swiper .swiper-slide-active {
	width: 256px !important;
	margin-right: -51px !important;
	}
	.post-highlight-slider-image-wrapper {
	height:180px;
	}
	.swiper-slide-active .post-highlight-slider-image-wrapper {
	height:235px;
	}
	.post-highlight-slider-nav-prev {
	left:0;
	}
	.post-highlight-slider-nav-next {
	right:0;}
	.post-highlight-slider-title {
	font-size:26px;
	margin:0;
	}
	.post-highlight-slider-excerpt {
	font-size:15px;
	}
	.post-highlight-slider-icon {
	left: -27px;
	width: 129px;
	top: -79px;
	}
}
@media (max-width:575px) {
	.post-highlight-slider-container {
	max-width: 350px;
	}
	.post-highlight-slider-swiper .swiper-slide-active {
	width: 205px !important;
	margin-right: -51px !important;
	}
	.post-highlight-slider-image-wrapper {
	height: 145px;
	padding: 10px;
	}
		.swiper-slide-active .post-highlight-slider-image-wrapper {
			height: 181px;
			padding: 10px;
		}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.post-highlight-slider-swiper .swiper-slide,
	.post-highlight-slider-card,
	.post-highlight-slider-image-wrapper img,
	.post-highlight-slider-button,
	.post-highlight-slider-nav-prev,
	.post-highlight-slider-nav-next {
		transition: none;
	}
	
	.post-highlight-slider-card:hover .post-highlight-slider-image-wrapper img,
	.post-highlight-slider-card:focus-within .post-highlight-slider-image-wrapper img {
		transform: none;
	}
}

/* Screen Reader Text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

