.blog-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    color: #19272B;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-title {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
}

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: white;
}

.post-meta .category {
    background: #f0f8ff;
    color: #1e90ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post-meta .read-time {
    color: #777;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.9rem;
    color: #333;
}

.read-more {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0066cc;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.page-item .page-link {
    border: 1px solid #ddd;
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: #1e90ff;
    color: white;
    border-color: #1e90ff;
}

.page-item .page-link:hover:not(.active) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Category Filter Styles */
.category-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
    color: #1e90ff;
}

.category-count {
    font-size: 0.8rem;
    color: #777;
}

/* Blog Details Enhancements */
.blog-post {
    max-width: 100%;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(30, 144, 255, 0.04);
    box-shadow: 0 8px 32px 0 rgba(30, 144, 255, 0.07);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(30, 144, 255, 0.10);
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.post-header .post-meta {
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.meta-item i {
    color: #1e90ff;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content .post-excerpt {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #1e90ff;
    border-radius: 0 4px 4px 0;
}

.post-body {
    line-height: 1.8;
    color: #333;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-body h2 {
    color: #1e90ff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-body h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #1e90ff;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.post-tags {
    margin-bottom: 1rem;
}

.tag-link {
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tag-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #1e90ff;
    color: white;
    transform: translateY(-2px);
}

/* Author Card */
.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.author-card .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.author-details p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

/* Related Posts */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.related-post-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-post-item .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-item .post-content {
    padding: 1rem;
    background: white;
}

.related-post-item .post-meta {
    margin-bottom: 0.5rem;
}

.related-post-item .post-title {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.related-post-item .post-title a {
    color: white;
    text-decoration: none;
}

.related-post-item .post-title a:hover {
    color: #1e90ff;
}

/* Loading and Error States */
.loading-placeholder,
.error-message,
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: #555;
}

.error-message {
    background: white;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    color: #c53030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-posts {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Search Form Enhancement */
#search-form {
    position: relative;
}

#search-input {
    width: 100%;
    padding-right: 45px;
}

.tf-btn-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #555;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tf-btn-search:hover {
    color: #1e90ff;
}

/* Animation for dynamic content loading */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
