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

/* Main Container */
.posts-highlight-block {
	width: 100%;
	margin: 0 auto;
	padding: 45px 0 87px;
}

/* Header Section */
.posts-highlight-header {
/* 	max-width: 300px; */
	margin: 0 auto;
	text-align: center;
	position: relative;
}

.posts-highlight-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	color: var(--CORNFLOWER, #5B66C6);
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 900;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.25rem;
	justify-content: center;
	position: relative;
	width: fit-content;
	margin: 0 auto 30px;
}

.posts-highlight-highlight-text {
	white-space: nowrap;
	color: var(--CORNFLOWER, #5B66C6);
	text-align: center;
	

/* Special */
	font-family: Primed;
	font-size: 65px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 65px */
	text-transform: capitalize;
	transform: rotate(-10deg);
	position: absolute;
	bottom: -25px;
	right: -217px;
	z-index: 1;
	letter-spacing: 0;
}

/* Posts Grid */
.posts-highlight-grid {
	display: grid;
	grid-template-columns: repeat(var(--posts-highlight-columns, 4), 1fr);
	gap: 20px;
	margin-bottom: 3rem;
	max-width: 1320px;
	margin: 0 auto;
	width: 97%;
}

/* Button Wrapper */
.posts-highlight-button-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
}

.posts-highlight-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.2s ease;
	border-radius: 50px;
	border: 1.5px solid var(--CORNFLOWER, #5B66C6);
	color: #5B66C6;
}
.posts-highlight-button:hover{
	background:#5B66C6;
	color:white;
	border:1.5px solid white;
}

/* Responsive Design */
@media (max-width: 1080px) {
.posts-highlight-highlight-text {
		right:-10px;
		bottom:-50px;
	}
}

@media (max-width: 768px) {
	.posts-highlight-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	.posts-highlight-highlight-text {
		right:10px;
	}
	.posts-highlight-title {
	    font-size: 42px;
	    letter-spacing: -0.1rem;
	    margin: 0 auto 55px;
	}
}

@media (max-width: 500px) {
	.posts-highlight-header {
		max-width:300px;
	}
	.posts-highlight-highlight-text {
		font-size: 42px;
		bottom: -32px;
		right: -19px;
	}
		.posts-highlight-block {
			width: 100%;
			margin: 0 auto;
			padding: 45px 0 50px;
		}
					    .posts-highlight-title {
					    	font-size: 42px;
					    	letter-spacing: -0.1rem;
					    	margin: 0 auto 35px;
					    }
}

/* Accessibility: Ensure proper focus states for post cards */
.posts-highlight-grid .archive-post-card:focus {
	outline: 2px solid var(--wp--preset--color--cornflower, #5B66C6);
	outline-offset: 2px;
}

/* Screen Reader Text (if needed) */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

