/* Post Layout */
.blog-post {
    max-width: 800px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
    color: #fff;  /* Default text color for the post */
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #fff;  /* White for main title */
    margin-bottom: 1rem;
}

.post-meta {
    color: #ccc;  /* Light grey for meta info */
    font-size: 0.9rem;
    display: none;
}

.post-meta span:not(:last-child)::after {
    content: "•";
    margin: 0 0.5rem;
}

/* Post Hero Image */
.hero-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    overflow: visible; /* Allow content to overflow */
}

.post-hero {
    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    object-fit: scale-down;
    border-radius: 8px;
    margin: 2rem auto;
}

/* Post Content */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.post-content {
    line-height: 1.6;
    color: #f5f5f5;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #fff;  /* White for section headings */
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #fff;  /* White for paragraphs */
}

/* Image styles for blog posts */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
}

/* Code block styles */
.post-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.post-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #fff;  /* White for code text */
}

/* Tags */
.tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    background: #3a3633;  /* Darker background for tags */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;  /* White for tag text */
    margin-right: 0.5rem;
}

/* Blog post tags */
.post-meta .tags span:not(:last-child)::after,
.post-meta .tags a:not(:last-child)::after {
    content: ", ";
    margin-right: 4px;
}

/* Share Buttons */
.share-buttons {
    margin-top: 2rem;
    text-align: center;
}

.share-button, .back-to-blog {
    color: #ccc;  /* Light grey for share buttons */
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.share-button:hover {
    color: #ffa07a;  /* Coral on hover */
}

/* Post Navigation */
.post-navigation {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #3a3633;  /* Darker border */
    border-bottom: 1px solid #3a3633;  /* Darker border */
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .post-container {
        padding: 1rem;
        margin-top: 1rem;
    }

    .post-content {
        font-size: 16px;
        padding: 0 0.5rem;
    }

    .post-content img {
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 1rem auto;
    }

    .post-content pre {
        padding: 0.75rem;
        font-size: 14px;
    }

    /* Ensure text stays within viewport */
    .post-content p,
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content ul,
    .post-content ol {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-container {
        padding: 0.5rem;
        height: auto;
        overflow: visible;
    }
    
    .post-hero {
        width: 100%;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        object-fit: scale-down;
        margin: 1rem auto;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .post-container {
        padding: 0.5rem;
    }

    .post-content {
        font-size: 15px;
    }

    .post-content pre {
        font-size: 13px;
    }
}

/* Blog post title spacing */
.blog-post h1 {
    margin-top: 10rem;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-decoration: underline;
    text-align: center;
}
.post-content h3 {
    display: flex;
    align-items: center;
    padding: 10px 0;
    margin: 20px 0;
    text-decoration: underline;
}

/* Indent content under headers */
.post-content p,
.post-content ul,
.post-content ol,
.post-content pre {
    margin-left: 20px;  /* Indent content */
}
/* Indent content under headers */
.post-content ul,
.post-content ol {
    margin-left: 60px;  /* Indent content */
}

.rca-hero-image-adjust {
    margin-top: -80px;
    margin-bottom: -85px;
}

@media (max-width: 768px) {
    .rca-hero-image-adjust {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.post-content a,
.blog-post a {
    color: #ffa07a;           /* Accent color */
    text-decoration: underline;
    transition: color 0.2s;
}

.post-content a:hover,
.blog-post a:hover {
    color: #fff;              /* White on hover */
    text-decoration: none;
}

.blog-post-container a {
    color: #ffa07a;           /* Accent color */
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-post-container a:hover {
    color: #fff;              /* White on hover */
    text-decoration: none;
}