/* Blog post content styling */
.blog-post-container {
    max-width: 1140px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-title {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-meta {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.blog-post-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-excerpt {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #495057;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* Content formatting */
.blog-post-body {
    color: #333333 !important; /* Darker text color */
    line-height: 1.8;
    font-size: 1.1rem;
  }

/* Headings */
.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post-body h1 { font-size: 2.2rem; }
.blog-post-body h2 { font-size: 1.8rem; }
.blog-post-body h3 { font-size: 1.5rem; }
.blog-post-body h4 { font-size: 1.3rem; }
.blog-post-body h5 { font-size: 1.1rem; }
.blog-post-body h6 { font-size: 1rem; }

/* Paragraphs */
.blog-post-body p {
    color: #333333 !important; /* Ensure paragraphs have the proper color */
    margin-bottom: 1.2rem;
  }

/* Lists */
.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-body li {
    color: #212529;
}

/* Emoji lists */
.blog-post-body ul.emoji-list {
    list-style-type: none;
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}
.blog-post-body ul.emoji-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.blog-post-body ul.emoji-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    content: attr(data-emoji) " ";
}
/* Specific emoji styles */
.blog-post-body li[data-emoji="📌"]::before { content: "📌 "; }
.blog-post-body li[data-emoji="🔹"]::before { content: "🔹 "; }
.blog-post-body li[data-emoji="💟"]::before { content: "💟 "; }
.blog-post-body li[data-emoji="📍"]::before { content: "📍 "; }
.blog-post-body li[data-emoji="✅"]::before { content: "✅ "; }
.blog-post-body li[data-emoji="⭐"]::before { content: "⭐ "; }
.blog-post-body li[data-emoji="📊"]::before { content: "📊 "; }
.blog-post-body li[data-emoji="📈"]::before { content: "📈 "; }
.blog-post-body li[data-emoji="📝"]::before { content: "📝 "; }
.blog-post-body li[data-emoji="💡"]::before { content: "💡 "; }
.blog-post-body li[data-emoji="⚠️"]::before { content: "⚠️ "; }
.blog-post-body li[data-emoji="🔑"]::before { content: "🔑 "; }
.blog-post-body li[data-emoji="✨"]::before { content: "✨ "; }
.blog-post-body li[data-emoji="👉"]::before { content: "👉 "; }
.blog-post-body li[data-emoji="🎯"]::before { content: "🎯 "; }

/* Blockquotes */
.blog-post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 0 0.5rem 1rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    color: #495057;
    font-style: italic;
}

/* Images */
.blog-post-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Code blocks */
.blog-post-body pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow: auto;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.blog-post-body code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #e83e8c;
}

/* Tables */
.blog-post-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.blog-post-body th,
.blog-post-body td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.blog-post-body th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Horizontal rule */
.blog-post-body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Author section */
.author-section {
    margin: 3rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.author-image {
    margin-right: 1.5rem;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-bio {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Related posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.related-post-card {
    height: 100%;
    transition: transform 0.3s ease;
}

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

.related-post-image {
    height: 160px;
    object-fit: cover;
}

/* Social sharing */
.social-sharing {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.social-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: scale(1.1);
}

/* Tags */
.blog-post-tags {
    margin: 2rem 0;
}

.blog-post-tags h5 {
    margin-bottom: 1rem;
}

.tag-badge {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Post meta items */
.post-meta-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    color: #6c757d;
}

.post-meta-item i {
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-excerpt {
        font-size: 1.1rem;
    }
    
    .blog-post-body {
        font-size: 1rem;
    }
    
    .blog-post-body h1 { font-size: 1.8rem; }
    .blog-post-body h2 { font-size: 1.6rem; }
    .blog-post-body h3 { font-size: 1.4rem; }
    
    .author-section {
        flex-direction: column;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .blog-post-body {
        color: #e9ecef;
    }
    
    .blog-post-body blockquote {
        color: #adb5bd;
        border-left-color: var(--primary-light);
    }
    
    .blog-post-body pre,
    .blog-post-body code {
        background-color: #2b3035;
        border-color: #495057;
    }
    
    .blog-post-body code {
        color: #f783ac;
    }
    
    .blog-post-body th,
    .blog-post-body td {
        border-color: #495057;
    }
    
    .blog-post-body th {
        background-color: #343a40;
    }
    
    .tag-badge {
        background-color: #343a40;
        color: #e9ecef;
        
    }
}
.blog-post-body ul.emoji-list p {
    all: unset;
    color: #212529 !important;
    font-weight: 500;
    display: list-item;
    list-style: none;
    padding-left: 2rem;
}
.blog-post-body p:has(span:first-child:is([data-emoji])) {
    display: block;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
  }
  
  /* Style for the emoji bullet itself */
  .blog-post-body p span[data-emoji] {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
  }
/* Add to your blog CSS */
.blog-post-body ol {
    list-style-type: decimal !important;
    padding-left: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    color: #333333 !important;
}

.blog-post-body ul {
    list-style-type: disc !important;
    padding-left: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    color: #333333 !important;
}

.blog-post-body li {
    margin-bottom: 0.75rem !important;
    color: #333333 !important;
}

/* For emoji lists */
.blog-post-body ul.emoji-list {
    list-style-type: none !important;
}
/* Add these styles to your blog.css file */

/* Base content styling */
.blog-post-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Headings */
.blog-post-body h1, .blog-post-body h2, 
.blog-post-body h3, .blog-post-body h4, 
.blog-post-body h5, .blog-post-body h6 {
    font-family: 'Playfair Display', serif;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    color: var(--primary-dark);
}

.blog-post-body h1 { font-size: 2.2rem; }
.blog-post-body h2 { font-size: 1.8rem; }
.blog-post-body h3 { font-size: 1.5rem; }
.blog-post-body h4 { font-size: 1.3rem; }
.blog-post-body h5 { font-size: 1.2rem; }
.blog-post-body h6 { font-size: 1.1rem; }

/* Paragraphs */
.blog-post-body p {
    margin-bottom: 1.2rem;
}

/* Lists */
.blog-post-body ul, .blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.8rem;
}

/* Numbered Lists */
.blog-post-body ol.numbered-list {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.blog-post-body ol.numbered-list > li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    counter-increment: item;
}

.blog-post-body ol.numbered-list > li::before {
    content: counter(item);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    border-radius: 0.25rem;
}

/* Emoji Lists */
.blog-post-body ul.emoji-list {
    list-style-type: none;
    padding-left: 0.5rem;
}

.blog-post-body ul.emoji-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
}

.blog-post-body ul.emoji-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    content: attr(data-emoji) " ";
    font-size: 1.2rem;
}

/* Special styling for specific emoji lists */
.blog-post-body ul.emoji-list[data-emoji="💡"] li {
    background-color: rgba(255, 255, 0, 0.1);
    padding: 1rem 1.5rem 1rem 2.8rem;
    border-left: 3px solid #f1c40f;
    border-radius: 0.25rem;
}

.blog-post-body ul.emoji-list[data-emoji="💡"] li::before {
    top: 1rem;
}

/* Handle dark mode */
body.dark-theme .blog-post-body {
    color: var(--text-light);
}

body.dark-theme .blog-post-body h1,
body.dark-theme .blog-post-body h2,
body.dark-theme .blog-post-body h3,
body.dark-theme .blog-post-body h4,
body.dark-theme .blog-post-body h5,
body.dark-theme .blog-post-body h6 {
    color: var(--primary-light);
}
/* Table styling */
.blog-post-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.blog-post-body .table {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--text-dark);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--text-dark);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--text-dark);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    color: var(--text-dark);
    border-color: var(--bs-border-color);
}

.blog-post-body .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-post-body .table > thead {
    background-color: var(--primary-light);
    color: white;
}

.blog-post-body .table > thead > tr > th {
    vertical-align: bottom;
    padding: 0.75rem;
    border-bottom: 2px solid var(--bs-border-color);
    font-weight: 600;
}

.blog-post-body .table > tbody > tr > td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid var(--bs-border-color);
}

/* Dark mode support for tables */
body.dark-theme .blog-post-body .table {
    --bs-table-striped-color: var(--text-light);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
    --bs-table-active-color: var(--text-light);
    --bs-table-active-bg: rgba(255, 255, 255, 0.1);
    --bs-table-hover-color: var(--text-light);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.075);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .blog-post-body .table > thead {
    background-color: var(--primary-dark);
}