/* --- SINGLE BLOG POST LAYOUT --- */
.single-post-wrapper {
    /* Limit width to 800px for optimal reading experience */
    max-width: 850px; 
    margin: 40px auto 80px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.post-breadcrumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}
.post-breadcrumbs a {
    color: var(--rlp-red, #e3003a);
    text-decoration: none;
}
.post-breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- POST HEADER --- */
.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-date {
    font-size: 0.95rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title {
    font-size: 2.8rem;
    color: var(--text-dark, #333);
    margin: 0;
    line-height: 1.2;
}

/* --- HERO IMAGE --- */
.post-hero-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* --- POST CONTENT (Formats the raw DB HTML) --- */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2, .post-content h3 {
    color: var(--text-dark, #333);
    margin-top: 40px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: var(--rlp-red, #e3003a);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}

.post-content a:hover {
    border-color: var(--rlp-red, #e3003a);
}

/* Strip inner styles if they clash with your site */
.post-content .blog-container {
    max-width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* --- FOOTER ACTIONS --- */
.btn-back-blog {
    display: inline-block;
    color: var(--text-dark, #333);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-back-blog:hover {
    color: var(--rlp-red, #e3003a);
}

.share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.share-links a:hover {
    background: var(--rlp-red, #e3003a);
    color: #fff;
    transform: translateY(-2px);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .post-title { font-size: 2.2rem; }
    .post-content { font-size: 1.05rem; }
    .post-actions { flex-direction: column; gap: 20px; align-items: flex-start !important; }
}