/* ===================================
   AysimaPOS Landing Page - Blog Section
   Modern SaaS Design - Variables Based
   =================================== */

.blog-section {
    padding: 0;
}

.blog-section .section-content-wrapper {
    background: #f8f9fa;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: var(--spacing-8);
    border-radius: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-card {
    background: #ffffff;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all var(--transition-duration-300) var(--transition-timing-function-out);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-duration-500) var(--transition-timing-function-out);
}

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

.blog-category {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: var(--gradient-primary);
    color: #ffffff;
    padding: var(--spacing-1-5) var(--spacing-4);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.blog-card .blog-content {
    padding: var(--spacing-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-4);
    flex-wrap: wrap;
}

.blog-date,
.blog-read-time {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: var(--spacing-1-5);
}

.blog-date i,
.blog-read-time i {
    color: var(--primary-500);
}

.blog-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-4);
    line-height: var(--line-height-snug);
}

.blog-title a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color var(--transition-duration-200) var(--transition-timing-function-out);
}

.blog-title a:hover {
    color: var(--primary-600);
}

.blog-excerpt {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-6);
    flex-grow: 1;
}

.blog-read-more {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    transition: all var(--transition-duration-200) var(--transition-timing-function-out);
}

.blog-read-more:hover {
    color: var(--accent-600);
    gap: var(--spacing-3);
}

.blog-read-more i {
    transition: transform var(--transition-duration-200) var(--transition-timing-function-out);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .blog-section .section-content-wrapper {
        padding: var(--spacing-6);
    }
}

@media (max-width: 767.98px) {
    .blog-section .section-content-wrapper {
        padding: var(--spacing-4);
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: var(--spacing-5);
    }
    
    .blog-title {
        font-size: var(--font-size-lg);
    }
    
    .blog-excerpt {
        font-size: var(--font-size-sm);
    }
}
