#f8-blog-container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.f8-blog-header { text-align: center; margin-bottom: 50px; }
.f8-blog-header h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin: 15px 0; }

.f8-category a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8c92f6; /* Your brand primary */
    text-decoration: none;
}

.f8-blog-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    color: #334155;
}

.f8-blog-content h2 { font-size: 2rem; margin-top: 40px; color: #0f172a; }

.f8-featured-image img {
    border-radius: 30px;
    margin-bottom: 60px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}


/* RELATED POSTS SECTION */
.f8-related-section {
    max-width: 800px;
    margin: 80px auto;
    padding-top: 60px;
    border-top: 1px solid #f1f5f9;
}

.f8-related-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
}

.f8-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.f8-related-card {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.f8-related-card:hover {
    transform: translateY(-10px);
}

.f8-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
}

.f8-card-date {
    font-size: 12px;
    text-transform: uppercase;
    color: #8c92f6; /* Febeight Primary */
    font-weight: 700;
    letter-spacing: 1px;
}

.f8-card-content h4 {
    font-size: 16px;
    color: #1e293b;
    line-height: 1.4;
    margin-top: 5px;
    font-weight: 700;
}

/* 1. HERO SECTION */
.f8-post-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    margin-bottom: 40px;
}

.f8-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.f8-hero-category {
    display: inline-block;
    background: rgba(140, 146, 246, 0.1);
    color: #8c92f6;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-decoration: none;
}

.f8-main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

/* 2. HERO META (Avatar & Stats) */
.f8-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-weight: 500;
    font-size: 15px;
}

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

.f8-dot {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* 1. THE BLOCKQUOTE (Expert Insight) */
.f8-blog-content blockquote {
    margin: 40px 0;
    padding: 30px;
    border-left: 5px solid #8c92f6; /* Febeight Purple */
    background: #f8fafc;
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #1e293b;
}

/* 2. IMAGE CAPTIONS & ROUNDED CORNERS */
.f8-blog-content figure img {
    border-radius: 24px;
    margin-top: 20px;
}

.f8-blog-content figcaption {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-top: 10px;
}

/* 3. CLEAN LISTS */
.f8-blog-content ul, .f8-blog-content ol {
    margin: 30px 0;
    padding-left: 20px;
}

.f8-blog-content li {
    margin-bottom: 12px;
}

.f8-author-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 30px;
    margin: 60px auto;
    max-width: 720px;
}

.f8-author-info { display: flex; align-items: center; gap: 30px; }

.f8-author-lg-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
}

.f8-author-text h3 { margin: 5px 0; font-size: 22px; color: #0f172a; }
.f8-author-text p { font-size: 15px; color: #64748b; margin-bottom: 15px; }

.f8-written-by {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #8c92f6;
    letter-spacing: 1px;
}

.f8-author-link {
    font-size: 14px;
    font-weight: 600;
    color: #8c92f6;
    text-decoration: none;
}


/* 1. HIDE THEME DEFAULTS ON BLOG POSTS */
.single-post #pxl-post-title-default, 
.single-post .pxl-breadcrumb,
.single-post .pxl-page-title-inner {
    display: none !important;
}

/* 2. REMOVE TOP PADDING FROM THEME MAIN CONTAINER */
.single-post #pxl-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 3. CENTERED HERO STYLES (Match the PHP Template) */
.f8-post-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: #ffffff;
}

.f8-hero-category {
    display: inline-block;
    background: rgba(140, 146, 246, 0.1);
    color: #8c92f6;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 20px;
}

.f8-main-title {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.2;
}

/* 4. CONTENT READABILITY */
.f8-blog-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.8;
    color: #334155;
}

.f8-interaction-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 720px;
}

/* Like Button */
#f8-like-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}
#f8-like-btn:hover { border-color: #ff4d4d; color: #ff4d4d; }

/* Star Rating Logic */
.f8-star-rating .stars { display: flex; flex-direction: row-reverse; gap: 5px; }
.f8-star-rating input { display: none; }
.f8-star-rating label { font-size: 24px; color: #cbd5e1; cursor: pointer; transition: color 0.2s; }
.f8-star-rating input:checked ~ label,
.f8-star-rating label:hover,
.f8-star-rating label:hover ~ label { color: #8c92f6; }

#rating-status { margin-left: 10px; font-weight: 700; color: #64748b; }

#f8-blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.f8-blog-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
}

.f8-featured-image img {
    width: 100%;
    border-radius: 30px;
    margin-bottom: 40px;
}

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 767px) {
    /* 1. Reset Wrapper: Break out of shrunken theme containers */
    #f8-blog-wrapper {
        width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        position: static !important;
    }

    #f8-blog-container {
        padding: 40px 20px !important;
        width: 100% !important;
    }

    /* 2. Scale Titles: Large titles cause overflow on small screens */
    .f8-main-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* 3. Adjust Content: Increase readability for thumb-scrolling */
    .f8-blog-content {
        font-size: 17px !important;
        line-height: 1.7 !important;
        width: 100% !important;
    }

    /* 4. Interaction Bar: Stack buttons vertically or keep them tight */
    .f8-interaction-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    /* 5. Author Card Fix */
    .f8-author-info {
        flex-direction: column;
        text-align: center;
    }

    /* 6. Related Posts: Switch from 3 columns to 1 column */
    .f8-related-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* 7. Force Image Full Width */
    .f8-featured-image img {
        border-radius: 15px !important;
    }
}

#f8-blog-container {
    padding-top: 120px; /* Adjust this value based on your header height */
}


/* 1. FORCE HIDE THEME TITLE WRAPPER COMPLETELY */
.single-post #pxl-post-title-default, 
.single-post .pxl-post-title {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. REMOVE PADDING FROM THEME MAIN AREA */
.single-post #pxl-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 3. ADJUST CUSTOM BLOG PADDING */
#f8-blog-container {
    padding-top: 40px !important; /* Smaller gap under header */
}

/* 4. MOBILE SPECIFIC SPACING */
@media (max-width: 767px) {
    #f8-blog-container {
        padding-top: 20px !important;
    }
    .f8-post-hero {
        padding: 40px 0 20px !important;
    }
}


/* MODERN NOTIFICATION TOAST */
#f8-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #8c92f6; /* Febeight Purple */
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(140, 146, 246, 0.3);
    z-index: 1000000;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
}

#f8-toast.show {
    top: 40px;
}

#f8-toast .f8-toast-icon {
    font-size: 20px;
}

/* FLOATING SIDEBAR */
.f8-social-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.f8-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    padding: 15px 10px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.f8-share-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #64748b !important;
    border: none;
    background: transparent !important;
    cursor: pointer;
}

.f8-share-link:hover { transform: scale(1.2); }
.f8-share-link.whatsapp:hover { color: #25D366; background: #e7f9ee; }
.f8-share-link.linkedin:hover { color: #0077b5; background: #e0f2f9; }
.f8-share-link.facebook:hover { color: #1877f2; background: #e7f0ff; }
.f8-share-link.inquiry { color: #8c92f6; background: #f0f1ff; }

.f8-sidebar-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 5px 10px;
}

/* HIDE ON MOBILE: Keeps articles clean for reading */
/* @media (max-width: 1200px) {
    .f8-social-sidebar { display: none; }
} */

.f8-share-link.inquiry {
    color: #8c92f6;
    background: #f0f1ff;
    position: relative;
}

/* Small indicator that this is a contact button */
.f8-share-link.inquiry::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #10b981; /* Green online dot */
    border-radius: 50%;
    border: 2px solid #fff;
}

.f8-share-link.copy-link:hover {
    color: #8c92f6;
    background: #f0f1ff;
}

/* Optional: rotate animation for the link icon on hover */
.f8-share-link.copy-link:hover i {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}


/* MOBILE RESPONSIVE SIDEBAR TRANSFORMATION */
@media (max-width: 1200px) {
    /* Transform the sidebar into a bottom fixed bar */
    .f8-social-sidebar {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 10px 20px !important;
        background: #ffffff !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.1) !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .f8-sidebar-inner {
        flex-direction: row !important; /* Stack horizontally */
        justify-content: space-around !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .f8-share-link {
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }

    .f8-sidebar-divider {
        width: 1px !important;
        height: 30px !important;
        margin: auto 0 !important;
    }

    /* Prevent content from being hidden behind the bar */
    body.single-post {
        padding-bottom: 80px !important;
    }
}

@media (max-width: 767px) {
    /* Ensure the chat box sits above the new bottom bar */
    #f8-lead-wrapper {
        bottom: 85px !important; /* Move it up to clear the share bar */
    }
    
    /* Make the buttons pop more on mobile */
    .f8-share-link i {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    }
}