/* ==========================================================================
   Blog (/blog/ and /blog/<slug>/)
   Built on the theme's palette (#0080f6 / #0069cc / #001a32 / #eff7fe),
   Poppins type and icomoon list glyph. Everything is scoped to .blog-page
   so the theme's global rules elsewhere are untouched.
   ========================================================================== */

.blog-page {
    --blog-blue: #0080f6;
    --blog-blue-dark: #0069cc;
    --blog-ink: #001a32;
    --blog-text: #27313d;
    --blog-muted: #5b6573;
    --blog-line: #dfe5e9;
    --blog-tint: #eff7fe;
    --blog-radius: 14px;
    --blog-shadow: 0 1px 2px rgba(0, 26, 50, .06), 0 8px 24px rgba(0, 26, 50, .06);
    --blog-shadow-hover: 0 2px 4px rgba(0, 26, 50, .08), 0 18px 40px rgba(0, 26, 50, .12);
    /* Clears the theme navbar, which becomes position:fixed after scrolling. */
    --blog-sticky-offset: 110px;
    background: #fff;
    color: var(--blog-text);
}

.blog-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.blog-page a:focus-visible,
.blog-page summary:focus-visible {
    outline: 3px solid var(--blog-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* The theme resets every ul/li to display:block with no spacing. */
.blog-page ol,
.blog-page ul {
    margin: 0;
    padding: 0;
}

/* Shared bits ------------------------------------------------------------- */

.blog-eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--blog-blue-dark);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--blog-muted);
}

.blog-meta__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
}

.blog-section__title {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blog-ink);
}

.blog-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.blog-section__head .blog-section__title {
    margin: 0;
}

.blog-section__link {
    font-weight: 500;
    color: var(--blog-blue-dark);
}

.blog-section__link:hover,
.blog-section__link:focus {
    color: var(--blog-ink);
    text-decoration: underline;
}

/* Breadcrumbs -------------------------------------------------------------- */

.blog-breadcrumb {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
}

.blog-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.blog-breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--blog-muted);
}

.blog-breadcrumb li + li:before {
    content: "";
    width: 6px;
    height: 6px;
    margin: 0 12px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: .6;
}

.blog-breadcrumb a {
    display: inline;
    padding: 0;
    color: var(--blog-blue-dark);
}

.blog-breadcrumb a:hover,
.blog-breadcrumb a:focus {
    color: var(--blog-ink);
    text-decoration: underline;
}

/* The current page can be a long title: keep it to one line. */
.blog-breadcrumb [aria-current] {
    overflow: hidden;
    max-width: 48ch;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--blog-text);
}

/* Listing hero --------------------------------------------------------------- */

.blog-hero {
    padding: 48px 0 56px;
    background: var(--blog-tint);
    border-bottom: 1px solid #e1edf9;
}

.blog-hero__title {
    max-width: 18em;
    margin: 0 0 16px;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--blog-ink);
}

.blog-hero__lead {
    max-width: 40em;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--blog-text);
}

.blog-hero--compact .blog-hero__lead {
    margin-bottom: 24px;
}

.blog-hero--compact .btn {
    margin: 0;
}

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

.blog-block + .blog-block {
    margin-top: 64px;
}

/* Cards ------------------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
    gap: 32px 28px;
}

.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #cfe3f8;
    box-shadow: var(--blog-shadow-hover);
}

.blog-card:focus-within {
    outline: 3px solid var(--blog-blue);
    outline-offset: 3px;
}

.blog-card__media {
    overflow: hidden;
    aspect-ratio: 1024 / 680;
    background: var(--blog-tint);
}

.blog-card__media picture,
.blog-article__hero picture {
    display: block;
    height: 100%;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.03);
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.blog-card__title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blog-ink);
}

.blog-card .blog-card__link {
    display: inline;
    padding: 0;
    color: inherit;
}

/* The title link covers the whole card, so the card has one tab stop. */
.blog-card__link:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card .blog-card__link:focus,
.blog-card .blog-card__link:focus-visible {
    outline: none;
}

.blog-card:hover .blog-card__link {
    color: var(--blog-blue-dark);
}

.blog-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--blog-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card__more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--blog-blue-dark);
}

.blog-card__arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.blog-card:hover .blog-card__arrow {
    transform: translateX(4px);
}

@media (min-width: 992px) {
    .blog-card--featured {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    /* The image fills whatever height the text column needs. */
    .blog-card--featured .blog-card__media {
        position: relative;
        aspect-ratio: auto;
        min-height: 380px;
    }

    .blog-card--featured .blog-card__media img {
        position: absolute;
        inset: 0;
    }

    .blog-card--featured .blog-card__body {
        justify-content: center;
        padding: 40px 44px;
    }

    .blog-card--featured .blog-card__title {
        margin-bottom: 16px;
        font-size: 30px;
        line-height: 1.3;
    }

    .blog-card--featured .blog-card__excerpt {
        margin-bottom: 28px;
        font-size: 16px;
        -webkit-line-clamp: 4;
    }

    .blog-card--featured .blog-card__more {
        margin-top: 0;
        font-size: 15px;
    }
}

.blog-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: var(--blog-tint);
    border-radius: var(--blog-radius);
}

.blog-empty__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--blog-ink);
}

.blog-empty .btn {
    margin: 12px 0 0;
}

/* Pagination ---------------------------------------------------------------- */

.blog-pagination {
    margin-top: 56px;
}

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

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    font-weight: 500;
    color: var(--blog-ink);
    border: 1px solid var(--blog-line);
    border-radius: 10px;
}

.blog-pagination a:hover,
.blog-pagination a:focus {
    color: var(--blog-blue-dark);
    border-color: var(--blog-blue);
}

.blog-pagination [aria-current] {
    color: #fff;
    background: var(--blog-blue-dark);
    border-color: var(--blog-blue-dark);
}

/* Article ------------------------------------------------------------------ */

.blog-article__header {
    padding: 40px 0 150px;
    background: var(--blog-tint);
}

.blog-article__header .container,
.blog-article > .container {
    max-width: 1100px;
}

.blog-article__title {
    max-width: 22em;
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--blog-ink);
    overflow-wrap: break-word;
}

.blog-article__hero {
    max-width: 960px;
    margin: -110px auto 0;
    overflow: hidden;
    aspect-ratio: 1024 / 680;
    background: #dde9f5;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 26, 50, .16);
}

.blog-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 48px 0 72px;
}

.blog-article__body {
    min-width: 0;
}

@media (min-width: 992px) {
    .blog-article__layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas: "body aside";
        gap: 64px;
        padding-top: 64px;
    }

    .blog-article__body {
        grid-area: body;
    }

    .blog-article__aside {
        grid-area: aside;
    }
}

/* Table of contents -------------------------------------------------------- */

.blog-toc {
    background: var(--blog-tint);
    border: 1px solid #e1edf9;
    border-radius: 12px;
}

.blog-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blog-ink);
    cursor: pointer;
    list-style: none;
}

.blog-toc__summary::-webkit-details-marker {
    display: none;
}

.blog-toc__summary:after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.blog-toc[open] .blog-toc__summary:after {
    transform: rotate(-135deg) translateY(-2px);
}

.blog-toc__list {
    padding: 0 10px 12px !important;
    counter-reset: blog-toc;
}

.blog-toc__list li {
    counter-increment: blog-toc;
}

.blog-toc__list a {
    position: relative;
    display: block;
    padding: 7px 8px 7px 34px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--blog-text);
    border-radius: 8px;
}

.blog-toc__list a:before {
    content: counter(blog-toc, decimal-leading-zero);
    position: absolute;
    left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blog-blue-dark);
}

.blog-toc__list a:hover,
.blog-toc__list a:focus {
    color: var(--blog-ink);
    background: #fff;
}

@media (min-width: 992px) {
    .blog-toc {
        position: sticky;
        top: var(--blog-sticky-offset);
        overflow-y: auto;
        max-height: calc(100vh - var(--blog-sticky-offset) - 24px);
    }

    /* Always expanded alongside the article on wide screens. */
    .blog-toc__summary {
        cursor: default;
        pointer-events: none;
    }

    .blog-toc__summary:after {
        display: none;
    }
}

/* Article typography ------------------------------------------------------- */

.blog-prose {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--blog-text);
    overflow-wrap: break-word;
}

.blog-prose > :first-child {
    margin-top: 0;
}

.blog-prose p {
    margin: 0 0 1.25em;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    color: var(--blog-ink);
    font-weight: 700;
    scroll-margin-top: var(--blog-sticky-offset);
}

.blog-prose h2 {
    margin: 2.2em 0 .7em;
    padding-top: 1.4em;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -.005em;
    border-top: 1px solid var(--blog-line);
}

.blog-prose > h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.blog-prose h3 {
    margin: 1.8em 0 .5em;
    font-size: 22px;
    line-height: 1.4;
}

.blog-prose h2 + h3 {
    margin-top: 1em;
}

.blog-prose h4 {
    margin: 1.5em 0 .4em;
    font-size: 19px;
    line-height: 1.45;
}

.blog-prose a {
    display: inline;
    padding: 0;
    color: var(--blog-blue-dark);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-prose a:hover,
.blog-prose a:focus {
    color: var(--blog-ink);
    text-decoration-thickness: 2px;
}

.blog-prose strong {
    color: var(--blog-ink);
    font-weight: 700;
}

/* Lists use the theme's check glyph, as on the product pages. */
.blog-prose ul,
.blog-prose ol {
    margin: 0 0 1.4em;
}

.blog-prose li {
    position: relative;
    display: block;
    margin: 0 0 .5em;
    padding-left: 32px;
}

.blog-prose ul > li:before {
    content: "\eb91";
    position: absolute;
    top: .55em;
    left: 2px;
    font-family: icomoon;
    font-size: 13px;
    line-height: 1;
    color: var(--blog-blue);
}

.blog-prose ol {
    counter-reset: blog-list;
}

.blog-prose ol > li {
    counter-increment: blog-list;
}

.blog-prose ol > li:before {
    content: counter(blog-list) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--blog-blue-dark);
}

.blog-prose li > ul,
.blog-prose li > ol {
    margin: .5em 0 0;
}

.blog-prose img {
    margin: 2em auto;
    border-radius: 12px;
}

.blog-prose hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--blog-line);
}

.blog-prose blockquote {
    margin: 1.8em 0;
    padding: 4px 0 4px 24px;
    font-size: 20px;
    color: var(--blog-ink);
    border-left: 4px solid var(--blog-blue);
}

/* FAQ: the theme's .probootstrap-faq accordion, minus article heading/link styles. */
.blog-prose .blog-faq {
    margin: 1.2em 0 1.6em;
}

.blog-prose .blog-faq .panel {
    border-radius: var(--blog-radius);
}

.blog-prose .blog-faq .panel-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.blog-prose .blog-faq .panel-title > a {
    font-weight: 600;
    color: var(--blog-ink);
    text-decoration: none;
    border-radius: var(--blog-radius);
}

.blog-prose .blog-faq .panel-title > a:hover,
.blog-prose .blog-faq .panel-title > a:focus,
.blog-prose .blog-faq .panel-title > a[aria-expanded="true"] {
    color: var(--blog-blue-dark);
}

.blog-prose .blog-faq .panel-body {
    font-size: 17px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .blog-prose .blog-faq .panel-title {
        font-size: 16px;
    }

    .blog-prose .blog-faq .panel-body {
        font-size: 16px;
    }
}

/* Tables scroll inside their own box rather than widening the page. */
.blog-table {
    overflow-x: auto;
    margin: 0 0 1.6em;
    border: 1px solid var(--blog-line);
    border-radius: 12px;
}

.blog-table table {
    width: 100%;
    min-width: 520px;
    font-size: 16px;
    line-height: 1.55;
    border-collapse: collapse;
}

.blog-table th,
.blog-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--blog-line);
}

.blog-table th {
    color: var(--blog-ink);
    background: var(--blog-tint);
}

.blog-table tr:last-child td {
    border-bottom: 0;
}

/* End-of-article call to action -------------------------------------------- */

.blog-cta {
    max-width: 720px;
    margin-top: 56px;
    padding: 32px 36px;
    color: #fff;
    background: linear-gradient(135deg, #0080f6 0%, #0069cc 100%);
    border-radius: var(--blog-radius);
}

.blog-cta__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.blog-cta__text {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.65;
    color: #fff;
}

.blog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.blog-cta .btn.btn-primary {
    margin: 0;
    color: var(--blog-blue-dark);
    background: #fff;
    border-color: #fff;
}

.blog-cta .btn.btn-primary:hover,
.blog-cta .btn.btn-primary:focus {
    color: var(--blog-ink);
    background: #e6f2ff;
}

.blog-cta__phone {
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-cta__phone:hover,
.blog-cta__phone:focus {
    color: #fff;
    text-decoration-thickness: 2px;
}

.blog-cta a:focus-visible {
    outline-color: #fff;
}

/* Related / recent ------------------------------------------------------------ */

.blog-related {
    padding: 64px 0;
    background: var(--blog-tint);
    border-top: 1px solid #e1edf9;
}

.blog-related + .blog-related {
    padding-top: 0;
    border-top: 0;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 991px) {
    .blog-hero__title {
        font-size: 38px;
    }

    .blog-article__title {
        font-size: 36px;
    }

    .blog-article__header {
        padding-bottom: 120px;
    }

    .blog-article__hero {
        margin-top: -90px;
    }
}

@media (max-width: 767px) {
    .blog-page {
        --blog-sticky-offset: 80px;
    }

    .blog-hero {
        padding: 28px 0 36px;
    }

    .blog-hero__title {
        font-size: 30px;
    }

    .blog-hero__lead {
        font-size: 16px;
    }

    .blog-breadcrumb {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .blog-breadcrumb [aria-current] {
        max-width: 24ch;
    }

    .blog-section {
        padding: 36px 0 48px;
    }

    .blog-block + .blog-block {
        margin-top: 44px;
    }

    .blog-section__title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .blog-card__body {
        padding: 18px 20px 20px;
    }

    .blog-card__title {
        font-size: 18px;
    }

    .blog-article__header {
        padding: 28px 0 84px;
    }

    .blog-article__title {
        font-size: 28px;
        line-height: 1.25;
    }

    .blog-article__hero {
        margin-top: -60px;
        border-radius: 12px;
    }

    .blog-article__layout {
        gap: 24px;
        padding: 28px 0 48px;
    }

    .blog-prose {
        font-size: 17px;
        line-height: 1.75;
    }

    .blog-prose h2 {
        margin-top: 1.8em;
        padding-top: 1.2em;
        font-size: 24px;
    }

    .blog-prose h3 {
        font-size: 20px;
    }

    .blog-prose h4 {
        font-size: 18px;
    }

    .blog-prose li {
        padding-left: 28px;
    }

    .blog-cta {
        margin-top: 40px;
        padding: 26px 22px;
    }

    .blog-cta__title {
        font-size: 21px;
    }

    .blog-cta .btn {
        width: 100%;
    }

    .blog-related {
        padding: 44px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-page *,
    .blog-page *:before,
    .blog-page *:after {
        transition: none !important;
    }

    .blog-card:hover,
    .blog-card:hover .blog-card__media img,
    .blog-card:hover .blog-card__arrow {
        transform: none;
    }
}
