/* ===================================
   BLOG STYLES
   =================================== */

/* Blog Page General */
.blog-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blog-post-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Blog Cards */
.blog-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.blog-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.blog-section .card-img-top img {
    transition: transform 0.3s ease;
}

.blog-section .card:hover .card-img-top img {
    transform: scale(1.05);
}

/* Blog Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.post-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #34495e;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content blockquote {
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.post-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-content pre code {
    background: transparent;
    padding: 0;
    color: #333;
}

/* Post Meta */
.post-meta {
    font-size: 0.95rem;
}

.post-meta i {
    opacity: 0.7;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    border-left: 4px solid #007bff;
}

/* Featured Post Image */
.post-featured-image img {
    max-height: 400px;
    object-fit: cover;
}

/* Categories and Tags */
.post-categories .badge,
.post-tags .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.post-categories .badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.post-tags .badge {
    background: #6c757d;
    transition: all 0.3s ease;
}

.post-tags .badge:hover {
    background: #495057;
    transform: translateY(-1px);
}

/* Social Share */
.social-share .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.related-posts .card:hover {
    transform: translateY(-3px);
}

/* Sidebar Widgets */
.blog-sidebar .widget {
    margin-bottom: 2rem;
}

.blog-sidebar .card {
    border-radius: 12px;
    overflow: hidden;
}

.widget-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Featured Posts Widget */
.featured-post {
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.featured-post:hover {
    background-color: #f8f9fa;
}

.featured-post-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

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

/* Categories Widget */
.category-item {
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item a:hover {
    color: #007bff !important;
}

/* Tags Cloud */
.tags-cloud .badge {
    margin: 0.25rem 0.25rem 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #007bff;
    background: transparent;
    color: #007bff;
}

.tags-cloud .badge:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

/* Search Form */
.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Contact Widget */
.contact-widget {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Social Widget */
.social-widget .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-widget .btn:hover {
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.75rem !important;
    }
    
    .post-featured-image img {
        max-height: 250px;
    }
    
    .social-share .btn {
        margin-bottom: 0.5rem;
    }
    
    .related-posts .col-md-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-section .card-body {
        padding: 1rem;
    }
    
    .post-content {
        padding: 0 0.5rem;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Dark mode support (if applicable) */
@media (prefers-color-scheme: dark) {
    .blog-page,
    .blog-post-page {
        background-color: #1a1a1a;
        color: #e9ecef;
    }
    
    .post-content {
        
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        
    }
}

/* Animation for loading content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.blog-section a:focus,
.post-content a:focus,
.pagination .page-link:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
