/* Simple 3-Column Post Grid Styles */
.spg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.spg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.spg-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.spg-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}

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

.spg-card:hover .spg-thumbnail img {
    transform: scale(1.05);
}

.spg-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.spg-content {
    padding: 20px;
}

.spg-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.spg-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.spg-title a:hover {
    color: #667eea;
}

.spg-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.spg-readmore {
    display: inline-block;
    color: white;
    
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.spg-readmore:hover {
    color: white;
}

.spg-pagination {
    text-align: center;
    margin-top: 30px;
}

.spg-pagination a,
.spg-pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.spg-pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.spg-pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.spg-no-posts {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spg-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .spg-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .spg-grid {
        grid-template-columns: 1fr;
    }
}