




* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #f7f8fa;
}

body {
    color: #25282d;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: #2869c7;
}

a:hover {
    color: #174f9f;
}


/* ==========================================================================
   WEBSITE HEADER
   ========================================================================== */

.website-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e4e8;
}

.website-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 20px 0;
}

.website-name {
    color: #20242a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-decoration: none;
}

.header-navigation a {
    color: #525963;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.header-navigation a:hover,
.footer-navigation a:hover {
    color: #2869c7;
}


/* ==========================================================================
   MAIN BLOG CONTENT
   ========================================================================== */

.main-content {
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.blog-post {
    max-width: 820px;
}

.page-category-label {
    margin-bottom: 12px;
    color: #707986;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* ==========================================================================
   BLOG TYPOGRAPHY
   ========================================================================== */

.blog-post h1 {
    margin: 0 0 28px;
    color: #171a1f;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -1px;
}

.blog-post h2 {
    margin: 54px 0 18px;
    color: #1b1f24;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.blog-post h3 {
    margin: 36px 0 14px;
    color: #252a31;
    font-size: 23px;
    line-height: 1.3;
}

.blog-post h4 {
    margin: 28px 0 12px;
    color: #303640;
    font-size: 19px;
    line-height: 1.35;
}

.blog-post p {
    margin: 0 0 21px;
    color: #3f4650;
    font-size: 17px;
}

.blog-post ul,
.blog-post ol {
    margin: 0 0 24px;
    padding-left: 28px;
    color: #3f4650;
    font-size: 17px;
}

.blog-post li {
    margin-bottom: 9px;
}

.blog-post li:last-child {
    margin-bottom: 0;
}

.blog-post a {
    color: #2869c7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-post a:hover {
    color: #174f9f;
}


/* ==========================================================================
   BLOG IMAGES
   ========================================================================== */

.blog-post img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border: 1px solid #e0e3e7;
    border-radius: 4px;
}

.blog-post figure {
    margin: 34px 0;
}

.blog-post figure img {
    margin: 0;
}

.blog-post figcaption {
    margin-top: 9px;
    color: #747d88;
    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================================
   WEBSITE FOOTER
   ========================================================================== */

.website-footer {
    background: #ffffff;
    border-top: 1px solid #e1e4e8;
}

.website-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 24px 0;
    color: #747d89;
    font-size: 12px;
}

.footer-navigation {
    display: flex;
    gap: 22px;
}

.footer-navigation a {
    color: #68717c;
    text-decoration: none;
}




/* ==========================================================================
   BLOG POST AUTHOR BYLINE
   ========================================================================== */

.blog-post-byline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 24px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #a5a5a5;
    color: #777e89;
}

.byline-content {
    min-width: 0;
}

.byline-primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.byline-editorial {
    margin-top: 4px;
    font-size: 0.9em;
    line-height: 1.4;
}

.byline-published {
    padding-top: 5px;
    white-space: nowrap;
    text-align: right;
}

.blog-post-byline a {
    color: #525963;
    font-weight: 700;
    text-decoration: none;
}

.blog-post-byline a:hover {
    color: #2869c7;
    text-decoration: underline;
}

.byline-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.blog-post .byline-author-photo {
    display: block;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid #e0e3e7;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post-byline .byline-ai-link {
    text-decoration: none;
}

.blog-post-byline .byline-ai-link:hover {
    color: #2869c7;
    text-decoration: underline;
}

.blog-post-byline a:focus-visible {
    outline: 2px solid #2869c7;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 650px) {
    .blog-post-byline {
        grid-template-columns: 1fr;
    }

    .byline-published {
        padding-top: 0;
        text-align: left;
    }
}






/* ==========================================================================
   MORE BLOG POSTS — HORIZONTAL CAROUSEL
   Sits inside <main>, AFTER <article class="blog-post">.
   ========================================================================== */

.more-posts {
    max-width: 820px;
    margin-top: 60px;
    padding: 26px 0 30px;
    border-top: 1px solid #d8dde4;
    /* border-bottom: 1px solid #d8dde4; */
}

.more-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.more-posts-heading {
    margin: 0;
    color: #25282d;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.9px;
}

.more-posts-controls {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

.more-posts-arrow {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 0 4px;
    border: 1px solid #cfd5dc;
    border-radius: 50%;
    background: #fff;
    color: #333b45;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.more-posts-arrow:hover:not(:disabled) {
    border-color: #2869c7;
    color: #2869c7;
}

.more-posts-arrow:disabled {
    opacity: 0.33;
    cursor: default;
}

.more-posts-arrow:focus-visible,
.more-posts-card:focus-visible,
.more-posts-track:focus-visible {
    outline: 2px solid #2869c7;
    outline-offset: 3px;
}

/* Horizontal scrolling track */

.more-posts-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 3px 2px 10px;
    align-items: flex-start;
}

.more-posts-track::-webkit-scrollbar {
    display: none;
}

/* Cards — 3 visible on desktop */

.more-posts-card {
    display: flex;
    flex: 0 0 calc((100% - 36px) / 3);
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e3e7;
    border-radius: 7px;
    background: #fff;
    color: #25282d;
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.more-posts-card:hover {
    border-color: #b2c8e7;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.08);
}

/* Images — consistent 5:4 frame, top-aligned without cropping */

.more-posts-image-frame {
    width: 100%;
    /* aspect-ratio: 5 / 4; */
    background: #f1f3f6;
    overflow: hidden;
}

/*
.more-posts-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}
*/

.more-posts-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Card titles */

.more-posts-card-title {
    display: block;
    padding: 13px 14px 17px;
    color: #252a31;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
}

.more-posts-card:hover .more-posts-card-title {
    color: #2869c7;
}

/* ==========================================================================
   MORE BLOG POSTS — RESPONSIVE
   ========================================================================== */

/* Tablet: 2 visible cards */

@media (max-width: 760px) {
    .more-posts {
        margin-top: 46px;
    }

    .more-posts-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

/* Mobile: 1 card with a preview of the next */

@media (max-width: 520px) {
    .more-posts-heading {
        font-size: 15px;
    }

    .more-posts-card {
        flex-basis: 78%;
    }
}

/* Accessibility: respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .more-posts-track {
        scroll-behavior: auto;
    }

    .more-posts-card {
        transition: none;
    }
}







/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 760px) {
    .website-header-inner,
    .main-content,
    .website-footer-inner {
        width: min(100% - 32px, 1040px);
    }

    .main-content {
        padding: 52px 0 70px;
    }

    .blog-post h1 {
        font-size: 37px;
    }

    .blog-post h2 {
        margin-top: 46px;
        font-size: 27px;
    }

    .blog-post h3 {
        font-size: 21px;
    }

    .website-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-navigation {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}








