/**
 * TopLine Blog Styles
 * Single Post Template & Blog Archive Enhancements
 * Design language matches the TopLine preview site
 */

/* ━━━ WORDPRESS DEFAULT BLOG PAGE STYLING ━━━ */

/* Blog page body */
body.blog,
body.archive,
body.category,
body.tag {
    background: #FAFAFA;
}

/* Blog page header/hero area */
body.blog .page-header,
body.archive .page-header,
body.category .archive-header,
body.tag .archive-header {
    background: linear-gradient(135deg, #0C2333 0%, #1a3d52 100%);
    padding: 120px 35px 80px;
    text-align: center;
    margin-bottom: 0;
}

body.blog .page-title,
body.archive .page-title,
body.category .archive-title,
body.tag .archive-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.blog .archive-description,
body.archive .archive-description,
body.category .archive-description,
body.tag .archive-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* WordPress default blog post list styling */
body.blog .site-main,
body.archive .site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 35px 80px;
}

body.blog article.post,
body.archive article.post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 35, 51, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #E5E5E5;
    margin-bottom: 32px;
}

body.blog article.post:hover,
body.archive article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 35, 51, 0.12);
}

body.blog .entry-title,
body.archive .entry-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

body.blog .entry-title a,
body.archive .entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.blog .entry-title a:hover,
body.archive .entry-title a:hover {
    color: #D52330;
}

body.blog .entry-meta,
body.archive .entry-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #737373;
    margin-bottom: 16px;
}

body.blog .entry-content,
body.archive .entry-content,
body.blog .entry-summary,
body.archive .entry-summary {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: #525252;
    line-height: 1.7;
}

/* Post thumbnail styling */
body.blog .post-thumbnail,
body.archive .post-thumbnail {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

body.blog .post-thumbnail img,
body.archive .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

body.blog article.post:hover .post-thumbnail img,
body.archive article.post:hover .post-thumbnail img {
    transform: scale(1.03);
}

/* Read more link */
body.blog .read-more,
body.archive .read-more,
body.blog .more-link,
body.archive .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #D52330;
    text-decoration: none;
    margin-top: 16px;
    transition: gap 0.2s ease;
}

body.blog .read-more:hover,
body.archive .read-more:hover,
body.blog .more-link:hover,
body.archive .more-link:hover {
    gap: 10px;
}

/* ━━━ BLOG ARCHIVE PAGE IMPROVEMENTS ━━━ */

/* Blog Archive Hero */
.topline-blog-archive-hero {
    background: linear-gradient(135deg, var(--navy, #0C2333) 0%, #1a3d52 100%);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.topline-blog-archive-hero--compact {
    padding: 205px 0 78px;
    text-align: center;
    min-height: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .topline-blog-archive-hero--compact {
        padding: calc(var(--topline-fixed-header-offset, 96px) + 32px) 0 52px;
    }

    .topline-blog-archive-hero--compact .hero-content {
        padding: 12px 20px 16px;
    }

    .topline-blog-archive-hero--compact h1 {
        font-size: clamp(24px, 7vw, 32px);
        margin: 0;
        line-height: 1.2;
    }

    html body.topline-blog-listing .elementor-widget-topline_blog_archive > .elementor-widget-container,
    html body.blog .elementor-widget-topline_blog_archive > .elementor-widget-container,
    html body.page-slug-blog .elementor-widget-topline_blog_archive > .elementor-widget-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body.topline-blog-listing [data-elementor-type="wp-page"] > .e-con:first-child,
    html body.page-slug-blog [data-elementor-type="wp-page"] > .e-con:first-child,
    html body.topline-blog-listing .e-con[data-id="blog-hero-1"],
    html body.page-slug-blog .e-con[data-id="blog-hero-1"] {
        padding-top: max(148px, calc(var(--topline-fixed-header-offset, 96px) + 36px)) !important;
        padding-bottom: 24px !important;
        --padding-top: max(148px, calc(var(--topline-fixed-header-offset, 96px) + 36px)) !important;
    }
}

/* Archive template — clearance lives on the widget hero, not the outer e-con */
html body.topline-blog-listing .elementor-location-archive > .e-con:first-child,
html body.blog .elementor-location-archive > .e-con:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    --padding-top: 0 !important;
    --e-con-padding-top: 0 !important;
}

html body.topline-blog-listing .elementor-location-archive .elementor-widget-topline_blog_archive > .elementor-widget-container,
html body.blog .elementor-location-archive .elementor-widget-topline_blog_archive > .elementor-widget-container {
    padding: 0 !important;
}

.topline-blog-archive-hero--compact::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 24px;
    background: var(--cream, #FDFCFB);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.topline-blog-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.topline-blog-archive-hero--compact::before {
    opacity: 0.35;
}

.topline-blog-archive-hero .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 35px;
    position: relative;
    z-index: 1;
}

.topline-blog-archive-hero h1 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.topline-blog-archive-hero--compact h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0 0 8px;
    font-weight: 500;
    text-align: center;
}

.topline-blog-archive-hero .hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.topline-blog-archive-hero--compact .hero-subtitle {
    margin: 12px 0 0;
    max-width: 520px;
    font-size: 15px;
}

/* Blog filters toolbar (topics + month archive) */
.topline-blog-filters,
.topline-blog-categories {
    background: var(--cream, #FDFCFB);
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--gray-200, #E5E5E5);
    position: sticky;
    top: var(--topline-blog-filter-sticky-top, var(--topline-fixed-header-offset, 120px));
    z-index: 1006;
    overflow: visible;
    margin-top: 0;
}

.topline-blog-filters__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 35px;
    display: flex;
    align-items: center;
    gap: 16px 20px;
    flex-wrap: nowrap;
}

.topline-blog-filters__inner--dropdowns {
    justify-content: flex-start;
    width: 100%;
}

.topline-blog-filters--dropdowns .topline-blog-filters__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
}

.topline-blog-filters--dropdowns .topline-blog-filters__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.topline-blog-filters--dropdowns .topline-blog-filters__control,
.topline-blog-filters--dropdowns .topline-blog-filters__control--archive {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 50%;
    min-width: 0;
    padding: 0 !important;
    border: none !important;
    border-left: none !important;
    margin: 0 !important;
    justify-content: flex-start;
}

.topline-blog-filters .topline-blog-filters__clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    align-self: center;
    justify-self: end;
    margin-left: 0;
    padding: 10px 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--red, #D52330) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.topline-blog-filters .topline-blog-filters__clear-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.topline-blog-filters .topline-blog-filters__clear-icon svg {
    display: block;
    width: 10px;
    height: 10px;
}

.topline-blog-filters .topline-blog-filters__clear-label {
    line-height: 1.25;
}

.topline-blog-filters .topline-blog-filters__clear.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.topline-blog-filters .topline-blog-filters__clear:hover,
.topline-blog-filters .topline-blog-filters__clear:focus {
    color: #b81e28 !important;
    text-decoration: none;
    outline: none;
}

.topline-blog-filters .topline-blog-filters__clear:hover .topline-blog-filters__clear-label,
.topline-blog-filters .topline-blog-filters__clear:focus .topline-blog-filters__clear-label {
    text-decoration: underline;
}

.topline-blog-filters__topics {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

.topline-blog-filters__archive {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topline-blog-filters .filter-label,
.topline-blog-categories .filter-label,
.topline-blog-filters .archive-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy, #0C2333);
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 0;
}

.topline-blog-filters .archive-label {
    margin-right: 0;
}

.topline-blog-filters .blog-archive-select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 168px;
    max-width: 220px;
    padding: 9px 40px 9px 16px;
    border-radius: 9999px;
    border: 1px solid var(--gray-200, #E5E5E5);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C2333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy, #0C2333);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topline-blog-filters .blog-archive-select:hover,
.topline-blog-filters .blog-archive-select:focus {
    border-color: rgba(213, 35, 48, 0.35);
    box-shadow: 0 2px 8px rgba(13, 35, 51, 0.08);
    outline: none;
}

/* Branded filter dropdowns (category + archive) */
.topline-blog-filters--dropdowns .topline-blog-filter-picker,
.topline-blog-filters--dropdowns .topline-blog-archive-picker {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
}

.topline-blog-filters--dropdowns .topline-blog-filter-picker__trigger,
.topline-blog-filters--dropdowns .topline-blog-archive-picker__trigger {
    width: 100%;
    max-width: none;
}

.topline-blog-filter-picker,
.topline-blog-archive-picker {
    position: relative;
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 280px;
    width: auto;
}

.topline-blog-filters button.topline-blog-filter-picker__trigger,
.topline-blog-filter-picker__trigger,
.topline-blog-filters button.topline-blog-archive-picker__trigger,
.topline-blog-archive-picker__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 1px solid #dddddd !important;
    background: #fafafa !important;
    background-color: #fafafa !important;
    background-image: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #0c2333 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.topline-blog-filters button.topline-blog-filter-picker__trigger:hover,
.topline-blog-filters button.topline-blog-filter-picker__trigger:focus,
.topline-blog-filter-picker__trigger:hover,
.topline-blog-filter-picker__trigger:focus,
.topline-blog-filters button.topline-blog-archive-picker__trigger:hover,
.topline-blog-filters button.topline-blog-archive-picker__trigger:focus,
.topline-blog-archive-picker__trigger:hover,
.topline-blog-archive-picker__trigger:focus {
    border-color: #cccccc !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0c2333 !important;
    outline: none !important;
    box-shadow: none !important;
}

.topline-blog-filter-picker__trigger[aria-expanded="true"],
.topline-blog-archive-picker__trigger[aria-expanded="true"] {
    border-color: #aaaaaa !important;
    background: #ffffff !important;
}

.topline-blog-filter-picker__label,
.topline-blog-archive-picker__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topline-blog-filter-picker__chevron,
.topline-blog-archive-picker__chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C2333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.topline-blog-filter-picker__trigger[aria-expanded="true"] .topline-blog-filter-picker__chevron,
.topline-blog-archive-picker__trigger[aria-expanded="true"] .topline-blog-archive-picker__chevron {
    transform: rotate(180deg);
}

.topline-blog-filter-picker__menu,
.topline-blog-archive-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 200;
    min-width: 100%;
    max-height: 280px;
    margin: 0;
    padding: 8px;
    list-style: none;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--gray-200, #E5E5E5);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(13, 35, 51, 0.14);
}

.topline-blog-filters__control--archive .topline-blog-filter-picker__menu,
.topline-blog-filters__control--archive .topline-blog-archive-picker__menu {
    left: auto;
    right: 0;
}

.topline-blog-filter-picker__menu[hidden],
.topline-blog-archive-picker__menu[hidden] {
    display: none !important;
}

.topline-blog-filters .topline-blog-filter-picker__menu a,
.topline-blog-filters .topline-blog-archive-picker__menu a,
.topline-blog-filter-picker__option,
.topline-blog-archive-picker__option {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0c2333 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.topline-blog-filters .topline-blog-filter-picker__menu a:hover,
.topline-blog-filters .topline-blog-archive-picker__menu a:hover,
.topline-blog-filter-picker__option:hover,
.topline-blog-archive-picker__option:hover {
    background: #f8f9fa;
    color: var(--red, #D52330) !important;
}

.topline-blog-filters .topline-blog-filter-picker__menu a.is-active,
.topline-blog-filters .topline-blog-archive-picker__menu a.is-active,
.topline-blog-filter-picker__option.is-active,
.topline-blog-archive-picker__option.is-active {
    background: #f3f4f6;
    color: #0c2333 !important;
    font-weight: 600;
}

.topline-blog-filters .topline-blog-filter-picker__menu a.is-active:hover,
.topline-blog-filters .topline-blog-archive-picker__menu a.is-active:hover,
.topline-blog-filter-picker__option.is-active:hover,
.topline-blog-archive-picker__option.is-active:hover {
    color: var(--red, #D52330) !important;
}

.topline-blog-filters .categories-scroll,
.topline-blog-categories .categories-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    margin-right: 0;
    padding: 0;
}

.topline-blog-filters--injected .categories-scroll {
    margin-right: 0;
}

.topline-blog-filters .categories-inner,
.topline-blog-categories .categories-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.topline-blog-filters .category-pill,
.topline-blog-categories .category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--navy, #0C2333);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    white-space: nowrap;
}

.topline-blog-filters .category-pill:hover,
.topline-blog-categories .category-pill:hover {
    background: #f8f9fa;
    color: var(--red, #D52330);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.topline-blog-filters .category-pill.active,
.topline-blog-categories .category-pill.active {
    background: var(--red, #D52330);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(213, 35, 48, 0.3);
}

/* Hide duplicate Elementor-only hero when the Blog Archive widget renders the compact hero */
body.page-slug-blog .elementor[data-elementor-type="wp-page"] > section#hero-section:first-child:not(:has(.topline-blog-archive)),
body.page-id-1016 .elementor[data-elementor-type="wp-page"] > section#hero-section:first-child:not(:has(.topline-blog-archive)) {
    display: none !important;
}

/* /blog/ hero — see also inline #topline-blog-hero-clearance in topline-custom.php */
html body.topline-blog-listing [data-elementor-type="wp-page"] > .e-con:first-child,
html body.page-slug-blog [data-elementor-type="wp-page"] > .e-con:first-child,
html body.topline-blog-listing .e-con[data-id="blog-hero-1"],
html body.page-slug-blog .e-con[data-id="blog-hero-1"],
html body.topline-blog-listing .elementor-element-blog-hero-1,
html body.page-slug-blog .elementor-element-blog-hero-1 {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: max(280px, calc(var(--topline-fixed-header-offset, 180px) + 120px)) !important;
    padding-bottom: 24px !important;
    --padding-top: max(280px, calc(var(--topline-fixed-header-offset, 180px) + 120px)) !important;
}

html body.topline-blog-listing [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
html body.page-slug-blog [data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
html body.topline-blog-listing .e-con[data-id="blog-hero-1"] > .e-con-inner,
html body.page-slug-blog .e-con[data-id="blog-hero-1"] > .e-con-inner,
html body.topline-blog-listing .elementor-element-blog-hero-1 > .e-con-inner,
html body.page-slug-blog .elementor-element-blog-hero-1 > .e-con-inner {
    padding-top: 0 !important;
    --padding-top: 0 !important;
}

body.page-slug-blog:not(:has(.topline-blog-archive)) .e-con[data-id="blog-hero-1"] .elementor-heading-title,
body.page-slug-blog:not(:has(.topline-blog-archive)) .elementor-element-blog-hero-1 .elementor-heading-title {
    font-size: clamp(28px, 3.5vw, 40px) !important;
    text-align: left !important;
    margin: 0 !important;
}

body.page-slug-blog:not(:has(.topline-blog-archive)) .e-con[data-id="blog-hero-1"],
body.page-slug-blog:not(:has(.topline-blog-archive)) .elementor-element-blog-hero-1 {
    align-items: flex-start !important;
    text-align: left !important;
}

body.page-slug-blog:not(:has(.topline-blog-archive)) .elementor-element-blog-hero-subtitle,
body.page-slug-blog:not(:has(.topline-blog-archive)) .e-con[data-id="blog-hero-1"] .elementor-widget-text-editor {
    display: none !important;
}

body.page-slug-blog:not(:has(.topline-blog-archive)) .e-con[data-id="blog-hero-1"]::after,
body.page-slug-blog:not(:has(.topline-blog-archive)) .elementor-element-blog-hero-1::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 24px;
    background: var(--cream, #FDFCFB);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

body.page-slug-blog:not(:has(.topline-blog-archive)) .e-con[data-id="blog-hero-1"],
body.page-slug-blog:not(:has(.topline-blog-archive)) .elementor-element-blog-hero-1 {
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .topline-blog-filters,
    .topline-blog-categories {
        padding: 12px 0 10px;
    }

    .topline-blog-filters__inner {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .topline-blog-filters__bar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        width: 100%;
        gap: 12px;
        padding: 0;
    }

    .topline-blog-filters--dropdowns .topline-blog-filters__controls {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .topline-blog-filters__control,
    .topline-blog-filters__control--archive {
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        padding: 0;
        border-left: none;
    }

    .topline-blog-filters .topline-blog-filters__clear {
        margin-left: 0;
        align-self: flex-start;
        justify-self: start;
        padding: 4px 0 0;
    }

    .topline-blog-filter-picker,
    .topline-blog-archive-picker {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        width: 100%;
    }

    .topline-blog-filters button.topline-blog-filter-picker__trigger,
    .topline-blog-filter-picker__trigger,
    .topline-blog-filters button.topline-blog-archive-picker__trigger,
    .topline-blog-archive-picker__trigger {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .topline-blog-grid {
        padding: 24px 20px 48px;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .topline-blog-archive:has(.topline-blog-archive-hero--compact) .topline-blog-grid {
        padding-top: 24px;
    }

    .topline-post-card {
        width: 100%;
        max-width: none;
    }

    .topline-blog-pagination {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Blog Archive Grid */
.topline-blog-archive--compact-layout + .topline-blog-grid,
.topline-blog-archive:has(.topline-blog-archive-hero--compact) .topline-blog-grid {
    padding-top: 48px;
}

.topline-blog-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 35px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .topline-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .topline-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Post Card */
.topline-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 35, 51, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200, #E5E5E5);
}

.topline-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 35, 51, 0.12);
}

.topline-post-card .card-image {
    position: relative;
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
    line-height: 0;
}

.topline-post-card .card-image > a:not(.card-category) {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    line-height: 0;
}

/* Smooth site swoosh, rotated — curves up on the left; right edge stays low (text not cut off) */
.topline-post-card .card-image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1079.68 87.52' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,85.08S440.51-21.08,1079.68,24.66V0H0v87.52'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: 100% 100%;
    transform: rotate(180deg);
    pointer-events: none;
    z-index: 4;
}

.topline-post-card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    vertical-align: top;
}

.topline-post-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.topline-post-card .card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    width: auto;
    max-width: calc(100% - 32px);
    flex: none;
    align-self: auto;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.topline-post-card .card-category:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--red, #D52330);
    text-shadow: none;
    transform: translateY(-1px);
}

.topline-post-card h2.card-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.topline-post-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topline-post-card .card-title a:hover {
    color: var(--red, #D52330);
}

.topline-post-card .card-excerpt {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--gray-600, #525252);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}

.topline-post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: var(--gray-500, #737373);
    margin-top: auto;
}

.topline-post-card .card-meta .meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-300, #D4D4D4);
}

.topline-post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--red, #D52330);
    text-decoration: none;
    margin-top: 16px;
    transition: gap 0.2s ease;
}

.topline-post-card .read-more:hover {
    gap: 10px;
}

.topline-post-card .read-more svg {
    width: 16px;
    height: 16px;
}

/* ━━━ SINGLE POST TEMPLATE - CLEAN MINIMAL DESIGN ━━━ */

/* Hide the messy header on single posts - use site header instead */
body.single-post .topline-single-post-hero {
    display: none !important;
}

/* Clean single post layout with TOC sidebar */
.topline-single-post-clean {
    background: #ffffff;
    padding-top: 0;
}

body.single-post .topline-single-post-clean {
    padding-top: 0;
}

/* Article shell — same width as header nav (.container-wide: 1400px / 35px) */
body.single-post .elementor-widget-topline_single_post_template,
body.single-post .elementor-widget-topline_single_post_template .elementor-widget-container,
body.single-post .elementor-location-single .elementor-widget-topline_single_post_template {
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

body.single-post article.topline-single-post-template.topline-single-post-clean {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.topline-single-post-shell {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--header-height, 120px) + 48px) var(--space-8, 35px) 0;
    box-sizing: border-box;
}

.topline-single-post-shell.container-wide {
    max-width: 1400px;
    padding-left: var(--space-8, 35px);
    padding-right: var(--space-8, 35px);
}

/* Back to blog */
.topline-post-back {
    margin: 0 0 28px;
}

.topline-post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.topline-post-back-link:hover {
    color: var(--red, #D52330);
}

.topline-post-back-link:focus-visible {
    outline: 2px solid var(--red, #D52330);
    outline-offset: 3px;
    border-radius: 4px;
}

.topline-post-back-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.topline-post-back-link:hover svg {
    transform: translateX(-3px);
}

.topline-single-post-clean .post-header {
    max-width: none;
    margin: 0;
    padding: 0;
}

.topline-single-post-clean .post-category {
    display: inline-block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D52330;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(12, 35, 51, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.topline-single-post-clean .post-category:hover {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(12, 35, 51, 0.16);
}

.topline-single-post-clean .post-category-fallback {
    margin-bottom: 24px;
}

.topline-single-post-clean .post-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: #000000;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.topline-single-post-clean .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #737373;
    margin-bottom: 32px;
}

.topline-single-post-clean .post-meta .author-name {
    font-weight: 600;
    color: #000000;
}

.topline-single-post-clean .post-meta .author-title {
    color: #737373;
}

/* Featured Image - full width within 1400px shell */
.topline-single-post-clean .featured-image {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0 0 48px;
    padding: 0;
}

.topline-single-post-clean .featured-image .post-category--overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
    z-index: 2;
    margin: 0;
}

.topline-single-post-clean .featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Main content area with sidebar TOC */
.topline-single-post-layout {
    max-width: none;
    margin: 0;
    padding: 0 0 80px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.topline-single-post-layout:not(.topline-single-post-layout--no-toc) .topline-article-main {
    max-width: none;
    width: 100%;
}

/* No TOC: single full-width column within 1400px shell */
.topline-single-post-layout--no-toc,
.topline-single-post-layout:has(.topline-toc-empty) {
    grid-template-columns: 1fr;
}

.topline-single-post-layout--no-toc .topline-article-main,
.topline-single-post-layout:has(.topline-toc-empty) .topline-article-main {
    max-width: none;
    width: 100%;
    margin: 0;
}

@media (max-width: 1024px) {
    .topline-single-post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .topline-single-post-layout--no-toc .topline-article-main,
    .topline-single-post-layout:has(.topline-toc-empty) .topline-article-main {
        max-width: 100%;
    }
}

/* Table of Contents Sidebar — sit below fixed site header + sticky nav */
.topline-toc-sidebar {
    position: sticky;
    top: 168px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 8px 12px 0 0;
    scrollbar-width: thin;
    scrollbar-color: #E5E5E5 transparent;
}

.topline-toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.topline-toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.topline-toc-sidebar::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 4px;
}

.topline-toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: #D4D4D4;
}

@media (max-width: 1024px) {
    .topline-toc-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
        order: -1;
        background: #ffffff;
        padding: 0;
        border: 1px solid var(--gray-200, #E5E5E5);
        border-radius: 12px;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(12, 35, 51, 0.04);
    }

    .topline-toc-collapsible .toc-label {
        margin-bottom: 0;
        padding: 16px 20px;
    }

    .topline-toc-collapsible[open] .toc-label {
        border-bottom: 1px solid var(--gray-200, #E5E5E5);
    }

    .topline-toc-collapsible .toc-nav {
        max-height: min(50vh, 280px);
        overflow-y: auto;
        padding: 12px 16px 16px;
        -webkit-overflow-scrolling: touch;
    }
}

.topline-toc-collapsible summary {
    list-style: none;
    cursor: pointer;
}

.topline-toc-collapsible summary::-webkit-details-marker {
    display: none;
}

.topline-toc-collapsible .toc-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topline-toc-collapsible .toc-toggle-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #737373;
    border-bottom: 2px solid #737373;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: -4px;
}

.topline-toc-collapsible[open] .toc-toggle-icon {
    transform: rotate(-135deg);
    margin-top: 4px;
}

@media (min-width: 1025px) {
    .topline-toc-collapsible summary {
        cursor: default;
        pointer-events: none;
    }

    .topline-toc-collapsible .toc-toggle-icon {
        display: none;
    }

    .topline-toc-collapsible .toc-nav {
        display: block;
    }
}

.topline-toc-sidebar .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topline-toc-sidebar .toc-list li {
    margin-bottom: 0;
    line-height: 1.3;
}

.topline-toc-sidebar .toc-list a {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.35;
}

.topline-toc-sidebar .toc-list a:hover,
.topline-toc-sidebar .toc-list a.active {
    color: #000000;
    border-left-color: #5aa9ac;
}

.topline-toc-sidebar .toc-list .toc-h2 {
    font-weight: 600;
    color: #000000;
}

.topline-toc-sidebar .toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 13px;
    font-weight: 400;
    color: #737373;
}

.topline-toc-sidebar .toc-list .toc-h3:hover {
    color: #525252;
    font-weight: 400;
}

/* Article content in main column */
.topline-article-main {
    max-width: 760px;
}

/* Override old hero styles to not conflict */
.topline-single-post-hero {
    display: none;
}

/* WordPress default single post - apply clean styling */
body.single-post .site-main {
    padding-top: 0 !important;
}

body.single-post article.post {
    background: #ffffff;
}

/* Clean header for WordPress default template */
body.single-post .entry-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 35px 32px;
    text-align: left;
}

body.single-post .entry-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(36px, 5vw, 56px) !important;
    font-weight: 400 !important;
    color: #000000 !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.03em;
    line-height: 1.15 !important;
}

body.single-post .entry-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #737373;
}

body.single-post .entry-meta .author,
body.single-post .entry-meta .byline {
    font-weight: 600;
    color: #000000;
}

/* Featured image styling */
body.single-post .wp-post-image,
body.single-post .post-thumbnail {
    max-width: 900px !important;
    margin: 0 auto 48px !important;
    display: block;
}

body.single-post .post-thumbnail img,
body.single-post .wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px !important;
}

/* Entry content area */
body.single-post .entry-content {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 35px 60px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #404040;
}

/* Single Post Content Area */
.topline-single-post-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 35px 80px;
}

/* Make WordPress default single post content wider */
.single-post .site-main,
.single-post .entry-content,
.single-post article.post,
.single-post .post-content,
.single .site-main,
.single .entry-content,
body.single-post .elementor-widget-theme-post-content,
body.single-post .elementor-widget-theme-post-content > .elementor-widget-container {
    max-width: 1000px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hello Elementor single post width fix */
body.single-post .site-main > article,
body.single-post .page-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 40px 35px 80px !important;
}

/* Elementor single post template width */
body.single-post [data-elementor-type="single-post"],
body.single-post .elementor-section-wrap,
body.single-post .elementor-location-single {
    max-width: 100% !important;
}

body.single-post [data-elementor-type="single-post"] > .elementor-section > .elementor-container,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* TopLine single post widget: match header width, not theme 1000px */
body.single-post [data-elementor-type="single-post"] .e-con,
body.single-post .elementor-location-single .e-con {
    --content-width: 1400px;
    --container-max-width: 1400px;
    max-width: 100% !important;
    width: 100% !important;
}

/* Featured Image */
.topline-single-post-content .featured-image {
    margin: -120px auto 48px;
    max-width: 1000px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(13, 35, 51, 0.15);
    position: relative;
    z-index: 10;
}

.topline-single-post-content .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* WordPress default single post featured image */
body.single-post .wp-post-image,
body.single-post .post-thumbnail img,
body.single-post .entry-content > figure:first-child img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 32px;
}

/* Single post article wrapper */
body.single-post article.post {
    background: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 35px 60px;
}

/* Single post entry header */
body.single-post .entry-header {
    padding: 60px 0 32px;
    text-align: left;
}

body.single-post .entry-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: #000000;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

body.single-post .entry-meta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body.single-post .entry-meta a {
    color: #5aa9ac;
    text-decoration: none;
}

body.single-post .entry-meta a:hover {
    color: #0C2333;
}

/* Single post entry content */
body.single-post .entry-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #404040;
}

body.single-post .entry-content p {
    margin: 0 0 24px;
}

body.single-post .entry-content h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #000000;
    margin: 48px 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

body.single-post .entry-content h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    color: #000000;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

body.single-post .entry-content a {
    color: #D52330;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.single-post .entry-content a:hover {
    color: #A91C26;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

body.single-post .entry-content li {
    margin-bottom: 10px;
}

body.single-post .entry-content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: #FDFCFB;
    border-left: 4px solid #5aa9ac;
    border-radius: 0 12px 12px 0;
    font-size: 19px;
    font-style: italic;
    color: #0C2333;
    line-height: 1.7;
}

body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

/* Post navigation - use specific selectors to avoid header .nav-links conflict */
body.single-post .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #E5E5E5;
}

body.single-post .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    body.single-post .post-navigation,
    body.single-post .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

body.single-post .post-navigation .nav-links a {
    display: block;
    padding: 24px;
    background: #FDFCFB;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.single-post .post-navigation .nav-links a:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
}

body.single-post .post-navigation .nav-links .nav-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    margin-bottom: 8px;
}

body.single-post .post-navigation .nav-links .nav-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0C2333;
    line-height: 1.4;
}

/* Article Content */
.topline-single-post-content .article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-700, #404040);
}

.topline-single-post-content .article-content p {
    margin: 0 0 24px;
}

.topline-single-post-content .article-content h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #000000;
    margin: 48px 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.topline-single-post-content .article-content h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    color: #000000;
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.topline-single-post-content .article-content h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: #000000;
    margin: 32px 0 14px;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.topline-single-post-content .article-content a {
    color: var(--red, #D52330);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.topline-single-post-content .article-content a:hover {
    color: var(--red-dark, #A91C26);
}

.topline-single-post-content .article-content ul,
.topline-single-post-content .article-content ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

.topline-single-post-content .article-content li {
    margin-bottom: 10px;
}

.topline-single-post-content .article-content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--cream, #FDFCFB);
    border-left: 4px solid var(--teal, #5aa9ac);
    border-radius: 0 12px 12px 0;
    font-size: 19px;
    font-style: italic;
    color: var(--navy, #0C2333);
    line-height: 1.7;
}

.topline-single-post-content .article-content blockquote p:last-child {
    margin-bottom: 0;
}

.topline-single-post-content .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.topline-single-post-content .article-content figure {
    margin: 32px 0;
}

.topline-single-post-content .article-content figcaption {
    font-size: 14px;
    color: var(--gray-500, #737373);
    text-align: center;
    margin-top: 12px;
}

/* Callout Box */
.topline-single-post-content .callout-box {
    background: linear-gradient(135deg, var(--navy, #0C2333) 0%, #1a3d52 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    color: #ffffff;
}

.topline-single-post-content .callout-box h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
}

.topline-single-post-content .callout-box p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
}

.topline-single-post-content .callout-box .btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: var(--teal, #5aa9ac);
    color: #ffffff;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-single-post-content .callout-box .btn:hover {
    background: var(--teal-dark, #3d8b8e);
    transform: translateY(-2px);
}

/* Tags */
.topline-single-post-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200, #E5E5E5);
}

.topline-single-post-tags .tags-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500, #737373);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topline-single-post-tags a {
    display: inline-flex;
    padding: 8px 16px;
    background: var(--gray-100, #F5F5F5);
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600, #525252);
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-single-post-tags a:hover {
    background: var(--navy, #0C2333);
    color: #ffffff;
}

/* Author Box */
.topline-author-box,
.topline-article-main .topline-author-box {
    position: relative;
    overflow: hidden;
    background-color: var(--red, #D52330);
    border-radius: 16px;
}

.topline-author-box::before,
.topline-article-main .topline-author-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('/wp-content/uploads/2026/04/TopLine-Line-Art.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.topline-author-box {
    padding: 32px;
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.topline-author-box .author-avatar,
.topline-author-box .author-info {
    position: relative;
    z-index: 1;
}

.topline-author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--teal, #5aa9ac);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 28px;
    flex-shrink: 0;
    overflow: hidden;
}

.topline-author-box .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topline-author-box .author-info {
    flex: 1;
}

.topline-author-box .author-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.topline-author-box .author-name {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.topline-author-box .author-bio {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .topline-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Related Posts — full-bleed grey band only; cards in 1400px container */
.topline-related-posts {
    background: var(--gray-50, #FAFAFA);
    padding: 80px 0;
    margin-top: 80px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    position: relative;
    box-sizing: border-box;
}

.topline-related-posts .section-inner,
.topline-related-posts .section-inner.container-wide {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-8, 35px);
    box-sizing: border-box;
}

.topline-related-posts .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.topline-related-posts .section-header h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 500;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
}

.topline-related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .topline-related-posts .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .topline-related-posts .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Related cards: entire box links to the article (category pill stays separate) */
.topline-related-posts .topline-post-card {
    position: relative;
    cursor: pointer;
}

.topline-related-posts .topline-post-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.topline-related-posts .topline-post-card-link:focus-visible {
    outline: 2px solid var(--red, #D52330);
    outline-offset: 3px;
}

.topline-related-posts .topline-post-card .card-image,
.topline-related-posts .topline-post-card .card-body {
    pointer-events: none;
}

.topline-related-posts .topline-post-card .card-category {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.topline-related-posts .topline-post-card:hover .card-title {
    color: var(--red, #D52330);
}

/* Share Buttons */
.topline-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.topline-share-buttons .share-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500, #737373);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topline-share-buttons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #F5F5F5);
    color: var(--gray-600, #525252);
    transition: all 0.2s ease;
}

.topline-share-buttons a:hover {
    background: var(--navy, #0C2333);
    color: #ffffff;
    transform: translateY(-2px);
}

.topline-share-buttons a svg {
    width: 18px;
    height: 18px;
}

/* Post Navigation */
.topline-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200, #E5E5E5);
}

@media (max-width: 640px) {
    .topline-post-navigation {
        grid-template-columns: 1fr;
    }
}

.topline-post-navigation .nav-item {
    padding: 24px;
    background: var(--cream, #FDFCFB);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-post-navigation .nav-item:hover {
    background: var(--gray-100, #F5F5F5);
    transform: translateY(-2px);
}

.topline-post-navigation .nav-item.prev {
    text-align: left;
}

.topline-post-navigation .nav-item.next {
    text-align: right;
}

.topline-post-navigation .nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500, #737373);
    margin-bottom: 8px;
}

.topline-post-navigation .nav-item.next .nav-label {
    justify-content: flex-end;
}

.topline-post-navigation .nav-label svg {
    width: 14px;
    height: 14px;
}

.topline-post-navigation .nav-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy, #0C2333);
    line-height: 1.4;
}

/* Newsletter CTA at bottom of post */
.topline-post-newsletter {
    background: linear-gradient(135deg, var(--teal, #5aa9ac) 0%, #4a9395 100%);
    border-radius: 16px;
    padding: 48px;
    margin-top: 48px;
    text-align: center;
}

.topline-post-newsletter h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.topline-post-newsletter p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.topline-post-newsletter .newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 540px) {
    .topline-post-newsletter .newsletter-form {
        flex-direction: column;
    }
}

.topline-post-newsletter .newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy, #0C2333);
}

.topline-post-newsletter .newsletter-form input::placeholder {
    color: var(--gray-500, #737373);
}

.topline-post-newsletter .newsletter-form button {
    padding: 16px 28px;
    background: var(--red, #D52330);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topline-post-newsletter .newsletter-form button:hover {
    background: var(--red-dark, #A91C26);
    transform: translateY(-2px);
}

/* Blog Pagination */
.topline-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1400px;
    margin: 48px auto 0;
    padding: 48px 35px 72px;
    border-top: 1px solid var(--gray-200, #E5E5E5);
    box-sizing: border-box;
}

.topline-blog-archive .topline-blog-pagination:last-child {
    margin-bottom: 0;
}

.topline-blog-pagination a,
.topline-blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-blog-pagination a {
    background: var(--gray-100, #F5F5F5);
    color: var(--navy, #0C2333);
}

.topline-blog-pagination a:hover {
    background: var(--navy, #0C2333);
    color: #ffffff;
}

.topline-blog-pagination span.current {
    background: var(--red, #D52330);
    color: #ffffff;
}

.topline-blog-pagination .prev,
.topline-blog-pagination .next {
    gap: 6px;
}

.topline-blog-pagination svg {
    width: 16px;
    height: 16px;
}

/* Table of Contents */
.topline-toc {
    background: var(--cream, #FDFCFB);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.topline-toc .toc-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topline-toc .toc-title svg {
    width: 18px;
    height: 18px;
    color: var(--teal, #5aa9ac);
}

.topline-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topline-toc li {
    margin-bottom: 8px;
}

.topline-toc a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: var(--gray-600, #525252);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.topline-toc a:hover {
    background: rgba(90, 169, 172, 0.1);
    color: var(--teal, #5aa9ac);
}

.topline-toc a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300, #D4D4D4);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.topline-toc a:hover::before {
    background: var(--teal, #5aa9ac);
}

/* ━━━ SINGLE POST CLEAN LAYOUT ARTICLE STYLES ━━━ */

/* Article main content typography */
.topline-article-main .article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #404040;
    font-style: normal;
}

.topline-article-main .article-content p,
.topline-article-main .article-content li,
.topline-article-main .article-content h1,
.topline-article-main .article-content h2,
.topline-article-main .article-content h3,
.topline-article-main .article-content h4,
.topline-article-main .article-content ul,
.topline-article-main .article-content ol {
    font-style: normal;
}

.topline-article-main .article-content em,
.topline-article-main .article-content i {
    font-style: italic;
}

.topline-article-main .article-content p {
    margin: 0 0 24px;
}

.topline-article-main .article-content h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #000000;
    margin: 48px 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    scroll-margin-top: 180px;
}

.topline-article-main .article-content h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    color: #000000;
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.35;
    scroll-margin-top: 180px;
}

.topline-article-main .article-content h2:first-child,
.topline-article-main .article-content h3:first-child {
    margin-top: 0;
}

.topline-article-main .article-content a {
    color: #5aa9ac;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topline-article-main .article-content a:hover {
    color: #0C2333;
}

.topline-article-main .article-content ul,
.topline-article-main .article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.topline-article-main .article-content li {
    margin-bottom: 12px;
}

.topline-article-main .article-content blockquote {
    border-left: 4px solid #5aa9ac;
    margin: 32px 0;
    padding: 20px 24px;
    background: #FAFAFA;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #525252;
}

.topline-article-main .article-content blockquote p:last-child {
    margin-bottom: 0;
}

.topline-article-main .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.topline-article-main .article-content pre {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
}

.topline-article-main .article-content code {
    background: #F5F5F5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.topline-article-main .article-content pre code {
    background: transparent;
    padding: 0;
}

/* Tags styling in article */
.topline-article-main .topline-single-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 32px;
    margin-top: 48px;
    border-top: 1px solid #E5E5E5;
}

.topline-article-main .topline-single-post-tags .tags-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
}

.topline-article-main .topline-single-post-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #F5F5F5;
    border-radius: 9999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #525252;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-article-main .topline-single-post-tags a:hover {
    background: #0C2333;
    color: #ffffff;
}

/* Share buttons in article */
.topline-article-main .topline-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.topline-article-main .topline-share-buttons .share-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #737373;
}

.topline-article-main .topline-share-buttons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 50%;
    color: #525252;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-article-main .topline-share-buttons a:hover {
    background: #0C2333;
    color: #ffffff;
}

.topline-article-main .topline-share-buttons svg {
    width: 18px;
    height: 18px;
}

/* Author box in article */
.topline-article-main .topline-author-box {
    display: flex;
    gap: 20px;
    padding: 32px;
    margin-top: 48px;
}

.topline-article-main .topline-author-box .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #5aa9ac;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
}

.topline-article-main .topline-author-box .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topline-article-main .topline-author-box .author-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.topline-article-main .topline-author-box .author-name {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.topline-article-main .topline-author-box .author-bio {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Newsletter CTA removed from single-post template */
body.single-post .topline-post-newsletter,
body.single-post .topline-article-main .topline-post-newsletter {
    display: none !important;
}

/* Post navigation in article */
.topline-article-main .topline-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #E5E5E5;
}

@media (max-width: 600px) {
    .topline-article-main .topline-post-navigation {
        grid-template-columns: 1fr;
    }
}

.topline-article-main .topline-post-navigation .nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topline-article-main .topline-post-navigation .nav-item:hover {
    background: #F0F0F0;
}

.topline-article-main .topline-post-navigation .nav-item.next {
    text-align: right;
}

.topline-article-main .topline-post-navigation .nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
}

.topline-article-main .topline-post-navigation .nav-item.next .nav-label {
    justify-content: flex-end;
}

.topline-article-main .topline-post-navigation .nav-label svg {
    width: 14px;
    height: 14px;
}

.topline-article-main .topline-post-navigation .nav-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0C2333;
    line-height: 1.4;
}

/* Empty TOC sidebar placeholder */
.topline-toc-empty {
    display: none;
}

@media (max-width: 1024px) {
    .topline-toc-empty {
        display: none !important;
    }
    
    .topline-single-post-layout {
        display: block !important;
    }
}

/* ━━━ SINGLE POST LAYOUT FIXES ━━━ */

/* Top offset handled by .topline-single-post-shell (header height + 48px) */
body.single-post .elementor-location-single {
    padding-top: 0 !important;
}

body.single-post [data-elementor-type="single-post"] {
    padding-top: 0;
}

body.single-post .elementor-location-single > .elementor-section:first-child,
body.single-post .elementor-location-single > .elementor-section-wrap > .elementor-section:first-child,
body.single-post .elementor-location-single > .e-con:first-child {
    padding-top: 0 !important;
}

body.single-post .site-main {
    padding-top: 0;
}

/* Hide the old navy hero section from the widget */
body.single-post .topline-single-post-hero,
body.single-post .hero-swoosh,
body.single-post .hero-duo-accent {
    display: none !important;
}

/* Ensure single post content has white background */
body.single-post .topline-single-post-template {
    position: relative;
    z-index: 1;
    background: #ffffff;
}

body.single-post .site-content,
body.single-post .site-main {
    background: #ffffff;
}

/* Body text: upright (guards against unclosed <em> in imported posts) */
body.single-post .topline-article-main .article-content,
body.single-post .topline-single-post-template .article-content,
body.single-post .entry-content {
    font-style: normal !important;
}

body.single-post .topline-article-main .article-content em,
body.single-post .topline-article-main .article-content i,
body.single-post .topline-single-post-template .article-content em,
body.single-post .topline-single-post-template .article-content i {
    font-style: italic !important;
}

/* ━━━ SINGLE POST H2/H3/H4 — scoped to article body only (not header mega menu) ━━━ */

body.single-post .topline-single-post-template .article-content h2,
body.single-post .topline-article-main .article-content h2,
body.single-post .topline-single-post-content .article-content h2,
body.single-post .elementor-widget-topline_single_post_template .article-content h2,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 48px 0 20px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
}

body.single-post .topline-single-post-template .article-content h3,
body.single-post .topline-article-main .article-content h3,
body.single-post .topline-single-post-content .article-content h3,
body.single-post .elementor-widget-topline_single_post_template .article-content h3,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(20px, 2.5vw, 26px) !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 40px 0 16px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.35 !important;
}

body.single-post .topline-single-post-template .article-content h2:first-child,
body.single-post .topline-single-post-template .article-content h3:first-child,
body.single-post .topline-article-main .article-content h2:first-child,
body.single-post .topline-article-main .article-content h3:first-child {
    margin-top: 0 !important;
}

body.single-post .topline-single-post-template .article-content h4,
body.single-post .topline-article-main .article-content h4,
body.single-post .topline-single-post-content .article-content h4,
body.single-post .elementor-widget-topline_single_post_template .article-content h4,
body.single-post .elementor-widget-theme-post-content .elementor-widget-container h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    font-weight: 600 !important;
    color: #000000 !important;
    margin: 32px 0 14px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
}

/* All in-article headings — true black (overrides Elementor kit navy) */
body.single-post .topline-single-post-template .article-content :is(h1, h2, h3, h4, h5, h6),
body.single-post .topline-article-main .article-content :is(h1, h2, h3, h4, h5, h6),
body.single-post .topline-single-post-content .article-content :is(h1, h2, h3, h4, h5, h6),
body.single-post .entry-content :is(h1, h2, h3, h4, h5, h6),
body.single-post .elementor-widget-topline_single_post_template .article-content :is(h1, h2, h3, h4, h5, h6),
body.single-post .elementor-widget-theme-post-content .elementor-widget-container :is(h1, h2, h3, h4, h5, h6) {
    color: #000000 !important;
}

/* Mega menu column titles: block single-post article heading typography from leaking in */
body.single-post .elementor-location-header header.site-header .mega-menu-column-title,
body.single-post .elementor-location-header .topline-header-root .mega-menu-column-title,
body.single-post header.site-header .mega-menu-column-title,
body.single-post .topline-header-root .mega-menu-column-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    padding-bottom: 8px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
    color: #000000 !important;
}

/* Smooth scroll for TOC links */
html {
    scroll-behavior: smooth;
}

/* TOC active state styling via JS */
.topline-toc-sidebar .toc-list a.toc-h2.is-active,
.topline-toc-sidebar .toc-list a.toc-h2.active {
    color: #000000;
    font-weight: 700;
    border-left-color: #5aa9ac;
}

.topline-toc-sidebar .toc-list a.toc-h3.is-active,
.topline-toc-sidebar .toc-list a.toc-h3.active {
    color: #525252;
    font-weight: 400;
    border-left-color: #5aa9ac;
}

/* Hide Foundation stats block on the Blog page (footer widget may be set to Always) */
body.blog .topline-footer-sections .foundation-section,
body.page-slug-blog .topline-footer-sections .foundation-section,
body.elementor-page-1016 .topline-footer-sections .foundation-section {
    display: none !important;
}

/* Blog card category pill — teal, standard pill proportions */
.topline-post-card .card-category {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    background: #5aa9ac !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}
