:root {
    --cyan: #54c6eb;
    --blue: #2768f5;
    --gray-text: rgba(0, 0, 0, 0.55);
    --gray-light: #bababa;
    --dark-input: #1a1a1a;
    --dark-border: #2a2a2a;
    --rail: rgba(0, 0, 0, 0.12);
    --toc-item-height: 36px;
}

.guide-content .wp-caption img {
    width: 100% !important;
}

.guide-content img {
    height: auto;
}

.single-post .digital-header-section {
    border-bottom: 0;
}

.page-body .sidebar-right .digital-email-form.newsletter-digital-email-form span.wpcf7-spinner {
    margin-bottom: 13px;
    margin-right: 10px;
}

.digital-email-form.newsletter-digital-email-form p {
    position: relative;
}

.article-section figure {
    width: 100% !important;
}

.article-section figure figcaption {
    color: #4f4e4e;
    margin-top: 12px;
}

/* ── HEADER ───────────────────────────────────── */
@media (min-width: 1023px) {
    .blog-detail-header .head-nav-heading-wrap {
        display: none;
    }

    .blog-detail-header .mob-menu-wrap {
        display: block;
    }

    .blog-detail-header button.menu-bar {
        display: none;
    }

    .blog-detail-header .header-wrapper {
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: center;
    }

    .blog-detail-header .header-full {
        padding: 15px 0px 20px;
    }

    .blog-detail-header .logo {
        padding: 0;
        min-width: 180px;
        text-align: left;
    }

    .blog-detail-header .header-right {
        border: 0;
    }

    .blog-detail-header .header-right::before {
        display: none;
    }

    .blog-detail-header .main-nav {
        align-items: center;
        grid-template-columns: 1fr 190px;
        display: grid;
    }

    .blog-detail-header .megamenu-section {
        top: 92px;
    }

    .blog-detail-header .lefs-button {
        text-align: right;
        padding-right: 30px;
    }

    .blog-detail-header .btn-href-link {
        font-size: 24px;
    }

    .blog-detail-header .btn-href-link img {
        left: calc(50% - -23px);
    }
}

/* ── HERO ───────────────────────────────────── */
.blog-detail-banner-section {
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0;
}

.blog-detail-banner-wrap {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr 310px;
    gap: 0 48px;
    align-items: start;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 25px;
}

.breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.15s;
}

.breadcrumb-item:hover {
    color: #fff;
}

.breadcrumb-current {
    color: #fff;
    pointer-events: none;
}

.breadcrumb-sep {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.hero-title {
    font-size: clamp(28px, 3.9vw, 56px);
    color: white;
    max-width: 865px;
    margin-bottom: 24px;
    line-height: 1.07;
    letter-spacing: 0;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 14px;
    letter-spacing: 0.14px;
}

.meta-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item img {
    width: 16px;
    height: 16px;
}

/* ── PAGE BODY ──────────────────────────────── */
.blog-detail-content-section {
    padding: 48px 0px;
}

.page-body {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr 310px;
    gap: 0 48px;
    align-items: start;
}

/* ── LEFT SIDEBAR ───────────────────────────── */
.sidebar-left {
    grid-column: 1;
    position: sticky;
    top: 40px;
    align-self: start;
}

/* Center column — single flex container eliminates any row-height conflicts */
.center-col {
    grid-column: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── TOC ────────────────────────────────────── */
.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    margin: 0;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    flex-shrink: 0;
}

.toc-toggle .chevron {
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(180deg);
    /* up = expanded */
}

.toc-toggle.collapsed .chevron {
    transform: rotate(0deg);
    /* down = collapsed */
}

/* Body wrapper — no full-collapse; overflow items handle their own animation */
.toc-body {
    overflow: visible;
}

.toc-list {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-bottom: 4px;
}

/* Gray rail — full height of the list */
.toc-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 1px;
}

/* Black indicator segment — moves with active item */
.toc-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: var(--toc-item-height);
    background: #000;
    border-radius: 1px;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s ease,
        opacity 0.2s ease;
    will-change: transform;
    z-index: 1;
}

.toc-item {
    display: flex;
    align-items: center;
    min-height: var(--toc-item-height);
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: var(--gray-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.toc-item:hover {
    color: rgba(0, 0, 0, 0.8);
}

.toc-item.active {
    color: #000;
    font-weight: 600;
}

/* Overflow items — hidden in collapsed state */
.toc-item.toc-overflow {
    overflow: hidden;
    max-height: 60px;
    opacity: 1;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
}

.toc-list.collapsed .toc-item.toc-overflow {
    max-height: 0;
    min-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

/* "Currently reading" label — shown when collapsed + active is hidden */
.toc-cr {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.toc-cr.visible {
    max-height: 40px;
    opacity: 1;
    margin-top: 8px;
}

.toc-cr-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.38);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.toc-cr-name {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc-cr-name:hover {
    text-decoration: underline;
}

/* ── SHARE ──────────────────────────────────── */
.share-section {
    margin-top: 32px;
}

.share-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 22px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    background: #000;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.share-btn:hover {
    background: #333;
}

.share-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    /* force icons white */
}

/* ── ARTICLE MAIN ───────────────────────────── */
.article-main {
    min-width: 0;
}

/* Author card */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 28px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.author-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
}

.author-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.author-bio {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: rgba(0, 0, 0, 0.75);
}

.author-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 12px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    letter-spacing: 0.06em;
    transition: color 0.15s;
}

.author-link:hover {
    color: #000;
}

.author-link img {
    width: 16px;
    height: 16px;
}

/* Article typography */
.article-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 36px;
}

.article-lead {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #000;
    margin-bottom: 28px;
}

.article-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #222;
    margin-bottom: 36px;
}

.article-body p+p {
    margin-top: 18px;
}

.article-body a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-main h1,
.article-main h2,
.article-main h3,
.article-main h4 {
    text-wrap: unset;
}

.article-h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #000;
    margin-top: 56px;
    margin-bottom: 18px;
    scroll-margin-top: 32px;
}

.article-h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #000;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #000;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-section {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #222;
}

.article-section p {
    margin-bottom: 18px;
}

.article-section p:last-child {
    margin-bottom: 0;
}

.article-section a,
.article-main a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-main p {
    color: #4f4e4e;
}

.article-section ul,
.article-section ol {
    padding-left: 24px;
    margin-bottom: 18px;
    padding-bottom: 0;
}

.article-section li {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0.04em;
    color: #4f4e4e;
    font-weight: 500;
}

/* ── RIGHT SIDEBAR ──────────────────────────── */
.sidebar-right {
    grid-column: 3;
    align-self: stretch;
    /* fills row so newsletter-sticky has full scroll range */
}

.newsletter-sticky {
    position: sticky;
    top: 40px;
}

.newsletter-card {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.newsletter-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 55%;
    background: radial-gradient(ellipse at top right,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 65%);
    pointer-events: none;
}

.newsletter-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.newsletter-badge img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.newsletter-badge-text {
    font-size: 13px;
    font-weight: 700;
    color: #54c6eb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.opt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #54c6eb;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(84, 198, 235, 0.7);
}

.opt-dot {
    animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.newsletter-heading {
    font-size: 26px;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 14px;
}

.newsletter-subtext {
    font-size: 15px;
    font-weight: 500;
    color: #bababa;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.newsletter-input-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.newsletter-input-wrap span.wpcf7-form-control-wrap {
    width: 100%;
    display: flex;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    outline: none;
    font-family: "Urbanist", sans-serif;
    letter-spacing: 0.02em;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    line-height: 140%;
    height: 48px;
    padding: 10px 45px 10px 12px;
}

.newsletter-input:focus {
    border-color: rgba(84, 198, 235, 0.5);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-input-wrap input.smit-btn {
    font-size: 0px;
    background: url(../images/digital-lab-form-btn-arrow.svg) no-repeat center;
    background-size: 18px;
    position: absolute;
    right: 6px;
    top: 8px;
    width: 33px;
    height: 33px;
    background-color: #54c6eb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.newsletter-input-wrap input.smit-btn:hover {
    background-color: #6dd4f3;
    transform: scale(1.05);
}

.newsletter-disclaimer {
    font-size: 10px;
    font-weight: 500;
    color: #bababa;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.4;
}
.newsletter-input.wpcf7-not-valid {
    border-color: #dc3232;
}
.newsletter-input-wrap span.wpcf7-not-valid-tip {
    display: none;
}
table.table.table-bordered tr td,
table.table.table-bordered tr th {
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0.04em;
    color: #4f4e4e;
    font-weight: 500;
}

table.table.table-bordered tr td {
    font-family: "PP Neue Montreal Book";
    font-weight: normal;
}

table.table.table-bordered tr th {
    font-family: "PP Neue Montreal Medium";
    font-weight: 500;
}

.article-main table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: rgba(0, 0, 0, 0.85);
    margin: 2rem 0;
    border-color: transparent !important;
}

.article-main table tbody:first-child tr,
.article-main table thead tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.article-main table th {
    padding: 0 0 12px;
    text-align: left;
    vertical-align: bottom;
    padding-left: 10px;
}

.article-main table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-main table td {
    padding: 10px 0;
    vertical-align: top;
    text-align: left;
    padding-right: 10px;
    line-height: 1.2;
}

.article-main table td+td {
    padding-left: 6px;
}

/* ── PREFERRED SOURCE CALLOUT ───────────────────── */
.preferred-source-card {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
}

.preferred-source-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.preferred-source-badge-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4285f4;
}

.preferred-source-heading {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #000;
    font-family: "Urbanist", sans-serif;
}

.preferred-source-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
}

.preferred-source-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: #4285f4;
    color: #fff;
    font-family: "Urbanist", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.preferred-source-btn:hover {
    background: #3574e0;
    color: #fff !important;
}

/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1439px) {
    .blog-detail-banner-wrap {
        grid-template-columns: 240px 1fr 120px;
    }
}

@media (max-width: 1200px) {
    .page-body {
        grid-template-columns: 210px 1fr 280px;
        gap: 0 32px;
    }

    .blog-detail-banner-wrap {
        grid-template-columns: 210px 1fr 120px;
        gap: 0 32px;
    }
}

@media (max-width: 1199px) {
    .single-post .digital-header-section {
        margin-top: 0;
    }

    .newsletter-heading {
        font-size: 22px;
    }

    .mobile-menu-new .single-post .digital-header-section.single-header-blog .menu-bar-new {
        top: 27px;
    }

    .header-new .lefs-button {
        margin-right: 0px;
    }

    table.table.table-bordered tr td,
    table.table.table-bordered tr th {
        font-size: 14px;
        line-height: normal;
    }

    .article-main table tbody:first-child tr,
    .article-main table thead tr {
        border-bottom: 1.5px solid rgba(0, 0, 0, 0.28);
    }

    .article-main table th {
        padding: 0 0 12px;
        padding-left: 10px;
    }

    .article-main table tbody tr {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    }

    .article-main table td {
        padding: 16px 0;
        padding-right: 10px;
    }

    .article-main table td+td {
        padding-left: 10px;
    }
}

@media (max-width: 1023px) {
    .blog-detail-banner-section {
        padding: 60px 0px;
    }

    .blog-detail-header .navigation {
        top: 84px;
    }

    .blog-detail-header .logo {
        justify-content: flex-start;
    }

    .blog-detail-header .logo img {
        width: 132px;
    }
}

@media (max-width: 900px) {
    #toc-body {
        margin-top: 12px;
    }

    /* Fully collapse TOC body on mobile — tap header to reveal all links */
    #toc-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #toc-body.toc-open {
        max-height: 1200px;
        padding-bottom: 16px;
    }

    /* Show ALL items when open — skip the "first 5 only" desktop behaviour */
    #toc-body.toc-open .toc-item.toc-overflow {
        max-height: 60px;
        opacity: 1;
        padding-top: 6px;
        padding-bottom: 6px;
        pointer-events: auto;
    }

    /* "Currently reading" strip is desktop-only */
    #toc-body .toc-cr {
        display: none;
    }

    .page-body {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        gap: 0;
        display: flex;
        flex-wrap: wrap;
    }

    /* Dissolve wrappers so inner elements reorder independently */
    .sidebar-left {
        display: contents;
    }

    .center-col {
        display: flex;
        width: 100%;
        order: 2;
    }

    .sidebar-right {
        display: flex;
        order: 3;
        flex-direction: column;
        width: 100%;
    }

    .toc-section {
        width: 100%;
    }

    /* Reset all explicit desktop placement so order takes over */
    .author-wrap,
    .toc-section,
    .article-main,
    .share-section,
    .newsletter-sticky {
        grid-column: 1 / -1;
        grid-row: auto;
        position: static;
        align-self: auto;
    }

    /* 1. TOC — navigate before diving in */
    .toc-section {
        order: 1;
        margin-top: 24px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 32px;
    }

    /* 2. Article content */
    .article-main {
        order: 2;
    }

    /* 3. Author card — after article, reader now knows the content */
    .author-wrap {
        order: 3;
        margin-top: 40px;
        padding-top: 24px;
        padding-bottom: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 0;
    }

    /* Suppress author-card's own border so only the wrap's shows */
    .author-wrap .author-card {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* 4. Share — encourage sharing */
    .share-section {
        order: 4;
        margin-top: 40px !important;
        padding-top: 0;
        border-top: none;
    }

    /* 5. Newsletter — after reading, encourage subscribing */
    .newsletter-sticky {
        order: 5;
        margin-top: 40px;
    }

    .nav {
        padding: 20px 32px;
    }

    .nav-connect {
        width: 84px;
        height: 84px;
        font-size: 13px;
    }

    .blog-detail-content-section {
        padding: 15px 0px 48px;
    }

    .blog-detail-banner-space-left,
    .blog-detail-banner-space-right {
        display: none;
    }

    .blog-detail-banner-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        gap: 0;
    }
}



@media (max-width: 640px) {
    .blog-detail-banner-section {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 22px;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 5px 8px;
        font-size: 12px;
        letter-spacing: 0.1px;
    }

    .meta-divider {
        display: none;
    }

    .breadcrumbs {
        gap: 6px 1px;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-bottom: 22px;
    }

    .breadcrumb-item {
        white-space: normal;
        font-size: 13px;
        letter-spacing: 0.1px;
    }

    .article-image {
        height: auto;
    }

    .article-lead {
        font-size: 20px;
    }

    .newsletter-heading {
        font-size: 22px;
    }

    .nav {
        padding: 16px 20px;
    }

    .nav-logo img {
        height: 48px;
    }

    .nav-connect {
        width: 70px;
        height: 70px;
        font-size: 12px;
    }

    .author-card {
        flex-wrap: wrap;
    }

    .author-links {
        flex-direction: row;
        gap: 16px;
        width: 100%;
    }

    .sidebar-left {
        padding: 20px 0 0;
    }

    .article-h2 {
        font-size: 22px;
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .blog-detail-banner-section {
        padding: 40px 0px;
    }

    table.table.table-bordered tr td,
    table.table.table-bordered tr th {
        font-size: 16px;
        line-height: 24px;
    }

    .blog-detail-header .navigation {
        top: 84px;
    }
}

/* ── BACK TO TOP ────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333;
}

.share-btn {
    position: relative;
}

.copy-confirmation {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f1f1f;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-confirmation::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f1f1f;
}

.share-btn.copied .copy-confirmation {
    opacity: 1;
}

/** WP additions below: CF7 newsletter form states (no static-mockup equivalent). **/
/* Spinner overlays the 33x33 submit button (right:6px;top:8px) instead of
   pushing layout below it — offset by (33-24)/2 to sit centered on it. */
.newsletter-input-wrap .wpcf7-spinner {
    position: absolute;
    right: 10px;
    top: 12px;
    margin: 0;
}

/* CF7's own validation/error message box has no background or text color set,
   so its dark default text was nearly invisible against this card's black
   background — just a stray colored border. Give it real contrast. */
.newsletter-card .wpcf7-response-output {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.newsletter-card .wpcf7-not-valid-tip {
    color: #ff8a8a;
    font-size: 12px;
    margin-top: 6px;
}

/* Success state: CF7 adds the "sent" class to the form on a successful
   submission, at which point the success message replaces the form fields. */
.newsletter-success {
    display: none;
}

.wpcf7-form.sent .newsletter-input-wrap {
    display: none;
}

.wpcf7-form.sent .newsletter-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(84, 198, 235, 0.1);
    border: 1px solid rgba(84, 198, 235, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
}

.newsletter-success-icon {
    flex: none;
    display: flex;
    margin-top: 2px;
}

.newsletter-success-title {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

.newsletter-success-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #bababa;
    line-height: 1.4;
}
