/* md-shared.css: loaded on every Markdown template — part of the per-template CSS split (md-shared/article/blog/glossary). */
@import url("/wp-content/uploads/elementor/google-fonts/css/poppins.css");

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0F1115;
    background: #ffffff;
    margin: 0;
}

.site-main {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.site-main .title-layout {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 50px 0;
}

.site-main .title-layout .page-category {
    background-color: #e7e8fb;
    color: #293FCC;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
}

.site-main .title-layout h1 {
    font-family: "Segment", Sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1em;
    letter-spacing: 0px;
    text-align: center;
}

.site-main .title-layout #page-excerpt {
    max-width: 850px;
    text-align: center;
}

/* Shared author bio (featured card + post author meta) */
.blog-featured__author-bio {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: #0F1115;
    margin: .35rem 0 0;
}

/* ==========================================================================
 * Shared blog-card component — used by the blog index, archives, and the
 * related-articles section on posts. Lives here (loaded on every md template)
 * so cards render identically wherever they appear, with no duplicate rules.
 * ========================================================================== */
/* Shared category badge */
.blog-card__category {
    display: inline-block;
    align-self: flex-start;
    background-color: #e7e8fb;
    color: #293FCC;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .78rem;

    margin-bottom: 12px;
}

/* Category links inside the badge — clickable to the category archive
   (matches production, where card categories link to /blog/<slug>/). */
.blog-card__category a {
    color: inherit;
    text-decoration: none;
}

.blog-card__category a:hover {
    text-decoration: underline;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ececf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 30, 60, .04);
    color: #0F1115;
    transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.blog-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: none;
    margin: 0;
}

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

.blog-card__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #0F1115;
    margin: .5rem 0 .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: #0F1115;
    text-decoration: none;
}

.blog-card__excerpt {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #0F1115;
    margin: 0 0 .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card__date {
    font-size: .82rem;
    font-weight: 400;
    color: #9aa1b1;
    margin-top: .5rem;
    display: block;
}

/* ---- Author byline (cards) ---- */
.blog-byline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: .5rem 0 .2rem;
}

.blog-byline__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

a.blog-byline__name {
    color: #0F1115;
    font-weight: 400;
    font-size: .86rem;
    text-decoration: none;
}

/* Card grid: 3-up desktop, 2-up tablet, 1-up mobile (matches the live grid). */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}