/* --- Blog Grid (blog.php) --- */
.blog-grid-section {
    /* padding-top: 80px; */
    padding-bottom: 80px;
}
.page-header {
    padding: 100px 0 !important;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px 30px;
}

.post-card {
    background: var(--background-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.263);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.post-card .post-image-link {
    display: block;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    min-height: 56px; /* To align titles */
}

.post-card-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-content h3 a:hover {
    color: var(--primary-color);
}

.post-card-content p {
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.post-card .post-meta {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- Post Details (post-details.php) --- */
.post-details-section {
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 800px; /* Optimal width for reading */
    margin-left: auto;
    margin-right: auto;
}

.post-header {
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    /* font-size: 2.8rem; */
    color: var(--dark-color);
    line-height: 1.3;
}

.post-details-section .post-meta {
    margin-top: 15px;
    color: #777;
    font-size: 1rem;
}

.featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--dark-color);
}