.blog-detail-page {
    --blog-detail-dark: #111318;
    --blog-detail-orange: var(--theme-color, #ff6b35);
    --blog-detail-ink: #17191d;
    --blog-detail-muted: #686c74;
    --blog-detail-line: #e1e2e4;
    background: #ffffff;
}

/* ---- Hero ---- */
.blog-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 86px 0 104px;
    background:
        linear-gradient(118deg, rgba(255, 107, 53, 0.08), transparent 38%),
        var(--blog-detail-dark);
}

.blog-detail-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 50%, #000);
}

.blog-detail-hero__glow {
    position: absolute;
    z-index: -1;
    right: -180px;
    bottom: -320px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(255, 107, 53, 0.035),
        0 0 0 180px rgba(255, 107, 53, 0.025);
}

.blog-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 600;
}

.blog-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 200ms ease;
}

.blog-detail-breadcrumb a:hover {
    color: var(--blog-detail-orange);
}

.blog-detail-breadcrumb i {
    color: rgba(255, 255, 255, 0.28);
    font-size: 8px;
}

.blog-detail-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--blog-detail-orange);
    font: 700 12px/1.2 var(--secondary-font, "Inter", sans-serif);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-detail-eyebrow > span {
    width: 34px;
    height: 2px;
    background: currentColor;
}

.blog-detail-eyebrow--light {
    color: #ff8b60;
}

.blog-detail-hero h1 {
    max-width: 930px;
    color: #ffffff;
    font-size: clamp(42px, 4.7vw, 66px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.042em;
}

.blog-detail-hero__lead {
    max-width: 720px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 17px;
    line-height: 1.75;
}

.blog-detail-meta {
    margin-left: auto;
    padding: 8px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.blog-detail-meta__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-detail-meta__item:last-child {
    border-bottom: 0;
}

.blog-detail-meta__item > i {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--blog-detail-orange);
    background: rgba(255, 107, 53, 0.1);
    font-size: 14px;
}

.blog-detail-meta__item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.blog-detail-meta__item span {
    color: rgba(255, 255, 255, 0.44);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-detail-meta__item strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* ---- Article layout ---- */
.blog-detail-content-section {
    padding: 120px 0 128px;
    background: #f4f4f2;
}

.blog-detail-article {
    overflow: hidden;
    border: 1px solid var(--blog-detail-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(18, 20, 24, 0.07);
}

.blog-detail-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0;
    background: #e8e8e5;
}

.blog-detail-cover::after {
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    content: "";
    background: linear-gradient(transparent, rgba(17, 19, 24, 0.18));
    pointer-events: none;
}

.blog-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-detail-article__body {
    padding: 52px 56px 46px;
}

.blog-detail-prose {
    color: #4f535a;
    font-size: 17px;
    line-height: 1.9;
}

.blog-detail-prose > *:first-child {
    margin-top: 0;
}

.blog-detail-prose > *:last-child {
    margin-bottom: 0;
}

.blog-detail-prose p {
    margin: 0 0 24px;
    color: #4f535a;
    font-size: 17px;
    line-height: 1.9;
}

.blog-detail-prose h2,
.blog-detail-prose h3,
.blog-detail-prose h4 {
    color: var(--blog-detail-ink);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-detail-prose h2 {
    margin: 48px 0 20px;
    font-size: clamp(28px, 3vw, 38px);
}

.blog-detail-prose h3 {
    margin: 38px 0 16px;
    font-size: 26px;
}

.blog-detail-prose h4 {
    margin: 30px 0 14px;
    font-size: 21px;
}

.blog-detail-prose a {
    color: var(--blog-detail-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-detail-prose ul,
.blog-detail-prose ol {
    margin: 0 0 26px;
    padding-left: 24px;
}

.blog-detail-prose li {
    margin-bottom: 9px;
}

.blog-detail-prose li::marker {
    color: var(--blog-detail-orange);
}

.blog-detail-prose blockquote {
    margin: 38px 0;
    padding: 26px 30px;
    border-left: 4px solid var(--blog-detail-orange);
    border-radius: 0 16px 16px 0;
    color: var(--blog-detail-ink);
    background: #f6f6f4;
    font: 500 19px/1.7 var(--primary-font, "Outfit", sans-serif);
}

.blog-detail-prose img {
    width: 100%;
    height: auto;
    margin: 34px 0;
    border-radius: 16px;
}

.blog-detail-prose table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
}

.blog-detail-prose th,
.blog-detail-prose td {
    padding: 13px 16px;
    border: 1px solid var(--blog-detail-line);
    text-align: left;
}

.blog-detail-prose th {
    color: var(--blog-detail-ink);
    background: #f5f5f3;
}

.blog-detail-tags {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--blog-detail-line);
}

.blog-detail-tags > span {
    padding-top: 7px;
    color: var(--blog-detail-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-detail-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-detail-tags li {
    padding: 7px 12px;
    border: 1px solid #e6e6e3;
    border-radius: 50px;
    color: #666a71;
    background: #f8f8f6;
    font-size: 11px;
    font-weight: 600;
}

.blog-detail-article__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--blog-detail-line);
}

.blog-detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blog-detail-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 200ms ease, gap 200ms ease;
}

.blog-detail-back-link:hover {
    gap: 13px;
    color: var(--blog-detail-orange);
}

.blog-detail-article__footer > span {
    color: #a1a3a8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- Sidebar ---- */
.blog-detail-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.blog-detail-sidebar-card {
    padding: 30px;
    border: 1px solid var(--blog-detail-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(18, 20, 24, 0.045);
}

.blog-detail-sidebar-card__label {
    display: block;
    margin-bottom: 13px;
    color: var(--blog-detail-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-detail-sidebar-card h2 {
    color: var(--blog-detail-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-detail-sidebar-card p {
    margin-top: 13px;
    color: var(--blog-detail-muted);
    font-size: 13px;
    line-height: 1.75;
}

.blog-detail-sidebar-card--intro > a,
.blog-detail-sidebar-card--action > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--blog-detail-orange);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 200ms ease;
}

.blog-detail-sidebar-card--intro > a:hover,
.blog-detail-sidebar-card--action > a:hover {
    gap: 12px;
}

.blog-detail-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-detail-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--blog-detail-line);
    border-radius: 12px;
    color: var(--blog-detail-ink);
    background: #f8f8f6;
    text-decoration: none;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.blog-detail-share-links a:hover {
    color: #ffffff;
    border-color: var(--blog-detail-orange);
    background: var(--blog-detail-orange);
    transform: translateY(-3px);
}

.blog-detail-sidebar-card--action {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    background: var(--blog-detail-dark);
}

.blog-detail-sidebar-card--action::after {
    position: absolute;
    z-index: -1;
    right: -80px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border: 42px solid rgba(255, 107, 53, 0.08);
    border-radius: 50%;
    content: "";
}

.blog-detail-sidebar-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 14px;
    color: var(--blog-detail-orange);
    background: rgba(255, 107, 53, 0.1);
    font-size: 19px;
}

.blog-detail-sidebar-card--action h2 {
    color: #ffffff;
}

.blog-detail-sidebar-card--action p {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Responsive ---- */
@media only screen and (max-width: 1199px) {
    .blog-detail-hero h1 {
        font-size: 53px;
    }

    .blog-detail-article__body {
        padding: 44px 42px 40px;
    }
}

@media only screen and (max-width: 991px) {
    .blog-detail-hero {
        padding: 76px 0 88px;
    }

    .blog-detail-meta {
        margin-top: 48px;
        margin-left: 0;
    }

    .blog-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
    }

    .blog-detail-sidebar-card--action {
        grid-column: 1 / -1;
    }
}

@media only screen and (max-width: 767px) {
    .blog-detail-hero {
        padding: 64px 0 74px;
    }

    .blog-detail-breadcrumb {
        margin-bottom: 38px;
    }

    .blog-detail-hero h1 {
        font-size: 39px;
        line-height: 1.1;
    }

    .blog-detail-hero__lead {
        font-size: 16px;
    }

    .blog-detail-content-section {
        padding: 80px 0 88px;
    }

    .blog-detail-article {
        border-radius: 20px;
    }

    .blog-detail-article__body {
        padding: 34px 26px 30px;
    }

    .blog-detail-prose,
    .blog-detail-prose p {
        font-size: 16px;
        line-height: 1.82;
    }

    .blog-detail-tags,
    .blog-detail-article__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-detail-sidebar-card--action {
        grid-column: auto;
    }
}

@media only screen and (max-width: 575px) {
    .blog-detail-hero h1 {
        font-size: 34px;
    }

    .blog-detail-meta {
        padding: 8px 22px;
    }

    .blog-detail-cover {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-detail-breadcrumb a,
    .blog-detail-back-link,
    .blog-detail-sidebar-card--intro > a,
    .blog-detail-sidebar-card--action > a,
    .blog-detail-share-links a {
        transition: none;
    }
}
