/* single-blog — Figma page styles. Loaded after assets/css/style.css (see panacea_enqueue_assets). Scope every selector to this page/section. */

/* Everything is scoped to main.sb-page (single-post.php). Figma frame 1920 /
   1432px content column; column widths below are the Figma widths as fr so
   they scale with Bootstrap's 1296px container. */

.sb-page {
    --sb-navy: #172B4C;
    --sb-slate: #41526C;
    --sb-text: #101010;
    background: #ffffff;
    overflow-x: clip;
}

/* Astra's .ast-separate-container #primary adds a 4em top/bottom margin */
body #primary.sb-page {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

/* ===================== HERO ===================== */

.sb-page .sb-hero {
    position: relative;
    background-color: #F0F6F6;
    background-image: url('../../../../../uploads/2026/08/mainBanner-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 36px 0 90px;
    overflow: hidden;
}

.sb-page .sb-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sb-page .sb-tag {
    display: inline-flex;
    align-items: center;
    height: 31px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--primary-color, #1A4DA1);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 36px;
}

.sb-page .sb-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.26;
    letter-spacing: -0.2px;
    color: var(--sb-navy);
    max-width: 880px;
    margin: 0 auto 32px;
}

.sb-page .sb-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sb-navy);
}

.sb-page .sb-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sb-page .sb-meta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    border: 1px solid #c9ced6;
    object-fit: cover;
    display: block;
}

.sb-page .sb-meta-sep {
    width: 1px;
    height: 26px;
    background: var(--sb-navy);
    margin: 0 2px;
}

.sb-page .sb-meta-date time {
    margin-left: 8px;
}

.sb-page .sb-meta-read {
    margin-left: 20px;
}

/* decorative diamonds */

.sb-page .sb-diamond {
    position: absolute;
    border-style: solid;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
    animation: float-box 3s ease-in-out infinite;
}

.sb-page .sb-diamond--hero {
    width: 44px;
    height: 44px;
    border-width: 5px;
    border-color: #0084FF;
    border-radius: 9px;
    top: 330px;
    left: max(16px, calc(50% - 828px));
}

.sb-page .sb-diamond--related {
    width: 46px;
    height: 46px;
    border-width: 5px;
    border-color: #F5A623;
    border-radius: 9px;
    top: 34%;
    right: max(16px, calc(50% - 860px));
    animation-delay: 0.5s;
}

/* ===================== FEATURED IMAGE ===================== */

.sb-page .sb-feature {
    padding-top: 50px;
}

.sb-page .sb-feature-media {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #eef2f6;
}

.sb-page .sb-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================== 3-COLUMN BODY ===================== */

.sb-page .sb-body {
    padding: 60px 0 0;
    background: #ffffff;
}

.sb-page .sb-layout {
    display: grid;
    grid-template-columns: minmax(0, 300fr) minmax(0, 700fr) minmax(0, 382fr);
    column-gap: 25px;
    align-items: start;
}

/* ---- Table of content (sticky) ---- */

.sb-page .sb-toc {
    align-self: stretch;
}

.sb-page .sb-toc-box {
    position: sticky;
    top: 30px;
    background: #FBFBFB;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(16, 16, 16, 0.05);
    padding: 30px;
}

.sb-page .sb-toc-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 61px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #EFEFEF;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
    text-align: center;
    margin-bottom: 16px;
}

.sb-page .sb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-page .sb-toc-list li {
    margin: 0 0 13px;
}

.sb-page .sb-toc-list li:last-child {
    margin-bottom: 0;
}

.sb-page .sb-toc-list a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    color: #C3C3C3;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sb-page .sb-toc-list a.active {
    color: #000000;
    font-weight: 600;
}

.sb-page .sb-toc-list a:hover {
    color: var(--primary-color, #1A4DA1);
}

/* hide the empty card when the post has no headings */
.sb-page .sb-toc-box:has(.sb-toc-list:empty) {
    display: none;
}

/* ---- Article body ---- */

.sb-page .sb-article {
    min-width: 0;
}

.sb-page .sb-content {
    font-size: 22px;
    line-height: 33px;
    color: var(--sb-text);
    overflow-wrap: break-word;
}

.sb-page .sb-content p,
.sb-page .sb-content ul,
.sb-page .sb-content ol,
.sb-page .sb-content blockquote,
.sb-page .sb-content figure,
.sb-page .sb-content table {
    font-size: 22px;
    line-height: 33px;
    color: var(--sb-text);
    margin: 0 0 33px;
}

.sb-page .sb-content ul,
.sb-page .sb-content ol {
    padding-left: 1.3em;
}

.sb-page .sb-content li {
    margin-bottom: 6px;
}

.sb-page .sb-content > *:first-child,
.sb-page .sb-content > div:first-child > *:first-child {
    margin-top: 0;
}

.sb-page .sb-content h1,
.sb-page .sb-content h2,
.sb-page .sb-content h3,
.sb-page .sb-content h4,
.sb-page .sb-content h5,
.sb-page .sb-content h6 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sb-text);
    margin: 0 0 33px;
    padding: 0;
}

.sb-page .sb-content h2.sb-body-heading,
.sb-page .sb-content h3.sb-body-heading {
    scroll-margin-top: 100px;
}

.sb-page .sb-content h5,
.sb-page .sb-content h6 {
    font-size: 18px;
}

.sb-page .sb-content a {
    color: var(--primary-color, #1A4DA1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sb-page .sb-content strong,
.sb-page .sb-content b {
    font-weight: 700;
}

.sb-page .sb-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.sb-page .sb-content > :last-child,
.sb-page .sb-content > div:last-child > :last-child {
    margin-bottom: 0;
}

/* ---- Share row ---- */

.sb-page .sb-post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #D6DADD;
    margin-top: 28px;
    padding-top: 20px;
}

.sb-page .sb-post-share h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--sb-slate);
    margin: 0;
}

.sb-page .sb-share-links {
    display: flex;
    align-items: center;
    gap: 19px;
}

.sb-page .sb-share-link {
    display: inline-flex;
    color: #000000;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.sb-page .sb-share-link:hover {
    color: var(--primary-color, #1A4DA1);
    transform: translateY(-2px);
}

/* ---- Sidebar: popular posts ---- */

.sb-page .sb-sidebar {
    min-width: 0;
}

.sb-page .sb-recent h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--sb-slate);
    margin: 0 0 16px;
}

.sb-page .sb-recent-list {
    display: flex;
    flex-direction: column;
}

.sb-page .sb-recent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #DDDDDD;
    text-decoration: none;
}

.sb-page .sb-recent-item:first-child {
    padding-top: 0;
}

.sb-page .sb-recent-item:last-child {
    border-bottom: 0;
}

.sb-page .sb-recent-thumb-wrap {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    background: #eef2f6;
}

.sb-page .sb-recent-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sb-page .sb-recent-item:hover .sb-recent-thumb {
    transform: scale(1.06);
}

.sb-page .sb-recent-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.sb-page .sb-recent-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--sb-slate);
}

.sb-page .sb-recent-info strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #142B4B;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.sb-page .sb-recent-item:hover strong {
    color: var(--primary-color, #1A4DA1);
}

/* ---- Sidebar: author card ---- */

.sb-page .sb-author-card {
    border: 1px solid #D7D9E5;
    border-radius: 16px;
    padding: 26px 30px 28px;
    text-align: center;
    margin-top: 38px;
    background: #ffffff;
}

.sb-page .sb-author-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #CCDCF5;
    background: #ffffff;
}

.sb-page .sb-author-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.sb-page .sb-author-card h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #171A21;
    margin: 0 0 12px;
}

.sb-page .sb-author-role {
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #1359EC;
    margin-bottom: 14px;
}

.sb-page .sb-author-card p {
    font-size: 14px;
    line-height: 23px;
    color: #424652;
    margin: 0 0 12px;
}

.sb-page .sb-author-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.sb-page .sb-author-social {
    display: inline-flex;
    color: #424554;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sb-page .sb-author-social:hover {
    color: var(--primary-color, #1A4DA1);
}

/* ===================== READY TO SCALE BANNER ===================== */

.sb-page .sb-scale {
    padding: 60px 0 0;
}

.sb-page .sb-scale-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 49px;
    min-height: 208px;
    padding: 30px 48px;
    border-radius: 24px;
    background: var(--primary-color, #1A4DA1);
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

/* faint ring behind the icon (Figma) */
.sb-page .sb-scale-inner::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 10px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.sb-page .sb-scale-icon {
    position: relative;
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #1A4DA1);
    font-size: 44px;
    overflow: hidden;
}

/* The CMS icon (Icon-Frame-Left.png) already contains the white circle +
   shadow: its circle spans 336/408px of the image, offset 36px/6px. Size it so
   that circle fills the 110px slot. */
.sb-page .sb-scale-icon--img {
    background: transparent;
    overflow: visible;
}

.sb-page .sb-scale-icon img {
    position: absolute;
    width: 122%;
    max-width: none;
    height: auto;
    left: -10.6%;
    top: -1.8%;
}

.sb-page .sb-scale-text {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.sb-page .sb-scale-text h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 12px;
}

.sb-page .sb-scale-text p {
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 530px;
    margin: 0;
}

.sb-page .sb-scale-btns {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.sb-page .sb-scale-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sb-page .sb-scale-btn--light {
    background: #ffffff;
    color: #004694;
    border: 1px solid #ffffff;
}

.sb-page .sb-scale-btn--light:hover {
    color: #004694;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sb-page .sb-scale-btn--outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.sb-page .sb-scale-btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* ===================== RELATED ARTICLES ===================== */

.sb-page .sb-related {
    position: relative;
    padding: 50px 0 80px;
}

.sb-page .sb-related-title {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.3;
    color: #40516B;
    margin: 0 0 56px;
}

.sb-page .sb-related-list {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.sb-page .sb-related-item {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    text-decoration: none;
}

.sb-page .sb-related-img {
    flex: 0 0 326px;
    width: 326px;
    aspect-ratio: 326 / 245;
    overflow: hidden;
    background: #eef2f6;
}

.sb-page .sb-related-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sb-page .sb-related-item:hover .sb-related-img-el {
    transform: scale(1.05);
}

.sb-page .sb-related-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 520px;
    padding-top: 40px;
}

.sb-page .sb-related-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--sb-slate);
    margin-bottom: 20px;
}

.sb-page .sb-related-dot {
    font-size: 11px;
}

.sb-page .sb-related-item-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #242C2F;
    margin-bottom: 18px;
    transition: color 0.25s ease;
}

.sb-page .sb-related-item:hover .sb-related-item-title {
    color: var(--primary-color, #1A4DA1);
}

.sb-page .sb-related-desc {
    font-size: 15px;
    line-height: 24px;
    color: #162A4B;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1199px) {
    .sb-page .sb-layout {
        grid-template-columns: minmax(0, 240fr) minmax(0, 700fr) minmax(0, 340fr);
    }

    .sb-page .sb-toc-box {
        padding: 22px;
    }

    .sb-page .sb-scale-inner {
        flex-wrap: wrap;
        gap: 28px 36px;
    }

    .sb-page .sb-scale-text {
        flex: 1 1 calc(100% - 160px);
    }

    .sb-page .sb-scale-btns {
        margin-left: 146px;
    }
}

@media (max-width: 991px) {
    .sb-page .sb-hero {
        padding: 30px 0 70px;
    }

    .sb-page .sb-title {
        font-size: 34px;
    }

    .sb-page .sb-diamond--hero {
        top: auto;
        bottom: 30px;
        width: 32px;
        height: 32px;
        border-width: 4px;
    }

    .sb-page .sb-layout {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .sb-page .sb-toc {
        align-self: auto;
    }

    .sb-page .sb-toc-box {
        position: static;
    }

    .sb-page .sb-toc:has(.sb-toc-list:empty) {
        display: none;
    }

    .sb-page .sb-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .sb-page .sb-author-card {
        margin-top: 0;
    }

    .sb-page .sb-related-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .sb-page .sb-related-img {
        flex-basis: 260px;
        width: 260px;
    }

    .sb-page .sb-related-body {
        padding-top: 16px;
    }
}

@media (max-width: 767px) {
    .sb-page .sb-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .sb-page .sb-scale-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 20px;
    }

    .sb-page .sb-scale-icon {
        flex-basis: auto;
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .sb-page .sb-scale-text {
        flex-basis: auto;
    }

    .sb-page .sb-scale-btns {
        margin-left: 0;
    }

    .sb-page .sb-related-item {
        flex-direction: column;
        gap: 18px;
    }

    .sb-page .sb-related-img {
        flex-basis: auto;
        width: 100%;
    }

    .sb-page .sb-related-body {
        padding-top: 0;
        max-width: none;
    }

    .sb-page .sb-diamond--related,
    .sb-page .sb-diamond--hero {
        display: none;
    }
}

@media (max-width: 575px) {
    .sb-page .sb-tag {
        margin-bottom: 24px;
    }

    .sb-page .sb-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .sb-page .sb-meta {
        font-size: 14px;
        gap: 10px 14px;
    }

    .sb-page .sb-meta-sep {
        display: none;
    }

    .sb-page .sb-meta-author {
        flex-basis: 100%;
        justify-content: center;
    }

    .sb-page .sb-meta-read {
        margin-left: 0;
    }

    .sb-page .sb-feature {
        padding-top: 32px;
    }

    .sb-page .sb-feature-media {
        border-radius: 12px;
        aspect-ratio: 16 / 10;
    }

    .sb-page .sb-body {
        padding-top: 40px;
    }

    .sb-page .sb-content,
    .sb-page .sb-content p,
    .sb-page .sb-content ul,
    .sb-page .sb-content ol {
        font-size: 17px;
        line-height: 28px;
    }

    .sb-page .sb-content p,
    .sb-page .sb-content ul,
    .sb-page .sb-content ol,
    .sb-page .sb-content h1,
    .sb-page .sb-content h2,
    .sb-page .sb-content h3,
    .sb-page .sb-content h4 {
        margin-bottom: 24px;
    }

    .sb-page .sb-content h1,
    .sb-page .sb-content h2,
    .sb-page .sb-content h3,
    .sb-page .sb-content h4 {
        font-size: 18px;
    }

    .sb-page .sb-scale {
        padding-top: 48px;
    }

    .sb-page .sb-scale-btns {
        width: 100%;
    }

    .sb-page .sb-scale-btn {
        flex: 1 1 auto;
        padding: 0 20px;
    }

    .sb-page .sb-related-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .sb-page .sb-related-meta {
        margin-bottom: 12px;
    }

    .sb-page .sb-related-item-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .sb-page .sb-related-desc {
        font-size: 15px;
    }
}
