/* ==========================================
   SINGLE BLOG POST STYLES - PREMIUM v2.0
   ========================================== */

/* Sticky back-row which avoids being covered by fixed navbar */
.back-row {
    position: sticky;
    top: calc(64px + 20px);
    z-index: 100;
    margin-bottom: -40px;
    pointer-events: none;
}

.back-link {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-link:hover {
    transform: translateX(-5px) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    background: white;
    color: var(--hub-purple);
}

/* Page-specific tweaks to align with blog list aesthetics */
.post-wrap {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 25px 100px;
}

.post-hero {
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 50px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease;
}

.hero-img {
    width: 100%;
    height: 450px;
    display: block;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header {
    padding: 45px 50px;
    background: white;
}

.post-title {
    margin: 0 0 20px;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.post-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.post-content {
    padding: 20px 0;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.15rem;
}

.post-category {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(106, 27, 154, 0.05);
    color: var(--hub-purple);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(106, 27, 154, 0.1);
}

/* Typography refinement for article content */
.post-article h2,
.post-article h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin: 2.5rem 0 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-article h3 {
    font-size: 2rem;
    color: var(--hub-purple);
}

.post-article h4 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.post-article p {
    margin-bottom: 1.8rem;
}

.post-article ul,
.post-article ol {
    margin: 0 0 2rem 2rem;
}

.post-article li {
    margin-bottom: 0.8rem;
    padding-left: 5px;
}

.post-article blockquote {
    border-left: 4px solid var(--hub-gold);
    padding: 20px 30px;
    background: #fdfbf7;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 15px 15px 0;
}

/* Responsive */
@media (max-width: 968px) {
    .post-header {
        padding: 35px 30px;
    }

    .post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-hero .hero-img {
        height: 280px;
    }

    .post-wrap {
        margin: 30px auto;
        padding: 0 15px 60px;
    }

    .post-header {
        padding: 25px 20px;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-content {
        font-size: 1.05rem;
    }

    .back-row {
        top: calc(64px + 10px);
    }
}