/* Blog Section Styles */
#blog {
    background: #fff;
    position: relative;
}

/* Blog Stats */
.blog-stats {
    margin-bottom: 3rem;
}

.blog-stats .stat-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.blog-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-stats .stat-card:hover::before {
    transform: scaleX(1);
}

.blog-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

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

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

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

/* Featured Posts */
.featured-post {
    position: relative;
}

.featured-post::before {
    content: 'Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-meta .badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.blog-meta small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Blog Content */
.blog-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.blog-card .card-text {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.blog-tags .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-weight: 400;
}

.blog-tags .bg-secondary {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e9ecef;
}

.blog-tags .bg-light {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #e9ecef;
}

.blog-card:hover .blog-tags .badge {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}

/* Blog Footer */
.blog-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: auto;
}

.blog-stats-small {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-stats-small small {
    color: #6c757d;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-footer .btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-footer .btn:hover {
    transform: translateX(5px);
}

/* Blog Categories */
.blog-categories {
    margin-top: 2rem;
}

.category-btn {
    margin: 0.25rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
    text-decoration: none;
}

/* Blog CTA */
.blog-cta {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.blog-cta > * {
    position: relative;
    z-index: 2;
}

.blog-cta h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-cta .lead {
    color: #6c757d;
    margin-bottom: 2rem;
}

.blog-cta .btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.blog-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(102, 126, 234, 0.2);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Blog Post Detail Styles */
.blog-post-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.blog-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-stats {
        margin-bottom: 2rem;
    }
    
    .blog-stats .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .blog-image,
    .blog-image-placeholder {
        height: 180px;
    }
    
    .blog-card .card-body {
        padding: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .blog-stats-small {
        justify-content: center;
    }
    
    .blog-cta {
        padding: 2rem 1.5rem;
    }
    
    .category-btn {
        margin: 0.2rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-image,
    .blog-image-placeholder {
        height: 160px;
    }
    
    .blog-card .card-body {
        padding: 1rem;
    }
    
    .blog-stats .stat-card {
        padding: 1rem;
    }
    
    .blog-cta {
        padding: 1.5rem 1rem;
    }
    
    .blog-cta h4 {
        font-size: 1.3rem;
    }
    
    .blog-cta .lead {
        font-size: 1rem;
    }
    
    .blog-post-header {
        padding: 2rem 0;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}

/* Animation Delays */
.fade-in-up[data-delay="100"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="200"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="300"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="400"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="500"] { transition-delay: 0.5s; }
.fade-in-up[data-delay="600"] { transition-delay: 0.6s; }
