/* Blog Styles */
.blog-content {
    padding: 20px 0;
    margin-top: 0;
}

.page-title {
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.page-title p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}


/* Blog Post Cards */
.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta .post-category {
    margin-right: 15px;
}

.post-meta .post-category a {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-meta .post-category a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: auto;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 0.75rem;
}

/* Blog Post Detail */
.blog-post-content {
    padding: 20px 0;
    margin-top: 0;
}

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-header .post-meta {
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
}

.post-header .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.post-header .meta-item a {
    color: #1976d2;
    text-decoration: none;
}

.post-header .meta-item a:hover {
    color: #1565c0;
    text-decoration: underline;
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.post-tags h5 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    background: transparent !important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.share-link:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.share-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-link.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffc107;
    color: #212529;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ffc107;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #e0a800;
    color: #212529;
    border-color: #e0a800;
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    height: 120px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-content h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-content h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h5 a:hover {
    color: #3498db;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: #e3f2fd;
    color: #1976d2;
}

.category-list .badge {
    background: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-list a.active .badge,
.category-list a:hover .badge {
    background: #1976d2;
}

/* Recent Posts */
.recent-posts,
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li,
.popular-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.recent-posts li:last-child,
.popular-posts li:last-child {
    border-bottom: none;
}

.recent-posts a,
.popular-posts a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-posts a:hover,
.popular-posts a:hover {
    color: #3498db;
}

.recent-posts small,
.popular-posts small {
    color: #6c757d !important;
    font-size: 0.8rem;
}

/* Popular Posts Fire Icons */
.popular-posts .fas.fa-fire {
    margin-right: 5px;
    font-size: 0.9rem;
}

.popular-posts .fas.fa-fire.text-danger {
    color: #dc3545 !important;
}

.popular-posts .fas.fa-fire.text-warning {
    color: #ffc107 !important;
}

.popular-posts .fas.fa-fire.text-muted {
    color: #6c757d !important;
}

/* Pagination */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .page-item.active .page-link {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content {
        padding: 15px 0;
    }
    
    .page-title {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title p {
        font-size: 0.9rem;
    }
    
    .blog-post {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .share-links {
        justify-content: center;
    }
    
    .back-to-blog {
        width: auto;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .related-posts .row > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 1.6rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
    
    .tags-list {
        justify-content: center;
    }
    
    .share-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
