/* Ensure parent elements don't block sticky */
.wp-block-acf-blog-post-layout,
.wp-block[data-type="acf/blog-post-layout"],
[data-type="acf/blog-post-layout"],
.blog-post-layout {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 60px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
}

.wp-block-acf-blog-post-layout > *,
.wp-block[data-type="acf/blog-post-layout"] > *,
[data-type="acf/blog-post-layout"] > *,
.blog-post-layout > * {
    overflow: visible !important;
}

.blog-post-layout__container {
    display: grid !important;
    grid-template-columns: 1fr 248px !important;
    gap: 80px !important;
    align-items: start !important;
    justify-items: end;
    width: 100% !important;
    min-width: 248px;
    position: relative !important;
    overflow: visible !important;
    min-height: 100vh !important;
}

.blog-post-layout__content {
    min-width: 0;
    overflow: visible !important;
    order: 1;
}

.blog-post-layout__sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 6rem !important;
    align-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    height: fit-content !important;
    max-height: none !important;
    min-width: 248px;
    order: 2;
    z-index: 10 !important;
    will-change: transform !important;
}

.blog-post-layout__share {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post-layout__share-title {
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #51BA6E;
    margin: 0;
}

.blog-post-layout__share-buttons {
    display: flex;
    gap: 1rem;
}

.blog-post-layout__share-button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F8F8F8;
    border-radius: 4px;
    color: #AAAAAA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-post-layout__share-button:hover {
    background-color: #51BA6E;
    color: #FFFFFF;
}

.blog-post-layout__share-button svg {
    width: 20px;
    height: 20px;
}

.blog-post-layout__navigation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid #D9D9D9;
    padding-top: 27px;
}

.blog-post-layout__nav-link {
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #AAAAAA;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-post-layout__nav-link:hover {
    color: #51BA6E;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-post-layout {
        padding: 0 clamp(30px, 5vw, 60px);
    }
    
    .blog-post-layout__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .blog-post-layout__sidebar {
        position: static;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .blog-post-layout__share {
        flex-direction: row;
        align-items: center;
    }
    
    .blog-post-layout__navigation {
        flex-direction: row;
        gap: 1.5rem;
    }
    
}

@media (max-width: 768px) {
    .blog-post-layout {
        padding: 0 20px !important;
    }
    
    .blog-post-layout__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        min-height: auto !important;
    }
    
    .blog-post-layout__sidebar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #E0E0E0;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .blog-post-layout__share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .blog-post-layout__share-title {
        font-size: 11px;
        margin-bottom: 0;
    }
    
    .blog-post-layout__share-buttons {
        gap: 0.75rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .blog-post-layout__share-button {
        width: 28px;
        height: 28px;
    }
    
    .blog-post-layout__share-button svg {
        width: 20px;
        height: 20px;
    }
    
    
    .blog-post-layout__navigation {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .blog-post-layout__nav-link {
        font-size: 11px;
        padding: 0.5rem 0;
    }
    
}

@media (max-width: 480px) {
    .blog-post-layout {
        padding: 0 16px !important;
    }
    
    .blog-post-layout__container {
        gap: 1.25rem !important;
    }
    
    .blog-post-layout__sidebar {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .blog-post-layout__share {
        gap: 0.5rem;
    }
    
    .blog-post-layout__share-title {
        font-size: 10px;
    }
    
    .blog-post-layout__share-buttons {
        gap: 0.5rem;
    }
    
    .blog-post-layout__share-button {
        width: 28px;
        height: 28px;
    }
    
    .blog-post-layout__share-button svg {
        width: 20px;
        height: 20px;
    }
    
    .blog-post-layout__navigation {
        gap: 0.5rem;
    }
    
    .blog-post-layout__nav-link {
        font-size: 10px;
        padding: 0.4rem 0;
    }
}

