/* Professional Blog Layout Styles */
.professional-blog-layout {
    margin-top: 30px;
}

.blog-post-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

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

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

.placeholder-image {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.post-image-link:hover .post-image {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(40,167,69,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.post-image-link:hover .post-overlay {
    opacity: 1;
}

.post-overlay i {
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.popularity-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

.popularity-badge i {
    margin-right: 4px;
}

.post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #007bff;
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateX(5px);
    color: white;
    text-decoration: none;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Professional Pagination */
.professional-pagination {
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination {
    border: none;
}

.page-link {
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 12px 16px;
    margin: 0 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border-color: transparent;
}

.pagination-info {
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post-card {
        margin-bottom: 25px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title a {
        font-size: 16px;
    }
    
    .post-image-wrapper {
        height: 200px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        padding: 10px 12px;
        margin: 2px;
    }
}

@media (max-width: 576px) {
    .professional-blog-layout {
        margin-top: 20px;
    }
    
    .post-image-wrapper {
        height: 180px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title a {
        font-size: 15px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .read-more-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Blog Grid Improvements */
.main-content-blog {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.main-content-blog .container-fluid {
    max-width: 1400px;
}

/* Breadcrumbs Enhancement */
.breadcrumbs {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #007bff;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #0056b3;
}

.breadcrumbs .current {
    color: #6c757d;
    font-weight: 600;
}

/* Loading Animation for Images */
.post-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.post-image[src*="data:image"] {
    animation: none;
}
