/* Blog Layout Styles - Separate from main site */

/* Hero Section Styles */
.hero-card {
    position: relative;
    z-index: 1;
}

/* Custom Spacing Class to bypass Tailwind JIT issues */
.blog-main-spacing {
    padding-top: 110px;
}

@media (min-width: 1024px) {
    .blog-main-spacing {
        padding-top: 100px !important;
    }
}

/* Blog Category Tag - just structural spacing */
.blog-category-tag {
    margin-bottom: 1.5rem;
}

/* Blog Title Container - just structural spacing */
.blog-title-container {
    margin-bottom: 1.5rem;
}

/* Blog Meta Container - just structural spacing, NO gap override */
.blog-meta-container {
    margin-top: 0.5rem;
}

/* Two-Column Layout: TOC Left, Content Right */
.blog-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Sidebar Wrapper - Sticky container for TOC and CTA */
.blog-content-wrapper>.blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for the sticky sidebar */
.blog-content-wrapper>.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-content-wrapper>.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.blog-content-wrapper>.blog-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.blog-content-wrapper>.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Table of Contents - Regular positioning, no sticky */
.blog-toc {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    height: auto;
    overflow: visible;
}

.blog-toc .blog-toc-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.blog-toc .blog-toc-links {
    max-height: none;
    overflow-y: visible;
}

.blog-toc .blog-toc-links::-webkit-scrollbar {
    width: 6px;
}

.blog-toc .blog-toc-links::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.blog-toc .blog-toc-links::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.blog-toc .blog-toc-links::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.blog-toc .blog-toc-link {
    display: block;
    padding: 0.625rem 0.75rem;
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.blog-toc .blog-toc-link:hover {
    color: #0048ff;
    background: rgba(0, 72, 255, 0.05);
    border-left-color: #0048ff;
    padding-left: 1rem;
}

.blog-toc .blog-toc-link.active {
    color: #0048ff;
    font-weight: 600;
    background: rgba(0, 72, 255, 0.08);
    border-left-color: #0048ff;
    padding-left: 1rem;
}

/* Blog Content Area */
.blog-content {
    max-width: 800px;
}

/* Blog Image Container - Left aligned, no wrapping */
.blog-image-container {
    margin: 2.5rem 0;
    text-align: left;
    overflow: hidden;
}

.blog-image-container img {
    max-width: 650px;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: block;
}

/* Remove white padding from generated images */
.blog-image-container img[src*="three-types-ai"] {
    max-width: 100%;
    width: 100%;
}

/* Remove borders/shadows from AI cost blog images (white background) */
.blog-image-container img[src*="ai-cost"],
.blog-image-container img[src*="tier-1-workflow"],
.blog-image-container img[src*="tier-2-chatbot"],
.blog-image-container img[src*="tier-3-ai-agent"],
.blog-image-container img[src*="cost-comparison"],
.blog-image-container img[src*="roi-calculator"],
.blog-image-container img[src*="hidden-costs"],
.blog-image-container img[src*="workflow-automation-diagram"],
.blog-image-container img[src*="chatbots-illustration"],
.blog-image-container img[src*="ai-agents-network"],
.blog-image-container img[src*="comparison-visual"],
.blog-image-container img[src*="ai-readiness-repetitive-tasks"],
.blog-image-container img[src*="ai-readiness-data-exists"],
.blog-image-container img[src*="ai-readiness-customer-expectations"],
.blog-image-container img[src*="team-at-capacity-relief"],
.blog-image-container img[src*="specific-problem-lightbulb"],
.blog-image-container img[src*="not-ready-roadmap"] {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .blog-image-container {
        margin: 2rem 0;
    }

    .blog-image-container img {
        max-width: 100%;
    }
}

/* Blog Article Styles - Enhanced Typography */
article h2 {
    font-size: 1.875rem;
    font-weight: 400 !important;
    color: #01023b;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    font-family: 'Aeonik', sans-serif;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

article h2:first-of-type {
    margin-top: 2rem;
}

article h3 {
    font-size: 1.5rem;
    font-weight: 400 !important;
    color: #01023b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Aeonik', sans-serif;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

article p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
    text-align: justify;
    text-justify: inter-word;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* First paragraph after heading - no justify */
article h2+p,
article h3+p {
    text-align: left;
}

article ul,
article ol {
    margin-bottom: 1.75rem;
    padding-left: 1.75rem;
}

article li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

article li p {
    margin-bottom: 0.5rem;
}

article strong {
    font-weight: 600;
    color: #01023b;
}

/* Responsive Typography */
@media (max-width: 1024px) {
    article h2 {
        font-size: 1.75rem;
        margin-top: 3rem;
    }

    article h3 {
        font-size: 1.375rem;
    }
}

@media (max-width: 768px) {
    article h2 {
        font-size: 1.625rem;
        margin-top: 2.5rem;
    }

    article h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    article p,
    article li {
        font-size: 1rem;
        line-height: 1.75;
        text-align: left;
    }
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #0048ff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.highlight-box p {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e3a8a;
    margin-bottom: 0;
}

/* Footer Spacer */
.blog-footer-spacer {
    padding-bottom: 24rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-content-wrapper>.blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .blog-toc {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-layout-container {
        padding: 0 1rem;
    }

    article h2 {
        font-size: 1.75rem;
    }

    article h3 {
        font-size: 1.25rem;
    }

    article p,
    article li {
        font-size: 1rem;
    }
}