.content-template-section {
    padding-block: var(--section-padding);
    background-color: var(--color-ink-50);
    border-bottom: 1px solid var(--color-border);
}

.content-template-section .content-template-container {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    max-width: 1065px;
}

/* Sidebar Styles */
.content-template-section .content-sidebar {
    width: 229px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: sticky;
    top: 24px;
}

.content-template-section .sidebar-widget {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-smm) 17px var(--space-sm);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.content-template-section .sidebar-widget:last-child {
    padding: 22px 19px 24px;
}

.content-template-section .sidebar-widget:last-child .h3,
.content-template-section .sidebar-widget:last-child h3 {
    margin-bottom: var(--space-sm);
    font-size: 21px;
    line-height: 1.1904;
}

.content-template-section .sidebar-widget.widget-light {
    background-color: var(--color-ink-25);
    padding: 20px 17px 22px;
}

.content-template-section .widget-title-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--font-size-eyebrow-sm);
    line-height: 1.5652;
    text-transform: uppercase;
    color: var(--color-slate-500);
    margin-bottom: 13px;
}

.content-template-section .toc-wrapper {
    position: relative;
    padding-left: 13px;
}

.content-template-section .toc-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

.content-template-section .toc-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    background-color: var(--color-signal-500);
    height: 0;
    transition: height 0.3s ease;
    z-index: 1;
}

.content-template-section .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* gap: 16px; */
}

.content-template-section .toc-link {
    font-size: var(--font-size-body-sm);
    color: var(--color-slate-700);
    text-decoration: none;
    display: block;
    line-height: 1.4666;
    transition: color 0.2s ease;
    padding: 9px 0;
}

.content-template-section .toc-link:hover,
.content-template-section .toc-link.active {
    color: var(--color-teal-700);
}

.content-template-section .toc-link.active {
    font-weight: var(--font-weight-semibold);
}

.content-template-section .widget-title {
    font-size: var(--font-size-figure-xs);
    color: var(--color-teal-700);
    margin-bottom: 8px;
    line-height: 1.1363;
    font-weight: var(--font-weight-bold);
}

.content-template-section .sidebar-widget p {
    font-size: var(--font-size-body-sm);
    color: var(--color-slate-700);
    margin-bottom: 9px;
    line-height: 1.5333;
}

.content-template-section .sidebar-widget form .hs-form-field>label {
    display: none !important;
}

.content-template-section .sidebar-widget form .actions input[type="submit"] {
    min-height: 44px !important;
    margin-top: 9px !important;
}

.content-template-section .sidebar-widget .button {
    width: 100%;
}

/* Main Content Styles */
.content-template-section .content-main {
    flex-grow: 1;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) calc(var(--space-xl) - 1px);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}


.content-template-section .content-body ul,
.content-template-section .content-body ol {
    margin-bottom: var(--space-sl);
}

.content-template-section .content-body ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    list-style-position: inside;
}

.content-template-section .content-body p,
.content-template-section .content-body ul li,
.content-template-section .content-body ol li {
    margin-bottom: var(--space-sl);
    color: var(--color-slate-700);
    font-size: var(--font-size-prose);
    line-height: 1.7503;
}

.content-template-section .content-body ul li,
.content-template-section .content-body ol li {
    margin-bottom: 0;
}


.content-template-section .h2,
.content-template-section h2 {
    color: var(--color-teal-700);
    margin-top: 34px;
    margin-bottom: var(--space-xm);
}

.content-template-section .content-body .h2:first-child,
.content-template-section .content-body h2:first-child {
    margin-top: 0;
}

/* Tags Section */
.content-template-section .tags-section {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    /* margin-bottom: var(--space-llg); */
    flex-wrap: wrap;
    padding-top: var(--space-llg);
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
}

.content-template-section .tags-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    line-height: 1.5238;
    color: var(--color-slate-500);
}

.content-template-section .h3,
.content-template-section h3 {
    margin-bottom: var(--space-xxl);
}

.content-template-section .content-body .tags-section .tag-pill {
    display: inline-block;
    background-color: var(--color-border);
    color: var(--color-heading);
    font-size: var(--font-size-eyebrow-sm);
    line-height: 1.4782;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.73px;
    font-weight: var(--font-weight-regular);
}

.content-template-section .content-body .tags-section .tag-pill:hover {
    background-color: var(--color-ink-50);
    text-decoration: none;
}

/* Author Section */
.content-template-section .author-box {
    background-color: var(--color-ink-50);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.content-template-section .author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-slate-500);
    flex-shrink: 0;
    /* padding: var(--space-xs); */
}

.content-template-section .author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content-template-section .author-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-ink-900);
    font-size: var(--font-size-subline);
    line-height: 1.2777;
    font-family: var(--font-display);
}

.content-template-section .author-info p {
    font-size: var(--font-size-card-sm);
    line-height: 1.5862;
    margin-bottom: 0 !important;
    color: var(--color-slate-500);
}

@media (max-width:991px) {
    .content-template-section .content-template-container {
        flex-wrap: wrap;
    }

    .content-template-section .content-sidebar {
        width: 100%;
        order: 2;
    }

    .content-template-section .content-main {
        width: 100%;
        order: 1;
        padding: 0;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }

    .content-template-section .content-body p,
    .content-template-section .content-body ul,
    .content-template-section .content-body ol {
        margin-bottom: 12px;
    }

    .content-template-section .content-body ul,
    .content-template-section .content-body ol {
        margin-top: 12px;
    }

    .content-template-section .h2,
    .content-template-section h2 {
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .content-template-section .h3,
    .content-template-section h3 {
        margin-bottom: 6px;
    }

    .content-template-section .tags-section {
        margin-top: 20px;
        padding-top: 20px;
    }

    .content-template-section .author-box {
        padding: 15px;
    }

    .content-template-section .sidebar-widget:first-child {
        display: none;
    }
}


/* Blog Hero Specific CSS */

.blog-hero-section .blog-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.blog-hero-section .blog-share-icons {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-hero-section .share-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: var(--font-weight-regular);
    line-height: 1.5238;
    letter-spacing: 0;
    color: var(--color-slate-500);
}

.blog-hero-section .blog-share-icons ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.blog-hero-section .share-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-ink-200);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    padding: var(--space-xs);
    color: var(--color-teal-700);
}

.blog-hero-section .share-icon-btn img {
    max-width: 16px;
    max-height: 16px;
}

.blog-hero-section .share-icon-btn:hover {
    border-color: var(--color-teal-700);
}

.blog-hero-section .share-icon-btn svg {
    width: 100%;
    height: 100%;
}

.blog-hero-section .blog-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.blog-hero-section .blog-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blog-hero-section .blog-badge {
    background-color: var(--color-signal-50);
    color: var(--color-signal-700);
    padding: 5px 13px;
    border-radius: 666px;
    text-transform: uppercase;
    margin-bottom: var(--space-smm);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: var(--font-weight-regular);
    line-height: 1.5238;
    letter-spacing: 0;
    display: inline-block;
}

.blog-hero-section .blog-hero-content h1 {
    margin-bottom: 22px;
}

.blog-hero-section .blog-author-block {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
}

.blog-hero-section .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: var(--line-height-body-xl);
    color: var(--color-slate-500);
    /* padding: var(--space-xss); */
}

.blog-hero-section .author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blog-hero-section .author-info .author-name {
    font-size: 15px;
    line-height: var(--line-height-body-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-ink-900);
}

.blog-hero-section .author-info .author-role {
    color: var(--color-slate-500);
    font-size: var(--font-size-blurb);
    line-height: var(--line-height-body-xl);
}

.blog-hero-section .author-info .author-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-slate-500);
    font-size: var(--font-size-micro);
    line-height: 1.5454;
    font-family: var(--font-mono);
}

.blog-hero-section .author-info .meta-separator {
    width: 3px;
    height: 3px;
    background-color: var(--color-ink-200);
    border-radius: 50%;
}

.blog-hero-section .webinar-summary {
    margin-top: var(--space-smm);
}

.blog-hero-section .blog-hero-grid .blog-hero-content .webinar-summary p {
    font-size: var(--font-size-body-md);
    color: var(--color-slate-700);
    line-height: 1.6470;
}

.blog-hero-section .webinar-hero-action {
    margin-top: 22px;
}

.blog-hero-section .webinar-hero-action .button {
    min-height: 48px;
}

.blog-hero-section .blog-hero-image-wrapper {
    /* background-color: var(--color-ink-25); */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.blog-hero-section .blog-hero-image-wrapper img {
    border-radius: inherit;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



@media (max-width: 991px) {
    .blog-hero-section .blog-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width:767px) {
    .blog-hero-section .blog-hero-top {
        margin-bottom: var(--space-xxl);
        padding-bottom: var(--space-xxl);
    }

    .blog-hero-section .blog-badge,
    .blog-hero-section .blog-hero-content h1 {
        margin-bottom: var(--space-xxl);
    }

    .blog-hero-section .webinar-hero-action,
    .blog-hero-section .webinar-summary,
    .blog-hero-section .blog-author-block {
        margin-top: var(--space-xxl);
    }
}