/* Blog Showcase Grid Styles */

.blog-showcase-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-showcase-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-showcase-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-showcase-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-showcase-card:hover .blog-showcase-image img {
    transform: scale(1.05);
}

.blog-showcase-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-showcase-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f8f8;
    color: #e65100;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    border: 1px solid #ffe0cc;
}

.category-icon {
    font-size: 12px;
}

.blog-showcase-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
}

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

.blog-showcase-title a:hover {
    color: #e65100;
}

.blog-showcase-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
}

.blog-showcase-date,
.blog-showcase-reading-time {
    display: flex;
    align-items: center;
}

.blog-showcase-reading-time {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-showcase-container {
        padding: 10px;
    }
    
    .blog-showcase-content {
        padding: 20px;
    }
    
    .blog-showcase-title {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional color schemes for different categories */
.blog-showcase-card:nth-child(3n+1) .blog-showcase-category {
    background: #fff3e0;
    color: #e65100;
    border-color: #ffe0cc;
}

.blog-showcase-card:nth-child(3n+2) .blog-showcase-category {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.blog-showcase-card:nth-child(3n+3) .blog-showcase-category {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-showcase-card {
    animation: fadeIn 0.5s ease-out;
}

.blog-showcase-card:nth-child(1) { animation-delay: 0.1s; }
.blog-showcase-card:nth-child(2) { animation-delay: 0.2s; }
.blog-showcase-card:nth-child(3) { animation-delay: 0.3s; }
.blog-showcase-card:nth-child(4) { animation-delay: 0.4s; }
.blog-showcase-card:nth-child(5) { animation-delay: 0.5s; }
.blog-showcase-card:nth-child(6) { animation-delay: 0.6s; }