/*
 * ILNM Builder Guide Template CSS
 * Clean responsive version for Listeo child theme.
 * Replace: /wp-content/themes/listeo-child/assets/css/ilnm-builder-guide.css
 */

.ilnm-builder-guide-template {
    --ilnm-brand-primary: #2B1B8F;
    --ilnm-brand-primary-hover: #22136F;
    --ilnm-brand-heading: #0f172a;
    --ilnm-brand-paragraph: #222222;
    --ilnm-brand-muted: #94a3b8;
    --ilnm-bg-surface: #ffffff;
    --ilnm-bg-body: #f8fafc;
    --ilnm-border: #D8D4FF;
    --ilnm-border-soft: #f1f5f9;
    --ilnm-font-heading: 'Roboto', Arial, sans-serif;
    --ilnm-font-body: 'Poppins', Arial, sans-serif;
    --ilnm-font-main: var(--ilnm-font-body);
    --ilnm-radius-xl: 2.5rem;
    --ilnm-radius-lg: 1.5rem;
    --ilnm-radius-md: 1rem;
    --ilnm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ilnm-sticky-offset: 110px;

    background: var(--ilnm-bg-body);
    color: var(--ilnm-brand-paragraph);
    font-family: var(--ilnm-font-body) !important;
    line-height: 1.6;
    overflow-x: clip;
    padding: 0 0 4rem;
}

.ilnm-builder-guide-template,
.ilnm-builder-guide-template * {
    box-sizing: border-box;
}

.ilnm-builder-guide-template svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

.ilnm-builder-guide-template a {
    color: inherit;
}

.ilnm-builder-guide-template .ilnm-blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumbs */
.ilnm-builder-guide-template .ilnm-breadcrumbs {
    margin: 0 0 1.25rem;
    color: var(--ilnm-brand-muted);
    font-size: 0.9rem;
}

.ilnm-builder-guide-template .ilnm-breadcrumbs a {
    color: var(--ilnm-brand-paragraph);
    text-decoration: none;
}

.ilnm-builder-guide-template .ilnm-breadcrumbs a:hover {
    color: var(--ilnm-brand-primary);
}

.ilnm-builder-guide-template .ilnm-breadcrumbs p {
    margin: 0;
}

/* Hero */
.ilnm-builder-guide-template .ilnm-post-hero {
    background: var(--ilnm-bg-surface);
    border: 1px solid var(--ilnm-border-soft);
    border-radius: var(--ilnm-radius-xl);
    box-shadow: 0 8px 28px rgb(15 23 42 / 0.05);
    margin: 0 0 2rem;
    padding: clamp(2rem, 4vw, 4rem);
    overflow: hidden;
}

.ilnm-builder-guide-template .ilnm-post-kicker {
    color: var(--ilnm-brand-primary);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-post-title {
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-heading) !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0;
    max-width: 1050px;
}

.ilnm-builder-guide-template .ilnm-post-meta {
    align-items: center;
    color: var(--ilnm-brand-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
    font-family: var(--ilnm-font-body) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.ilnm-builder-guide-template .ilnm-post-meta span,
.ilnm-builder-guide-template .ilnm-post-meta a {
    font-family: var(--ilnm-font-body) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.ilnm-builder-guide-template .ilnm-meta-author {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.ilnm-builder-guide-template .ilnm-author-avatar {
    border-radius: 999px;
    width: 32px;
    height: 32px;
}

.ilnm-builder-guide-template .ilnm-meta-dot {
    color: #cbd5e1;
}

.ilnm-builder-guide-template .ilnm-post-excerpt {
    color: var(--ilnm-brand-paragraph);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.75;
    margin: 1.5rem 0 0;
    max-width: 900px;
}

.ilnm-builder-guide-template .ilnm-featured-figure {
    margin: 2rem 0 0;
}

.ilnm-builder-guide-template .ilnm-featured-image {
    border-radius: var(--ilnm-radius-xl);
    display: block;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

/* Main grid */
.ilnm-builder-guide-template .ilnm-blog-layout {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
}

/* Sidebar: Table of Contents */
.ilnm-builder-guide-template .ilnm-sidebar-wrapper {
    height: fit-content;
    position: sticky;
    top: var(--ilnm-sticky-offset);
}

.ilnm-builder-guide-template .ilnm-sidebar-title {
    color: var(--ilnm-brand-primary);
    font-family: var(--ilnm-font-heading) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em;
    line-height: 1.35 !important;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-toc-nav-list {
    border-left: 2px solid var(--ilnm-border-soft);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--ilnm-sticky-offset) - 2rem);
    overflow-y: auto;
    padding: 0.2rem 0;
}

.ilnm-builder-guide-template .ilnm-toc-group {
    display: block;
}

.ilnm-builder-guide-template .ilnm-toc-item {
    border-left: 2px solid transparent;
    color: var(--ilnm-brand-paragraph);
    display: block;
    font-family: var(--ilnm-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin-left: -2px;
    padding: 0.9rem 1.25rem !important;
    text-decoration: none;
    transition: var(--ilnm-transition);
}

.ilnm-builder-guide-template .ilnm-toc-item:hover {
    background-color: #f1f5f9;
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--ilnm-brand-heading);
}

.ilnm-builder-guide-template .ilnm-toc-item.active {
    background-color: #eff6ff;
    border-left-color: var(--ilnm-brand-primary);
    border-radius: 0 0.75rem 0.75rem 0;
    color: var(--ilnm-brand-heading);
    font-weight: 900 !important;
}

.ilnm-builder-guide-template .ilnm-toc-trigger {
    align-items: center;
    cursor: pointer;
    display: flex !important;
    gap: 0.65rem;
    justify-content: space-between;
    width: 100%;
}

.ilnm-builder-guide-template .ilnm-toc-text {
    flex: 1;
    min-width: 0;
}

.ilnm-builder-guide-template .ilnm-toc-arrow {
    align-items: center;
    color: var(--ilnm-brand-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    opacity: 0.85;
    transform: rotate(0deg);
    transition: transform 0.22s ease;
}

.ilnm-builder-guide-template .ilnm-toc-group.is-open > .ilnm-toc-trigger .ilnm-toc-arrow {
    transform: rotate(90deg);
}

.ilnm-builder-guide-template .ilnm-toc-children {
    display: none;
    flex-direction: column;
}

.ilnm-builder-guide-template .ilnm-toc-group.is-open > .ilnm-toc-children {
    display: flex;
}

.ilnm-builder-guide-template .ilnm-toc-item.level-3 {
    font-size: 11px !important;
    padding-left: 2.25rem !important;
}

.ilnm-builder-guide-template .ilnm-toc-item.level-4,
.ilnm-builder-guide-template .ilnm-toc-item.level-5,
.ilnm-builder-guide-template .ilnm-toc-item.level-6 {
    font-size: 10.5px !important;
    padding-left: 3rem !important;
}

.ilnm-builder-guide-template .ilnm-mobile-toc {
    display: none;
}

.ilnm-builder-guide-template .ilnm-toc-empty {
    display: none !important;
}

/* Main content */
.ilnm-builder-guide-template .ilnm-main-content {
    background: var(--ilnm-bg-surface);
    border: 1px solid var(--ilnm-border-soft);
    border-radius: var(--ilnm-radius-xl);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.ilnm-builder-guide-template .ilnm-blog-body-content {
    color: var(--ilnm-brand-paragraph);
    font-family: var(--ilnm-font-body) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
}

.ilnm-builder-guide-template .ilnm-blog-body-content > *:first-child {
    margin-top: 0;
}

.ilnm-builder-guide-template .ilnm-blog-body-content h2,
.ilnm-builder-guide-template .ilnm-blog-body-content h3,
.ilnm-builder-guide-template .ilnm-blog-body-content h4,
.ilnm-builder-guide-template .ilnm-blog-body-content h5,
.ilnm-builder-guide-template .ilnm-blog-body-content h6,
.ilnm-builder-guide-template .ilnm-blog-body-content .elementor-heading-title {
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-heading) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
    scroll-margin-top: calc(var(--ilnm-sticky-offset) + 24px);
}

.ilnm-builder-guide-template .ilnm-blog-body-content h2 {
    margin: 0.8rem 0 0.9rem !important;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-blog-body-content h3 {
    margin: 0.9rem 0 0.75rem !important;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-blog-body-content h4 {
    color: var(--ilnm-brand-primary);
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-blog-body-content h5,
.ilnm-builder-guide-template .ilnm-blog-body-content h6 {
    margin: 1.5rem 0 0.5rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content p,
.ilnm-builder-guide-template .ilnm-blog-body-content li,
.ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-text-editor,
.ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-text-editor p {
    color: var(--ilnm-brand-paragraph);
    font-family: var(--ilnm-font-body) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
}

.ilnm-builder-guide-template .ilnm-blog-body-content p {
    margin: 0 0 0.5rem !important;
}

.ilnm-builder-guide-template .ilnm-blog-body-content .quick-summary,
.ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-quick-summary,
.ilnm-builder-guide-template .ilnm-blog-body-content > p:first-of-type {
    background: #f1f5f9;
    border-left: 4px solid var(--ilnm-brand-primary);
    border-radius: var(--ilnm-radius-md);
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-body) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    padding: 1.5rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content ul,
.ilnm-builder-guide-template .ilnm-blog-body-content ol {
    margin: 0 0 0.7rem 1.35rem;
    padding: 0;
}

.ilnm-builder-guide-template .ilnm-blog-body-content li {
    margin: 0 0 0.55rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content a {
    color: var(--ilnm-brand-primary);
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.ilnm-builder-guide-template .ilnm-blog-body-content a:hover {
    color: var(--ilnm-brand-primary-hover);
}

.ilnm-builder-guide-template .ilnm-blog-body-content blockquote {
    background: #eff6ff;
    border-left: 6px solid var(--ilnm-brand-primary);
    border-radius: 0 var(--ilnm-radius-xl) var(--ilnm-radius-xl) 0;
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-body) !important;
    font-size: 24px !important;
    font-style: italic;
    font-weight: 550;
    line-height: 1.65 !important;
    margin: 3rem 0;
    padding: 2rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content blockquote p {
    font-family: var(--ilnm-font-body) !important;
    font-size: 24px !important;
    line-height: 1.65 !important;
}

.ilnm-builder-guide-template .ilnm-blog-body-content blockquote p:last-child {
    margin-bottom: 0;
}

.ilnm-builder-guide-template .ilnm-blog-body-content img {
    border-radius: var(--ilnm-radius-xl);
    height: auto;
    margin: 2rem 0;
    max-width: 100%;
    transition: var(--ilnm-transition);
}

.ilnm-builder-guide-template .ilnm-blog-body-content figure {
    margin: 2rem 0;
}

.ilnm-builder-guide-template .ilnm-blog-body-content figcaption {
    color: var(--ilnm-brand-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Tables */
.ilnm-builder-guide-template .ilnm-blog-body-content table,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 2rem 0;
    width: 100%;
}

.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table {
    overflow-x: auto;
}

.ilnm-builder-guide-template .ilnm-blog-body-content th,
.ilnm-builder-guide-template .ilnm-blog-body-content td {
    border: 1px solid var(--ilnm-border);
    color: var(--ilnm-brand-paragraph);
    font-family: var(--ilnm-font-body) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
}

.ilnm-builder-guide-template .ilnm-blog-body-content th {
    background: #f8fafc;
    color: var(--ilnm-brand-heading);
    font-weight: 800 !important;
}

.ilnm-builder-guide-template .ilnm-blog-body-content tr:nth-child(even) td {
    background: #fbfdff;
}

/* Optional FAQ styling if FAQs are written inside post content using <details>. */
.ilnm-builder-guide-template .ilnm-blog-body-content details,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details {
    background: #ffffff;
    border: 1px solid var(--ilnm-border-soft);
    border-radius: 1.5rem;
    margin: 1rem 0;
    overflow: hidden;
    transition: var(--ilnm-transition);
}

.ilnm-builder-guide-template .ilnm-blog-body-content details[open],
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details[open] {
    border-color: var(--ilnm-brand-primary);
    box-shadow: 0 16px 24px -14px rgb(37 99 235 / 0.18);
}

.ilnm-builder-guide-template .ilnm-blog-body-content summary {
    color: var(--ilnm-brand-heading);
    cursor: pointer;
    font-family: var(--ilnm-font-body) !important;
    font-size: 20px !important;
    font-weight: 800;
    line-height: 1.65 !important;
    list-style: none;
    padding: 1.25rem 1.5rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content summary::-webkit-details-marker {
    display: none;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details > :not(summary),
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details > :not(summary) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details > :last-child,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details > :last-child {
    padding-bottom: 1.25rem;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details p {
    font-family: var(--ilnm-font-body) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* Tags */
.ilnm-builder-guide-template .ilnm-tags-section {
    border-top: 1px solid var(--ilnm-border);
    margin-top: 4rem;
    padding-top: 2rem;
}

.ilnm-builder-guide-template .ilnm-tags-title {
    font-family: var(--ilnm-font-heading) !important;
}

.ilnm-builder-guide-template .ilnm-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ilnm-builder-guide-template .ilnm-tag-pill {
    align-items: center;
    background: #f8fafc;
    border-radius: 0.75rem;
    color: var(--ilnm-brand-paragraph);
    display: inline-flex;
    font-family: var(--ilnm-font-body) !important;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: var(--ilnm-transition);
}

.ilnm-builder-guide-template .ilnm-tag-pill svg {
    color: var(--ilnm-brand-primary);
    width: 14px;
}

.ilnm-builder-guide-template .ilnm-tag-pill:hover {
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb33;
    color: var(--ilnm-brand-primary);
}

.ilnm-builder-guide-template .ilnm-page-links,
.ilnm-builder-guide-template .ilnm-comments-area {
    margin-top: 2rem;
}

/* Right CTA */
.ilnm-builder-guide-template .ilnm-promo-wrapper {
    position: sticky;
    top: var(--ilnm-sticky-offset);
}

.ilnm-builder-guide-template .ilnm-company-promo-card {
    background: var(--ilnm-bg-surface);
    border: 1px solid var(--ilnm-border-soft);
    border-radius: var(--ilnm-radius-xl);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.ilnm-builder-guide-template .ilnm-promo-bg-accent {
    background: var(--ilnm-brand-primary);
    border-radius: 50%;
    filter: blur(40px);
    height: 120px;
    opacity: 0.05;
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 120px;
}

.ilnm-builder-guide-template .ilnm-promo-header {
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
    z-index: 1;
}

.ilnm-builder-guide-template .ilnm-promo-logo {
    align-items: center;
    background: #f8fafc;
    border-radius: 1.25rem;
    color: var(--ilnm-brand-primary);
    display: flex;
    height: 60px;
    justify-content: center;
    margin: 0 auto 1rem;
    width: 60px;
}

.ilnm-builder-guide-template .ilnm-promo-logo svg {
    width: 46px;
    height: 46px;
}

.ilnm-builder-guide-template .ilnm-promo-company-name {
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-heading) !important;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-promo-line {
    background: #2563eb33;
    height: 2px;
    margin: 0.75rem auto 0;
    width: 40px;
}

.ilnm-builder-guide-template .ilnm-promo-body {
    position: relative;
    z-index: 1;
}

.ilnm-builder-guide-template .ilnm-promo-badge {
    color: var(--ilnm-brand-primary);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
}

.ilnm-builder-guide-template .ilnm-promo-title {
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-heading) !important;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    text-align: center;
}

.ilnm-builder-guide-template .ilnm-promo-desc {
    color: var(--ilnm-brand-paragraph);
    font-family: var(--ilnm-font-body) !important;
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 0 0 2rem;
    text-align: center;
}

.ilnm-builder-guide-template .ilnm-promo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ilnm-builder-guide-template .ilnm-btn {
    align-items: center;
    border: none;
    border-radius: 1.25rem;
    cursor: pointer;
    display: flex;
    font-family: var(--ilnm-font-body) !important;
    font-size: 1.1rem;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    line-height: 1.2;
    padding: 1.15rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--ilnm-transition);
    width: 100%;
}

.ilnm-builder-guide-template .ilnm-btn svg {
    width: 16px;
    height: 16px;
}

.ilnm-builder-guide-template .ilnm-btn-primary {
    background: var(--ilnm-brand-primary);
    box-shadow: 0 4px 14px 0 rgb(37 99 235 / 0.3);
    color: #ffffff;
}

.ilnm-builder-guide-template .ilnm-btn-primary:hover {
    background: var(--ilnm-brand-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.ilnm-builder-guide-template .ilnm-btn-secondary {
    background: #f8fafc;
    color: var(--ilnm-brand-heading);
}

.ilnm-builder-guide-template .ilnm-btn-secondary:hover {
    background: #f1f5f9;
    color: var(--ilnm-brand-heading);
}

.ilnm-builder-guide-template .ilnm-promo-trust-section {
    border-top: 1px solid var(--ilnm-border-soft);
    margin-top: 2.5rem;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.ilnm-builder-guide-template .ilnm-trust-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.ilnm-builder-guide-template .ilnm-trust-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--ilnm-transition);
}

.ilnm-builder-guide-template .ilnm-trust-item:hover {
    transform: translateY(-4px);
}

.ilnm-builder-guide-template .ilnm-trust-icon {
    align-items: center;
    border-radius: 1rem;
    display: flex;
    height: 44px;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 44px;
}

.ilnm-builder-guide-template .ilnm-trust-icon svg {
    width: 20px;
    height: 20px;
}

.ilnm-builder-guide-template .ilnm-trust-amber .ilnm-trust-icon {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #d97706;
}

.ilnm-builder-guide-template .ilnm-trust-blue .ilnm-trust-icon {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #2563eb;
}

.ilnm-builder-guide-template .ilnm-trust-emerald .ilnm-trust-icon {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #059669;
}

.ilnm-builder-guide-template .ilnm-trust-val {
    color: var(--ilnm-brand-heading);
    font-family: var(--ilnm-font-body) !important;
    font-size: 1.05rem;
    font-weight: 900;
}

.ilnm-builder-guide-template .ilnm-trust-label {
    color: var(--ilnm-brand-muted);
    font-family: var(--ilnm-font-body) !important;
    font-size: 0.85rem;
    font-weight: 900;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

/* Elementor editor mode: show only the actual content area while editing. */
body.elementor-editor-active .ilnm-builder-guide-template .ilnm-sidebar-wrapper,
body.elementor-editor-active .ilnm-builder-guide-template .ilnm-promo-wrapper,
body.elementor-editor-active .ilnm-builder-guide-template .ilnm-post-hero,
body.elementor-editor-active .ilnm-builder-guide-template .ilnm-tags-section,
body.elementor-editor-active .ilnm-builder-guide-template .ilnm-comments-area,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-sidebar-wrapper,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-promo-wrapper,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-post-hero,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-tags-section,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-comments-area,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-sidebar-wrapper,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-promo-wrapper,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-post-hero,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-tags-section,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-comments-area {
    display: none !important;
}

body.elementor-editor-active .ilnm-builder-guide-template .ilnm-blog-layout,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-blog-layout,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-blog-layout {
    display: block !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

body.elementor-editor-active .ilnm-builder-guide-template .ilnm-blog-container,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-blog-container,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-blog-container {
    max-width: 950px !important;
    padding: 1rem !important;
}

body.elementor-editor-active .ilnm-builder-guide-template .ilnm-main-content,
body.elementor-editor-preview .ilnm-builder-guide-template .ilnm-main-content,
.ilnm-builder-guide-template.ilnm-elementor-edit-mode .ilnm-main-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive layout */
@media (max-width: 1200px) {
    .ilnm-builder-guide-template .ilnm-blog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .ilnm-builder-guide-template .ilnm-promo-wrapper {
        display: none;
    }
}

@media (min-width: 901px) {
    .ilnm-builder-guide-template .ilnm-mobile-toc {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .ilnm-builder-guide-template {
        --ilnm-sticky-offset: 86px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        padding-bottom: 2rem;
    }

    .ilnm-builder-guide-template .ilnm-blog-container {
        width: 100%;
        max-width: 100%;
        padding: 0.85rem;
        margin: 0 auto;
        overflow-x: hidden;
    }

    .ilnm-builder-guide-template .ilnm-blog-layout {
        display: block !important;
        width: 100%;
        max-width: 100%;
    }

    .ilnm-builder-guide-template .ilnm-promo-wrapper {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-post-hero {
        border-radius: 20px !important;
        margin: 0 0 1rem !important;
        padding: 1.1rem !important;
        width: 100%;
        max-width: 100%;
    }

    .ilnm-builder-guide-template .ilnm-post-title {
        font-size: clamp(1.55rem, 8vw, 2.15rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.035em !important;
        max-width: 100% !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .ilnm-builder-guide-template .ilnm-post-meta {
        gap: 0.45rem !important;
        margin-top: 1rem !important;
    }

    .ilnm-builder-guide-template .ilnm-featured-figure {
        margin: 1.1rem 0 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-featured-image {
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: cover;
    }

    .ilnm-builder-guide-template .ilnm-main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        border-radius: 20px !important;
        padding: 1rem !important;
        overflow: hidden;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content h2,
    .ilnm-builder-guide-template .ilnm-blog-body-content h3,
    .ilnm-builder-guide-template .ilnm-blog-body-content h4,
    .ilnm-builder-guide-template .ilnm-blog-body-content h5,
    .ilnm-builder-guide-template .ilnm-blog-body-content h6,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-heading-title {
        max-width: 100%;
        overflow-wrap: anywhere;
        scroll-margin-top: 110px !important;
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content,
    .ilnm-builder-guide-template .ilnm-blog-body-content p,
    .ilnm-builder-guide-template .ilnm-blog-body-content li,
    .ilnm-builder-guide-template .ilnm-blog-body-content table,
    .ilnm-builder-guide-template .ilnm-blog-body-content th,
    .ilnm-builder-guide-template .ilnm-blog-body-content td,
    .ilnm-builder-guide-template .ilnm-blog-body-content .quick-summary,
    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-quick-summary,
    .ilnm-builder-guide-template .ilnm-blog-body-content > p:first-of-type,
    .ilnm-builder-guide-template .ilnm-blog-body-content blockquote,
    .ilnm-builder-guide-template .ilnm-blog-body-content blockquote p,
    .ilnm-builder-guide-template .ilnm-blog-body-content details,
    .ilnm-builder-guide-template .ilnm-blog-body-content summary,
    .ilnm-builder-guide-template .ilnm-blog-body-content details p {
        font-size: 18px !important;
        line-height: 1.7 !important;
    }

    .ilnm-builder-guide-template .ilnm-post-meta,
    .ilnm-builder-guide-template .ilnm-post-meta span,
    .ilnm-builder-guide-template .ilnm-post-meta a {
        font-size: 15px !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content p,
    .ilnm-builder-guide-template .ilnm-blog-body-content li {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 16px !important;
        margin: 1rem 0 !important;
        object-fit: contain;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content iframe,
    .ilnm-builder-guide-template .ilnm-blog-body-content video,
    .ilnm-builder-guide-template .ilnm-blog-body-content embed {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        border: 0;
        border-radius: 16px;
        display: block;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-embed,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-video,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-video {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 1.25rem 0 !important;
        border: 1px solid var(--ilnm-border);
        border-radius: 14px;
        background: #ffffff;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll table,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table table {
        min-width: 640px;
        margin: 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll::-webkit-scrollbar,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table::-webkit-scrollbar {
        height: 6px;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll::-webkit-scrollbar-track,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 999px;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll::-webkit-scrollbar-thumb,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

    /* Mobile TOC: visible list of H2 items with expandable H3 children. */
    .ilnm-builder-guide-template .ilnm-sidebar-wrapper {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem !important;
    }

    .ilnm-builder-guide-template .ilnm-desktop-toc {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc {
        display: block !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-card {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px rgb(15 23 42 / 0.08) !important;
        padding: 1rem !important;
        overflow: hidden;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-header {
        align-items: center;
        display: flex !important;
        gap: 0.75rem !important;
        justify-content: flex-start;
        margin: 0 0 0.9rem !important;
        padding: 0 !important;
        user-select: none;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-icon {
        align-items: center;
        background: #eff6ff !important;
        border: 1px solid #dbeafe;
        border-radius: 14px !important;
        color: var(--ilnm-brand-primary) !important;
        display: flex;
        flex: 0 0 42px;
        height: 42px !important;
        justify-content: center;
        width: 42px !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-icon svg {
        height: 20px !important;
        width: 20px !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-title {
        color: #0f172a !important;
        font-family: var(--ilnm-font-heading) !important;
        font-size: 22px !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-transform: uppercase;
    }

    .ilnm-builder-guide-template .ilnm-mobile-subtitle {
        color: #64748b !important;
        font-family: var(--ilnm-font-body) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em !important;
        line-height: 1.35 !important;
        margin: 0.18rem 0 0 !important;
        text-transform: none !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.55rem !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-group {
        display: block;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item {
        align-items: center;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        color: #334155 !important;
        display: flex !important;
        font-family: var(--ilnm-font-body) !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        gap: 0.7rem !important;
        line-height: 1.45 !important;
        padding: 0.8rem 0.85rem !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item:hover {
        background: #eff6ff !important;
        border-color: #bfdbfe !important;
        color: #1d4ed8 !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item.active {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
        box-shadow: none !important;
    }

    .ilnm-builder-guide-template .ilnm-nav-number {
        align-items: center;
        background: #dbeafe;
        border-radius: 999px;
        color: #2563eb !important;
        display: inline-flex;
        flex: 0 0 28px;
        font-size: 14px !important;
        font-weight: 900 !important;
        height: 28px;
        justify-content: center;
        opacity: 1 !important;
        width: 28px;
    }

    .ilnm-builder-guide-template .ilnm-nav-text {
        color: inherit !important;
        flex: 1;
        font-family: var(--ilnm-font-body) !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.45 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ilnm-builder-guide-template .ilnm-mobile-arrow {
        align-items: center;
        color: #2563eb;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 13px;
        font-weight: 900;
        justify-content: center;
        transform: rotate(0deg);
        transition: transform 0.22s ease;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-group.is-open > .ilnm-mobile-nav-item .ilnm-mobile-arrow {
        transform: rotate(90deg);
    }

    .ilnm-builder-guide-template .ilnm-mobile-children {
        display: none;
        flex-direction: column;
        gap: 0.45rem;
        padding: 0.45rem 0 0.1rem 1.1rem;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-group.is-open > .ilnm-mobile-children {
        display: flex;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-3 {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        color: #475569 !important;
        font-size: 14px !important;
        padding: 0.7rem 0.8rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-3 .ilnm-nav-text {
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .ilnm-builder-guide-template .ilnm-active-dot {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ilnm-builder-guide-template .ilnm-blog-container {
        padding: 0.65rem;
    }

    .ilnm-builder-guide-template .ilnm-post-hero {
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    .ilnm-builder-guide-template .ilnm-main-content {
        padding: 0.9rem !important;
        border-radius: 18px !important;
    }

    .ilnm-builder-guide-template .ilnm-post-title {
        font-size: clamp(1.45rem, 8.5vw, 2rem) !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-card {
        padding: 0.85rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-title {
        font-size: 19px !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-subtitle {
        font-size: 12px !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item {
        padding: 0.72rem 0.75rem !important;
    }

    .ilnm-builder-guide-template .ilnm-nav-text {
        font-size: 15px !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-3 .ilnm-nav-text {
        font-size: 13px !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll table,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table table {
        min-width: 600px;
    }
}

@keyframes ilnmPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* =========================================================
   ILNM MOBILE FIX
   - Fix image/text overlap on mobile
   - Make mobile TOC simple like normal article TOC
   - Keep desktop TOC unchanged
   ========================================================= */

@media (max-width: 900px) {

    /* Full mobile layout safety */
    .ilnm-builder-guide-template {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-bottom: 2rem !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.85rem !important;
        overflow-x: hidden !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ilnm-builder-guide-template .ilnm-main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1rem !important;
        overflow: visible !important;
        border-radius: 18px !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    /* Force Elementor content inside post to behave normally on mobile */
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-section,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-container,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-row,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-column,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-wrap,
    .ilnm-builder-guide-template .ilnm-blog-body-content .e-con,
    .ilnm-builder-guide-template .ilnm-blog-body-content .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        clear: both !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    /* Fix text going over images */
    .ilnm-builder-guide-template .ilnm-blog-body-content img,
    .ilnm-builder-guide-template .ilnm-blog-body-content figure img,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-caption img,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-image img {
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        clear: both !important;
        float: none !important;
        margin: 1rem auto !important;
        border-radius: 14px !important;
        transform: none !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content img:hover {
        transform: none !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content figure,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-caption,
    .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        clear: both !important;
        float: none !important;
        margin: 1rem 0 !important;
        overflow: visible !important;
        position: relative !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content p,
    .ilnm-builder-guide-template .ilnm-blog-body-content li,
    .ilnm-builder-guide-template .ilnm-blog-body-content h2,
    .ilnm-builder-guide-template .ilnm-blog-body-content h3,
    .ilnm-builder-guide-template .ilnm-blog-body-content h4 {
        position: relative !important;
        z-index: 2 !important;
        max-width: 100% !important;
        clear: both !important;
    }

    /* YouTube / iframe mobile safety */
    .ilnm-builder-guide-template .ilnm-blog-body-content iframe,
    .ilnm-builder-guide-template .ilnm-blog-body-content video,
    .ilnm-builder-guide-template .ilnm-blog-body-content embed {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        border-radius: 14px !important;
        margin: 1rem 0 !important;
        clear: both !important;
    }

    /* Mobile tables should scroll, not break layout */
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-table,
    .ilnm-builder-guide-template .ilnm-blog-body-content .ilnm-table-scroll {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid var(--ilnm-border) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        margin: 1.2rem 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content table {
        min-width: 620px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Hide desktop TOC only on mobile */
    .ilnm-builder-guide-template .ilnm-desktop-toc {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-sidebar-wrapper {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.25rem !important;
        padding: 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.25rem !important;
        padding: 0 !important;
    }

    /* Simple mobile TOC like normal article TOC */
    .ilnm-builder-guide-template .ilnm-mobile-toc-card {
        background: #D8D4FF !important;
        border: 2px solid #2B1B8F !important;
        border-radius: 18px !important;
        box-shadow: none !important;
        color: #111827 !important;
        padding: 0 1rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-header {
        display: block !important;
        margin: 0 0 0.8rem !important;
        padding: 0 !important;
        cursor: default !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-header::after {
        display: none !important;
        content: none !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-icon,
    .ilnm-builder-guide-template .ilnm-mobile-subtitle {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-title {
        display: inline-block !important;
        background: #2B1B8F !important;
        color: #ffffff !important;
        font-family: var(--ilnm-font-heading, Roboto, Arial, sans-serif) !important;
        font-size: 22px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        margin: 0 0 0.7rem !important;
        padding: 0.75rem 1.2rem !important;
        border-radius: 0 0 14px 14px !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-title span {
        color: #ffffff !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.2rem 0 0 !important;
    }

    /* Mobile TOC items as simple bullet list */
    .ilnm-builder-guide-template .ilnm-mobile-nav-item {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-family: var(--ilnm-font-body, Poppins, Arial, sans-serif) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.55 !important;
        margin: 0 !important;
        padding: 0.28rem 0 0.28rem 1.35rem !important;
        text-decoration: none !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item::before {
        content: "";
        position: absolute;
        left: 0.2rem;
        top: 0.95em;
        width: 6px;
        height: 6px;
        background: #111827;
        border-radius: 999px;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item:hover,
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.active {
        background: transparent !important;
        border: 0 !important;
        color: #2563eb !important;
        box-shadow: none !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item.active::before {
        background: #2563eb !important;
    }

    .ilnm-builder-guide-template .ilnm-nav-number,
    .ilnm-builder-guide-template .ilnm-active-dot {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-nav-text {
        display: inline !important;
        color: inherit !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        line-height: inherit !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    /* Hide H3/H4 mobile TOC items. Mobile should show only H2. */
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-3,
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-4,
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-5,
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.level-6,
    .ilnm-builder-guide-template .ilnm-mobile-nav-item.indented {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ilnm-builder-guide-template .ilnm-blog-container {
        padding: 0.6rem !important;
    }

    .ilnm-builder-guide-template .ilnm-main-content {
        padding: 0.85rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-toc-card {
        border-radius: 16px !important;
        padding: 0 0.8rem 0.9rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-title {
        font-size: 20px !important;
        padding: 0.65rem 1rem !important;
    }

    .ilnm-builder-guide-template .ilnm-mobile-nav-item {
        font-size: 14px !important;
        line-height: 1.55 !important;
        padding-left: 1.2rem !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content table {
        min-width: 560px !important;
    }
}
/* =========================================================
   ILNM TOC + FAQ ACCORDION REFINEMENT
   - Desktop/laptop TOC becomes H2 accordion
   - Only one TOC dropdown open at a time
   - FAQ gets arrow icon
   - Mobile TOC design remains unchanged
   ========================================================= */


/* ---------------------------
   Desktop / Laptop TOC Accordion
   --------------------------- */

@media (min-width: 901px) {
    .ilnm-builder-guide-template .ilnm-toc-item {
        position: relative;
    }

    .ilnm-builder-guide-template .ilnm-toc-item.level-2.ilnm-toc-parent {
        align-items: center;
        display: flex !important;
        gap: 0.55rem;
        justify-content: space-between;
    }

    .ilnm-builder-guide-template .ilnm-toc-label {
        flex: 1;
        min-width: 0;
    }

    .ilnm-builder-guide-template .ilnm-toc-arrow {
        align-items: center;
        border-radius: 999px;
        color: var(--ilnm-brand-primary);
        display: inline-flex;
        flex: 0 0 18px;
        font-size: 13px;
        font-weight: 900;
        height: 18px;
        justify-content: center;
        line-height: 1;
        margin-left: 0.25rem;
        transition: transform 0.22s ease;
        width: 18px;
    }

    .ilnm-builder-guide-template .ilnm-toc-parent:not(.has-children) .ilnm-toc-arrow {
        display: none;
    }

    .ilnm-builder-guide-template .ilnm-toc-parent.is-open .ilnm-toc-arrow {
        transform: rotate(180deg);
    }

    .ilnm-builder-guide-template .ilnm-toc-child.is-hidden {
        display: none !important;
    }

    .ilnm-builder-guide-template .ilnm-toc-child.level-3 {
        padding-left: 2.25rem !important;
    }

    .ilnm-builder-guide-template .ilnm-toc-child.level-4 {
        padding-left: 3rem !important;
    }
}


/* ---------------------------
   FAQ Arrow for <details> FAQs
   --------------------------- */

.ilnm-builder-guide-template .ilnm-blog-body-content details summary,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details summary {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-right: 3.5rem !important;
    position: relative;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details summary::-webkit-details-marker,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details summary::after,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details summary::after {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--ilnm-border);
    border-radius: 999px;
    color: var(--ilnm-brand-primary);
    content: "⌄";
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.22s ease;
    width: 32px;
}

.ilnm-builder-guide-template .ilnm-blog-body-content details[open] summary::after,
.ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details[open] summary::after {
    background: var(--ilnm-brand-primary);
    border-color: var(--ilnm-brand-primary);
    color: #ffffff;
    transform: translateY(-50%) rotate(180deg);
}


/* ---------------------------
   FAQ Arrow fallback for old .faq-question structure
   Use only if any old FAQ accordion exists.
   --------------------------- */

.ilnm-builder-guide-template .faq-question {
    padding-right: 3.5rem !important;
    position: relative;
}

.ilnm-builder-guide-template .faq-question::after {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--ilnm-border);
    border-radius: 999px;
    color: var(--ilnm-brand-primary);
    content: "⌄";
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: all 0.22s ease;
    width: 32px;
}

.ilnm-builder-guide-template .faq-item.active .faq-question::after {
    background: var(--ilnm-brand-primary);
    border-color: var(--ilnm-brand-primary);
    color: #ffffff;
    transform: translateY(-50%) rotate(180deg);
}

.ilnm-builder-guide-template .faq-toggle-icon {
    display: none !important;
}


/* Mobile FAQ arrow sizing */
@media (max-width: 640px) {
    .ilnm-builder-guide-template .ilnm-blog-body-content details summary,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details summary {
        padding-right: 3rem !important;
    }

    .ilnm-builder-guide-template .ilnm-blog-body-content details summary::after,
    .ilnm-builder-guide-template .ilnm-blog-body-content .wp-block-details summary::after,
    .ilnm-builder-guide-template .faq-question::after {
        height: 28px;
        right: 0.9rem;
        width: 28px;
        font-size: 16px;
    }
}
/* =========================================================
   ILNM FINAL HEADING SIZE OVERRIDE
   Add this at the absolute bottom of ilnm-builder-guide.css
   ========================================================= */

/* Desktop heading hierarchy */
body .ilnm-builder-guide-template .ilnm-blog-body-content h2,
body .ilnm-builder-guide-template .ilnm-blog-body-content h2.elementor-heading-title,
body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h2.elementor-heading-title {
    font-size: 30px !important;
    line-height: 1.22 !important;
}

body .ilnm-builder-guide-template .ilnm-blog-body-content h3,
body .ilnm-builder-guide-template .ilnm-blog-body-content h3.elementor-heading-title,
body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h3.elementor-heading-title {
    font-size: 24px !important;
    line-height: 1.26 !important;
}

body .ilnm-builder-guide-template .ilnm-blog-body-content h4,
body .ilnm-builder-guide-template .ilnm-blog-body-content h4.elementor-heading-title,
body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h4.elementor-heading-title {
    font-size: 21px !important;
    line-height: 1.3 !important;
}

body .ilnm-builder-guide-template .ilnm-blog-body-content h5,
body .ilnm-builder-guide-template .ilnm-blog-body-content h5.elementor-heading-title,
body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h5.elementor-heading-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
}

body .ilnm-builder-guide-template .ilnm-blog-body-content h6,
body .ilnm-builder-guide-template .ilnm-blog-body-content h6.elementor-heading-title,
body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h6.elementor-heading-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

/* Mobile heading hierarchy */
@media (max-width: 900px) {
    body .ilnm-builder-guide-template .ilnm-blog-body-content h2,
    body .ilnm-builder-guide-template .ilnm-blog-body-content h2.elementor-heading-title,
    body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h2.elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    body .ilnm-builder-guide-template .ilnm-blog-body-content h3,
    body .ilnm-builder-guide-template .ilnm-blog-body-content h3.elementor-heading-title,
    body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h3.elementor-heading-title {
        font-size: 23px !important;
        line-height: 1.3 !important;
    }

    body .ilnm-builder-guide-template .ilnm-blog-body-content h4,
    body .ilnm-builder-guide-template .ilnm-blog-body-content h4.elementor-heading-title,
    body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h4.elementor-heading-title {
        font-size: 20px !important;
        line-height: 1.34 !important;
    }

    body .ilnm-builder-guide-template .ilnm-blog-body-content h5,
    body .ilnm-builder-guide-template .ilnm-blog-body-content h5.elementor-heading-title,
    body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h5.elementor-heading-title {
        font-size: 18px !important;
        line-height: 1.38 !important;
    }

    body .ilnm-builder-guide-template .ilnm-blog-body-content h6,
    body .ilnm-builder-guide-template .ilnm-blog-body-content h6.elementor-heading-title,
    body .ilnm-builder-guide-template .ilnm-blog-body-content .elementor-widget-heading h6.elementor-heading-title {
        font-size: 17px !important;
        line-height: 1.42 !important;
    }
}
/* =========================================================
   ILNM FEATURED IMAGE FIX
   Shows 1200 x 630 thumbnails without desktop crop
   ========================================================= */

body .ilnm-builder-guide-template .ilnm-featured-figure {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 2rem auto 0 !important;
}

body .ilnm-builder-guide-template .ilnm-featured-image {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: var(--ilnm-radius-xl) !important;
}

/* Mobile remains responsive */
@media (max-width: 900px) {
    body .ilnm-builder-guide-template .ilnm-featured-figure {
        max-width: 100% !important;
        margin: 1.1rem auto 0 !important;
    }

    body .ilnm-builder-guide-template .ilnm-featured-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        border-radius: 18px !important;
    }
}