/* ==================================================
   Blog page foundation
================================================== */

.cpw-blog-page {
    --cpw-blog-navy: #07394b;
    --cpw-blog-deep: #087a7d;
    --cpw-blog-teal: #0ba7a5;
    --cpw-blog-aqua: #4bd9d6;
    --cpw-blog-gold: #d6a429;
    --cpw-blog-text: #173b47;
    --cpw-blog-muted: #5a727a;
    --cpw-blog-line: #d6e8e6;

    width: 100%;
    overflow: hidden;
    color: var(--cpw-blog-text);
    background: #ffffff;
    font-family: Arial, sans-serif;
}

.cpw-blog-page,
.cpw-blog-page * {
    box-sizing: border-box;
}

.cpw-blog-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ==================================================
   Blog hero
================================================== */

.cpw-blog-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 47px;
    background: linear-gradient(
        135deg,
        #f0fbfa 0%,
        #ffffff 51%,
        #e8f8f6 100%
    );
}

.cpw-blog-hero::before {
    position: absolute;
    top: -220px;
    right: -100px;
    width: 620px;
    height: 620px;
    background: radial-gradient(
        circle,
        rgba(54, 213, 209, 0.21),
        transparent 67%
    );
    content: "";
}

/* Breadcrumb */

.cpw-blog-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 21px;
    color: #607880;
    font-size: 13px;
    line-height: 1.5;
}

.cpw-blog-breadcrumb a {
    color: var(--cpw-blog-deep);
    font-weight: 700;
    text-decoration: none;
}

.cpw-blog-breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero grid */

.cpw-blog-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, 0.86fr)
        minmax(480px, 1.14fr);
    gap: 52px;
    align-items: center;
    padding-top: 24px;
}

/* Hero content */

.cpw-blog-hero__content {
    min-width: 0;
    padding: 30px 0;
}

.cpw-blog-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--cpw-blog-deep);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpw-blog-eyebrow::before {
    width: 26px;
    height: 2px;
    background: var(--cpw-blog-gold);
    content: "";
}

/* Corrected responsive H1 */

.cpw-blog-hero h1 {
    max-width: 610px;
    margin: 0;
    color: var(--cpw-blog-navy);
    font-family: Arial, sans-serif;
    font-size: clamp(40px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.032em;
    text-wrap: balance;
}

.cpw-blog-hero h1 span {
    display: block;
    color: var(--cpw-blog-teal);
}

.cpw-blog-hero__description {
    max-width: 570px;
    margin: 19px 0 27px;
    color: #496973;
    font-size: 17px;
    line-height: 1.7;
}

/* Topic cards */

.cpw-blog-hero__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.cpw-blog-hero__topic {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    color: var(--cpw-blog-deep);
    background: #ffffff;
    border: 1px solid #cee7e5;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(5, 57, 72, 0.05);
    font-size: 12px;
    font-weight: 700;
}

.cpw-blog-hero__topic svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: var(--cpw-blog-teal);
}

/* Hero image */

.cpw-blog-hero__visual {
    position: relative;
    min-width: 0;
    padding: 14px;
}

.cpw-blog-hero__image {
    overflow: hidden;
    min-height: 370px;
    background: #ffffff;
    border: 1px solid #cfe7e5;
    border-radius: 28px 28px 68px 28px;
    box-shadow: 0 23px 52px rgba(5, 57, 72, 0.13);
}

.cpw-blog-hero__image img {
    display: block;
    width: 100%;
    height: 370px;
    object-fit: contain;
    object-position: center;
}

.cpw-blog-hero__note {
    position: absolute;
    right: -5px;
    bottom: -6px;
    max-width: 225px;
    padding: 13px 16px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--cpw-blog-deep),
        var(--cpw-blog-teal)
    );
    border: 5px solid #f4fcfb;
    border-radius: 15px;
    box-shadow: 0 12px 27px rgba(5, 57, 72, 0.18);
}

.cpw-blog-hero__note strong,
.cpw-blog-hero__note span {
    display: block;
}

.cpw-blog-hero__note strong {
    font-size: 13px;
    line-height: 1.35;
}

.cpw-blog-hero__note span {
    margin-top: 2px;
    color: #d3eeee;
    font-size: 11px;
    line-height: 1.45;
}

/* ==================================================
   Landscape and smaller desktop
================================================== */

@media (max-width: 1180px) and (min-width: 901px) {
    .cpw-blog-hero__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
        gap: 28px;
    }

    .cpw-blog-hero h1 {
        font-size: clamp(40px, 4.25vw, 48px);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    .cpw-blog-hero__description {
        font-size: 16px;
    }

    .cpw-blog-hero__topics {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .cpw-blog-hero__topic:last-child {
        grid-column: 1 / -1;
        width: max-content;
        max-width: 100%;
    }
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 900px) {
    .cpw-blog-hero {
        padding-bottom: 42px;
    }

    .cpw-blog-hero__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cpw-blog-hero__content {
        padding-bottom: 8px;
    }

    .cpw-blog-hero h1 span {
        display: inline;
    }

    .cpw-blog-hero__visual {
        width: min(680px, 100%);
        margin: 0 auto;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 620px) {
    .cpw-blog-container {
        width: calc(100% - 24px);
    }

    .cpw-blog-hero {
        padding-bottom: 34px;
    }

    .cpw-blog-breadcrumb {
        padding-top: 17px;
        font-size: 12px;
    }

    .cpw-blog-hero__grid {
        gap: 12px;
        padding-top: 12px;
    }

    .cpw-blog-hero__content {
        padding: 23px 0 8px;
    }

    .cpw-blog-eyebrow {
        font-size: 10px;
    }

    .cpw-blog-hero h1 {
        font-size: 40px;
        line-height: 1.08;
    }

    .cpw-blog-hero__description {
        margin: 17px 0 22px;
        font-size: 16px;
    }

    .cpw-blog-hero__topics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cpw-blog-hero__topic {
        width: 100%;
    }

    .cpw-blog-hero__topic:last-child {
        grid-column: auto;
        width: 100%;
    }

    .cpw-blog-hero__visual {
        padding: 5px 0 24px;
    }

    .cpw-blog-hero__image {
        min-height: 245px;
        border-radius: 20px 20px 46px 20px;
    }

    .cpw-blog-hero__image img {
        height: 245px;
    }

    .cpw-blog-hero__note {
        right: 7px;
        bottom: 5px;
        max-width: 210px;
        padding: 10px 12px;
        border-width: 4px;
    }
}

@media (max-width: 390px) {
    .cpw-blog-hero h1 {
        font-size: 35px;
    }

    .cpw-blog-hero__image,
    .cpw-blog-hero__image img {
        min-height: 220px;
        height: 220px;
    }
}

/* ==================================================
   Dynamic Blog posts
================================================== */

.cpw-blog-content {
    width: 100%;
    padding: 68px 0 84px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7fbfb 100%
        );
}

/* Toolbar */

.cpw-blog-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.cpw-blog-toolbar__heading {
    min-width: 0;
}

.cpw-blog-toolbar__label {
    position: relative;
    margin: 0 0 8px;
    padding-left: 36px;
    color: #008d8d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cpw-blog-toolbar__label::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 25px;
    height: 2px;
    background: #d8a31a;
    content: "";
    transform: translateY(-50%);
}

.cpw-blog-toolbar__title {
    max-width: 650px;
    margin: 0;
    color: #07354a;
    font-family: Arial, sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.cpw-blog-toolbar__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

.cpw-blog-toolbar__count {
    margin: 0;
    color: #536c78;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.cpw-blog-sort {
    width: auto;
    min-width: 166px;
    height: 46px;
    margin: 0;
    padding: 0 40px 0 15px;
    border: 1px solid #c8dfe1;
    border-radius: 10px;
    outline: none;
    background-color: #ffffff;
    color: #123b4d;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-blog-sort:hover,
.cpw-blog-sort:focus {
    border-color: #079c9c;
    box-shadow: 0 0 0 3px rgba(7, 156, 156, 0.12);
}

/* Main two-column layout */

.cpw-blog-content__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(270px, 315px);
    align-items: start;
    gap: 30px;
}

.cpw-blog-content__main {
    min-width: 0;
}

/* Blog cards grid */

.cpw-blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    transition: opacity 0.2s ease;
}

.cpw-blog-post-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.cpw-blog-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d6e5e6;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(7, 53, 74, 0.06);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cpw-blog-card:hover {
    border-color: rgba(0, 158, 158, 0.45);
    box-shadow: 0 16px 38px rgba(7, 53, 74, 0.12);
    transform: translateY(-5px);
}

.cpw-blog-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 218px;
    overflow: hidden;
    background: #edf8f8;
}

.cpw-blog-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cpw-blog-card:hover .cpw-blog-card__image img {
    transform: scale(1.035);
}

.cpw-blog-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #0a9c9c;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(61, 211, 207, 0.28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #e6f7f6,
            #f8fcfc
        );
}

.cpw-blog-card__placeholder svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
}

.cpw-blog-card__category {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    min-height: 29px;
    align-items: center;
    max-width: calc(100% - 28px);
    padding: 6px 11px;
    overflow: hidden;
    border-radius: 999px;
    background: #079c9c;
    box-shadow: 0 5px 14px rgba(0, 77, 79, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpw-blog-card__body {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 20px;
}

.cpw-blog-card__title {
    margin: 0 0 11px;
    color: #07354a;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.015em;
}

.cpw-blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.cpw-blog-card__title a:hover,
.cpw-blog-card__title a:focus {
    color: #008f8f;
}

.cpw-blog-card__excerpt {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #526b77;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.cpw-blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e4eeee;
    color: #627984;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.cpw-blog-card__read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin-top: 16px;
    color: #008f8f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.cpw-blog-card__read-more span {
    transition: transform 0.2s ease;
}

.cpw-blog-card__read-more:hover,
.cpw-blog-card__read-more:focus {
    color: #006f72;
}

.cpw-blog-card__read-more:hover span,
.cpw-blog-card__read-more:focus span {
    transform: translateX(4px);
}

/* Empty results */

.cpw-blog-empty {
    padding: 50px 25px;
    border: 1px solid #d5e7e7;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 8px 25px rgba(7, 53, 74, 0.05);
}

.cpw-blog-empty[hidden] {
    display: none;
}

.cpw-blog-empty h2 {
    margin: 0 0 9px;
    color: #07354a;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.cpw-blog-empty p {
    margin: 0;
    color: #59717d;
    font-size: 15px;
    line-height: 1.65;
}

/* Load More */

.cpw-blog-load-more-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 34px;
    text-align: center;
}

.cpw-blog-load-more {
    display: inline-flex;
    min-width: 210px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #008c8c,
            #10b7b3
        );
    box-shadow: 0 9px 21px rgba(0, 142, 142, 0.2);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.cpw-blog-load-more:hover,
.cpw-blog-load-more:focus {
    box-shadow: 0 13px 26px rgba(0, 124, 126, 0.27);
    transform: translateY(-2px);
}

.cpw-blog-load-more:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.cpw-blog-load-more[hidden] {
    display: none;
}

.cpw-blog-load-message {
    min-height: 21px;
    margin: 11px 0 0;
    color: #607783;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.cpw-blog-load-message.is-error {
    color: #b42318;
}

/* Sidebar */

.cpw-blog-sidebar {
    position: sticky;
    top: 25px;
    min-width: 0;
    padding: 21px;
    border: 1px solid #d5e7e7;
    border-radius: 17px;
    background:
        linear-gradient(
            155deg,
            #f4fbfb 0%,
            #ffffff 75%
        );
    box-shadow: 0 10px 30px rgba(7, 53, 74, 0.07);
}

/* Search */

.cpw-blog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #bfdadb;
    border-radius: 11px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cpw-blog-search:focus-within {
    border-color: #079c9c;
    box-shadow: 0 0 0 3px rgba(7, 156, 156, 0.12);
}

.cpw-blog-search input {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: #123b4d;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.cpw-blog-search input::placeholder {
    color: #81949c;
}

.cpw-blog-search button {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #079c9c;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    place-items: center;
    transition: background-color 0.2s ease;
}

.cpw-blog-search button:hover,
.cpw-blog-search button:focus {
    background: #006f72;
}

/* Sidebar headings */

.cpw-blog-sidebar__section + .cpw-blog-sidebar__section {
    margin-top: 25px;
    padding-top: 24px;
    border-top: 1px solid #d9e8e9;
}

.cpw-blog-sidebar__section h2 {
    margin: 0 0 15px;
    color: #07354a;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

/* Category buttons */

.cpw-blog-category-list {
    display: grid;
    gap: 7px;
}

.cpw-blog-category {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #244b5b;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cpw-blog-category span {
    min-width: 0;
}

.cpw-blog-category strong {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #e0f5f4;
    color: #007e80;
    font-size: 11px;
    font-weight: 700;
    place-items: center;
}

.cpw-blog-category:hover {
    border-color: #c7e4e4;
    background: #ffffff;
    color: #007e80;
    transform: translateX(2px);
}

.cpw-blog-category.is-active {
    border-color: rgba(0, 158, 158, 0.25);
    background:
        linear-gradient(
            90deg,
            #d9f6f4,
            #effbfa
        );
    color: #006f72;
}

.cpw-blog-category.is-active strong {
    background: #079c9c;
    color: #ffffff;
}

/* Recent articles */

.cpw-blog-recent-list {
    display: grid;
    gap: 14px;
}

.cpw-blog-recent {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.cpw-blog-recent__image {
    display: grid;
    width: 68px;
    height: 58px;
    overflow: hidden;
    border-radius: 8px;
    background: #e7f6f5;
    color: #079c9c;
    text-decoration: none;
    place-items: center;
}

.cpw-blog-recent__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpw-blog-recent__content {
    min-width: 0;
}

.cpw-blog-recent__content h3 {
    display: -webkit-box;
    margin: 0 0 4px;
    overflow: hidden;
    color: #123b4d;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cpw-blog-recent__content h3 a {
    color: inherit;
    text-decoration: none;
}

.cpw-blog-recent__content h3 a:hover,
.cpw-blog-recent__content h3 a:focus {
    color: #008f8f;
}

.cpw-blog-recent__content time {
    color: #70858e;
    font-size: 11px;
    font-weight: 600;
}

/* Sidebar contact card */

.cpw-blog-help-card {
    position: relative;
    margin-top: 26px;
    overflow: hidden;
    padding: 22px;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(83, 225, 218, 0.26),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #005f65,
            #00999a
        );
    color: #ffffff;
}

.cpw-blog-help-card::after {
    position: absolute;
    right: -38px;
    bottom: -48px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.cpw-blog-help-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.cpw-blog-help-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 17px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.6;
}

.cpw-blog-help-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #ffffff;
    color: #006f72;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.cpw-blog-help-card a:hover,
.cpw-blog-help-card a:focus {
    color: #07354a;
    transform: translateY(-2px);
}

/* Accessibility */

.cpw-blog-content button:focus-visible,
.cpw-blog-content a:focus-visible,
.cpw-blog-content input:focus-visible,
.cpw-blog-content select:focus-visible {
    outline: 3px solid rgba(216, 163, 26, 0.55);
    outline-offset: 2px;
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 1120px) {
    .cpw-blog-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpw-blog-content__layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(250px, 285px);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .cpw-blog-content {
        padding: 56px 0 68px;
    }

    .cpw-blog-toolbar {
        align-items: flex-start;
    }

    .cpw-blog-content__layout {
        grid-template-columns: 1fr;
    }

    .cpw-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .cpw-blog-search {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .cpw-blog-sidebar__section +
    .cpw-blog-sidebar__section {
        margin: 0;
        padding: 0;
        border-top: 0;
    }

    .cpw-blog-help-card {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 680px) {
    .cpw-blog-content {
        padding: 45px 0 55px;
    }

    .cpw-blog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 19px;
        margin-bottom: 24px;
    }

    .cpw-blog-toolbar__title {
        font-size: 28px;
    }

    .cpw-blog-toolbar__controls {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .cpw-blog-toolbar__count {
        white-space: normal;
    }

    .cpw-blog-sort {
        width: 100%;
    }

    .cpw-blog-post-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cpw-blog-card__image {
        height: 230px;
    }

    .cpw-blog-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 17px;
        border-radius: 14px;
    }

    .cpw-blog-search,
    .cpw-blog-help-card {
        grid-column: auto;
    }

    .cpw-blog-sidebar__section +
    .cpw-blog-sidebar__section {
        padding-top: 23px;
        border-top: 1px solid #d9e8e9;
    }

    .cpw-blog-load-more {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .cpw-blog-card__image {
        height: 205px;
    }

    .cpw-blog-card__body {
        padding: 17px;
    }

    .cpw-blog-card__title {
        font-size: 18px;
    }

    .cpw-blog-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}