/* ===========================
   GLOBAL STICKY FIX
=========================== */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

body {
    overflow: visible !important;
    overflow-x: clip !important;
}

/* ===========================
   BLOG POST LAYOUT
=========================== */
.section-blog-post {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    padding: 70px 105px;
    align-items: start;
    overflow: visible !important;
    height: auto !important;
}

.blog-post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: start;
    height: auto !important;
    overflow: visible !important;
}

/* BODY — completely normal, NO scroll, NO height */
.blog-post-body {
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
}

/* ===========================
   HEADER
=========================== */
.blog-post-header {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    padding-bottom: 12px;
}

.blog-post-side-bar-path {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-post-side-bar-path a {
    text-decoration: none;
}

.blog-post-side-bar-path-item {
    color: #B3B3C0;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.blog-post-side-bar-path-item.path-item-active,
.blog-post-side-bar-section-title.is-active {
    color: #5335D9;
}

.blog-post-side-bar-date {
    color: var(--Dark-Shade-blue-200);
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.blog-post-title {
    color: var(--Dark-Shade-blue-500);
    font-size: 48px;
    font-weight: 500;
    line-height: 54px;
    letter-spacing: -1.44px;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 96px;
}

.blog-post-author-name {
    color: var(--Dark-Shade-blue-200);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

/* ===========================
   THUMBNAIL
=========================== */
.blog-post-thumbnail {
    display: none;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--bg-color-secondary);
    background: var(--color-white);
    margin-bottom: 12px;
}

.blog-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   TOC
=========================== */
.blog-post-toc {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--bg-color-secondary);
    background: var(--color-white);
}

.blog-post-toc-title {
    color: var(--Dark-Shade-blue-500);
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.4px;
}

.blog-post-toc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: stretch;
}

.blog-post-toc-item {
    color: #B3B3C0;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.blog-post-toc-item:hover {
    color: #5335D9;
}

/* ===========================
   SHARE
=========================== */
.blog-post-side-bar-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 22px;
}

.blog-post-side-bar-share-title {
    color: var(--Dark-Shade-blue-500);
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.4px;
}

.blog-post-side-bar-share-items {
    display: flex;
    align-items: center;
    gap: 14px;
}

.share-items-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--bg-color-secondary);
    background: var(--color-white);
}

/* ===========================
   CONTENT
=========================== */
.blog-post-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-post-content > * {
    margin-bottom: 16px;
}

.blog-post-content h2:first-child {
    margin-top: 0;
}

.blog-post-content .wp-block-heading,
.blog-post-content h2 {
    margin-top: 32px;
}

.blog-post-content h2 {
    color: var(--Dark-Shade-blue-500);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -0.24px;
}

.blog-post-content p,
.blog-post-content li {
    color: var(--Dark-Shade-blue-200, #8F8EA1);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.blog-post-content ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-post-content figure {
    margin: 0;
}

.blog-post-content figure img {
    width: 100%;
}

.blog-post-content .wp-block-image,
.wp-block-image.size-full {
    display: flex;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--bg-color-secondary);
    background: var(--color-white);
    margin-bottom: 24px;
}

.blog-post-content .wp-block-paragraph {
    margin-bottom: 16px;
}

/* ===========================
   TABLET
=========================== */
@media (max-width: 960px) {

    .section-blog-post {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 40px 64px 0;
        height: auto !important;
    }

    .blog-post-sidebar {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        flex-shrink: unset;
        overflow: visible !important;
        height: auto !important;
    }

    .blog-post-header {
        width: 100%;
        gap: 16px;
        order: 1;
    }

    .blog-post-body {
        order: 2;
    }

    .blog-post-side-bar-share {
        order: 3;
    }

    .blog-post-meta {
        order: 1;
        padding-bottom: 0;
    }

    .blog-post-title {
        order: 2;
    }

    .blog-post-author {
        order: 3;
        padding-bottom: 48px;
    }

    .blog-post-thumbnail {
        display: block;
        order: 4;
    }

    .blog-post-toc {
        order: 5;
    }

    .blog-post-content figure:first-of-type {
        display: none;
    }

    .blog-post-content .wp-block-image,
    .wp-block-image.size-full {
        margin-bottom: 0;
    }
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 600px) {

    .section-blog-post {
        padding: 40px 16px;
    }

    .blog-post-title {
        margin: 0;
        font-size: 32px;
        letter-spacing: -1.28px;
    }
    .blog-post-content{
        width: 390px;
    }

    .blog-post-author {
        padding-bottom: 10px;
    }

    .blog-post-content .wp-block-heading {
        margin: 0;
    }

    .blog-post-content h2 {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -0.2px;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 16px;
        line-height: 24px;
        margin: 0;
    }
}