:root {
    --blog-red: #e7181b;
    --blog-ink: #101014;
    --blog-muted: #687080;
    --blog-surface: #f7f8fa;
}

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

.blog-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    color: #fff;
    background: var(--gradient-premium-dark, linear-gradient(135deg, #111216, #202126));
}

.blog-glow-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 24, 27, .15), transparent 70%);
}

.blog-hero .blog-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 30px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
    animation: blog-pulse 2s infinite;
}

@keyframes blog-pulse {
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.blog-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.blog-hero h1 span { color: var(--blog-red); }

.blog-hero > .blog-shell > p:last-child {
    max-width: 600px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.75;
}

.blog-listing { padding: 72px 0 88px; background: var(--blog-surface); }

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

.blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ebee;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(14, 18, 28, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(14, 18, 28, .12); }

.blog-card-image { position: relative; display: block; height: 215px; overflow: hidden; background: #1b1d23; }
.blog-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-image span { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 99px; color: #fff; background: var(--blog-red); font-size: .7rem; font-weight: 700; }

.blog-card-content { padding: 22px 22px 24px; }
.blog-meta { margin: 0 0 10px; color: var(--blog-muted); font-size: .75rem; }
.blog-meta b { padding: 0 5px; color: var(--blog-red); }
.blog-card h2 { margin: 0; font-size: 1.18rem; line-height: 1.35; }
.blog-card h2 a { color: var(--blog-ink); text-decoration: none; }
.blog-card h2 a:hover, .blog-read-more:hover { color: var(--blog-red); }
.blog-excerpt { display: -webkit-box; overflow: hidden; margin: 13px 0 18px; color: #4d5563; font-size: .89rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-read-more { color: var(--blog-ink); font-size: .84rem; font-weight: 700; text-decoration: none; }
.blog-read-more i { margin-left: 5px; color: var(--blog-red); transition: transform .2s ease; }
.blog-read-more:hover i { transform: translateX(4px); }

.blog-load-more { display: flex; justify-content: center; margin-top: 48px; }
.blog-load-button { padding: 13px 25px; border: 1.5px solid var(--blog-red); border-radius: 99px; color: var(--blog-red); font-size: .85rem; font-weight: 700; text-decoration: none; transition: .25s ease; }
.blog-load-button:hover { color: #fff; background: var(--blog-red); }
.blog-load-button i { margin-left: 7px; }
.blog-filter { margin: 0 0 25px; color: var(--blog-muted); }
.blog-filter strong { color: var(--blog-ink); }
.blog-filter a { margin-left: 10px; color: var(--blog-red); font-weight: 700; text-decoration: none; }
.blog-empty { padding: 48px 20px; color: var(--blog-muted); text-align: center; }
.blog-empty h1, .blog-empty h2 { color: var(--blog-ink); }
.blog-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 45px; }
.blog-categories a { padding: 8px 13px; border: 1px solid #e5e7eb; border-radius: 99px; color: var(--blog-muted); font-size: .78rem; text-decoration: none; }
.blog-categories a:hover { border-color: var(--blog-red); color: var(--blog-red); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-shell { width: min(100% - 32px, 1200px); } .blog-hero { padding: 125px 0 70px; } .blog-hero > .blog-shell > p:last-child { font-size: 1.08rem; } .blog-listing { padding: 45px 0 60px; } .blog-grid { grid-template-columns: 1fr; gap: 22px; } .blog-card-image { height: 205px; } }

/* Article detail page */
.post-shell { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.post-hero { position: relative; overflow: hidden; padding: 118px 0 58px; color: #fff; text-align: center; background: var(--gradient-premium-dark, #141418); }
.post-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 25%, rgba(231,24,27,.35), transparent 47%); }
.post-hero .post-shell { position: relative; z-index: 1; max-width: 930px; }
.post-breadcrumb { display: inline-block; margin: 0 0 15px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 30px; color: #eee; font-size: .7rem; }
.post-breadcrumb a { color: inherit; text-decoration: none; }
.post-breadcrumb span, .post-byline span { padding: 0 5px; color: var(--blog-red); }
.post-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.12; letter-spacing: -.04em; }
.post-byline { margin: 17px 0 0; color: #d0d5dd; font-size: .82rem; }
.post-content-section { padding: 64px 0 84px; background: #fff; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 52px; align-items: start; }
.post-article { max-width: 790px; color: #2c313b; font-size: .97rem; line-height: 1.72; }
.post-article p { margin: 0 0 16px; }
.dynamic-post-content { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.dynamic-post-content p { margin: 0 0 16px; }
.dynamic-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px auto; display: block; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.dynamic-post-content figure.image { margin: 24px auto; text-align: center; max-width: 100%; }
.dynamic-post-content figure.image img { margin: 0 auto; }
.dynamic-post-content figure.image figcaption { font-size: 0.82rem; color: var(--blog-muted); margin-top: 8px; font-style: italic; }
.post-article h2 { margin: 34px 0 12px; color: #13161c; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.2; }
.post-article h3 { margin: 25px 0 7px; color: #161a20; font-size: 1.25rem; line-height: 1.3; }
.post-article ul { margin: 0 0 17px; padding-left: 20px; }
.post-article li { margin-bottom: 3px; }
.post-feature-image { display: block; width: 100%; height: 410px; margin: 0 0 18px; object-fit: cover; background: #eef2f6; }
.post-feature-image-second { height: 350px; margin-bottom: 24px; }
.post-sidebar { position: sticky; top: 105px; padding-top: 8px; }
.post-sidebar h2 { margin: 0 0 15px; font-size: 1.15rem; color: #17191e; }
.post-sidebar ul { margin: 0; padding: 0; list-style: none; }
.post-sidebar li { margin: 0 0 8px; }
.post-sidebar a { color: #4e5664; font-size: .78rem; text-decoration: none; }
.post-sidebar a:hover { color: var(--blog-red); }
.post-promo { overflow: hidden; margin: 18px 0; border: 1px solid #eee; }
.post-promo img { display: block; width: 100%; height: 400px; object-fit: cover; }
.two-column-list { columns: 2; }
.post-cta { margin-top: 38px; padding: 29px; border-left: 4px solid var(--blog-red); background: #f8f9fa; }
.post-cta p { margin: 0 0 6px; color: #161a20; font-size: 1.45rem; font-weight: 800; }
.post-cta span { display: block; color: #596170; font-size: .88rem; }
.post-cta a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 18px; border-radius: 30px; color: #fff; background: var(--blog-red); font-size: .85rem; font-weight: 700; text-decoration: none; }
.related-posts { margin-top: 48px; padding-top: 34px; border-top: 1px solid #e6e8eb; }
.related-posts > h2 { margin: 0 0 20px; font-size: 1.5rem; }
.related-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-post-card { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; color: #1a1c22; background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.related-post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.1); }
.related-post-card img { display: block; width: 100%; height: 120px; object-fit: cover; }
.related-post-card span { display: block; margin: 12px 12px 5px; color: var(--blog-red); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.related-post-card strong { display: block; padding: 0 12px 15px; font-size: .78rem; line-height: 1.45; }
@media (max-width: 780px) { .post-hero { padding: 105px 0 48px; } .post-layout { grid-template-columns: 1fr; gap: 35px; } .post-sidebar { position: static; order: -1; padding: 20px; background: #f8f9fa; } .post-sidebar ul { columns: 2; } .post-feature-image { height: 270px; } .post-feature-image-second, .post-promo img { height: 250px; } .related-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .related-post-grid { grid-template-columns: 1fr; } .related-post-card { display: grid; grid-template-columns: 125px 1fr; align-items: center; } .related-post-card img { grid-row: span 2; width: 125px; height: 100%; min-height: 112px; } .related-post-card span { margin: 15px 14px 4px; } .related-post-card strong { padding: 0 14px 15px; font-size: .86rem; } }
@media (max-width: 480px) { .post-shell { width: min(100% - 32px, 1140px); } .post-hero h1 { font-size: 1.85rem; } .post-sidebar ul, .two-column-list { columns: 1; } .post-feature-image { height: 210px; } }
