/* ==================================================
   SINGLE BLOG GLOBAL SETTINGS
================================================== */

.cpw-single-blog {
    --cpw-blog-navy: #07394b;
    --cpw-blog-deep: #066f74;
    --cpw-blog-teal: #079b9b;
    --cpw-blog-aqua: #43d4cf;
    --cpw-blog-mint: #eaf8f7;
    --cpw-blog-gold: #d5a52b;
    --cpw-blog-text: #294f5c;
    --cpw-blog-muted: #668089;
    --cpw-blog-line: #d7e8e7;
    --cpw-blog-white: #ffffff;

    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    color: var(--cpw-blog-text);
    font-family: Arial, sans-serif;
}

.cpw-single-blog,
.cpw-single-blog * {
    box-sizing: border-box;
}

.cpw-single-blog img {
    max-width: 100%;
}

.cpw-single-blog-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* ==================================================
   SINGLE BLOG HERO
================================================== */

.cpw-single-blog-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 22px 0 0;
    background:
        radial-gradient(
            circle at 88% 12%,
            rgba(67, 212, 207, 0.21),
            transparent 29%
        ),
        linear-gradient(
            180deg,
            #f0fbfa 0%,
            #ffffff 100%
        );
}

.cpw-single-blog-hero::before {
    position: absolute;
    top: 100px;
    left: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(7, 155, 155, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}


/* Breadcrumb */

.cpw-single-blog-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    overflow: hidden;
    color: #70878e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpw-single-blog-breadcrumb a {
    flex: 0 0 auto;
    color: var(--cpw-blog-deep);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpw-single-blog-breadcrumb a:hover,
.cpw-single-blog-breadcrumb a:focus {
    color: var(--cpw-blog-teal);
}

.cpw-single-blog-breadcrumb span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--cpw-blog-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Centred hero content */

.cpw-single-blog-hero__content {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin-inline: auto;
    padding: 48px 0 40px;
    text-align: center;
}


/* Category */

.cpw-single-blog-category {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: 1px solid rgba(7, 155, 155, 0.15);
    border-radius: 999px;
    background: #d8f5f2;
    color: #007b7d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.cpw-single-blog-category:hover,
.cpw-single-blog-category:focus {
    border-color: var(--cpw-blog-teal);
    background: var(--cpw-blog-teal);
    color: #ffffff;
}


/* H1 */

.cpw-single-blog-title {
    max-width: 900px;
    margin: 15px auto 0;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}


/* Hero description */

.cpw-single-blog-excerpt {
    max-width: 800px;
    margin: 20px auto 0;
    color: #4d6973;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    text-wrap: balance;
}


/* Post meta */

.cpw-single-blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 19px;
    color: #6a8088;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.cpw-single-blog-meta > * {
    position: relative;
}

.cpw-single-blog-meta > *:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #9bb0b5;
    content: "";
    transform: translateY(-50%);
}


/* Small author in hero */

.cpw-single-blog-author-mini {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 23px;
    padding: 7px 14px 7px 7px;
    border: 1px solid #d4e8e6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 20px rgba(5, 57, 72, 0.06);
    text-align: left;
}

.cpw-single-blog-author-mini img {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--cpw-blog-mint);
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(5, 57, 72, 0.12);
}

.cpw-single-blog-author-mini div {
    min-width: 0;
}

.cpw-single-blog-author-mini span,
.cpw-single-blog-author-mini strong,
.cpw-single-blog-author-mini small {
    display: block;
}

.cpw-single-blog-author-mini span {
    margin-bottom: 1px;
    color: #72868d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.cpw-single-blog-author-mini strong {
    color: var(--cpw-blog-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-single-blog-author-mini small {
    margin-top: 1px;
    color: var(--cpw-blog-teal);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}


/* Featured image */

.cpw-single-blog-cover {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(390px, 46vw, 535px);
    margin: 0;
    overflow: hidden;
    border: 1px solid #cee4e2;
    border-radius: 30px 30px 0 0;
    background: #e9f5f4;
    box-shadow: 0 25px 60px rgba(4, 57, 72, 0.14);
}

.cpw-single-blog-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5fbfa;
}


/* Keyboard accessibility */

.cpw-single-blog-hero a:focus-visible {
    outline: 3px solid rgba(213, 165, 43, 0.55);
    outline-offset: 3px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {
    .cpw-single-blog-container {
        width: min(100% - 32px, 1180px);
    }

    .cpw-single-blog-hero__content {
        padding: 42px 0 34px;
    }

    .cpw-single-blog-title {
        font-size: clamp(38px, 6.5vw, 52px);
        letter-spacing: -0.035em;
    }

    .cpw-single-blog-excerpt {
        font-size: 17px;
    }

    .cpw-single-blog-cover {
        height: 410px;
        border-radius: 24px 24px 0 0;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 620px) {
    .cpw-single-blog-container {
        width: min(100% - 24px, 1180px);
    }

    .cpw-single-blog-hero {
        padding-top: 16px;
    }

    .cpw-single-blog-breadcrumb {
        gap: 7px;
        font-size: 12px;
    }

    .cpw-single-blog-hero__content {
        padding: 31px 0 29px;
    }

    .cpw-single-blog-title {
        margin-top: 13px;
        font-size: clamp(34px, 10vw, 40px);
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .cpw-single-blog-excerpt {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.65;
    }

    .cpw-single-blog-meta {
        align-items: center;
        flex-direction: column;
        gap: 5px;
        margin-top: 17px;
    }

    .cpw-single-blog-meta > *::after {
        display: none;
    }

    .cpw-single-blog-author-mini {
        max-width: 100%;
        margin-top: 19px;
    }

    .cpw-single-blog-author-mini strong,
    .cpw-single-blog-author-mini small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cpw-single-blog-cover {
        height: 285px;
        border-radius: 20px 20px 0 0;
    }
}


/* Very small screens */

@media (max-width: 390px) {
    .cpw-single-blog-title {
        font-size: 32px;
    }

    .cpw-single-blog-cover {
        height: 245px;
    }
}

/* ==================================================
   ARTICLE CONTENT LAYOUT
================================================== */

.cpw-single-blog-article-section {
    width: 100%;
    padding: 58px 0 82px;
    background: #ffffff;
}

.cpw-single-blog-article-layout {
    display: grid;
    grid-template-columns:
        minmax(210px, 245px)
        minmax(0, 720px)
        minmax(210px, 250px);
    align-items: start;
    justify-content: center;
    gap: 30px;
}


/* ==================================================
   TABLE OF CONTENTS
================================================== */

.cpw-single-blog-toc {
    position: sticky;
    top: 24px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--cpw-blog-line);
    border-radius: 15px;
    background: #f7fbfb;
    box-shadow: 0 9px 26px rgba(6, 57, 72, 0.05);
}

.cpw-single-blog-toc h2 {
    margin: 18px 0 12px;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-single-blog-toc__progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--cpw-blog-muted);
    font-size: 11px;
    font-weight: 600;
}

.cpw-single-blog-toc__progress-label strong {
    color: var(--cpw-blog-deep);
    font-size: 11px;
    font-weight: 700;
}

.cpw-single-blog-toc__progress-bar {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e9e7;
}

.cpw-single-blog-toc__progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--cpw-blog-deep),
            var(--cpw-blog-aqua)
        );
    transition: width 0.12s linear;
}

.cpw-single-blog-toc__list {
    display: grid;
    gap: 3px;
}

.cpw-single-blog-toc__list a {
    display: block;
    padding: 8px 9px;
    border-left: 2px solid transparent;
    border-radius: 0 7px 7px 0;
    color: #536f78;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.cpw-single-blog-toc__list a:hover,
.cpw-single-blog-toc__list a:focus,
.cpw-single-blog-toc__list a.is-active {
    border-left-color: var(--cpw-blog-teal);
    background: #e8f7f5;
    color: var(--cpw-blog-deep);
}

.cpw-single-blog-toc__list a[data-heading-level="3"] {
    padding-left: 18px;
    font-size: 12px;
}

.cpw-single-blog-toc__empty {
    margin: 0;
    color: var(--cpw-blog-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ==================================================
   WORDPRESS ARTICLE CONTENT
================================================== */

.cpw-single-blog-content {
    min-width: 0;
    color: var(--cpw-blog-text);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.cpw-single-blog-content > *:first-child {
    margin-top: 0;
}

.cpw-single-blog-content h2,
.cpw-single-blog-content h3,
.cpw-single-blog-content h4 {
    scroll-margin-top: 35px;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.cpw-single-blog-content h2 {
    margin: 43px 0 14px;
    font-size: clamp(26px, 3vw, 31px);
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.cpw-single-blog-content h3 {
    margin: 29px 0 11px;
    font-size: 21px;
    line-height: 1.32;
}

.cpw-single-blog-content h4 {
    margin: 24px 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.cpw-single-blog-content p {
    margin: 0 0 19px;
    color: #405f6a;
}

.cpw-single-blog-content a {
    color: var(--cpw-blog-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cpw-single-blog-content a:hover,
.cpw-single-blog-content a:focus {
    color: var(--cpw-blog-teal);
}

.cpw-single-blog-content ul,
.cpw-single-blog-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.cpw-single-blog-content li {
    margin: 7px 0;
    color: #405f6a;
}

.cpw-single-blog-content li::marker {
    color: var(--cpw-blog-teal);
    font-weight: 700;
}


/* Article images */

.cpw-single-blog-content figure,
.cpw-single-blog-content .wp-block-image {
    width: 100%;
    margin: 31px 0;
}

.cpw-single-blog-content figure img,
.cpw-single-blog-content .wp-block-image img,
.cpw-single-blog-content > img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 650px;
    margin-inline: auto;
    border: 1px solid var(--cpw-blog-line);
    border-radius: 16px;
    background: #f3f9f8;
    object-fit: contain;
}

.cpw-single-blog-content figcaption,
.cpw-single-blog-content
.wp-element-caption {
    margin: 0;
    padding: 9px 13px;
    color: var(--cpw-blog-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* Quotes */

.cpw-single-blog-content blockquote,
.cpw-single-blog-content
.wp-block-quote {
    margin: 29px 0;
    padding: 21px 23px;
    border: 0;
    border-left: 4px solid var(--cpw-blog-teal);
    border-radius: 0 13px 13px 0;
    background: var(--cpw-blog-mint);
    color: #245361;
}

.cpw-single-blog-content blockquote p {
    margin: 0;
    color: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}


/* Tables */

.cpw-single-blog-content
.wp-block-table {
    width: 100%;
    margin: 28px 0;
    overflow-x: auto;
}

.cpw-single-blog-content table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.cpw-single-blog-content th,
.cpw-single-blog-content td {
    padding: 12px 14px;
    border: 1px solid var(--cpw-blog-line);
    color: #405f6a;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.cpw-single-blog-content th {
    background: #eaf8f7;
    color: var(--cpw-blog-navy);
    font-weight: 700;
}


/* WordPress buttons */

.cpw-single-blog-content
.wp-block-button__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 9px;
    background: var(--cpw-blog-teal);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}


/* Embedded media */

.cpw-single-blog-content iframe,
.cpw-single-blog-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    border: 0;
    border-radius: 14px;
}


/* Multi-page article links */

.cpw-single-blog-page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--cpw-blog-line);
}

.cpw-single-blog-page-links span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    place-items: center;
    border-radius: 8px;
    background: var(--cpw-blog-mint);
    color: var(--cpw-blog-deep);
}


/* ==================================================
   RIGHT GUIDANCE CARD
================================================== */

.cpw-single-blog-guidance {
    position: sticky;
    top: 24px;
}

.cpw-single-blog-guidance__card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(67, 212, 207, 0.22),
            transparent 40%
        ),
        var(--cpw-blog-navy);
    color: #ffffff;
    box-shadow: 0 13px 30px rgba(5, 57, 72, 0.14);
}

.cpw-single-blog-guidance__icon {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cpw-blog-aqua);
}

.cpw-single-blog-guidance__icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.cpw-single-blog-guidance h2 {
    margin: 0 0 9px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-single-blog-guidance p {
    margin: 0 0 17px;
    color: #c9dadd;
    font-size: 13px;
    line-height: 1.6;
}

.cpw-single-blog-guidance a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--cpw-blog-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.cpw-single-blog-guidance a:hover,
.cpw-single-blog-guidance a:focus {
    color: var(--cpw-blog-teal);
    transform: translateY(-2px);
}


/* ==================================================
   ARTICLE TABLET
================================================== */

@media (max-width: 1080px) {
    .cpw-single-blog-article-layout {
        grid-template-columns:
            minmax(195px, 220px)
            minmax(0, 1fr);
        gap: 27px;
    }

    .cpw-single-blog-guidance {
        position: static;
        grid-column: 1 / -1;
    }

    .cpw-single-blog-guidance__card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 17px;
    }

    .cpw-single-blog-guidance__icon {
        margin: 0;
    }

    .cpw-single-blog-guidance h2 {
        margin-bottom: 4px;
    }

    .cpw-single-blog-guidance p {
        margin: 0;
    }

    .cpw-single-blog-guidance a {
        min-width: 170px;
    }
}


/* ==================================================
   ARTICLE MOBILE
================================================== */

@media (max-width: 760px) {
    .cpw-single-blog-article-section {
        padding: 40px 0 58px;
    }

    .cpw-single-blog-article-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cpw-single-blog-toc {
        position: static;
    }

    .cpw-single-blog-toc__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-single-blog-content {
        font-size: 15px;
        line-height: 1.72;
    }

    .cpw-single-blog-content h2 {
        margin-top: 36px;
        font-size: 26px;
    }

    .cpw-single-blog-content h3 {
        font-size: 20px;
    }

    .cpw-single-blog-guidance__card {
        grid-template-columns: 1fr;
    }

    .cpw-single-blog-guidance__icon {
        margin-bottom: 2px;
    }

    .cpw-single-blog-guidance a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cpw-single-blog-toc {
        padding: 17px;
    }

    .cpw-single-blog-toc__list {
        grid-template-columns: 1fr;
    }

    .cpw-single-blog-content h2 {
        font-size: 24px;
    }

    .cpw-single-blog-content h3 {
        font-size: 19px;
    }

    .cpw-single-blog-content blockquote,
    .cpw-single-blog-content
    .wp-block-quote {
        padding: 18px;
    }
}

/* ==================================================
   DYNAMIC BLOG FAQ
   Generated by existing WordPress FAQ fields
================================================== */

.cpw-single-blog-content
.cpw-content-faqs {
    width: 100%;
    margin-top: 45px;
    padding-top: 37px;
    border-top: 1px solid var(--cpw-blog-line);
}

.cpw-single-blog-content
.cpw-content-faqs__header {
    margin-bottom: 20px;
}

.cpw-single-blog-content
.cpw-content-faqs__label {
    position: relative;
    margin: 0 0 7px;
    padding-left: 34px;
    color: var(--cpw-blog-deep);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cpw-single-blog-content
.cpw-content-faqs__label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--cpw-blog-gold);
    content: "";
    transform: translateY(-50%);
}

.cpw-single-blog-content
.cpw-content-faqs__header h2 {
    margin: 0;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(25px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cpw-single-blog-content
.cpw-content-faqs__list {
    display: grid;
    gap: 10px;
}

.cpw-single-blog-content
.cpw-content-faqs__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--cpw-blog-line);
    border-radius: 11px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-single-blog-content
.cpw-content-faqs__item:hover {
    border-color: rgba(7, 155, 155, 0.4);
}

.cpw-single-blog-content
.cpw-content-faqs__item[open] {
    border-color: rgba(7, 155, 155, 0.45);
    box-shadow: 0 8px 22px rgba(5, 57, 72, 0.06);
}

.cpw-single-blog-content
.cpw-content-faqs__item summary {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 17px;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.cpw-single-blog-content
.cpw-content-faqs__item summary::-webkit-details-marker {
    display: none;
}

.cpw-single-blog-content
.cpw-content-faqs__item summary::marker {
    display: none;
    content: "";
}

.cpw-single-blog-content
.cpw-content-faqs__toggle {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--cpw-blog-mint);
}

.cpw-single-blog-content
.cpw-content-faqs__toggle::before,
.cpw-single-blog-content
.cpw-content-faqs__toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: var(--cpw-blog-deep);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.cpw-single-blog-content
.cpw-content-faqs__toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.cpw-single-blog-content
.cpw-content-faqs__item[open]
.cpw-content-faqs__toggle::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}

.cpw-single-blog-content
.cpw-content-faqs__answer {
    padding: 0 17px 17px;
    color: #506c76;
}

.cpw-single-blog-content
.cpw-content-faqs__answer p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

.cpw-single-blog-content
.cpw-content-faqs__answer p + p {
    margin-top: 10px;
}

.cpw-single-blog-content
.cpw-content-faqs__answer a {
    color: var(--cpw-blog-deep);
    font-weight: 600;
}


/* ==================================================
   DYNAMIC AUTHOR BIO
   Must appear after Dynamic FAQs
================================================== */

.cpw-single-blog-author-bio {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: 42px;
    padding: 24px;
    border: 1px solid #cde5e3;
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(67, 212, 207, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f0faf9,
            #ffffff
        );
    box-shadow: 0 10px 27px rgba(5, 57, 72, 0.055);
}

.cpw-single-blog-author-bio__image {
    width: 86px;
    height: 86px;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            var(--cpw-blog-aqua),
            var(--cpw-blog-deep)
        );
    box-shadow: 0 7px 18px rgba(5, 57, 72, 0.14);
}

.cpw-single-blog-author-bio__image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
}

.cpw-single-blog-author-bio__content {
    min-width: 0;
}

.cpw-single-blog-author-bio__label {
    margin: 0 0 4px;
    color: var(--cpw-blog-deep);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cpw-single-blog-author-bio h2 {
    margin: 0 0 3px;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cpw-single-blog-author-bio__role {
    margin: 0 0 8px;
    color: var(--cpw-blog-teal);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.cpw-single-blog-author-bio__description {
    margin: 0;
    color: var(--cpw-blog-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.cpw-single-blog-author-bio__description p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.cpw-single-blog-author-bio__description p + p {
    margin-top: 8px;
}


/* ==================================================
   FAQ AND AUTHOR RESPONSIVE
================================================== */

@media (max-width: 620px) {
    .cpw-single-blog-content
    .cpw-content-faqs {
        margin-top: 36px;
        padding-top: 30px;
    }

    .cpw-single-blog-content
    .cpw-content-faqs__header h2 {
        font-size: 25px;
    }

    .cpw-single-blog-content
    .cpw-content-faqs__item summary {
        min-height: 54px;
        gap: 12px;
        padding: 13px 14px;
        font-size: 14px;
    }

    .cpw-single-blog-content
    .cpw-content-faqs__answer {
        padding: 0 14px 15px;
    }

    .cpw-single-blog-author-bio {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        margin-top: 34px;
        padding: 18px;
    }

    .cpw-single-blog-author-bio__image {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .cpw-single-blog-author-bio h2 {
        font-size: 18px;
    }

    .cpw-single-blog-author-bio__description {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .cpw-single-blog-author-bio {
        align-items: start;
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   DYNAMIC RELATED ARTICLES
================================================== */

.cpw-single-blog-related {
    width: 100%;
    padding: 68px 0 78px;
    background:
        linear-gradient(
            180deg,
            #edf8f7 0%,
            #f8fcfc 100%
        );
}

.cpw-single-blog-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.cpw-single-blog-related__label {
    position: relative;
    margin: 0 0 7px;
    padding-left: 35px;
    color: var(--cpw-blog-deep);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cpw-single-blog-related__label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--cpw-blog-gold);
    content: "";
    transform: translateY(-50%);
}

.cpw-single-blog-related__header h2 {
    margin: 0;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.cpw-single-blog-related__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--cpw-blog-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.cpw-single-blog-related__all span {
    transition: transform 0.2s ease;
}

.cpw-single-blog-related__all:hover,
.cpw-single-blog-related__all:focus {
    color: var(--cpw-blog-teal);
}

.cpw-single-blog-related__all:hover span,
.cpw-single-blog-related__all:focus span {
    transform: translateX(4px);
}


/* Cards grid */

.cpw-single-blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cpw-related-article-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--cpw-blog-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 9px 27px rgba(5, 57, 72, 0.06);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cpw-related-article-card:hover {
    border-color: rgba(7, 155, 155, 0.4);
    box-shadow: 0 16px 36px rgba(5, 57, 72, 0.11);
    transform: translateY(-4px);
}


/* Card image */

.cpw-related-article-card__image {
    display: block;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: #eaf6f5;
}

.cpw-related-article-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    background: #f4faf9;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.cpw-related-article-card:hover
.cpw-related-article-card__image img {
    transform: scale(1.025);
}

.cpw-related-article-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--cpw-blog-teal);
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(67, 212, 207, 0.22),
            transparent 35%
        ),
        #eaf7f6;
}

.cpw-related-article-card__placeholder svg {
    width: 52px;
    height: 52px;
    fill: currentColor;
}


/* Card body */

.cpw-related-article-card__body {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 20px;
}

.cpw-related-article-card__category {
    align-self: flex-start;
    margin-bottom: 8px;
    color: var(--cpw-blog-teal);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.cpw-related-article-card__category:hover,
.cpw-related-article-card__category:focus {
    color: var(--cpw-blog-deep);
}

.cpw-related-article-card h3 {
    margin: 0 0 10px;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.cpw-related-article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.cpw-related-article-card h3 a:hover,
.cpw-related-article-card h3 a:focus {
    color: var(--cpw-blog-teal);
}

.cpw-related-article-card__body > p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--cpw-blog-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* Card footer */

.cpw-related-article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e5eeee;
}

.cpw-related-article-card__footer time {
    color: #72868d;
    font-size: 11px;
    font-weight: 600;
}

.cpw-related-article-card__read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cpw-blog-deep);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cpw-related-article-card__read span {
    transition: transform 0.2s ease;
}

.cpw-related-article-card__read:hover,
.cpw-related-article-card__read:focus {
    color: var(--cpw-blog-teal);
}

.cpw-related-article-card__read:hover span,
.cpw-related-article-card__read:focus span {
    transform: translateX(3px);
}


/* Keyboard focus */

.cpw-single-blog-related a:focus-visible {
    outline: 3px solid rgba(213, 165, 43, 0.55);
    outline-offset: 3px;
}


/* ==================================================
   RELATED ARTICLES RESPONSIVE
================================================== */

@media (max-width: 900px) {
    .cpw-single-blog-related {
        padding: 58px 0 67px;
    }

    .cpw-single-blog-related__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .cpw-related-article-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 11px);
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 620px) {
    .cpw-single-blog-related {
        padding: 49px 0 57px;
    }

    .cpw-single-blog-related__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .cpw-single-blog-related__header h2 {
        font-size: 28px;
    }

    .cpw-single-blog-related__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cpw-related-article-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .cpw-related-article-card__image {
        height: 225px;
    }
}

@media (max-width: 390px) {
    .cpw-related-article-card__image {
        height: 200px;
    }

    .cpw-related-article-card__body {
        padding: 17px;
    }

    .cpw-related-article-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}