:root {
    --primary-dark: #171738;
    --primary-purple: #533DA4;
}

/* Blog content list fixes */

/* Remove default bullets from ALL lists in content sections */
.content-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

/* Base styling for all list items */
.content-section li {
    color: var(--neutral-800); /* Match paragraph color */
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

/* Add custom bullets ONLY to regular lists (not checklists) */
.content-section ul:not(.checklist) li:before {
    content: '•';
    color: var(--primary-purple);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Checklist styling - no bullets, minimal padding */
.content-section .checklist {
    list-style: none;
}

.content-section .checklist li {
    color: var(--neutral-800);
    padding-left: 5px; /* Minimal padding since checkmark is part of text */
}

/* Remove any bullets from checklist items */
.content-section .checklist li:before {
    content: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-pattern2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(23, 23, 56, 0.8), rgba(83, 61, 164, 0.6)),
        var(--hero-bg-image, url('assets/images/blog/blog2.jpg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add these classes for different blogs */
.hero-servicenow-consulting {
    --hero-bg-image: url('/assets/images/blog/service-now.jpg');
}

.hero-servicenow-providers{
    --hero-bg-image: url('/assets/images/blog/blog2.jpg');
}

.hero-servicenow-experts {
    --hero-bg-image: url('/assets/images/blog/blog3.jpg');
}

/* Replace the SI circle in stats grid with photo */
.author-photo-stat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-mid);
    margin-bottom: 0.5rem;
}

/* Replace the SI circle in author bio with photo */
.author-bio-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple-300);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
}

/* Fixed Stats Grid - Proper vertical centering */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: -4rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    max-width: 1200px;
    align-items: center; /* This centers all grid items vertically */
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Consistent height for all cards */
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-mid);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--neutral-mid);
    font-size: 0.875rem;
}

/* Fixed Author stat card with actual photo */
.stat-card.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Same height as other cards */
}

.author-photo-stat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-mid);
    margin-bottom: 0.5rem;
}

.stat-card.author-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Blog Content Styles */
.blog-layout {
    background: var(--white);
    padding: 60px 0;
}

.blog-layout .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

.blog-main-content {
    color: var(--neutral-900);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--purple-300));
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy-900);
    margin: 25px 0 15px 0;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--neutral-800);
}

/* FAQ Section */
.faq-section {
    margin-top: 50px;
}

.faq-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 35px;
    text-align: left;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    background: var(--white);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--neutral-50);
}

.faq-question .icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--neutral-700);
    line-height: 1.6;
}

/* Author Bio with photo */
.author-bio {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin: 60px 0;
}

.author-bio-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: start;
}

.author-bio-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple-300);
}

.author-bio-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-bio-text .title {
    color: var(--purple-300);
    font-weight: 600;
    margin-bottom: 12px;
}

.author-bio-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 12px;
}

.expertise-list {
    list-style: none;
    margin-top: 15px;
}

.expertise-list li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.expertise-list li::before {
    content: '▸';
    color: var(--purple-300);
    font-weight: bold;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.table-of-contents {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--neutral-400);
    width: 100%;
}

.table-of-contents h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 12px;
}

.toc-link {
    display: block;
    color: var(--neutral-700);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    background: var(--neutral-50);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.toc-link.active {
    background: linear-gradient(135deg, var(--primary), var(--purple-300));
    color: var(--white);
    border-left-color: transparent;
}

.key-takeaways-toc {
    background: linear-gradient(135deg, var(--primary), var(--purple-300));
    padding: 30px;
    border-radius: 16px;
    color: var(--white);
    width: 100%;
}

.key-takeaways-toc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.key-takeaways-toc ul {
    list-style: none;
}

.key-takeaways-toc li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.key-takeaways-toc li::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Newsletter Section */
.contact-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    background: white;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-height: 400px;
}

.contact-content h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-content p {
    color: rgba(23, 23, 56, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-benefits {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-dark);
}

.benefit-item svg {
    color: var(--primary-purple);
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    align-self: stretch;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(131, 71, 230, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(23, 23, 56, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-purple);
    outline: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.875rem;
    color: var(--primary-purple);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        display: flex;
        flex-direction: column;
    }
    
    /* Table of Contents appears first */
    .table-of-contents {
        order: 1;
    }
    
    /* Main content appears second */
    .blog-main-content {
        order: 2;
    }
    
    /* Key Takeaways appears last */
    .key-takeaways-toc {
        order: 3;
    }
    
    .blog-sidebar {
        position: static;
        display: contents; /* This makes the sidebar children direct children of blog-grid */
    }

    /* Author Bio Mobile Layout - Stack photo on top */
    .author-bio-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .author-bio-photo {
        width: 80px;
        height: 80px;
    }

    /* Newsletter section mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        min-height: auto;
    }
    
    .contact-content {
        text-align: center;
    }
    
    .benefit-item {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content h3 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        height: auto;
    }
}

@media (max-width: 568px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Newsletter section small mobile */
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
    }
}