.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-title {
    font-size: 1.4rem;
    color: #146831;
    margin-bottom: 10px;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
}

.blog-card-meta {
    font-size: 0.8rem !important;
    color: #999; /* lighter gray */
    margin-bottom: 10px;
}

.blog-card-excerpt {
    flex-grow: 1;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;        /* keeps it only as wide as content */
    background-color: #146831;
    color: white;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 10px;             /* spacing from excerpt */
    align-self: flex-start;       /* prevents full width in flex layout */
}

.read-more:hover {
    background-color: #0f5627;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.wp-pagenavi {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #146831;
    border: 1px solid #146831;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-pagenavi a:hover {
    background-color: #146831;
    color: white;
}

.wp-pagenavi span.current {
    background-color: #146831;
    color: white;
    font-weight: bold;
    border-color: #146831;
}

.single-post-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
	text-transform: uppercase;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.back-to-blog {
    display: inline-block;
    background-color: #146831;
    color: white;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-bottom: 30px;
}

.back-to-blog:hover {
    background-color: #0f5627;
}

.single-post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.95rem;
}

.single-post-navigation a {
    color: #146831;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post-navigation a:hover {
    text-decoration: underline;
    color: #0f5627;
}

