.cbc-post-detail {
    min-height: 100vh;
    background: #fff;
    color: #06477c;
    font-family: "CBC Josefin Sans", "Josefin Sans", Arial, sans-serif;
}

.cbc-post-detail__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(420px, 54vw, 620px);
    overflow: hidden;
    background-image: var(--cbc-detail-hero);
    background-position: center;
    background-size: cover;
}

.cbc-post-detail__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 34, 45, .54);
}

.cbc-post-detail__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 25, 36, .16) 0%, rgba(4, 35, 48, .24) 52%, rgba(4, 35, 48, .34) 100%);
}

.cbc-post-detail__hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 -18px;
    color: #fff;
    font-size: clamp(90px, 18vw, 210px);
    font-weight: 800;
    line-height: .75;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cbc-post-detail__filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 8px;
    width: min(780px, calc(100% - 48px));
    margin: 76px auto 88px;
}

.cbc-post-detail__filter-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    border: 1px solid #06477c;
    color: #06477c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
}

.cbc-post-detail__filter-item.is-active {
    border-color: #58bee1;
    background: #58bee1;
}

.cbc-post-detail__filter-item:not(.is-active):hover,
.cbc-post-detail__filter-item:not(.is-active):focus {
    border-color: #e6302e;
    color: #e6302e;
}

.cbc-post-detail__filter-item.is-muted {
    border-color: #9fa3a7;
    color: #9fa3a7;
}

.cbc-post-detail__article {
    position: relative;
    width: min(1038px, calc(100% - 72px));
    margin: 0 auto 96px;
}

.cbc-post-detail__article::before {
    content: "";
    position: absolute;
    top: 134px;
    left: -36px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(88, 190, 225, .18);
    pointer-events: none;
}

.cbc-post-detail__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 40%);
    column-gap: 48px;
    align-items: end;
    margin-bottom: 34px;
}

.cbc-post-detail__back {
    grid-column: 1 / -1;
    width: max-content;
    margin-bottom: 46px;
    color: #06477c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.cbc-post-detail__back::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    margin-right: 12px;
    vertical-align: middle;
    background: currentColor;
}

.cbc-post-detail__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #06477c;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.cbc-post-detail__meta span + span::before,
.cbc-post-detail__card-meta span + span::before {
    content: "|";
    margin-right: 8px;
}

.cbc-post-detail__meta sup,
.cbc-post-detail__card-meta sup {
    font-size: .65em;
    line-height: 0;
}

.cbc-post-detail__header h2 {
    grid-column: 1 / -1;
    max-width: 860px;
    margin: 13px 0 0;
    color: #06477c;
    font-size: clamp(42px, 6vw, 84px);
    font-weight: 800;
    line-height: .92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cbc-post-detail__image {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 0 56px auto;
    background: #d6dee4;
}

.cbc-post-detail__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1.58;
    object-fit: cover;
}

.cbc-post-detail__content {
    width: min(760px, 100%);
    margin: 0 auto;
    color: #173f5f;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.78;
}

.cbc-post-detail__content h1,
.cbc-post-detail__content h2,
.cbc-post-detail__content h3 {
    color: #06477c;
    font-family: "CBC Josefin Sans", "Josefin Sans", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cbc-post-detail__content img {
    max-width: 100%;
    height: auto;
}

.cbc-post-detail__related {
    width: min(1038px, calc(100% - 72px));
    margin: 0 auto 92px;
}

.cbc-post-detail__related h2 {
    margin: 0 0 34px;
    color: #06477c;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    line-height: .95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cbc-post-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 58px 34px;
}

.cbc-post-detail__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cbc-post-detail__card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1.58;
    background: #d6dee4;
}

.cbc-post-detail__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.cbc-post-detail__card:hover .cbc-post-detail__card-image img {
    transform: scale(1.035);
}

.cbc-post-detail__card-body {
    padding: 10px 0 0;
}

.cbc-post-detail__card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
    color: #06477c;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
}

.cbc-post-detail__card h3 {
    max-width: 245px;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: .92;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cbc-post-detail__card h3 a {
    color: #06477c;
    text-decoration: none;
}

.cbc-post-detail__card--featured .cbc-post-detail__card-body {
    position: relative;
    min-height: 64px;
    margin-top: -1px;
    padding: 15px 12px 13px 57px;
    background: #06477c;
}

.cbc-post-detail__card--featured .cbc-post-detail__card-body::before,
.cbc-post-detail__card--featured .cbc-post-detail__card-body::after {
    content: "";
    position: absolute;
    left: 17px;
    background: #fff;
}

.cbc-post-detail__card--featured .cbc-post-detail__card-body::before {
    top: 33px;
    width: 23px;
    height: 1px;
}

.cbc-post-detail__card--featured .cbc-post-detail__card-body::after {
    top: 22px;
    width: 1px;
    height: 23px;
    transform: rotate(-45deg);
    transform-origin: bottom center;
}

.cbc-post-detail__card--featured .cbc-post-detail__card-meta,
.cbc-post-detail__card--featured h3 a {
    color: #fff;
}

@media (max-width: 1199px) {
    .cbc-post-detail__related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .cbc-post-detail__filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 58px auto 64px;
    }

    .cbc-post-detail__header {
        grid-template-columns: 1fr;
    }

    .cbc-post-detail__image {
        margin-left: 0;
    }

    .cbc-post-detail__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 24px;
    }
}

@media (max-width: 575px) {
    .cbc-post-detail__hero {
        min-height: 420px;
    }

    .cbc-post-detail__hero h1 {
        margin-bottom: -10px;
        font-size: 86px;
    }

    .cbc-post-detail__filter {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        margin: 42px auto 42px;
    }

    .cbc-post-detail__article,
    .cbc-post-detail__related {
        width: calc(100% - 32px);
    }

    .cbc-post-detail__article::before {
        display: none;
    }

    .cbc-post-detail__header h2 {
        font-size: 42px;
    }

    .cbc-post-detail__related-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cbc-post-detail__card h3 {
        max-width: none;
    }
}
