/* Blog Page Specific Styles */
/* This file should be named stylesblog.css and used alongside your main styles.css */

/* Adjustments for fixed navbar and background */
body {
    padding-top: 76px; /* Adjust based on your navbar height */
    background-color: white !important;
}

/* Blog Sidebar */
.blog-sidebar {
    background: var(--section-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: sticky;
    top: 90px;
    margin-bottom: 2rem;
}

.blog-sidebar h4 {
    color: var(--primary-green);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-sage);
    margin-bottom: 1rem;
}

.sidebar-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.sidebar-item a {
    display: block;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-item a:hover {
    background-color: rgba(2, 93, 14, 0.05);
    color: var(--primary-green);
    text-decoration: none;
    transform: translateX(5px);
}

.sidebar-item.active a {
    color: var(--primary-green);
    font-weight: 600;
    background-color: rgba(124, 148, 115, 0.1);
    border-left: 3px solid var(--accent-sage);
    padding-left: 0.8rem;
}

.featured-box {
    background-color: var(--soft-green);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.featured-box h5 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Blog Content */
.blog-content {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.meta {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(124, 148, 115, 0.1);
    border-left: 4px solid var(--accent-sage);
    border-radius: 0 4px 4px 0;
}

.blog-content h2 {
    color: var(--primary-green);
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-sage);
    display: inline-block;
}

.blog-content h3 {
    color: var(--secondary-green);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.character-section, .lesson-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.character-section:last-child, .lesson-section:last-child {
    border-bottom: none;
}

.conclusion {
    background-color: var(--soft-green);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-green);
}

.share-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.social-buttons {
    margin-top: 1rem;
}

.social-buttons .btn {
    margin-right: 0.5rem;
}

/* Comments Section */
.comments-section {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.comments-section h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-sage);
    display: inline-block;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-header img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.comment-header h5 {
    margin-bottom: 0;
    color: var(--primary-green);
}

.comment-form h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}

/* Animation for hover effects */
@keyframes subtle-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.character-section:hover h3, 
.lesson-section:hover h3 {
    color: var(--accent-sage);
    animation: subtle-pop 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .blog-content, .comments-section {
        padding: 1.5rem;
    }
    
    .article-intro {
        font-size: 1rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
}