:root {
    --blog-ink: #111827;
    --blog-muted: #64748b;
    --blog-subtle: #f8fafc;
    --blog-border: #e5e7eb;
    --blog-accent: #b91c1c;
    --blog-accent-soft: #fee2e2;
    --blog-card: #ffffff;
    --blog-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.blog-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-archive,
.blog-single,
.blog-related {
    background: #ffffff;
}

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

.blog-related {
    border-top: 1px solid var(--blog-border);
    padding: 52px 0 72px;
}

.blog-archive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 28px;
    align-items: stretch;
    border-bottom: 1px solid var(--blog-border);
    padding-bottom: 30px;
}

.blog-archive-hero__copy,
.blog-archive-heading,
.blog-single-header {
    display: grid;
    gap: 12px;
}

.blog-archive-hero h1,
.blog-archive-heading h1,
.blog-single-header h1,
.blog-section-heading h2 {
    margin: 0;
    color: var(--blog-ink);
    font-weight: 850;
    letter-spacing: 0;
}

.blog-archive-hero h1,
.blog-archive-heading h1 {
    max-width: 760px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
}

.blog-single-header h1 {
    max-width: 920px;
    font-size: clamp(34px, 4.4vw, 66px);
    line-height: 1.04;
}

.blog-section-heading h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.blog-archive-hero p,
.blog-archive-heading p,
.blog-single-header > p {
    max-width: 700px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 18px;
    line-height: 1.75;
}

.blog-eyebrow {
    color: var(--blog-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.blog-back-link {
    width: max-content;
    color: var(--blog-muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.blog-back-link:hover {
    color: var(--blog-accent);
}

.blog-featured-story {
    display: grid;
    align-content: end;
    min-height: 290px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-ink);
    color: #ffffff;
    padding: 24px;
    text-decoration: none;
}

.blog-featured-story img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.blog-featured-story span,
.blog-featured-story strong {
    position: relative;
    z-index: 1;
}

.blog-featured-story span {
    color: #fecaca;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-featured-story strong {
    max-width: 360px;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.16;
}

.blog-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.blog-category-strip a,
.blog-tag-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--blog-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--blog-ink);
    font-size: 13px;
    font-weight: 800;
    padding: 0 14px;
    text-decoration: none;
}

.blog-category-strip a:hover,
.blog-tag-list a:hover {
    border-color: var(--blog-accent);
    color: var(--blog-accent);
}

.blog-archive-heading {
    border-bottom: 1px solid var(--blog-border);
    margin-bottom: 30px;
    padding-bottom: 28px;
}

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.blog-post-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-post-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #334155);
    color: #ffffff;
    text-decoration: none;
}

.blog-post-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.blog-post-card__media span {
    display: grid;
    height: 100%;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
}

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

.blog-post-card__body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: var(--blog-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-post-meta a {
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-post-meta time,
.blog-post-meta span {
    color: var(--blog-muted);
}

.blog-post-card h2 {
    margin: 0;
    color: var(--blog-ink);
    font-size: 23px;
    font-weight: 850;
    line-height: 1.2;
}

.blog-post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-post-card h2 a:hover {
    color: var(--blog-accent);
}

.blog-post-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 72px;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--blog-muted);
    font-size: 15px;
    line-height: 1.6;
}

.blog-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--blog-border);
    margin-top: 4px;
    padding-top: 14px;
}

.blog-post-card__footer span {
    overflow: hidden;
    color: var(--blog-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post-card__footer a {
    flex: 0 0 auto;
    color: var(--blog-ink);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.blog-post-card__footer a:hover {
    color: var(--blog-accent);
}

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

.blog-empty {
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-subtle);
    color: var(--blog-muted);
    margin: 0;
    padding: 24px;
}

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

.blog-category-card {
    display: grid;
    gap: 12px;
    min-height: 180px;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-card);
    color: var(--blog-ink);
    padding: 22px;
    text-decoration: none;
}

.blog-category-card:hover {
    border-color: var(--blog-accent);
    box-shadow: var(--blog-shadow);
}

.blog-category-card span {
    color: var(--blog-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-category-card strong {
    font-size: 26px;
    line-height: 1.1;
}

.blog-category-card p {
    color: var(--blog-muted);
    margin: 0;
    line-height: 1.6;
}

.blog-single {
    padding: 46px 0 68px;
}

.blog-single__shell {
    max-width: 1160px;
}

.blog-preview-alert {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
    margin-bottom: 22px;
    padding: 14px 16px;
}

.blog-single-header {
    max-width: 980px;
    margin: 0 auto 30px;
    text-align: center;
}

.blog-single-header .blog-post-meta {
    justify-content: center;
}

.blog-single-media {
    margin: 0 auto 36px;
    max-width: 1080px;
}

.blog-single-media img {
    display: block;
    width: 100%;
    max-height: 620px;
    border-radius: 8px;
    object-fit: cover;
}

.blog-single-media figcaption {
    color: var(--blog-muted);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;
    gap: 48px;
    align-items: start;
    justify-content: center;
}

.blog-article-body {
    min-width: 0;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.9;
}

.blog-article-body > *:first-child {
    margin-top: 0;
}

.blog-article-body p,
.blog-article-body ul,
.blog-article-body ol,
.blog-article-body blockquote {
    margin: 0 0 1.35em;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    color: var(--blog-ink);
    font-weight: 850;
    line-height: 1.18;
    margin: 1.7em 0 0.7em;
}

.blog-article-body h2 {
    font-size: 32px;
}

.blog-article-body h3 {
    font-size: 25px;
}

.blog-article-body a {
    color: var(--blog-accent);
    font-weight: 800;
}

.blog-article-body img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 720px;
    border-radius: 8px;
    margin: 26px auto;
    object-fit: contain;
}

.blog-article-body .elementor,
.blog-article-body .elementor-element,
.blog-article-body .elementor-widget-container,
.blog-article-body .e-con,
.blog-article-body .e-con-inner {
    max-width: 100%;
}

.blog-article-body .elementor-image-carousel-wrapper,
.blog-article-body .swiper {
    width: 100%;
    margin: 34px 0;
    overflow: visible;
}

.blog-article-body .elementor-image-carousel,
.blog-article-body .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    height: auto;
    transform: none !important;
}

.blog-article-body .swiper-slide {
    width: auto !important;
    height: auto;
}

.blog-article-body .swiper-slide-inner {
    display: block;
    margin: 0;
}

.blog-article-body .swiper-slide-image {
    width: 100%;
    height: 220px;
    margin: 0;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    object-fit: cover;
}

.blog-article-body .elementor-swiper-button,
.blog-article-body .swiper-pagination {
    display: none !important;
}

.blog-article-body .elementor-widget-video {
    margin: 34px 0;
}

.blog-article-body .elementor-wrapper {
    max-width: 760px;
    min-height: 0;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-subtle);
    overflow: hidden;
}

.blog-article-body .elementor-video:empty {
    display: none;
}

.blog-article-body .elementor-custom-embed-image-overlay {
    display: grid;
    min-height: 100%;
    place-items: center;
}

.blog-article-body .elementor-custom-embed-play svg {
    width: 72px;
    height: 72px;
}

.blog-article-body .elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-article-body figure {
    margin: 28px 0;
}

.blog-article-body blockquote {
    border-left: 4px solid var(--blog-accent);
    background: var(--blog-subtle);
    color: var(--blog-ink);
    padding: 18px 22px;
}

.blog-single-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.blog-sidebar-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-subtle);
    padding: 18px;
}

.blog-sidebar-card span {
    color: var(--blog-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.blog-sidebar-card strong {
    color: var(--blog-ink);
    font-size: 18px;
    line-height: 1.25;
}

.blog-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

@media (max-width: 980px) {
    .blog-archive-hero,
    .blog-single-layout,
    .blog-post-grid,
    .blog-category-grid {
        grid-template-columns: 1fr;
    }

    .blog-single-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .blog-shell {
        width: min(100% - 28px, 1180px);
    }

    .blog-archive,
    .blog-single,
    .blog-related {
        padding-top: 34px;
    }

    .blog-archive-hero h1,
    .blog-archive-heading h1,
    .blog-single-header h1 {
        font-size: 36px;
    }

    .blog-post-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
