/* ==========================================================================
   Blog: listing, cards and article — theme style (Poppins, black & white)
   ========================================================================== */

.blog-hero {
    padding: 160px 0 72px;
    background: #000000;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
}
.blog-hero .container {
    max-width: 880px;
}
.blog-hero--list .container {
    max-width: 1280px;
}
.blog-hero .service-hero__crumb {
    margin-bottom: 28px;
}
.blog-hero__eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.blog-hero__title {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}
.blog-hero__lead {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
}
.blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Article ---------- */
.blog-article {
    padding: 72px 0 100px;
    font-family: "Poppins", sans-serif;
}
.blog-article .container {
    max-width: 880px;
}
.blog-article__body {
    color: #33333b;
    font-size: 17px;
    line-height: 1.8;
}
.blog-article__body p {
    margin: 0 0 22px;
}
.blog-article__body h2 {
    margin: 52px 0 18px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #000000;
}
.blog-article__body h3 {
    margin: 36px 0 12px;
    font-size: 21px;
    font-weight: 600;
    color: #000000;
}
.blog-article__body ul,
.blog-article__body ol {
    margin: 0 0 24px;
    padding-left: 1.3em;
}
.blog-article__body ul li {
    list-style: disc;
}
.blog-article__body ol li {
    list-style: decimal;
}
.blog-article__body li {
    margin: 0 0 10px;
    padding-left: 4px;
}
.blog-article__body li::marker {
    color: #000000;
}
.blog-article__body strong {
    color: #000000;
    font-weight: 600;
}
.blog-article__body a {
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.blog-article__body a:hover {
    color: #000000;
    opacity: 0.65;
}
.blog-article__body blockquote {
    margin: 0 0 26px;
    padding: 20px 24px;
    border-left: 3px solid #000000;
    border-radius: 0 14px 14px 0;
    background: #f5f5f7;
    font-size: 16px;
    color: #111111;
}
.blog-article__body blockquote p:last-child {
    margin-bottom: 0;
}
.blog-article__body table {
    width: 100%;
    margin: 0 0 28px;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e6e6eb;
    border-radius: 14px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
}
.blog-article__body th,
.blog-article__body td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ececf0;
}
.blog-article__body th {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}
.blog-article__body tr:last-child td {
    border-bottom: 0;
}
.blog-article__body tr:nth-child(even) td {
    background: #fafafa;
}

/* ---------- CTA ---------- */
.blog-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 56px 0 0;
    padding: 40px;
    border-radius: 24px;
    background: #0d0d0f;
    color: #ffffff;
}
.blog-cta__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.blog-cta__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}
.blog-cta__text {
    max-width: 520px;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}
.blog-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.blog-cta__btn:hover {
    color: #000000;
    opacity: 0.9;
}

/* ---------- Cards ---------- */
.blog-list {
    padding: 80px 0 110px;
    font-family: "Poppins", sans-serif;
}
.blog-related {
    margin-top: 80px;
}
.blog-related__title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.blog-article .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.blog-card {
    border: 1px solid #ececf0;
    border-radius: 20px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: #d6d6dc;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}
.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 28px;
    color: inherit;
    text-decoration: none;
}
.blog-card__link:hover {
    color: inherit;
}
.blog-card__meta {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a93;
}
.blog-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #000000;
}
.blog-card__excerpt {
    flex: 1;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: #66666f;
}
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}
.blog-empty {
    font-size: 18px;
    color: #66666f;
}
.blog-pagination {
    margin-top: 40px;
}

@media only screen and (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .blog-hero {
        padding: 130px 0 56px;
    }
}
@media only screen and (max-width: 767px) {
    .blog-grid,
    .blog-article .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .blog-article {
        padding: 48px 0 72px;
    }
    .blog-article__body {
        font-size: 16px;
    }
    .blog-article__body table {
        display: block;
        overflow-x: auto;
    }
    .blog-cta {
        padding: 30px 24px;
    }
    .blog-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Featured images (shown only when an image is set) */
.blog-article__image {
    margin: -120px 0 48px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.blog-article__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.blog-hero:has(+ .blog-article .blog-article__image) {
    padding-bottom: 150px;
}
.blog-card__image {
    display: block;
    margin: -30px -28px 22px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.blog-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
@media only screen and (max-width: 767px) {
    .blog-article__image {
        margin: -80px 0 32px;
        border-radius: 18px;
    }
    .blog-hero:has(+ .blog-article .blog-article__image) {
        padding-bottom: 110px;
    }
}
