/* ================== SINGLE BLOG POST STYLES ================== */

.blog-post-page {
    background-color: var(--bg-secondary);
}

.page-header-container {
    position: sticky;
    top: 0;
    z-index: 999;
}

.blog-post-page .main-header {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: var(--header-scrolled-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative; 
    z-index: 1001;
}

.post-main {
    padding-top: 3rem; /* Re-added to push content below sticky header */
    background-color: var(--bg-secondary);
}

/* Breadcrumb styles moved to main style.css */

/* Header CTA styles moved to main style.css */

.post-content {
    max-width: 800px;
    margin: 0 auto 6rem; /* Changed top margin */
    background: var(--bg-primary);
    padding: 3rem 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-category {
    display: inline-block;
    background-color: var(--tag-secondary-bg);
    color: var(--primary-blue);
    border: 1px solid var(--tag-secondary-border);
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

body.dark-mode .post-category {
    color: #a5b4fc;
}

.post-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-inverted);
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
}

.author-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.post-main-image {
    float: right;
    max-width: 320px;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.post-featured-image-container {
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
}

.post-featured-image-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    transition: transform 0.4s ease;
}

.post-main-image figcaption {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.75rem;
}

.post-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.post-body p {
    margin: 0 0 1.5rem 0;
}

.post-body h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-inverted);
    margin: 2.5rem 0 1rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-blue);
    margin: 2rem 0;
    padding: 0.5rem 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-inverted);
}

/* Responsive */
@media (max-width: 992px) {
    .btn-back {
        display: none; /* Hide back button to save space */
    }
}

@media (max-width: 768px) {
    .post-content {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    .post-title {
        font-size: 2rem;
    }
    .post-main-image {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 2rem;
    }
}