/* --- [4] Blog Posts Section --- */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 1023px) {
    .posts-grid {
        gap: 20px;
    }
}

.read-more {
    font-weight: bold;
}

.post-item.hentry {
    background: var(--color-post-bg);
    border: 1px solid var(--color-post-border);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Changed to column for vertical stacking */
    align-items: stretch;
}

.post-thumbnail {
    width: 100%; /* Make thumbnail responsive */
    margin-block-end: 25px; /* Add space around the thumbnail */
    aspect-ratio: 2 / 1;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.post-thumbnail-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative; /* Needed for the overlay */
    z-index: 1; /* Ensure it's a stacking context */
}

.post-thumbnail-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75); /* White overlay with 50% opacity */
}

.post-item .entry-content {
    padding: 15px;
    flex-grow: 1;
}

.entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.read-all-section{
	display:flex;
	gap:2rem;
	align-items:center;
	margin-top:1.25rem;
}
.read-all-section .line{
	background-color:#e5e7eb;
	flex: 1 1 0%;
	height: 1px;
	display:block;
}

/* --- Media Queries and Responsiveness --- */

@media (max-width: 768px) {
    .posts-grid{
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* Post Thumbnail/Content Stacks */
    .posts-grid {
        grid-template-columns: 1fr; /* Switch to 1 column on smaller screens */
    }
}