/* Blog Single Page Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --text-color-dark: #333;
    --text-color-light: #666;
    --background-light: #f8f9fa;
    --border-color: #e9ecef;
}

.blog-single-area {
    background-color: white;
    padding: 80px 0;
}

.blog-single-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

/* Blog Meta Styling */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-color-light);
    font-size: 14px;
}

.blog-meta-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* Blog Content Styling */
.blog-details {
    line-height: 1.8;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    font-size: 18px;
}

/* Enhanced Typography */
.blog-heading {
    margin: 40px 0 20px 0;
    color: var(--text-color-dark);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.blog-heading::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border-radius: 2px;
}

.blog-heading h1 {
    font-size: 2.5rem;
}

.blog-heading h2 {
    font-size: 2rem;
}

.blog-heading h3 {
    font-size: 1.5rem;
}

.blog-heading h4 {
    font-size: 1.25rem;
}

.blog-heading h5 {
    font-size: 1.1rem;
}

.blog-heading h6 {
    font-size: 1rem;
}

.blog-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color-dark);
    font-size: 1.1rem;
    text-align: justify;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-list {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-list-item {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}

.blog-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1em;
    color: #555;
}

.blog-code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.blog-pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}

/* Content Navigation */
.content-navigation {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
}

.table-of-contents h4 {
    margin-bottom: 15px;
    color: var(--text-color-dark);
    font-weight: 600;
}

#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc-list li {
    margin-bottom: 8px;
}

.toc-link {
    color: var(--text-color-light);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toc-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Animation Classes */
.blog-paragraph,
.blog-heading,
.blog-image,
.blog-list {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Social Sharing */
.social-sharing {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #dee2e6;
}

.social-sharing h4 {
    margin-bottom: 20px;
    color: var(--text-color-dark);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy-link {
    background: #6c757d;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Author Box Styling */
.author-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-img {
    flex-shrink: 0;
    margin-right: 30px;
}

.author-img img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-content h4 {
    margin-bottom: 10px;
    color: var(--text-color-dark);
    font-weight: 600;
}

.author-content p {
    color: var(--text-color-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Related Posts Styling */
.related-posts {
    margin-top: 50px;
}

.related-posts .section-title {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.related-posts .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    height: 250px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.1);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 14px;
}

.blog-post-category {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.blog-post-title {
    margin-bottom: 15px;
}

.blog-post-title a {
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.blog-post-author {
    color: var(--text-color-light);
    font-size: 14px;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #0056b3;
}

/* Sidebar Styling */
.blog-sidebar {
    background-color: var(--background-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.search-form {
    display: flex;
}

.search-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
}

.search-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3;
}

.categories-widget ul {
    list-style: none;
    padding: 0;
}

.categories-widget ul li {
    margin-bottom: 10px;
}

.categories-widget ul li a {
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-widget ul li a:hover {
    color: var(--primary-color);
}

.post-count {
    color: var(--text-color-light);
    font-size: 12px;
    font-weight: 400;
}

/* Recent Posts Widget */
.recent-posts-widget {
    margin-bottom: 30px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h5 {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.recent-post-content h5 a {
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-color-light);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

/* Reading Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    width: 0%;
    transition: width 0.3s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #ddd;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .blog-single-content {
        padding: 20px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .share-buttons {
        justify-content: center;
    }

    .blog-heading {
        font-size: 1.5rem;
    }

    .blog-paragraph {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blog-single-area {
        padding: 40px 0;
    }

    .blog-featured-image img {
        height: 250px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .share-btn {
        justify-content: center;
    }

    .content-navigation {
        padding: 15px;
    }

    .sidebar-widget {
        margin-bottom: 20px;
    }

    .recent-post-item {
        flex-direction: column;
        text-align: center;
    }

    .recent-post-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .blog-single-content {
        padding: 15px;
    }

    .blog-heading {
        font-size: 1.25rem;
        padding-left: 15px;
    }

    .blog-paragraph {
        font-size: 15px;
        text-align: left;
    }

    .author-box {
        padding: 20px;
    }

    .author-img img {
        width: 80px;
        height: 80px;
    }

    .social-sharing {
        padding: 20px;
    }
}