.hsp-blog-page {
    --hsp-blog-navy: #082b50;
    --hsp-blog-blue: #163a5f;
    --hsp-blog-orange: #e87822;
    --hsp-blog-ink: #24313d;
    --hsp-blog-muted: #66727e;
    --hsp-blog-line: #d8e0e8;
    --hsp-blog-soft: #f4f6f8;
    width: 100%;
    color: var(--hsp-blog-ink);
    background: #fff;
}

.hsp-blog-archive-page .entry-content > .hsp-blog-page {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
}

.hsp-blog-page *,
.hsp-blog-page *::before,
.hsp-blog-page *::after {
    box-sizing: border-box;
}

.hsp-blog-container {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.hsp-blog-hero {
    display: flex;
    min-height: 280px;
    align-items: center;
    background: #f7f9fb;
    border-bottom: 1px solid var(--hsp-blog-line);
}

.hsp-blog-hero__content {
    position: relative;
    max-width: 980px;
    padding-left: 24px;
}

.hsp-blog-hero__content::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 4px;
    background: var(--hsp-blog-orange);
    content: "";
}

.hsp-blog-hero h1,
.hsp-blog-section h2 {
    color: var(--hsp-blog-navy);
}

.hsp-blog-hero h1 {
    max-width: 940px;
    margin: 0;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.hsp-blog-hero p {
    max-width: 900px;
    margin: 22px 0 0;
    color: var(--hsp-blog-muted);
    font-size: 18px;
    line-height: 1.65;
}

.hsp-blog-section {
    padding: 72px 0 80px;
}

.hsp-blog-section h2 {
    margin: 0;
    font-size: clamp(28px, 2.7vw, 36px);
    font-weight: 750;
    line-height: 1.2;
}

.hsp-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 28px;
}

.hsp-knowledge-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hsp-blog-line);
    border-radius: 2px;
}

.hsp-knowledge-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--hsp-blog-soft);
}

.hsp-knowledge-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsp-knowledge-card__content {
    display: flex;
    min-height: 260px;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.hsp-knowledge-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--hsp-blog-navy);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hsp-knowledge-card__title a {
    color: inherit;
    text-decoration: none;
}

.hsp-knowledge-card__title a:hover,
.hsp-knowledge-card__link:hover {
    color: var(--hsp-blog-orange);
}

.hsp-knowledge-card__excerpt {
    display: -webkit-box;
    min-height: 48px;
    margin: 16px 0 24px;
    overflow: hidden;
    color: var(--hsp-blog-muted);
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hsp-knowledge-card__link {
    margin-top: auto;
    color: var(--hsp-blog-blue);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.hsp-blog-topics {
    border-bottom: 1px solid var(--hsp-blog-line);
}

.hsp-blog-topics .hsp-blog-container {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.hsp-blog-topics a {
    display: inline-flex;
    min-height: 52px;
    flex: 0 0 auto;
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--hsp-blog-muted);
    font-weight: 650;
    text-decoration: none;
}

.hsp-blog-topics a:hover,
.hsp-blog-topics a.is-active {
    border-bottom-color: var(--hsp-blog-orange);
    color: var(--hsp-blog-navy);
}

.hsp-blog-pagination {
    margin-top: -28px;
    padding: 0 0 80px;
}

.hsp-blog-pagination .hsp-blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hsp-blog-pagination__item .page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--hsp-blog-line);
    background: #fff;
    color: var(--hsp-blog-navy);
    text-decoration: none;
}

.hsp-blog-pagination__item .page-numbers.current,
.hsp-blog-pagination__item a.page-numbers:hover {
    border-color: var(--hsp-blog-navy);
    background: var(--hsp-blog-navy);
    color: #fff;
}

.hsp-blog-page a:focus-visible {
    outline: 3px solid var(--hsp-blog-orange);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .hsp-knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hsp-blog-container {
        width: min(100% - 40px, 1280px);
    }

    .hsp-blog-hero {
        min-height: 270px;
    }

    .hsp-blog-hero__content {
        padding-left: 18px;
    }

    .hsp-blog-hero h1 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .hsp-blog-hero p {
        margin-top: 18px;
        font-size: 16px;
    }

    .hsp-blog-section {
        padding: 52px 0 64px;
    }

    .hsp-blog-pagination {
        margin-top: -12px;
        padding-bottom: 64px;
    }

    .hsp-knowledge-card__content {
        min-height: 250px;
        padding: 22px;
    }
}

@media (max-width: 639px) {
    .hsp-knowledge-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 420px) {
    .hsp-blog-container {
        width: calc(100% - 32px);
    }

    .hsp-blog-hero h1 {
        font-size: 34px;
    }

    .hsp-knowledge-card__content {
        min-height: 0;
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hsp-blog-page *,
    .hsp-blog-page *::before,
    .hsp-blog-page *::after {
        scroll-behavior: auto;
        transition: none;
    }
}
