/* Hide home title and eliminate top whitespace */
.home .entry-title, 
.home .wp-block-post-title,
.home h1.page-title,
.home .entry-header {
	display: none !important;
}

.home .entry-content,
.home .site-content,
.home main,
.home article {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Remove extra theme borders and outlines from button containers */
.wp-block-button {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Ensure inner button links render crisp single edges */
.wp-block-button__link {
	outline: none !important;
	box-shadow: none !important;
}

.site-header, #masthead {
	display: none !important;
}

.page .entry-title {
	display: none !important;
}

/* Hide page title container and strip top margin/padding */
.page .entry-header {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.page .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Collapse header container and page title space */
.page .entry-header {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Strip top margin and padding from main content wrappers */
.page #content,
.page .site-content,
.page .entry-content,
.page article {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Ensure the first block flush aligns to the header */
.page .entry-content > :first-child {
	margin-top: 0 !important;
}

/* Remove spacing below the header container */
header,
#masthead,
.site-header,
.header-footer-group {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Collapse top padding and margins of page content */
#page,
#primary,
#main,
.site-main,
.entry-content,
.entry-header {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Ensure first block sits flush against the header */
.entry-content > :first-child,
.wp-site-blocks > :first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Force page content wrappers to bleed full screen width */
body.page #page,
body.page #primary,
body.page #main,
body.page .site-content,
body.page .entry-content,
body.page article {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Ensure full-width blocks extend to the physical screen edges */
.page .alignfull {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* Lock testimonial columns to equal height and push attribution down */
.wp-block-columns.testimonial-row {
	display: flex !important;
	align-items: stretch !important;
}

.wp-block-columns.testimonial-row .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	height: auto !important;
}

.wp-block-columns.testimonial-row .wp-block-column > p:last-child {
	margin-top: auto !important;
}

/* 1. Full Service Planning Page Testimonials (Centered) */
.wp-block-columns.testimonial-row {
	display: flex !important;
	align-items: stretch !important;
}

.wp-block-columns.testimonial-row .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
}

.wp-block-columns.testimonial-row .wp-block-column > p:last-child {
	margin-top: auto !important;
}

/* 2. Homepage Member Perspectives Cards (Left-Aligned & Bottom-Aligned Signatures) */
.wp-block-columns.home-testimonial-cards {
	display: flex !important;
	align-items: stretch !important;
}

.wp-block-columns.home-testimonial-cards > .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
}

.wp-block-columns.home-testimonial-cards > .wp-block-column > .wp-block-group,
.wp-block-columns.home-testimonial-cards > .wp-block-column > .wp-block-group > div {
	flex: 1 1 auto !important;
	height: 100% !important;
	width: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

.wp-block-columns.home-testimonial-cards > .wp-block-column > .wp-block-group p {
	width: 100% !important;
	text-align: left !important;
}

.wp-block-columns.home-testimonial-cards > .wp-block-column > .wp-block-group p:last-child {
	margin-top: auto !important;
	margin-block-start: auto !important;
	padding-top: 24px !important;
}

/* Sleek inline layout & brand styling for Mailchimp Newsletter Block */
.wp-block-jetpack-mailchimp form {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: stretch !important;
	gap: 12px !important;
	max-width: 560px !important;
	margin: 0 auto !important;
}

.wp-block-jetpack-mailchimp p:first-of-type {
	flex: 1 1 320px !important;
	margin: 0 !important;
}

.wp-block-jetpack-mailchimp input[type="email"] {
	width: 100% !important;
	height: 48px !important;
	padding: 0 16px !important;
	border: 1px solid #CCCCCC !important;
	border-radius: 6px !important;
	font-size: 15px !important;
	box-sizing: border-box !important;
}

.wp-block-jetpack-mailchimp .wp-block-button {
	flex: 0 0 auto !important;
	margin: 0 !important;
}

.wp-block-jetpack-mailchimp .wp-block-button__link,
.wp-block-jetpack-mailchimp button[type="submit"] {
	height: 48px !important;
	padding: 0 28px !important;
	background-color: #1E4A73 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

/* Style the auto-generated disclaimer text cleanly */
.wp-block-jetpack-mailchimp p:last-of-type,
.wp-block-jetpack-mailchimp__notification {
	flex: 1 1 100% !important;
	text-align: center !important;
	font-size: 12px !important;
	color: #777777 !important;
	margin-top: 12px !important;
	line-height: 1.5 !important;
}

/* Hide the "Designed with WordPress" line in the custom footer */
.wp-block-group p:has(> a[href="https://wordpress.com"]) {
	display: none !important;
}

/* About Page Member Perspectives (Left-Aligned & Bottom-Aligned Signatures) */
.wp-block-columns.about-testimonial-row {
	display: flex !important;
	align-items: stretch !important;
}

.wp-block-columns.about-testimonial-row > .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	text-align: left !important;
}

.wp-block-columns.about-testimonial-row > .wp-block-column p {
	width: 100% !important;
	text-align: left !important;
}

.wp-block-columns.about-testimonial-row > .wp-block-column p:last-child {
	margin-top: auto !important;
	margin-block-start: auto !important;
	padding-top: 20px !important;
}

/* Uniform spacing between image and title across all destination cards */
.destination-grid .wp-block-column figure,
.destination-grid .wp-block-column .wp-block-image {
	margin-bottom: 0 !important;
}

.destination-grid .wp-block-column h3 {
	margin-top: 22px !important;
}

/* Keep all 3 cards in each row equal height */
.destination-grid .wp-block-columns {
	display: flex !important;
	align-items: stretch !important;
}

.destination-grid .wp-block-column > .wp-block-group {
	height: 100% !important;
}

/* Equal height and uniform size across all 6 Complete Directory cards */
.directory-cards .wp-block-columns {
	display: flex !important;
	align-items: stretch !important;
}

.directory-cards .wp-block-columns > .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
}

.directory-cards .wp-block-columns > .wp-block-column > .wp-block-group {
	flex: 1 1 auto !important;
	height: 100% !important;
	box-sizing: border-box !important;
}

@media (min-width: 782px) {
	.directory-cards .wp-block-columns > .wp-block-column > .wp-block-group {
		min-height: 255px !important;
	}
}

/* Prevent buttons from squishing or breaking words mid-letter on mobile */
@media (max-width: 781px) {
	.wp-block-buttons .wp-block-button {
		width: auto !important;
		max-width: 100% !important;
	}
	
	.wp-block-buttons .wp-block-button .wp-block-button__link {
		width: auto !important;
		padding: 14px 28px !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		line-height: 1.3 !important;
	}
	
	.wp-block-buttons .wp-block-button .wp-block-button__link code {
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
	}
}

/* =========================================================
   SITE-WIDE DESKTOP & MOBILE POLISH
   ========================================================= */
/* 1. Prevent accidental horizontal sideways scroll on mobile */
html, body {
	overflow-x: hidden !important;
	max-width: 100% !important;
}

/* 2. Override monospace font on  tags nested inside CTA buttons */
.wp-block-button__link code {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	background: transparent !important;
	padding: 0 !important;
	color: inherit !important;
}

/* 3. Uniform 3:2 photo framing across all destination cards */
.destination-grid .wp-block-image img {
	width: 100% !important;
	aspect-ratio: 3 / 2 !important;
	object-fit: cover !important;
}

/* 4. Mobile logo, hero heading, and section spacing refinement */
@media (max-width: 781px) {
	.wp-block-site-logo img,
		    header img {
		max-width: 220px !important;
		height: auto !important;
	}
	
	.entry-content > .wp-block-group.alignfull,
		    .entry-content > .wp-block-cover.alignfull {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}
	
	.entry-content h1 {
		font-size: 32px !important;
		line-height: 1.2 !important;
	}
}

/* =========================================================
   UNIFIED SITE-WIDE BUTTON HOVER & CLICK FEEDBACK
   ========================================================= */
/* 1. Smooth transition, upward lift on hover, and tactile press on click */
.wp-block-button__link,
.wp-block-jetpack-mailchimp button[type="submit"],
button[type="submit"] {
	transition: background-color .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease !important;
	cursor: pointer !important;
}

.wp-block-button__link:hover,
.wp-block-jetpack-mailchimp button[type="submit"]:hover,
button[type="submit"]:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 16px rgba(30, 74, 115, 0.20) !important;
}

.wp-block-button__link:active,
.wp-block-jetpack-mailchimp button[type="submit"]:active,
button[type="submit"]:active {
	transform: translateY(0px) scale(0.98) !important;
	box-shadow: 0 2px 6px rgba(30, 74, 115, 0.15) !important;
}

/* 2. Navy & dark buttons: brighten cleanly on hover and lock text to Pure White */
.wp-block-button__link.has-white-color:hover,
.wp-block-button__link[style*="1e4a73"]:hover,
.wp-block-button__link[style*="1E4A73"]:hover,
.wp-block-jetpack-mailchimp button[type="submit"]:hover {
	background-color: #285E91 !important;
	color: #FFFFFF !important;
}

.wp-block-button__link.has-white-color:hover code,
.wp-block-button__link[style*="1e4a73"]:hover code,
.wp-block-button__link[style*="1E4A73"]:hover code {
	color: #FFFFFF !important;
}

/* 3. Sand (#D9CDB8) buttons: deepen tone on hover and lock text to Navy */
.wp-block-button__link[style*="d9cdb8"]:hover,
.wp-block-button__link[style*="D9CDB8"]:hover {
	background-color: #C8B99E !important;
	color: #1E4A73 !important;
}

.wp-block-button__link[style*="d9cdb8"]:hover code,
.wp-block-button__link[style*="D9CDB8"]:hover code {
	color: #1E4A73 !important;
}

/* =========================================================
   VACATIONS & DESTINATION GRID — EQUAL HEIGHT & ROW 3 ALIGN
   ========================================================= */
/* Stretch all cards in each row to identical white card height */
.destination-grid .wp-block-columns {
	display: flex !important;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 24px !important;
}

.destination-grid .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
}

.destination-grid .wp-block-column > .wp-block-group {
	flex: 1 1 auto !important;
	height: 100% !important;
	box-sizing: border-box !important;
}

/* Keep 2-card bottom rows centered at exact 1/3 card width on desktop */
@media (min-width: 782px) {
	.destination-grid .wp-block-column {
		flex: 0 1 calc(33.333% - 16px) !important;
		max-width: calc(33.333% - 16px) !important;
	}
	
	.destination-grid .wp-block-column:empty {
		display: none !important;
	}
}

/* Stack cards cleanly 1 per row on mobile */
@media (max-width: 781px) {
	.destination-grid .wp-block-column {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
	
	.destination-grid .wp-block-column:empty {
		display: none !important;
	}
}