/* Ensure grid layout for posts */
.wp-block-latest-posts__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
/* Three columns */
	gap: 20px;
/* Space between posts */
	padding: 0 10px;
/* Space from the edges of the screen */
	justify-content: center;
}

/* Post container with floating effect */
.wp-block-latest-posts__list li {
	background: white;
	border-radius: 15px;
/* Smooth rounded corners */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/* Floating shadow effect */
	transition: all .3s ease-in-out;
	overflow: hidden;
	list-style: none;
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	padding: 0;
	box-sizing: border-box;
/* Prevents width issues */
}

/* Hover effect - makes post feel interactive */
.wp-block-latest-posts__list li:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
/* Enhances floating effect */
	border-color: #ddd;
}

/* ✅ Ensure the Featured Image Spans the Full Width */
.wp-block-latest-posts__featured-image img {
	width: 100%;
	height: 200px;
/* Adjust height as needed */
	object-fit: cover;
	display: block;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

/* ✅ Wrap the title, author, and date inside a structured header */
.wp-block-latest-posts__post-title,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
	padding: 10px 20px;
/* Adds spacing inside the header */
	display: block;
}

/* Style the Title */
.wp-block-latest-posts__post-title {
	font-size: 18px;
	font-weight: bold;
	color: #09244b;
	text-decoration: none;
}

/* Author & Date */
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
	font-size: 14px;
	color: #555;
}

/* ✅ Post Content - Proper Padding to Avoid Touching Edges */
.wp-block-latest-posts__post-full-content {
	padding: 20px;
/* Ensures proper spacing inside the post */
	font-size: 16px;
	color: #333;
	line-height: 1.6;
	background: white;
	border-radius: 0 0 15px 15px;
/* Rounded corners at bottom */
}

/* ✅ Add space between paragraphs */
.wp-block-latest-posts__post-full-content p {
	margin: 10px 0;
}

/* ✅ Read More Link */
.wp-block-latest-posts__post-full-content .read-more {
	font-size: 14px;
	font-weight: bold;
	color: #0073b1;
	text-decoration: none;
	display: inline-block;
	margin-top: 10px;
}

/* ✅ Responsive Adjustments */
@media (max-width: 1024px) {
	.wp-block-latest-posts__list {
		grid-template-columns: repeat(2, 1fr);
	/* Two columns on tablets */
	}
}

@media (max-width: 768px) {
	.wp-block-latest-posts__list {
		grid-template-columns: 1fr;
	/* Single column on smaller screens */
		padding: 10px;
	}
	
	.wp-block-latest-posts__featured-image img {
		height: 150px;
	/* Adjust for smaller screens */
	}
	
	.wp-block-latest-posts__post-full-content {
		padding: 15px;
	}
}