.posts-grid-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.posts-grid-container.columns-1 {
    grid-template-columns: 1fr;
}

.posts-grid-container.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid-container.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid-container.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .posts-grid-container.columns-3,
    .posts-grid-container.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .posts-grid-container {
        grid-template-columns: 1fr !important;
    }
}

.posts-grid-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posts-grid-item:hover {
    transform: translateY(-8px);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f5f5f5;
}

.post-thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    margin: 0 0 16px 0;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3;
	letter-spacing: 1px !important;
    color: #1a1a1a;
    display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #2563eb;
}

.post-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
	display: none;
}

.post-meta span {
    margin-right: 16px;
}

.post-excerpt {
    color: #4b5563;
    line-height: 1.5;
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 0;
	font-weight: 600;
}

.read-more {
    display: none;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    background-color: #eeeeee;
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-thumbnail-placeholder::before {
    content: "📄";
    font-size: 48px;
    opacity: 0.3;
}

.posts-grid-loader {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: #005a87;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.posts-grid-item.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .post-content {
        padding: 16px;
    }
    
    .post-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .post-excerpt {
        font-size: 14px;
    }
}

/* No more posts message */
.no-more-posts {
    color: #6b7280;
    font-style: italic;
    margin-top: 15px;
	display: none;
}