.single-post .site-content {
    background-color: white;
}

/* ---------- Single Post (scoped) ---------- */
.vi-single-post .vi-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* Breadcrumbs */
.vi-single-post .vi-breadcrumbs {
    margin-top: 20px;
    /* top ≥ 20px */
    margin-bottom: 40px;
    /* bottom 40px */
    font-size: 16px;
    /* size 16 */
    font-weight: 400;
    /* weight 400 */
    color: #656A76;

    text-align: left;
    /* color */
}

/* Title + meta */
.vi-single-post h1.vi-single-title {
    text-align: center;
    color: #021B32 !important;
    font-weight: 600 !important;
    font-size: clamp(24px, 5.5vw, 36px) !important;
    /* responsive, widely supported */
    /* MDN: clamp() */
    line-height: 130%;
    border-radius: 24px;
    /* shows if the H1 gets a bg later */
    padding: 2px 6px;
    /* small pad so radius is visible even w/out bg */
}

.vi-single-post .vi-single-header {
    text-align: center;
}

.vi-single-post .vi-single-meta {
    font-size: 16px;
    font-weight: 400;
    color: #656A76;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}


.vi-single-post .vi-dot {
    opacity: .6;
}

/* Featured image */
.vi-single-post .vi-featured {
    margin: 40px 0;
}

/* top & bottom 40px */
.vi-single-post .vi-featured img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.vi-single-post .vi-featured figcaption {
    font-size: 12px;
    color: #607086;
    margin-top: 6px;
}

/* Under-hero row */
.vi-single-post .vi-under-hero {
    display: flex;
    justify-content: center;
    /* centered row */
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    /* font 14px */
    margin-top: 10px;
    padding-bottom: 8px;
}


.vi-single-post .vi-cats a {
    display: inline-block;
    background: #EFF6FF;
    color: #05559F;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 12px;
    line-height: 1;
    margin: 2px 4px;
}


/* --- Share row container --- */
.vi-single-post .vi-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* OUTER WRAPPER CIRCLE (the <a> / <button>) */
.vi-single-post .vi-share-btn {
    width: 32px;
    height: 32px;
    /* outer circle size */
    border-radius: 50%;
    border: 1px solid #d7dee7;
    padding: 20px;
    background: #fff;
    display: inline-grid;
    place-items: center;
    /* centers inner circle */
    padding: 0;
    /* no extra padding */
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.vi-single-post .vi-share-btn:hover {
    background: #f7fbff;
    border-color: #b8c8dc;
    box-shadow: 0 2px 8px rgba(8, 35, 68, .06);
}

/* Keep copy link as a pill (NOT a circle) */
.vi-single-post .vi-copy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cfe4fb;
    background: #fff;
    color: #05559F;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.vi-single-post .vi-copy-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.vi-single-post .vi-copy-link:hover {
    color: #034985;
    background: #f2f8ff;
    border-color: #a8c9ef;
}

/* INNER BRAND CIRCLE (the dashicon carrier) */
.vi-single-post .vi-single-post-icon {
    width: 36px;
    height: 36px;
    /* inner circle size */
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    padding: 2px;
}

/* Make sure inner sizing wins over any global dashicons rules */
.vi-single-post .vi-share .vi-single-post-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.vi-single-post .vi-share .dashicons {
    width: auto;
    height: auto;
    line-height: 1;
    font-size: inherit;
}

/* Brand backgrounds */
.vi-single-post .vi-single-post-icon {
    background: #656A76;
}


/* Hover tint on the INNER circle */
.vi-single-post .vi-share-btn:hover .vi-single-post-icon {
    filter: brightness(.95);
}


/* Mobile sizes */
@media (max-width:560px) {
    .vi-single-post .vi-share-btn {
        width: 40px;
        height: 40px;
    }

    .vi-single-post .vi-single-post-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}


/* Content grid 80/20 */
.vi-single-post .vi-content-wrap .vi-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    /* 70% / 30% without gap overflow */
    gap: 64px;
    align-items: start;
}

/* Make sure columns can shrink without overflow */
.vi-single-post .vi-main,
.vi-single-post .vi-side {
    min-width: 0;
}

/* Responsive body copy */
.vi-single-content {
    /* fluid type with safe min/max */
    font-size: clamp(16px, 1.6vw, 18px);
    color: #656A76;
    line-height: 1.6;
    /* unitless so it scales with zoom */

    /* nicer wrapping & long-word handling */
    text-wrap: pretty;
    /* progressive enhancement */
    overflow-wrap: anywhere;
    /* avoid overflow on long URLs/words */
    hyphens: auto;
    /* allow hyphenation where supported */
    -webkit-hyphens: auto;
    /* Safari/iOS */
}

/* Headings inside the content */
.vi-single-content .wp-block-heading {
    color: #021B32 !important;
    text-wrap: balance;
    /* nicer multi-line headings */
    margin-top: 1.4em;
    margin-bottom: .6em;
}

/* Optional: scale common heading levels (tweak to taste) */
.vi-single-content h2.wp-block-heading,
.vi-single-content h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.35;
}

.vi-single-content h3.wp-block-heading,
.vi-single-content h3 {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.4;
}


@media (max-width: 560px) {
    .vi-single-content {
        font-size: clamp(16px, 3.8vw, 18px);
    }
}

/* --- Static CTA below content --- */
.vi-single-post .vi-cta-wide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 28px 0 8px;
    /* Layout: 32px 120px */
    padding: 32px 120px;
    color: #fff;
    isolation: isolate;
}

.vi-single-post .vi-cta-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    /* keep your existing blue gradient background */
    background: #00234F;
    box-shadow: 0 6px 24px rgba(8, 35, 68, .25);
}

/* make inner stack and apply the requested gap: 20px */
.vi-single-post .vi-cta-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Title: 700 / 24px / 130% / white */
.vi-single-post .vi-cta-inner h2#vi-cta-title {
    margin: 0;
    font-weight: 700 !important;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 130%;
    color: #fff !important;
}

/* Sub: 14px / 150% / #DFE1E7 */
.vi-single-post .vi-cta-sub {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    color: #DFE1E7;
    opacity: 1;
    /* ensure exact color shows */
}

/* Buttons row: gap 8px, wraps on small screens */
.vi-single-post .vi-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    /* requested */
}

/* Base button */
.vi-single-post .vi-btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
    border: 1px solid transparent;
}

/* Apply For Visa: 10px 32px, #F9C90A, text #021B32 */
.vi-single-post .vi-btn-cta {
    padding: 10px 32px;
    background: #F9C90A;
    color: #021B32;
    border-color: #e7b908;
}

.vi-single-post .vi-btn-cta:hover {
    filter: none;
    background: #eabd09;
    border-color: #d3aa08;
    transform: translateY(-1px);
}

/* Extend Visa: 10px 32px, bg #DDE7F3, text #021B32 */
.vi-single-post .vi-btn-ghost {
    padding: 10px 32px;
    background: #DDE7F3;
    color: #021B32;
    border-color: #DDE7F3;
}

.vi-single-post .vi-btn-ghost:hover {
    background: #cfdced;
    border-color: #cfdced;
    color: #021B32;
    transform: translateY(-1px);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1200px) {
    .vi-single-post .vi-cta-wide {
        padding: 32px 64px;
    }
}

@media (max-width: 820px) {
    .vi-single-post .vi-cta-wide {
        padding: 28px 32px;
    }
}

@media (max-width: 560px) {
    .vi-single-post .vi-cta-wide {
        padding: 22px 16px;
    }

    .vi-single-post .vi-btn-cta,
    .vi-single-post .vi-btn-ghost {
        padding: 10px 24px;
        /* breathe a bit on very small screens */
    }
}


/* ===== Related posts ===== */
.vi-single-post .vi-related {
    margin: 26px auto 8px;
}

.vi-single-post .vi-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.vi-single-post .vi-related-title {
    margin: 0;
    color: #181B20;
    font-size: 24px;
    line-height: 130%;
    font-weight: 600;
}

.vi-single-post .vi-related-all {
    font-size: 16px;
    line-height: 150%;
    color: #05559F;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 18px;
}

.vi-single-post .vi-related-all::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    position: absolute;
    right: 4px;
    top: 50%;
    translate: 0 -50%;
}

.vi-single-post .vi-related-all:hover {
    color: #034985;
}

/* grid: 3 / 2 / 1 */
.vi-single-post .vi-related-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
    .vi-single-post .vi-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .vi-single-post .vi-related-grid {
        grid-template-columns: 1fr;
    }
}

/* card */
.vi-single-post .vi-related-item {
    background: #fff;
    border: 1px solid #E9EBED;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vi-single-post .vi-related-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* categories (reuse your .vi-cats pill style) */
.vi-single-post .vi-related .vi-cats a {
    display: inline-block;
    background: #EFF6FF;
    color: #05559F;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 12px;
    line-height: 1;
    margin: 2px 4px 0 0;
    font-size: 14px;
}

/* title, excerpt, meta */
.vi-single-post .vi-related-item-title {
    margin: 4px 0 0;
    font-size: 18px;
    line-height: 150%;
}

.vi-single-post .vi-related-item-title a {
    color: #021B32;
    text-decoration: none;
}



.vi-single-post .vi-related-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    color: #656A76;
}

.vi-single-post .vi-related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #656A76;
}

.vi-single-post .vi-related-dot {
    opacity: .6;
}

/* read more */
.vi-single-post .vi-related-more {
    margin-top: auto;
    align-self: flex-start;
    color: #05559F;
    font-weight: 600;
    text-decoration: none;
}

.vi-single-post .vi-related-more:hover {
    color: #034985;
    text-decoration: underline;
}

.vi-single-post .wp-block-button__link {
    background-color: #F9C90A !important;
    color: #021B32 !important;
    font-size: 18px !important;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    max-width: fit-content;
    text-align: center;
    border: none !important;
    border-radius: 999px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vi-single-post .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 8px rgba(249, 201, 10, 0.8), 0 0 16px rgba(249, 201, 10, 0.6) !important;
    background: #F9C90a !important;
}

/* ========== RESPONSIVE (mobile & tablet) ========== */
@media (max-width: 992px) {
    .vi-single-post .vi-content-wrap .vi-grid {
        grid-template-columns: 1fr;
    }

    .vi-single-post .vi-side {
        position: static;
    }

    .vi-single-post .vi-breadcrumbs {
        margin-top: 16px;
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {

    /* Keep headings readable but compact on small screens */
    .vi-single-post h1.vi-single-title {
        text-align: center;
        line-height: 130%;
        border-radius: 24px;
        padding: 2px 6px;
        margin-bottom: 10px;
    }

    /* MDN clamp() */
    .vi-single-post .vi-single-meta {
        font-size: 14px;
    }

    .vi-single-post .vi-under-hero {
        gap: 10px;
    }

    .vi-single-post .vi-share {
        justify-content: center;
    }

    .vi-single-post .vi-share-btn,
    .vi-single-post .vi-copy-link {
        padding: 8px 12px;
    }
}