/* Blog Reading Experience Styles - Professional Layout */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    line-height: 1.6;
}

/* CRITICAL: Remove any white bars on any side */
*::before, *::after {
    display: none !important;
    content: none !important;
}

/* Hide any element that could create a white bar */
[style*="left: 0"], [style*="left:0"], 
[style*="right: 0"], [style*="right:0"],
[style*="width: 100%"], [style*="width:100%"],
[style*="height: 100%"], [style*="height:100%"] {
    display: none !important;
}

/* Nuclear option: Hide any problematic elements */
.lead-magnet-card::before,
.lead-magnet-card::after,
.exit-intent-popup::before,
.exit-intent-popup::after,
.popup-overlay::before,
.popup-overlay::after {
    display: none !important;
    content: none !important;
}

/* Hide any fixed/absolute positioned elements that span full width/height */
[class*="lead-magnet"]::before,
[class*="exit-intent"]::before,
[class*="popup"]::before,
[class*="overlay"]::before {
    display: none !important;
    content: none !important;
}

/* Ensure no scrollbars appear as white bars */
html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    background: transparent !important;
}

/* Main Container Layout */
.blog-main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background-color: #f8fafc;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 2rem;
    align-items: start;
}

/* Main Content Area */
.blog-main-content {
    min-width: 0;
    background: transparent;
}

/* Blog Header Styles */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Posts Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card Styles */
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    height: 200px;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.post-meta i {
    color: #667eea;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-tag {
    background: #eff6ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #dbeafe;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Load More Button */
.load-more-container {
    margin: 3rem 0;
}

#loadMoreBtn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

#loadMoreBtn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#loadMoreBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Newsletter Widget */
.newsletter-widget p {
    color: #64748b;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input[type="email"] {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form .btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form .btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Contact Widget */
.contact-widget p {
    color: #64748b;
    margin-bottom: 1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.contact-btn.whatsapp {
    background: #10b981;
    color: white;
}

.contact-btn.whatsapp:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.contact-btn.email {
    background: #667eea;
    color: white;
}

.contact-btn.email:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Service Widget */
.service-card {
    text-align: center;
    padding: 1rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h4 {
    margin: 0 0 0.75rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-service {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Related Topics Widget */
.related-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    border-color: #667eea;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.meta-item i {
    color: #667eea;
    margin-right: 0.5rem;
}

.meta-item strong {
    color: #334155;
}

.tag-badge {
    display: inline-block;
    background: #eff6ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
    border: 1px solid #dbeafe;
}

/* Table of Contents */
.table-of-contents {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
}

.toc-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.toc-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toc-toggle.active {
    transform: rotate(180deg);
}

.toc-content {
    display: none;
    background: white;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.toc-content.active {
    display: block;
}

.toc-content:not(.active) {
    display: none;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.toc-link:hover {
    color: #667eea;
    background: #f8fafc;
    padding-left: 0.5rem;
}

.toc-link.active {
    color: #667eea;
    background: #eff6ff;
    font-weight: 600;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.share-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

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

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Post Content Styles */
.post-full-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-full-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-full-meta {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.post-tag {
    background: #eff6ff;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.post-full-image {
    margin: 2rem 0;
    text-align: center;
}

.post-full-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Typography and Content Hierarchy */
.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    margin: 2rem 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1e293b;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
    line-height: 1.3;
}

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

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #dc2626;
}

.post-content pre {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #475569;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* CTA Section */
.post-cta-section {
    margin: 3rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.cta-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-card p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta.primary {
    background: #10b981;
    color: white;
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Author Bio */
.author-bio-section {
    margin: 3rem 0;
}

.author-bio-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.author-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
}

.author-title {
    margin: 0 0 1rem 0;
    color: #667eea;
    font-weight: 500;
}

.author-description {
    margin: 0 0 1rem 0;
    color: #64748b;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
}

.comments-section h3 {
    color: #1e293b;
    margin-bottom: 2rem;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.comment-form h4 {
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.form-label {
    color: #334155;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comments-list {
    margin-top: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.5rem;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    color: #1e293b;
    font-weight: 600;
}

.comment-date {
    color: #64748b;
    font-size: 0.9rem;
}

.comment-text {
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.no-comments-message {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.no-comments-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Social Share Container */
.social-share-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.share-label {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

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

.social-share-buttons .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.social-share-buttons .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-share-buttons .share-btn.facebook {
    background: #1877f2;
}

.social-share-buttons .share-btn.twitter {
    background: #1da1f2;
}

.social-share-buttons .share-btn.linkedin {
    background: #0077b5;
}

.social-share-buttons .share-btn.whatsapp {
    background: #25d366;
}

/* Blog Content Enhancement Spacing */
.blog-content-enhancement {
    margin: 2rem 0;
}

/* Blog Advanced Leads Spacing */
.blog-advanced-leads {
    margin: 2rem 0;
}

/* Blog Lead Generation Spacing */
.blog-lead-generation {
    margin: 2rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .blog-sidebar {
        position: static;
        order: 1;
    }
    
    .blog-main-content {
        order: 2;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-content-wrapper {
        padding: 0.5rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card-body {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-methods {
        gap: 0.5rem;
    }
    
    .contact-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .post-card-body {
        padding: 0.75rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 0.75rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .reading-progress-container,
    .social-sharing,
    .toc-toggle,
    .share-buttons,
    .blog-sidebar {
        display: none;
    }
    
    .toc-content {
        max-height: none !important;
    }
    
    .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Additional Layout Fixes */
body {
    padding-top: 80px !important;
}

/* Ensure proper spacing and no conflicts */
.blog-reading-experience,
.blog-content-enhancement,
.blog-advanced-leads,
.blog-lead-generation {
    margin: 2rem 0 !important;
}

/* Remove any potential scrollbar issues */
html, body {
    overflow-x: hidden;
}

.blog-main-container {
    overflow-x: hidden;
}

/* Tighten container to avoid outer gaps */
.blog-main-container { max-width: 1200px; }
.blog-content-wrapper { padding-left: 1rem; padding-right: 1rem; }

/* Hide only problematic pseudo-elements that could create white bars */
.blog-main-container::after,
.blog-main-container::before,
.blog-content-wrapper::after,
.blog-content-wrapper::before {
    display: none !important;
    content: none !important;
} 

/* TOC visibility overrides to defeat conflicting CSS */
.toc-content.active,
.toc-content.active .toc-list,
.toc-content.active .toc-list li,
.toc-content.active .toc-list .toc-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #334155 !important;
}

.toc-content.active .toc-list {
    padding-left: 1.25rem !important;
}

.toc-content.active .toc-list li {
    list-style: none !important;
    margin: 0.5rem 0 !important;
} 

/* Table of Contents - Enhanced Styles */
.toc-content {
	background: #ffffff;
}

.toc-list {
	padding: 0.5rem 0 !important;
}

.toc-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.25rem;
	border-radius: 8px;
	transition: background 0.2s ease, padding-left 0.2s ease;
}

.toc-item + .toc-item {
	border-top: 1px dashed #e5e7eb;
}

.toc-item:hover {
	background: #f8fafc;
}

/* Indentation by heading level */
.toc-item.level-2 { padding-left: 0.25rem; }
.toc-item.level-3 { padding-left: 1.25rem; }
.toc-item.level-4 { padding-left: 2rem; }

/* Number badge */
.toc-index {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Smaller, subtle badges for deeper levels */
.toc-item.level-3 .toc-index,
.toc-item.level-4 .toc-index {
	background: #e2e8f0;
	color: #475569;
	font-weight: 500;
}

/* Link tweaks inside item */
.toc-item .toc-link {
	flex: 1;
	padding: 0.25rem 0;
	color: #334155;
}

.toc-item .toc-link:hover {
	color: #667eea;
}

.toc-item .toc-link.active {
	color: #667eea;
	background: transparent;
	font-weight: 600;
} 

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

/* Enhanced TOC Styles */
.toc-content.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toc-toggle.active {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Active TOC Link Highlighting */
.toc-link.active {
    color: #667eea !important;
    background: #eff6ff !important;
    font-weight: 600 !important;
    padding-left: 0.75rem !important;
    border-left: 3px solid #667eea;
} 

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .reading-progress-container {
        top: 70px;
        height: 3px;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
        margin: 1.5rem 0;
    }
    
    .post-content h1 { font-size: 1.8rem; }
    .post-content h2 { font-size: 1.5rem; }
    .post-content h3 { font-size: 1.3rem; }
    .post-content h4 { font-size: 1.1rem; }
    
    .post-content p {
        text-align: left;
        hyphens: none;
    }
    
    .post-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .post-content blockquote::before {
        font-size: 3rem;
        top: -0.5rem;
        left: 0.5rem;
    }
    
    .toc-content.active {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .toc-item {
        padding: 0.75rem 0.5rem;
    }
    
    .toc-index {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .reading-progress-container {
        top: 60px;
        height: 2px;
    }
    
    .post-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .post-content h1 { font-size: 1.6rem; }
    .post-content h2 { font-size: 1.4rem; }
    .post-content h3 { font-size: 1.2rem; }
    
    .post-content blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: 1.5rem;
    }
    
    .toc-header {
        padding: 1rem;
    }
    
    .toc-header h3 {
        font-size: 1rem;
    }
    
    .toc-content {
        padding: 1rem;
    }
} 