/* Main Styles for blog.ahmad.com.bd */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content Area */
main {
    min-height: 70vh;
}

/* Blog Post Styling */
.blog-post {
    margin-bottom: 2rem;
}

.blog-post-header {
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-meta i {
    margin-right: 0.3rem;
}

.blog-post-meta span {
    margin-right: 1rem;
}

.blog-post-categories {
    margin-top: 0.5rem;
}

.blog-post-image {
    margin-bottom: 1.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.blog-post-content h2, 
.blog-post-content h3, 
.blog-post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
    font-style: italic;
}

.blog-post-tags {
    margin: 1.5rem 0;
    color: #6c757d;
}

.blog-post-share {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.blog-post-share span {
    margin-right: 1rem;
}

.blog-post-share a {
    margin-right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.btn-facebook {
    background-color: #3b5998;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-linkedin {
    background-color: #0077b5;
}

/* Comments Section */
.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-meta {
    flex-grow: 1;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0;
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.comment-content {
    font-size: 0.95rem;
}

.comment-actions {
    margin-top: 1rem;
}

.comment-replies {
    margin-left: 3rem;
    margin-top: 1rem;
}

/* Sidebar Styling */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-sidebar .card {
    margin-bottom: 1.5rem;
}

.blog-sidebar .card-header {
    font-weight: bold;
    background-color: #f8f9fa;
}

.blog-sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.blog-sidebar ul li:last-child {
    border-bottom: none;
}

/* Footer Styling */
.footer {
    margin-top: 3rem;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Forms and Buttons */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Q&A Community Styles */
.question-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.question-header {
    margin-bottom: 1rem;
}

.question-title {
    margin-bottom: 0.5rem;
}

.question-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.question-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-stat {
    text-align: center;
}

.question-stat-number {
    font-size: 1.25rem;
    font-weight: bold;
}

.question-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .question-stats {
        flex-wrap: wrap;
    }
}