
.posts-section {
    flex: 3;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.post-card img {
    width: 100%;
    height: 200px;
    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 h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.post-card h3 a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.3);
}

/* --- Pagination --- */
.pagination {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.2);
}

.pagination .current {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color-dark);
    cursor: default;
}

.pagination .disabled {
    color: #bbb;
    background-color: #f1f1f1;
    cursor: not-allowed;
    border-color: var(--border-color);
}