/* -----------------------------------------------------
   BRAND COLORS
----------------------------------------------------- */
:root {
    --rw-primary: #4a8cff; /* RoneeWeb Blue */
    --rw-green: #28c76f;   /* RoneeWeb Green */
    --rw-bg: #f8f9fb;
    --rw-dark: #222;
}

/* -----------------------------------------------------
   GLOBAL
----------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Poppins", sans-serif;
    color: var(--rw-dark);
    background: var(--rw-bg);
}

.post-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* -----------------------------------------------------
   TITLE + META
----------------------------------------------------- */
.post-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.post-meta span {
    margin-right: 10px;
}

/* -----------------------------------------------------
   FEATURED IMAGE
----------------------------------------------------- */
.featured-image {
    width: 100%;
    border-radius: 14px;
    margin: 25px 0;
    object-fit: cover;
    background: #eee;
    max-height: 450px;
}

/* -----------------------------------------------------
   TABLE OF CONTENTS
----------------------------------------------------- */
.toc-box {
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 35px;
}

.toc-box h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
}

#toc {
    margin: 10px 0 0;
    padding-left: 18px;
}

#toc li {
    margin: 6px 0;
}

#toc a {
    color: var(--rw-primary);
    text-decoration: none;
    font-size: 15px;
}

#toc a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------------
   ARTICLE CONTENT
----------------------------------------------------- */
.rich-content {
    font-size: 18px;
    line-height: 1.75;
    color: var(--rw-dark);
}

.rich-content h2 {
    font-size: 1.9rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.rich-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.rich-content p {
    margin-bottom: 22px;
}

.rich-content ul, 
.rich-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.rich-content img {
    border-radius: 14px;
    margin: 20px 0;
    max-width: 100%;
}

.rich-content blockquote {
    border-left: 4px solid var(--rw-primary);
    padding-left: 18px;
    margin: 25px 0;
    color: #444;
    font-style: italic;
}

.rich-content code {
    background: #eee;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 15px;
}

/* Preformatted code block */
.rich-content pre {
    background: #1d1f21;
    color: #eaeaea;
    padding: 15px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 25px 0;
    font-size: 16px;
}

/* -----------------------------------------------------
   TAGS
----------------------------------------------------- */
.tags-box {
    margin-top: 35px;
}

.tags-box .tag {
    display: inline-block;
    background: #ffffff;
    color: var(--rw-primary);
    padding: 6px 12px;
    border-radius: 8px;
    margin: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    text-decoration: none !important;
    border: 1px solid var(--rw-primary); /* added for clearer pill style */
}

.tags-box .tag:hover {
    background: var(--rw-primary);
    color: #fff;
    text-decoration: none !important;
}


/* -----------------------------------------------------
   AUTHOR BOX
----------------------------------------------------- */
.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    margin-top: 45px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.author-box img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.author-box p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* -----------------------------------------------------
   NEXT / PREVIOUS NAVIGATION
----------------------------------------------------- */
.nav-posts {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.nav-prev, .nav-next {
    background: #e7f0ff;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--rw-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.nav-prev:hover, .nav-next:hover {
    background: var(--rw-primary);
    color: white;
}

/* -----------------------------------------------------
   RELATED POSTS
----------------------------------------------------- */
.related-section {
    margin-top: 60px;
}

.related-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    color: var(--rw-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    padding: 15px;
    font-size: 1.1rem;
    margin: 0;
}

/* -----------------------------------------------------
   SHARE SIDEBAR
----------------------------------------------------- */
.share-sidebar {
    position: fixed;
    top: 200px;
    left: 400px;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;

}

.share-sidebar a img {
    width: 32px;
    height: 32px;
    display: block;
}


/* .share-sidebar a {
    background: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rw-primary);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
} */

.share-sidebar a:hover {
    background: #eaeaea;
    border-radius: 10px;
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); }
}



/* Hide sidebar on mobile */
@media (max-width: 900px) {
    .share-sidebar {
        display: none;
    }
}



/* -------------------------------
   INLINE SHARE BUTTONS (ABOVE TAGS)
-------------------------------- */
/* Modern Inline Share Buttons */
.share-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 25px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--rw-dark);
    transition: .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.share-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Hover effect: lift + soft glow */
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

/* Platform-Colored Gradients */
.share-btn.fb:hover {
    background: linear-gradient(135deg, #3b5998, #1877f2);
    color: #fff;
}
.share-btn.x:hover {
    background: #000;
    color: #fff;
}
.share-btn.in:hover {
    background: linear-gradient(135deg, #0056a0, #0077b5);
    color: #fff;
}
.share-btn.wa:hover {
    background: linear-gradient(135deg, #20bd5a, #00e676);
    color: #fff;
}
.share-btn.copy-btn:hover {
    background: linear-gradient(135deg, #4a8cff, #7aa6ff);
    color: #fff;
}

/* Make icon turn white on hover */
.share-btn:hover img {
    
    transform: scale(1.4);
    transition: 0.25s ease;
}


/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .rich-content {
        font-size: 17px;
    }

    .featured-image {
        max-height: 350px;
    }
}

@media (max-width: 500px) {
    .post-title {
        font-size: 1.8rem;
    }
}


.post-meta {
  margin: 10px 0 18px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef5ff;
  color: #1155cc;
  text-decoration: none;
}

.post-category:hover {
  background: #d9e9ff;
}

.post-subcategory {
  color: #444;
  font-weight: 500;
  text-decoration: none;
}

.post-subcategory:hover {
  text-decoration: underline;
}

.meta-separator {
  color: #000000;
  font-size: 14px;
  padding: 0 3px;   
}
