.blog-post-page {
    padding: calc(var(--navbar-height) + 2.2rem) 0 4rem;
    background: linear-gradient(180deg, #fff7f5 0%, #fffdfa 45%, #fff 100%);
}

.blog-post-masthead {
    text-align: center;
    margin-bottom: 1.4rem;
}

.blog-post-masthead__title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    color: #2f2925;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-bottom: 0.3rem;
}

.blog-post-masthead__title a,
.blog-post-masthead__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.blog-post-masthead__title a:hover,
.blog-post-masthead__title a:hover {
    color: var(--color-main);
}

.blog-post-page__container {
    max-width: 980px;
}

.blog-post-article {
    background: #fff;
    border: 1px solid rgba(231, 76, 60, 0.12);
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(94, 49, 39, 0.08);
    padding: 1.1rem;
}

.blog-post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    color: #6f665f;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    align-items: center;
}

.blog-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.blog-meta-group {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

.blog-meta-pill--category {
    color: #8f271a;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.14), rgba(255, 184, 138, 0.22));
    border-color: rgba(231, 76, 60, 0.24);
}

.blog-meta-pill--discipline {
    color: #1e4f8a;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(125, 211, 252, 0.24));
    border-color: rgba(59, 130, 246, 0.24);
}

.blog-post-hero__disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
}

.blog-post-hero__discipline {
    min-height: 2.1rem;
    padding: 0.45rem 0.9rem;
    box-shadow: 0 8px 16px rgba(94, 49, 39, 0.08);
    font-size: 0.84rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blog-post-hero__discipline:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 12px 20px rgba(94, 49, 39, 0.12);
    color: #173f70;
}

.blog-post-hero h1 {
    font-family: var(--font-title);
    letter-spacing: 0.03em;
    color: #2f2925;
    font-size: clamp(1.95rem, 4.2vw, 3rem);
    line-height: 0.96;
    margin-bottom: 0.55rem;
}

.blog-post-hero__excerpt {
    color: #4a423c;
    margin-bottom: 0.9rem;
}

.blog-post-hero__credits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin: 0.6rem 0 0;
    color: #8b8179;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.blog-post-hero__credits-separator {
    color: #b9afa7;
}

.blog-gallery {
    position: relative;
    width: 100%;
    min-height: 460px;
    max-height: 760px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f2ed 0%, #fffaf6 100%);
}

.blog-gallery__slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.blog-gallery__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    object-fit: contain;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.blog-gallery__slide.is-active {
    opacity: 1;
}

.blog-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(28, 24, 22, 0.35);
    color: #fff;
    cursor: pointer;
    z-index: 3;
}

.blog-gallery__nav--prev {
    left: 0.65rem;
}

.blog-gallery__nav--next {
    right: 0.65rem;
}

.blog-gallery__dots {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 0.35rem;
    z-index: 3;
}

.blog-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.blog-gallery__dot.is-active {
    background: #fff;
}

.blog-post-content {
    margin-top: 1rem;
    display: flow-root;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.blog-post-content > * + * {
    margin-top: 0.72rem;
}

.blog-post-content p {
    color: #39332e;
    line-height: 1.72;
}

.blog-post-content img,
.blog-post-content video,
.blog-post-content iframe,
.blog-post-content table,
.blog-post-content pre {
    max-width: 100%;
}

.blog-post-content img[data-rt-image="1"] {
    height: auto;
    border-radius: 2px;
}

.blog-post-content img[data-rt-image="1"][data-rt-layout="float-left"] {
    float: left;
    margin: 0 12px 8px 0;
}

.blog-post-content img[data-rt-image="1"][data-rt-layout="float-right"] {
    float: right;
    margin: 0 0 8px 12px;
}

.blog-post-content img[data-rt-image="1"][data-rt-layout="block-center"] {
    float: none;
    display: block;
    margin: 8px auto;
}

.blog-post-content img[data-rt-image="1"][data-rt-layout="block-left"] {
    float: none;
    display: block;
    margin: 8px auto 8px 0;
}

.blog-post-content img[data-rt-image="1"][data-rt-layout="block-right"] {
    float: none;
    display: block;
    margin: 8px 0 8px auto;
}

.blog-post-content table {
    overflow-x: auto;
    display: block;
}

.blog-post-content pre {
    overflow-x: auto;
    white-space: pre-wrap;
}

.blog-post-content b,
.blog-post-content strong {
    font-weight: 700;
}

.blog-post-content .blog-post-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(57, 51, 46, 0.26);
    margin: 1.05rem 0;
}

.blog-back-link {
    display: inline-block;
    margin-top: 1.1rem;
    color: var(--color-main);
    font-weight: 700;
}

.blog-post-empty {
    background: #fff;
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-radius: 14px;
    padding: 1rem;
}

.blog-related {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(231, 76, 60, 0.12);
    border-radius: 14px;
    padding: 1rem;
}

.blog-related h2 {
    font-family: var(--font-title);
    letter-spacing: 0.03em;
    color: #2f2925;
    margin-bottom: 0.6rem;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.blog-related__item {
    display: grid;
    gap: 0.45rem;
    color: inherit;
}

.blog-related__item img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(180deg, #f8f2ed 0%, #fffaf6 100%);
    padding: 0.35rem;
}

.blog-related__item h3 {
    font-size: 0.97rem;
    color: #2f2925;
}

.blog-related__item time {
    font-size: 0.78rem;
    color: #726960;
}

@media (max-width: 900px) {
    .blog-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .blog-gallery,
    .blog-gallery__slides {
        min-height: 320px;
        max-height: 500px;
    }

    .blog-post-page {
        padding-top: calc(var(--navbar-height) + 1.15rem);
    }

    .blog-post-article,
    .blog-related {
        padding: 0.9rem;
    }
}

@media (min-width: 2560px) {
    .blog-post-page {
        padding: calc(var(--navbar-height) + 3rem) 0 5.6rem;
    }

    .blog-post-masthead {
        margin-bottom: 2.2rem;
    }

    .blog-post-masthead__title {
        font-size: clamp(3rem, 3.8vw, 4.5rem);
    }

    .blog-post-page__container {
        max-width: 1680px;
    }

    .blog-post-article {
        border-radius: 24px;
        padding: 1.8rem;
    }

    .blog-post-hero__meta {
        font-size: 1.02rem;
        gap: 0.7rem;
    }

    .blog-post-hero h1 {
        font-size: clamp(3rem, 3.8vw, 4.5rem);
        margin-bottom: 0.85rem;
    }

    .blog-post-hero__excerpt {
        font-size: 1.3rem;
        line-height: 1.65;
        margin-bottom: 1.2rem;
    }

    .blog-gallery {
        min-height: 720px;
        max-height: 980px;
        border-radius: 16px;
    }

    .blog-gallery__slides {
        min-height: 720px;
    }

    .blog-gallery__nav {
        width: 48px;
        height: 48px;
        font-size: 1.7rem;
    }

    .blog-gallery__dot {
        width: 10px;
        height: 10px;
    }

    .blog-post-content {
        margin-top: 1.35rem;
        gap: 1rem;
    }

    .blog-post-content p {
        font-size: 1.16rem;
        line-height: 1.85;
    }

    .blog-back-link {
        font-size: 1.08rem;
    }

    .blog-related {
        margin-top: 1.3rem;
        border-radius: 18px;
        padding: 1.3rem;
    }

    .blog-related h2 {
        font-size: 2.5rem;
        margin-bottom: 0.9rem;
    }

    .blog-related__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .blog-related__item img {
        height: 190px;
        border-radius: 12px;
    }

    .blog-related__item h3 {
        font-size: 1.22rem;
    }

    .blog-related__item time {
        font-size: 0.92rem;
    }
}
