/* ========================================
   KAIZEN DENTAL ACADEMY — BLOG STYLES
   Matches main site visual identity (Montserrat, #231f20, #c67011)
   ======================================== */

/* ═══ BLOG HERO ═══ */
.blog-hero {
    position: relative;
    padding: 10rem 0 4rem;
    text-align: center;
    overflow: hidden;
    background: var(--bg-color, #231f20);
}
.blog-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(198,112,17,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.blog-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    letter-spacing: -0.02em;
}
.blog-hero-title span {
    background: linear-gradient(135deg, #c67011 0%, #e7af20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* ═══ FILTER PILLS ═══ */
.blog-filters {
    padding: 2.5rem 0 0;
    background: var(--bg-color, #231f20);
}
.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-pill {
    font-family: 'Montserrat', sans-serif;
    padding: 0.55rem 1.35rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}
.filter-pill:hover {
    border-color: #c67011;
    color: #fff;
}
.filter-pill.active {
    background: linear-gradient(135deg, #c67011 0%, #e7af20 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(198,112,17,0.3);
}

/* ═══ BLOG GRID ═══ */
.blog-grid-section {
    padding: 3rem 0 5rem;
    background: var(--bg-color, #231f20);
    min-height: 400px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
}
.blog-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(198,112,17,0.15);
    border-top-color: #c67011;
    border-radius: 50%;
    animation: blog-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes blog-spin { to { transform: rotate(360deg); } }
.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    font-family: 'Montserrat', sans-serif;
}
.blog-empty h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #fff; font-weight: 700; }
.blog-empty p { color: rgba(255,255,255,0.45); }

/* ═══ BLOG CARD ═══ */
.blog-post-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198,112,17,0.5);
    box-shadow: 0 25px 60px rgba(198,112,17,0.12), 0 0 0 1px rgba(198,112,17,0.15);
}
.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-post-card:hover .blog-card-image {
    transform: scale(1.05);
}
.blog-card-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(198,112,17,0.08) 0%, rgba(231,175,32,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}
.blog-card-image-wrap {
    overflow: hidden;
    position: relative;
}
.blog-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}
.blog-card-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e7af20;
    background: rgba(198,112,17,0.12);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-card-footer .author { font-weight: 600; color: rgba(255,255,255,0.55); }

/* ═══ SINGLE POST ═══ */
.post-cover {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #1a1617;
}
.post-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35,31,32,1) 0%, rgba(35,31,32,0.4) 50%, rgba(35,31,32,0.65) 100%);
}
.post-cover-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}
.post-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e7af20;
    background: rgba(198,112,17,0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.post-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.post-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
}

/* Post content styling */
.post-article {
    background: var(--bg-color, #231f20);
    padding: 3rem 0 5rem;
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}
.post-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.85);
}
.post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #e7af20;
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #fff;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.post-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content a {
    color: #e7af20;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}
.post-content a:hover { color: #c67011; }
.post-content blockquote {
    border-left: 3px solid #c67011;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: rgba(198,112,17,0.06);
    border-radius: 0 8px 8px 0;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* ─── EDITOR.JS RENDERED BLOCKS ─── */
.post-heading { margin: 2.5rem 0 1rem; }
h2.post-heading { font-size: 1.6rem; font-weight: 700; color: #e7af20; }
h3.post-heading { font-size: 1.25rem; font-weight: 600; color: #fff; }
h4.post-heading { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.8); }

.post-list { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-list li { margin-bottom: 0.4rem; color: rgba(255,255,255,0.85); }

.post-image { margin: 2rem 0; text-align: center; }
.post-image img { width: 100%; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.post-image--size-small img { max-width: 320px; }
.post-image--size-medium img { max-width: 520px; }
.post-image--size-large img { max-width: 720px; }
.post-image--size-full img { max-width: 100%; width: 100%; }
.post-image--border img { border: 1px solid rgba(255,255,255,0.12); }
.post-image--bg { background: rgba(255,255,255,0.04); padding: 1rem; border-radius: 14px; }
.post-image--stretched img { width: 100%; }
.post-image-caption { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.4); font-style: italic; }

.post-quote { border-left: 3px solid #c67011; padding: 1rem 1.5rem; margin: 2rem 0; background: rgba(198,112,17,0.06); border-radius: 0 10px 10px 0; }
.post-quote p { color: rgba(255,255,255,0.75); font-style: italic; margin: 0 0 0.4rem; font-size: 1.05rem; }
.post-quote cite { color: rgba(255,255,255,0.35); font-size: 0.85rem; }

.post-delimiter { text-align: center; margin: 2.5rem 0; color: rgba(199,113,17,0.5); letter-spacing: 8px; font-size: 0.85rem; }

.post-embed { margin: 2rem 0; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.3); }
.post-embed iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.post-embed-caption { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); padding: 0.5rem; }

.post-code { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.5rem 0; }
.post-code code { font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.88rem; color: #e7af20; }

/* Share buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-family: 'Montserrat', sans-serif;
}
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.share-btn:hover {
    border-color: #c67011;
    color: #e7af20;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198,112,17,0.2);
}

/* Related posts */
.related-posts {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: 'Montserrat', sans-serif;
}
.related-posts h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.related-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover {
    border-color: rgba(198,112,17,0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(198,112,17,0.08);
}
.related-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card p { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* Blog footer */
.blog-footer {
    background: #1a1617;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(198,112,17,0.1);
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #c67011 0%, #e7af20 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    letter-spacing: 0.08em;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(198,112,17,0.3);
}

/* ═══ COMMENTS SECTION ═══ */
.post-comments {
    padding-top: 4rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: 'Montserrat', sans-serif;
}
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.comments-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}
.comments-count {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    border-radius: 16px;
    position: relative;
    transition: var(--transition);
}
.comment-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(198, 112, 17, 0.2);
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.comment-user {
    font-weight: 700;
    color: #e7af20;
    font-size: 0.95rem;
}
.comment-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}
.comment-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
}

/* Comment Form */
.comment-form-wrap {
    background: rgba(198, 112, 17, 0.03);
    border: 1px solid rgba(198, 112, 17, 0.15);
    padding: 2rem;
    border-radius: 20px;
}
.comment-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}
.comment-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.comment-textarea:focus {
    outline: none;
    border-color: #c67011;
    background: rgba(0,0,0,0.3);
}
.submit-comment-btn {
    background: var(--gradient);
    color: #231f20;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 112, 17, 0.3);
}
.submit-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-to-comment {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    color: rgba(255,255,255,0.4);
}
.login-to-comment a {
    color: #e7af20;
    font-weight: 600;
    text-decoration: none;
}
.login-to-comment a:hover {
    text-decoration: underline;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; padding: 0 1.25rem; }
    .blog-hero { padding: 7rem 0 3rem; }
    .post-cover { min-height: 300px; }
    .post-info { flex-direction: column; gap: 0.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .container-narrow { padding: 0 1.25rem; }
    .comments-header h3 { font-size: 1.2rem; }
}



/* ═══ KAIZEN POST LAYOUT SYSTEM ═══ */
.post-layout {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
}
.post-section {
    width: 100%;
}
.post-section--width-wide,
.post-section--width-full {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.post-section--width-wide {
    width: min(1120px, calc(100vw - 48px));
}
.post-section--width-full {
    width: min(1320px, calc(100vw - 24px));
}
.post-section__inner {
    width: 100%;
    margin: 0 auto;
}
.post-section--width-narrow .post-section__inner {
    max-width: 720px;
}
.post-section--surface-card .post-section__inner,
.post-section--surface-muted .post-section__inner,
.post-section--surface-accent .post-section__inner {
    border-radius: 28px;
    padding: clamp(1.15rem, 2.3vw, 2rem);
}
.post-section--surface-card .post-section__inner {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.post-section--surface-muted .post-section__inner {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.post-section--surface-accent .post-section__inner {
    background: linear-gradient(180deg, rgba(199,113,17,0.16), rgba(199,113,17,0.05));
    border: 1px solid rgba(199,113,17,0.18);
    box-shadow: 0 22px 50px rgba(0,0,0,0.22);
}
.post-section__grid {
    display: grid;
    align-items: start;
}
.post-section__grid--single {
    grid-template-columns: minmax(0, 1fr);
}
.post-section__grid--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.post-section__grid--featureLeft {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
}
.post-section__grid--featureRight {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
}
.post-section__grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.post-section__grid--gap-compact {
    gap: 1rem;
}
.post-section__grid--gap-normal {
    gap: 1.5rem;
}
.post-section__grid--gap-loose {
    gap: 2rem;
}
.post-section__column > *:first-child {
    margin-top: 0;
}
.post-section__column > *:last-child {
    margin-bottom: 0;
}
.post-callout {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}
.post-callout__title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}
.post-callout__body {
    color: rgba(255,255,255,0.78);
}
.post-callout__body p:last-child {
    margin-bottom: 0;
}
.post-callout--accent {
    border-color: rgba(231,175,32,0.25);
    background: rgba(199,113,17,0.08);
}
.post-callout--info {
    border-color: rgba(96,165,250,0.25);
    background: rgba(59,130,246,0.08);
}
.post-callout--success {
    border-color: rgba(74,222,128,0.25);
    background: rgba(34,197,94,0.08);
}
.post-callout--warning {
    border-color: rgba(251,191,36,0.25);
    background: rgba(245,158,11,0.09);
}
.post-button-row {
    display: flex;
    margin: 1.6rem 0;
}
.post-button-row--left {
    justify-content: flex-start;
}
.post-button-row--center {
    justify-content: center;
}
.post-button-row--right {
    justify-content: flex-end;
}
.post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.post-button:hover {
    transform: translateY(-2px);
}
.post-button--solid {
    background: linear-gradient(135deg, #e7af20, #c67011);
    color: #1b1206 !important;
    box-shadow: 0 14px 28px rgba(198,112,17,0.28);
}
.post-button--outline {
    background: transparent;
    border: 1px solid rgba(231,175,32,0.45);
    color: #f7d889 !important;
}
.post-button--ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff !important;
}
.post-button--outline:hover,
.post-button--ghost:hover {
    border-color: rgba(231,175,32,0.5);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
@media (max-width: 1024px) {
    .post-section--width-wide,
    .post-section--width-full {
        left: auto;
        transform: none;
        width: 100%;
    }
    .post-section__grid--split,
    .post-section__grid--featureLeft,
    .post-section__grid--featureRight,
    .post-section__grid--triple {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .post-layout {
        gap: 1.35rem;
    }
    .post-section--surface-card .post-section__inner,
    .post-section--surface-muted .post-section__inner,
    .post-section--surface-accent .post-section__inner {
        border-radius: 22px;
        padding: 1rem;
    }
    .post-button {
        width: 100%;
    }
    .post-button-row--left,
    .post-button-row--center,
    .post-button-row--right {
        justify-content: stretch;
    }
}

/* ═══ KAIZEN POST LAYOUT TUNING ═══ */
.post-content {
    overflow: visible;
}
.post-layout {
    gap: 2.2rem;
}
.post-section {
    isolation: isolate;
}
.post-section__inner {
    position: relative;
}
.post-section__grid {
    position: relative;
}
.post-section__column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.post-section__column > .post-heading,
.post-section__column > p,
.post-section__column > .post-list,
.post-section__column > .post-image,
.post-section__column > .post-quote,
.post-section__column > .post-callout,
.post-section__column > .post-button-row,
.post-section__column > .post-delimiter,
.post-section__column > .post-embed,
.post-section__column > .post-code {
    margin: 0;
}
.post-section--single .post-section__column {
    gap: 1.35rem;
}
.post-section--multi .post-section__inner {
    padding: clamp(0.4rem, 1vw, 0.7rem);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.05);
}
.post-section--multi .post-section__column--panel {
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border-radius: 24px;
    background: rgba(10,10,15,0.36);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.post-section--surface-default.post-section--single .post-section__inner {
    background: transparent;
    border: 0;
    padding: 0;
}
.post-section--surface-default.post-section--multi .post-section__column--panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.018));
}
.post-section--surface-card.post-section--multi .post-section__column--panel {
    background: rgba(0,0,0,0.24);
    border-color: rgba(255,255,255,0.08);
}
.post-section--surface-muted.post-section--multi .post-section__inner {
    background: rgba(255,255,255,0.028);
}
.post-section--surface-muted.post-section--multi .post-section__column--panel {
    background: rgba(255,255,255,0.022);
}
.post-section--surface-accent.post-section--multi .post-section__inner {
    background: linear-gradient(180deg, rgba(199,113,17,0.18), rgba(199,113,17,0.06));
}
.post-section--surface-accent.post-section--multi .post-section__column--panel {
    background: rgba(35,24,11,0.42);
    border-color: rgba(231,175,32,0.16);
}
.post-section__grid--cols-2::before,
.post-section__grid--cols-3::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
    opacity: 0.55;
}
.post-section--width-narrow.post-section--multi .post-section__inner {
    max-width: 920px;
}
.post-section--width-wide .post-section__inner {
    max-width: 1080px;
}
.post-section--width-full .post-section__inner {
    max-width: 1280px;
}
.post-section--multi .post-heading {
    margin-bottom: 0.15rem;
}
.post-section--multi .post-image img {
    width: 100%;
}
.post-section--multi .post-button {
    width: auto;
}
.post-section--multi .post-quote,
.post-section--multi .post-callout,
.post-section--multi .post-code,
.post-section--multi .post-embed,
.post-section--multi .post-image--bg {
    border-radius: 18px;
}
@media (max-width: 1024px) {
    .post-section--multi .post-section__inner {
        padding: 0;
        border: 0;
        background: transparent;
    }
    .post-section--multi .post-section__column--panel {
        padding: 1rem;
    }
}
@media (max-width: 768px) {
    .post-layout {
        gap: 1.5rem;
    }
    .post-section__column,
    .post-section--single .post-section__column {
        gap: 1rem;
    }
    .post-section--multi .post-section__column--panel {
        border-radius: 20px;
    }
}

/* ═══ KAIZEN BLOCK SPACING CONTROLS ═══ */
.post-section__column {
    gap: 0;
}
.post-section--single .post-section__column {
    gap: 0;
}
.post-block {
    min-width: 0;
}
.post-section__column > .post-block:first-child {
    margin-top: 0 !important;
}
.post-section__column > .post-block:last-child {
    margin-bottom: 0 !important;
}
.post-block > :first-child {
    margin-top: 0 !important;
}
.post-block > :last-child {
    margin-bottom: 0 !important;
}
.post-block--before-none { margin-top: 0; }
.post-block--before-tight { margin-top: 0.35rem; }
.post-block--before-normal { margin-top: 0.8rem; }
.post-block--before-relaxed { margin-top: 1.35rem; }
.post-block--before-airy { margin-top: 2rem; }
.post-block--after-none { margin-bottom: 0; }
.post-block--after-tight { margin-bottom: 0.45rem; }
.post-block--after-normal { margin-bottom: 1rem; }
.post-block--after-relaxed { margin-bottom: 1.6rem; }
.post-block--after-airy { margin-bottom: 2.3rem; }
@media (max-width: 768px) {
    .post-block--before-airy { margin-top: 1.5rem; }
    .post-block--after-airy { margin-bottom: 1.8rem; }
    .post-block--before-relaxed { margin-top: 1.1rem; }
    .post-block--after-relaxed { margin-bottom: 1.25rem; }
}

/* Kaizen section frame controls */
.post-section__column--panel {
    padding: clamp(1rem, 1.8vw, 1.35rem);
    border-radius: 24px;
    background: rgba(10,10,15,0.36);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.post-section--frame-auto.post-section--single .post-section__column--panel,
.post-section--frame-none .post-section__column--panel {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.post-section--frame-none.post-section--multi .post-section__inner {
    padding: 0;
    border: 0;
    background: transparent;
}
.post-section--frame-none.post-section--multi .post-section__grid::before {
    display: none;
}
.post-section--frame-thin .post-section__column--panel {
    border-width: 1px;
    border-color: rgba(255,255,255,0.08);
    background: rgba(12,12,18,0.34);
}
.post-section--frame-medium .post-section__column--panel {
    border-width: 2px;
    border-color: rgba(255,255,255,0.12);
    background: rgba(14,14,20,0.42);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
}
.post-section--frame-bold .post-section__column--panel {
    border-width: 3px;
    border-color: rgba(231,175,32,0.22);
    background: linear-gradient(180deg, rgba(199,113,17,0.14), rgba(16,11,7,0.72));
    box-shadow: 0 16px 34px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}
.post-section--surface-card.post-section--frame-bold .post-section__column--panel,
.post-section--surface-accent.post-section--frame-bold .post-section__column--panel {
    border-color: rgba(231,175,32,0.28);
}
@media (max-width: 1024px) {
    .post-section__column--panel {
        padding: 1rem;
    }
}
@media (max-width: 768px) {
    .post-section__column--panel {
        border-radius: 20px;
    }
}

/* Kaizen block border controls */
.post-block--border-none {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.post-block--border-thin {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.022);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.post-block--border-medium {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}
.post-block--border-bold {
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    border: 3px solid rgba(231,175,32,0.18);
    background: linear-gradient(180deg, rgba(199,113,17,0.1), rgba(20,14,9,0.56));
    box-shadow: 0 16px 30px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (max-width: 768px) {
    .post-block--border-thin,
    .post-block--border-medium,
    .post-block--border-bold {
        padding: 0.85rem 0.95rem;
    }
    .post-block--border-bold {
        border-width: 2px;
    }
}
