/* Blog Section Styles - Arvila Pro Style */
.blog-section {
    padding: 100px 0;
    position: relative;
    background: #f8f9fa;
}

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

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-subtitle {
    font-size: 14px;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
    display: block;
}

.blog-title {
    font-size: 36px;
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #667eea;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

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

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

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

/* Blog Item */
.blog-item {
    position: relative;
}

.blog-item-inner {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-item:hover .blog-item-inner {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Thumbnail */
.blog-thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.blog-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.blog-item:hover .blog-image {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.blog-item:hover .blog-overlay {
    opacity: 1;
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #667eea;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.blog-item:hover .blog-date {
    background: #764ba2;
}

.date-day {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.date-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Blog Content */
.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

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

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

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-author {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #764ba2;
}

.blog-read-more svg {
    transition: transform 0.3s ease;
}

.blog-read-more:hover svg {
    transform: translateX(3px);
}

/* Blog Footer */
.blog-footer {
    text-align: center;
    margin-top: 40px;
}

.blog-view-all {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.blog-view-all:hover {
    background: transparent;
    color: #667eea;
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Animation */
.blog-item {
    opacity: 0;
    transform: translateY(30px);
    animation: blogFadeIn 0.6s ease forwards;
}

.blog-item:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes blogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid.grid-3,
    .blog-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-grid.grid-3,
    .blog-grid.grid-4,
    .blog-grid.grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-post-title {
        font-size: 18px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-image,
    .blog-placeholder {
        height: 200px;
    }
}