/**
 * Modern Blog Section Styles
 * Matching the UI from the provided image
 */

/* Section Container */
.edmark-blog-section {
    padding: 80px 0;
    background: #ffffff;
}

/* Section Header */
.blog-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-section-header .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.blog-section-header .section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Featured Image */
.blog-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Category Badge */
.blog-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Card Content */
.blog-card-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #e74c3c;
}

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

/* Meta Info */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.blog-card-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #999;
}

/* Read More Button */
.blog-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-read-more-btn:hover {
    gap: 12px;
}

.blog-read-more-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* View All Button */
.blog-view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .blog-section-header .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .edmark-blog-section {
        padding: 60px 0;
    }
    
    .blog-section-header {
        margin-bottom: 40px;
    }
    
    .blog-section-header .section-title {
        font-size: 32px;
    }
    
    .blog-section-header .section-subtitle {
        font-size: 14px;
    }
    
    .blog-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .blog-section-header .section-title {
        font-size: 28px;
    }
    
    .blog-card-image {
        padding-top: 65%;
    }
    
    .view-all-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}
