/* Define keyframes for the shake animation */
/* Define keyframes for the shake animation */
@keyframes shake {
	0% {
		transform: translateX(0);
	}
	
	25% {
		transform: translateX(-5px);
	}
	
	50% {
		transform: translateX(5px);
	}
	
	75% {
		transform: translateX(-5px);
	}
	
	100% {
		transform: translateX(0);
	}
}

/* Style for the CTA button */
.cta-button {
	display: inline-block;
	padding: 15px 30px;
	font-size: 18px;
	background-color: #ff5722;
	color: #fff;
	border: none;
	cursor: pointer;
	animation: shake .8s ease-in-out infinite;
	animation-delay: 10s;
/* Add a delay between shakes */
	transition: transform .3s ease;
}

/* Stop shaking on hover */
.cta-button:hover {
	animation: none;
	transform: scale(1.05);
}

/* Optional: Add a little scale effect when hovering */
.cta-button:active {
	transform: scale(0.98);
}

/* Sticky Call to Action for WordPress Block Editor */
.sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #72b3aa;
/* Updated to a more subtle, olive green color for better visual comfort */
	text-align: center;
	padding: 15px 0;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	animation: shake .8s ease-in-out 3s infinite;
/* Add the shake animation here */
	transition: transform .3s ease;
}

.sticky-cta.visible {
/* You can add styles for the visible state here if needed */
}

.sticky-cta a {
	color: #17254e;
	text-decoration: none;
	font-weight: bold;
	padding: 10px 20px;
	background-color: #ffa048;
/* Updated to the orange color from the homepage */
	border-radius: 5px;
	transition: background-color .3s ease;
}

.sticky-cta a:hover {
	background-color: #fdbea6;
/* Updated hover color for better contrast */
}

/* Ensure the sticky CTA does not cover footer links */
footer {
	padding-bottom: 60px;
/* Adjust to avoid overlap with sticky CTA */
}

/* Style for the container of the images */
.image-links-container {
	display: flex;
	justify-content: space-between;
/* Spread images evenly */
	flex-wrap: wrap;
/* Allow wrapping for smaller screens */
	gap: 10px;
/* Small space between images */
	margin-top: 20px;
	width: 100%;
/* Ensure the container spans full width */
	padding: 0 10px;
/* Add padding for small spacing on edges */
	box-sizing: border-box;
}

/* Style for individual image links */
.image-links-container a {
	flex: 1 1 calc(25% - 10px);
/* Four images per row with spacing */
	max-width: calc(25% - 10px);
/* Maximum width for each image on desktop */
	text-align: center;
	text-decoration: none;
	transition: transform .3s ease, box-shadow .3s ease;
}

/* Style for the images */
.image-links-container img {
	width: 100%;
/* Make images responsive within their container */
	height: auto;
/* Maintain aspect ratio */
	border-radius: 10px;
/* Rounded corners */
	transition: transform .3s ease, filter .3s ease;
}

/* Hover effect for images */
.image-links-container img:hover {
	transform: scale(1.05);
/* Slightly enlarge the image */
	filter: brightness(1.2);
/* Brighten the image */
}

/* Shadow and hover effect for links */
.image-links-container a:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
/* Add a shadow effect */
	transform: translateY(-5px);
/* Slightly lift the link */
}

/* Text below the images */
.image-links-container span {
	display: block;
	margin-top: 10px;
	font-size: 16px;
	color: #333;
	font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.image-links-container a {
		flex: 1 1 calc(33.33% - 10px);
	/* Three images per row on tablets */
		max-width: calc(33.33% - 10px);
	}
}

@media (max-width: 768px) {
	.image-links-container a {
		flex: 1 1 calc(50% - 10px);
	/* Two images per row on smaller screens */
		max-width: calc(50% - 10px);
	}
}

@media (max-width: 480px) {
	.image-links-container a {
		flex: 1 1 calc(100% - 10px);
	/* One image per row on mobile */
		max-width: calc(100% - 10px);
	}
}

/* Why Choose Carter Family Insurance? */
.usp-section {
	background-color: #17254e;
	padding: 20px 0;
}

.usp-section h2 {
	color: #17254e;
/* Change this value to your desired color */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.usp-items {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

.usp-item {
	max-width: 300px;
	text-align: center;
	margin-bottom: 30px;
	padding: 15px;
/* Added padding to create space around the text */
	transition: transform .3s ease, box-shadow .3s ease;
}

.usp-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.usp-item img {
	width: 100%;
	max-width: 225px;
	height: auto;
	margin-bottom: 20px;
	transition: transform .3s ease;
}

.usp-item:hover img {
	transform: scale(1.1);
}

.usp-section h2 {
	text-align: center;
}

.usp-item h3 {
	font-size: 1.5em;
	color: #17254e;
	margin-bottom: 10px;
}

.usp-item p {
	font-size: 1em;
	color: #17254e;
}

/* Why Choose Carter Family Insurance? */
.usp-section {
	background-color: #fff9f0;
	padding: 20px 0;
}

.usp-section h2 {
	color: #17254e;
/* Change this value to your desired color */
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.usp-items {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

.usp-item {
	max-width: 300px;
	text-align: center;
	margin-bottom: 30px;
	padding: 15px;
/* Added padding to create space around the text */
	transition: transform .3s ease, box-shadow .3s ease;
}

.usp-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.usp-item img {
	width: 100%;
	max-width: 225px;
	height: auto;
	margin-bottom: 20px;
	transition: transform .3s ease;
}

.usp-item:hover img {
	transform: scale(1.1);
}

.usp-item h3 {
	font-size: 1.5em;
	color: #17254e;
	margin-bottom: 10px;
}

.usp-item p {
	font-size: 1em;
	color: #17254e;
}

/* Featured Blog */
.featured-blog-section {
	background-color: #f9f9f9;
	padding: 50px 20px;
	text-align: center;
}

.featured-blog-section .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.blog-feature {
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	background-color: #fff;
	padding: 20px;
}

.blog-title {
	font-size: 2em;
	margin-bottom: 20px;
	color: #17254e;
}

.blog-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.blog-image {
	max-width: 50%;
	height: auto;
	border-radius: 10px;
	transition: transform .3s ease;
}

.blog-image:hover {
	transform: scale(1.05);
}

.blog-excerpt {
	margin: 20px auto;
	max-width: 600px;
	font-size: 1.1em;
	color: #333;
}

.read-more-button {
	background-color: #ff8500;
	color: #ffffff;
	padding: 10px 25px;
	font-size: 1em;
	text-decoration: none;
	border-radius: 30px;
	transition: background-color .3s ease, box-shadow .3s ease;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.read-more-button:hover {
	background-color: #ff6e00;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	.blog-feature {
		padding: 15px;
	}
	
	.blog-title {
		font-size: 1.5em;
	}
	
	.blog-image {
		max-width: 100%;
	}
	
	.blog-excerpt {
		font-size: 1em;
		margin: 15px 20px;
	}
	
	.read-more-button {
		padding: 10px 20px;
		font-size: .9em;
	}
}

@media (max-width: 480px) {
	.blog-title {
		font-size: 1.3em;
	}
	
	.read-more-button {
		padding: 8px 15px;
		font-size: .85em;
	}
}