/* Blog-specific styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #40057d 100%);
    color: white;
}

.blog-search .input-group-text {
    background: white;
    border-right: 0;
}

.blog-search .form-control {
    border-left: 0;
    padding-left: 0;
}

.blog-search .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Categories */
.blog-categories .btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.blog-categories .btn:hover,
.blog-categories .btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Featured Post */
.featured-post .card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.featured-post .card:hover {
    transform: translateY(-5px);
}

.featured-post .object-fit-cover {
    object-fit: cover;
}

/* Blog Post Cards */
.blog-post-card {
    transition: transform 0.3s ease;
}

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

.blog-post-card .card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-post-card .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.blog-post-card .stretched-link {
    transition: color 0.3s ease;
}

.blog-post-card .stretched-link:hover {
    color: #0d6efd !important;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-section .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Blog Post Content (for individual blog pages) */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #495057;
}

.blog-post-content ul,
.blog-post-content ol {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

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

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

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

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

.blog-post-content .table {
    margin: 2rem 0;
}

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

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

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-content h1 {
        font-size: 2rem;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
    }

    .blog-post-content p,
    .blog-post-content ul,
    .blog-post-content ol {
        font-size: 1rem;
    }

    .table-of-contents {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-card {
    animation: fadeIn 0.6s ease;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .newsletter-section,
    .related-posts,
    .author-box {
        display: none;
    }

    .blog-post-content {
        max-width: 100%;
    }
}

.blog-card-image {
    object-fit: cover;
    max-height: 200px;
    max-width: 200px;
    text-align: center;
    margin: 0 auto;
    display: block;
}
