/* ---------------------------------------------------------------------------
   Blog styles (2026-09-09 redesign).

   Plain CSS served statically, linked right after the theme's style.css, so the
   blog never depends on the Vite build succeeding on a deploy. Everything here
   is built from the theme's own custom properties (--primary-color and friends)
   so the listing, the article and the homepage block stay inside the site
   palette instead of looking like a bolted-on section.
--------------------------------------------------------------------------- */

/* ---- shared article card ------------------------------------------------ */

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.blog-card-media {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.blog-card-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card-media:hover img {
    transform: scale(1.05);
}

.blog-card-date {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: var(--primary-color, #4A7CD2);
    color: #fff;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.blog-card-date .day {
    font-size: 22px;
    font-weight: 700;
}

.blog-card-date .month {
    font-size: 12px;
    text-transform: capitalize;
    opacity: .9;
}

.blog-card-body {
    padding: 18px 2px 0;
}

.blog-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.blog-card-title a {
    color: var(--secondary-color-dark, #172B4D);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color, #4A7CD2);
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: #7a8595;
}

.blog-card-meta i {
    margin-right: 7px;
    color: var(--primary-color, #4A7CD2);
}

/* ---- article page ------------------------------------------------------- */

.article-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-inner {
    padding: 34px;
}

@media (max-width: 575px) {
    .article-inner { padding: 22px; }
}

/* The theme's h1 is a 60px hero size: at that scale a real article headline
   ran three lines and dwarfed the page. Article headlines sit one step above
   the body instead, and scale down with the viewport. */
.article-title {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.25;
    margin: 0 0 18px;
    text-wrap: balance;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #7a8595;
    margin-bottom: 18px;
}

.article-meta i {
    margin-right: 7px;
    color: var(--primary-color, #4A7CD2);
}

.article-category {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(74, 124, 210, .1);
    color: var(--primary-color, #4A7CD2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.article-category:hover {
    background: var(--primary-color, #4A7CD2);
    color: #fff;
}

.article-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #45505f;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eef1f5;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #45505f;
}

.article-body h2 {
    font-size: clamp(20px, 1.7vw, 24px);
    line-height: 1.35;
    margin: 34px 0 14px;
    color: var(--secondary-color-dark, #172B4D);
}

.article-body h3 {
    font-size: 19px;
    margin: 26px 0 12px;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--primary-color, #4A7CD2);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
}

.article-tags span {
    padding: 5px 12px;
    border-radius: 999px;
    background: #f3f5f9;
    color: #62707f;
    font-size: 13px;
}

/* ---- sidebar ------------------------------------------------------------ */

.blog-widget {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.blog-widget-title {
    position: relative;
    font-size: 17px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--secondary-color-dark, #172B4D);
}

.blog-widget-title:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color, #4A7CD2);
}

.blog-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-widget-list li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f3f7;
}

.blog-widget-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #45505f;
    text-decoration: none;
    font-size: 15px;
}

.blog-widget-list a:hover,
.blog-widget-list .is-current > a {
    color: var(--primary-color, #4A7CD2);
}

.blog-widget-list .count {
    color: #9aa4b2;
    font-size: 13px;
    flex: 0 0 auto;
}

.widget-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
}

.widget-post + .widget-post {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f3f7;
}

.widget-post img {
    width: 76px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}

.widget-post span {
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--secondary-color-dark, #172B4D);
}

.widget-post:hover span {
    color: var(--primary-color, #4A7CD2);
}

.widget-post small {
    display: block;
    margin-top: 4px;
    color: #9aa4b2;
    font-size: 12.5px;
}

.blog-widget-cta {
    background: var(--primary-color, #4A7CD2);
    color: #fff;
}

.blog-widget-cta .blog-widget-title {
    color: #fff;
}

.blog-widget-cta .blog-widget-title:after {
    background: rgba(255, 255, 255, .55);
}

.blog-widget-cta p {
    color: rgba(255, 255, 255, .85);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Sticky only where there is room for it to travel. */
@media (min-width: 992px) {
    .blog-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* ---- pagination --------------------------------------------------------- */

.pagination {
    gap: 6px;
}

.pagination .page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    color: #45505f;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color, #4A7CD2);
    border-color: var(--primary-color, #4A7CD2);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #b6bec9;
    background: #f7f9fc;
}

.pagination .page-link:hover {
    border-color: var(--primary-color, #4A7CD2);
    color: var(--primary-color, #4A7CD2);
}

.article-tags-label {
    align-self: center;
    margin-right: 4px;
    font-weight: 700;
    color: var(--secondary-color-dark, #172B4D);
    font-size: 14px;
}
