/* Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Description:  RecoverLab Full Updated CSS - Blog Grid, Detail Page & Layout Fixes
*/

/* ==========================================================================
   1. GLOBAL LAYOUT & TYPOGRAPHY
   ========================================================================== */
.recoverlab-blog-wrapper, 
.recoverlab-blog-detail-page { 
    background-color: #ffffff !important; 
    padding-bottom: 60px; 
    font-family: 'Poppins', sans-serif !important; 
}

html {
    scroll-behavior: smooth !important;
    overflow-x: hidden;
}

/* Scroll Offset for Headers (Fixed Header साठी गॅप) */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 120px !important;
}

.recoverlab-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    width: 90%; 
}

/* ==========================================================================
   2. BLOG GRID PAGE (LISTING)
   ========================================================================== */
.recoverlab-hero-banner { 
    background-color: #f8fafc !important; 
    padding: 60px 0 !important; 
    border-bottom: 1px solid #e2e8f0; 
}

.recoverlab-hero-flex { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
}

.recoverlab-banner-tag { 
    color: #FB2300 !important; 
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase; 
}

.recoverlab-hero-title { 
    color: #1e1f2d !important; 
    font-size: 32px; 
    font-weight: 800; 
    margin-top: 15px; 
    line-height: 1.3; 
}

.recoverlab-hero-illustration { 
    max-width: 250px; 
    height: auto; 
}

/* Filter/Controls Wrapper */
.recoverlab-controls-wrapper {
    display: flex !important; 
    justify-content: space-between; 
    align-items: center;
    background: #fff; 
    padding: 15px; 
    border: 1px solid #e2e8f0;
    border-radius: 4px; 
    margin-top: -35px !important; 
    position: relative; 
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.recoverlab-section-title { 
    margin: 50px 0 30px 0; 
    color: #1e1f2d; 
    border-left: 4px solid #FB2300; 
    padding-left: 15px; 
    font-size: 24px; 
    font-weight: 700; 
}

/* Grid Layout */
.recoverlab-blog-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

/* Card Styling */
.recoverlab-card { 
    background: #fff; 
    border: 1px solid #eef2f6; 
    border-radius: 10px; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    height: 100%; 
}

.recoverlab-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
}

.recoverlab-card-image img { 
    width: 100%; 
    height: 210px; 
    object-fit: cover; 
}

.recoverlab-card-content { 
    padding: 20px 25px; 
    flex-grow: 1; 
}

.recoverlab-card-category { 
    color: #FB2300; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 8px; 
}

.recoverlab-card-title a { 
    color: #1E1F2D; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 18px; 
    line-height:22px; 
}

.recoverlab-post-excerpt { 
    font-size: 14px; 
    color: #4a5568; 
    line-height: 1.6; 
    margin-bottom: 15px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Card Footer */
.recoverlab-card-footer { 
    display: flex; 
    align-items: center; 
    padding: 15px 15px; 
    border-top: 1px solid #F1F5F9; 
    gap: 12px; 
    background: #fff; 
}

.recoverlab-author-avatar img { 
    width: 35px; 
    height: 35px; 
    border-radius: 50% !important; 
    border: 1px solid #eee; 
}

.recoverlab-author-name { 
    font-size: 11px; 
    font-weight: 700; 
    color: #1E1F2D; 
}

.written-by { 
    font-size: 10px !important; 
    color: #94a3b8; 
    display: block; 
}

/* ==========================================================================
   3. SINGLE BLOG DETAIL PAGE
   ========================================================================== */
.recoverlab-detail-banner { 
    background: #f8fafc; 
    padding: 60px 0; 
    border-bottom: 1px solid #e2e8f0; 
}

.recoverlab-breadcrumb { 
    font-size: 13px; 
    color: #FB2300; 
    font-weight: 600; 
    margin-bottom: 15px; 
}

.recoverlab-breadcrumb a { 
    color: #64748b; 
    text-decoration: none; 
}

.recoverlab-post-main-title { 
    font-size: 42px !important; 
    font-weight: 800 !important; 
    color: #1a202c !important; 
    line-height: 1.2; 
    margin-bottom: 35px; 
}

/* Updated Banner Meta & Social Icons */
.recoverlab-banner-meta { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    border-top: 1px solid #e2e8f0; 
    padding-top: 25px;
    flex-wrap: wrap;
}

.recoverlab-meta-author { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.recoverlab-meta-author .author-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.recoverlab-meta-stats { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.meta-stat-item { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 14px; 
    color: #475569; 
}

.meta-stat-item img { 
    height: 18px; 
    width: auto; 
}

/* Banner Social Icons Alignment */
.recoverlab-banner-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
    margin-left: 5px;
}

.recoverlab-banner-socials img {
    width: 22px;
    height: 22px;
    transition: 0.3s;
}

.recoverlab-banner-socials a:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   4. TWO-COLUMN CONTENT LAYOUT (Left TOC)
   ========================================================================== */
.recoverlab-2-col-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; /* Narrow TOC Side */
    gap: 50px; 
    padding: 60px 0; 
    background: #ffffff !important; 
}

/* Left Sticky Sidebar Logic */
.recoverlab-left-sidebar .recoverlab-sticky-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* TOC Styling */
.toc-widget { 
    border: 1px solid #FAFAFA; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #FAFAFA; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px; /* Space for CTA below */
}

.recoverlab-widget-title { 
    background: #1a202c !important; 
    color: #fff !important; 
    padding: 15px 20px; 
    font-size: 16px; 
    font-weight: 700; 
    margin: 0; 
}

.recoverlab-toc-container .lwptoc_header, 
.recoverlab-toc-container .lwptoc_toggle,
.recoverlab-toc-container span.lwptoc_item_number { 
    display: none !important; 
}

.recoverlab-toc-container a { 
    display: block; 
    color: #4a5568 !important; 
    text-decoration: none !important; 
    font-size: 13px !important; 
    padding: 12px 20px; 
    transition: 0.2s; 
    border-bottom: 1px solid #f8f8f8;
}

.recoverlab-toc-container a:hover { 
    color: #FB2300 !important; 
    background-color: #f8fafc; 
    padding-left: 25px; 
}

/* --- NEW STATIC CTA WIDGET BLOCK --- */
.recoverlab-sidebar-cta {
    background: #1a202c; /* Dark Theme from Reference */
    border-radius: 12px;
    padding: 30px 25px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 32, 44, 0.2);
}

.cta-tag {
    background: #FB2300; /* RecoverLab Red */
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
}

.recoverlab-sidebar-cta h3 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.recoverlab-sidebar-cta p {
    font-size: 14px;
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cta-button {
    background: #ffffff;
    color: #1a202c !important;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-block;
    width: 100%;
    transition: 0.3s;
}

.cta-button:hover {
    background: #FB2300;
    color: #ffffff !important;
    transform: translateY(-2px);
}
/* --- END CTA WIDGET BLOCK --- */

/* Featured Image in Body */
.recoverlab-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}

.recoverlab-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Article Content Typography */
.recoverlab-article-content { 
    font-size: 18px; 
    line-height: 1.8; 
    color: #2d3748; 
}

.recoverlab-article-content h2 { 
    font-size: 28px; 
    font-weight: 700; 
    margin: 40px 0 20px; 
    color: #1a202c; 
}

/* ==========================================================================
   5. RELATED ARTICLES
   ========================================================================== */
.recoverlab-related-posts { 
    padding: 60px 0; 
    border-top: 1px solid #f1f5f9; 
}

.recoverlab-related-title { 
    text-align: center; 
    font-size: 32px !important; 
    font-weight: 800 !important; 
    color: #1a202c; 
    margin-bottom: 40px; 
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Responsive */
@media (max-width: 1024px) {
    .recoverlab-blog-grid, 
    .recoverlab-related-posts .recoverlab-blog-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .recoverlab-2-col-layout { 
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .recoverlab-left-sidebar .recoverlab-sticky-sidebar {
        position: static; 
        margin-bottom: 30px;
    }
    .recoverlab-post-main-title {
        font-size: 34px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .recoverlab-blog-grid, 
    .recoverlab-related-posts .recoverlab-blog-grid { 
        grid-template-columns: 1fr; 
    }
    
    .recoverlab-post-main-title { 
        font-size: 26px !important; 
        line-height: 1.3;
        margin-bottom: 25px;
    }
    
    .recoverlab-detail-banner {
        padding: 40px 0 !important;
    }

    .recoverlab-banner-meta { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .recoverlab-meta-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .recoverlab-banner-socials {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .recoverlab-article-content {
        font-size: 16px;
    }
}

/* Misc Helpers */
.author-meta-info { font-size: 12px; }
.recoverlab-post-stats { font-size: 13px; }
.post-stats { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
.post-stats img { height: 14px; opacity: 0.8; }