/* ======================================
   Template Styles - Rolling Insights
   ====================================== */

/* ====== BLOG TEMPLATE STYLES ====== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.blog-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-header {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 40px;
}

.blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-body {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-image {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--neutral-text-light);
}

.blog-meta .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.blog-author img, .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.author-avatar {
    width: 40px;
    height: 40px;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
}

.blog-author-name {
    font-weight: bold;
}

.blog-date {
    color: #777;
    font-size: 0.9rem;
}

.blog-toc {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.blog-toc h3 {
    margin-top: 0;
}

.blog-toc ul {
    margin-bottom: 0;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--neutral-text-dark);
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

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

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.blog-section {
    margin-bottom: 40px;
}

.blog-section h2 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
	height: auto;
}

.blog-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-section p {
    line-height: 1.6;
    margin-bottom: 20px;
	height: auto;
}

.blog-section ul, .blog-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-section img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.blog-cta {
    background-color: var(--primary-blue-lighter);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    margin: 40px 0;
}

.blog-cta h3 {
    margin-top: 0;
}

.blog-cta .btn {
    margin-top: 15px;
}

.blog-share {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-share a {
    margin: 0 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.blog-share a:hover {
    background-color: var(--primary-blue-lighter);
}

.blog-share a svg {
    width: 24px;
    height: 24px;
}

.blog-related {
    margin-top: 60px;
}

.blog-related h3 {
    text-align: center;
    margin-bottom: 30px;
}

.blog-related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.blog-related-post {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.blog-related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-related-post-content {
    padding: 15px;
}

.blog-related-post h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

.blog-related-post-date {
    font-size: 0.8rem;
    color: #777;
}

/* ====== USE CASE TEMPLATE STYLES ====== */
.use-case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.use-case-hero {
    padding: 80px 0;
    background-color: var(--primary-blue-lighter);
    position: relative;
    overflow: hidden;
}

.use-case-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.use-case-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.use-case-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--neutral-text-dark);
}

.use-case-hero .cta-buttons {
    display: flex;
    gap: 1rem;
}

.use-case-hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    z-index: 1;
}

.use-case-hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.use-case-section {
    padding: 80px 0;
    position: relative;
}

.use-case-section.alt-bg {
    background-color: var(--neutral-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--neutral-text-light);
}

/* Feature Grid Components */
.feature-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card, .feature-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover, .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-blue-lighter);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-blue);
}

.feature-card h3, .feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p, .feature-item p {
    color: var(--neutral-text-light);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.stat-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--neutral-text-light);
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.benefits-content {
    flex: 1;
}

.benefits-image {
    flex: 1;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    min-width: 3rem;
    height: 3rem;
    background-color: var(--primary-blue-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.benefit-icon i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 5rem 0;
    border-radius: var(--border-radius-lg);
    margin: 4rem 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center !important;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Override global left-alignment with higher specificity */
.use-case-container .cta-section h2 {
    text-align: center !important;
}

/* Additional approach to center the text */
.cta-section h2::before,
.cta-section h2::after {
    content: "";
    display: table;
    clear: both;
}

.cta-section p {
    color: white;
    opacity: 0.9;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

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

/* Testimonial Section */
.testimonial-section {
    padding: 80px 0;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--primary-blue-lighter);
    line-height: 1;
    opacity: 0.7;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 1.2rem;
}

.testimonial-author-info p {
    margin: 0;
    color: var(--neutral-text-light);
}

/* Process Steps Section */
.process-steps {
    margin: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 30px;
    width: 3px;
    height: calc(100% + 4rem);
    background-color: var(--primary-blue-lighter);
    z-index: 0;
}

/* Step Items (for the How It Works section) */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 30px;
    width: 3px;
    height: calc(100% + 1.5rem);
    background-color: var(--neutral-border);
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.75rem;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

/* Related Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.related-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.resource-content {
    padding: 1.5rem;
    background-color: white;
}

.resource-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-content p {
    color: var(--neutral-text-light);
    margin-bottom: 1.5rem;
}

.btn-resource {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
    text-decoration: none;
}

.btn-resource:hover {
    color: var(--secondary-blue-light);
}

.btn-resource i, 
.btn i {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .use-case-hero h1 {
        font-size: 3rem;
    }

    .use-case-hero-image {
        width: 40%;
    }

    .benefits-container {
        flex-direction: column;
        gap: 2rem;
    }

    .benefits-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .use-case-hero {
        padding: 60px 0;
        text-align: center;
    }

    .use-case-hero-content {
        max-width: 100%;
    }

    .use-case-hero h1 {
        font-size: 2.5rem;
    }

    .use-case-hero p {
        font-size: 1.1rem;
    }

    .use-case-hero .cta-buttons {
        justify-content: center;
    }

    .use-case-hero-image {
        position: static;
        transform: none;
        width: 80%;
        margin: 2rem auto 0;
    }

    .use-case-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .testimonial-content {
        font-size: 1.2rem;
    }

    .blog-header {
        height: 300px;
    }

    .blog-body {
        padding: 1.5rem;
    }

    .blog-content p {
        font-size: 1rem;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-related-posts {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-icon i {
        font-size: 2.5rem;
    }

    .benefit-icon {
        min-width: 2.5rem;
        height: 2.5rem;
    }

    .benefit-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .step-item:not(:last-child)::after {
        left: 30px;
        height: calc(100% - 60px);
        top: 90px;
    }
}

@media (max-width: 480px) {
    .use-case-hero h1 {
        font-size: 2rem;
    }

    .feature-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    .process-step:not(:last-child)::after {
        left: 30px;
        top: 60px;
        height: calc(100% + 1rem);
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-card::before {
        font-size: 4rem;
    }

    .cta-section .cta-buttons {
        flex-direction: column;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-related-posts {
        grid-template-columns: 1fr;
    }
}

/* Blog Article Styles */
.use-case-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-toc {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.blog-toc h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.blog-toc h3 i {
    margin-right: 0.5rem;
}

.blog-toc ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

.blog-toc ul li {
    margin-bottom: 0.5rem;
}

.blog-toc ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-toc ul li a:hover {
    color: var(--primary-color);
}

.blog-section {
    margin: 3rem 0;
}

.blog-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.blog-section h2 i {
    margin-right: 0.75rem;
    color: var(--primary-blue);
}

.blog-section h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

.blog-section p, .blog-section ul, .blog-section ol {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.blog-section ul, .blog-section ol {
    padding-left: 1.5rem;
}

.blog-section li {
    margin-bottom: 0.75rem;
}

.blog-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0 1rem;
}

.blog-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.blog-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-share a i {
    font-size: 1.25rem;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.blog-author-info {
    display: flex;
    flex-direction: column;
}

.blog-author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive adjustments for blog template */
@media (max-width: 768px) {
    .use-case-article {
        padding: 1rem;
    }
    
    .blog-section h2 {
        font-size: 1.75rem;
    }
    
    .blog-section h3 {
        font-size: 1.25rem;
    }
}

/* Ensure CTA section matches other templates */
.use-case-article .cta-section {
    margin: 3rem 0;
    padding: 2.5rem;
    border-radius: 8px;
}

.use-case-article .cta-section h2 {
    text-align: center;
}

/* Ensure stats container works in blog context */
.blog-section .stats-container {
    margin: 2rem 0;
}

.step-image {
    margin-top: 1.5rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.step-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .step-image {
        margin-top: 1rem;
    }
}

/* Article Layout with Sticky TOC */
.article-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    position: relative;
    margin-top: 2rem;
}

.toc-sidebar {
    position: relative;
    height: 100%;
    /* Reserve space for the fixed TOC */
    min-height: 300px;
}

.blog-toc.sticky {
    position: fixed;
    width: 230px; /* Slightly less than parent column to account for padding */
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    z-index: 100;
    border: 1px solid var(--neutral-border);
	max-width: 100%;
}

.blog-toc {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-toc h3 {
    margin-top: 0;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-border);
}

.article-content {
    max-width: 800px;
}
      /* Use case specific styles */
      .use-case-hero {
        background-color: var(--light-bg);
        padding: var(--spacing-md) 0;
        margin-bottom: 20px;
    }
    
    
    .use-case-section {
        padding-top: 0;
    }
    
    .article-layout {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 30px;
        align-items: flex-start;
    }
    
    .toc-sidebar {
        position: sticky;
        top: 20px;
        margin-top: 29px; /* Exact alignment with first h2 */
        padding-top: 0;
    }
    
    /* Fix whitespace around TOC */
    .toc-sidebar .blog-toc.sticky {
        top: 20px !important;
        position: sticky !important; 
        margin-top: 0 !important;
        padding-top: 0 !important;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 15px !important;
        background-color: #f9f9f9;
    }
    
    /* Improve TOC list styling */
    .blog-toc ul {
        list-style-type: none;
        padding-left: 15px;
        margin: 0;
    }
    
    .blog-toc > ul {
        padding-left: 0;
    }
    
    .blog-toc ul li {
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .blog-toc ul li a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
        display: block;
        padding: 3px 0;
        transition: all 0.2s ease;
    }
    
    .blog-toc ul li a:hover {
        color: var(--primary-blue);
        padding-left: 3px;
    }
    
    .use-case-hero-content {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .client-info {
        margin-bottom: var(--spacing-md);
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .info-item {
        background-color: rgba(255, 255, 255, 0.7);
        padding: 10px 15px;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        flex: 1 1 200px;
    }
    
    .info-label {
        font-weight: 600;
        color: var(--primary-blue);
        display: block;
        margin-bottom: 5px;
        font-size: 0.9rem;
        text-transform: uppercase;
    }
    
    .info-value {
        font-weight: 500;
        color: var(--text-color);
        display: block;
        font-size: 1.1rem;
    }
    
    .client-info .label {
        font-weight: 500;
        color: var(--primary-blue);
    }
    
    .section-divider {
        border-top: 1px solid var(--light-gray);
        margin: var(--spacing-lg) 0;
    }
    
    .challenge-section,
    .solution-section,
    .results-section,
    .quote-section,
    .why-section {
        margin-bottom: var(--spacing-xl);
    }
    
    .quote-section {
        background-color: var(--light-bg);
        padding: var(--spacing-lg);
        border-radius: var(--border-radius-md);
        position: relative;
    }
    
    .quote-section::before {
        content: '"';
        font-size: 6rem;
        position: absolute;
        top: -20px;
        left: 20px;
        color: var(--primary-blue);
        opacity: 0.2;
    }
    
    /* Removed local .use-case-card and .use-case-grid styles to use global CSS for correct layout and overflow handling */
    
    @media (max-width: 768px) {
        .info-item {
            flex: 1 1 100%;
        }
    }
    
    /* First h2 positioning reference */
    .blog-section h2:first-of-type {
        margin-top: 0; /* Ensure no extra margin on first heading */
    }
    
    /* First section styling */
    .first-section {
        padding-top: 0;
    }
    
    .first-section h2 {
        margin-top: 0;
    }

/* Make links in TOC show active state when section is in view */
.blog-toc a.active {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Responsive adjustments for sticky TOC */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
    
    .blog-toc.sticky {
        width: 180px;
    }
}

/* Special treatment for mobile */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        display: none; /* Hide the regular sidebar on mobile */
    }
    
    /* Create a floating TOC on mobile that's always visible */
    .blog-toc.sticky {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        width: auto;
        max-width: 250px;
        max-height: 300px;
        transform: translateY(70%);
        transition: transform 0.3s ease;
        z-index: 1000;
        border: 1px solid var(--neutral-border);
    }
    
    /* Add a toggle button for mobile */
    .blog-toc.sticky::before {
        content: "Contents ↑";
        display: block;
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        padding: 0.5rem;
        background-color: var(--primary-blue);
        color: white;
        text-align: center;
        border-radius: 8px 8px 0 0;
        cursor: pointer;
    }
    
    .blog-toc.sticky:hover {
        transform: translateY(0);
    }
    
    .article-content {
        order: 1;
    }
} 