/*
Theme Name: Sahifa TVL Edition 1.4.1
Theme URI: https://techvoltlab.com/
Description: Tech Volt Lab child theme for Sahifa. Adds category-title and single-post section spacing controls to the stable TVL Edition 1.3 feature set without changing the existing layout or sidebar behavior.
Author: Tech Volt Lab
Template: sahifa
Version: 1.4.1
Text Domain: sahifa-tvl-edition
*/

/* Base safe polish */
html { scroll-behavior: smooth; }

/* Homepage post excerpt justify - enabled by Customizer class/CSS */
.home.tvl-home-justify .post-listing .entry,
.home.tvl-home-justify .post-listing p,
.home.tvl-home-justify .item-list p,
.home.tvl-home-justify .post-excerpt,
.home.tvl-home-justify .entry-summary {
    text-align: justify;
    text-justify: inter-word;
}

/* Do not touch sidebar position. Parent Sahifa controls it. */
#sidebar,
#sidebar .theiaStickySidebar,
#sidebar .widget-container {
    max-height: none;
}


/* TVL Recent Posts Widget */
.tvl-recent-posts-widget .tvl-recent-post-item{
    display:flex;
    gap:12px;
    padding:10px 0;
    border-bottom:1px solid #eee;
}
.tvl-recent-posts-widget .tvl-recent-thumb{
    flex:0 0 auto;
    overflow:hidden;
    background:#f3f4f6;
}
.tvl-recent-posts-widget .tvl-recent-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.tvl-recent-posts-widget .tvl-recent-title{
    display:block;
    font-weight:600;
    line-height:1.35;
    margin-bottom:4px;
}
.tvl-recent-posts-widget .tvl-recent-excerpt{
    font-size:12px;
    line-height:1.55;
    color:#666;
}
.tvl-recent-posts-widget .tvl-recent-meta{
    font-size:11px;
    color:#888;
    margin-top:4px;
}


/* ===============================
   TVL Custom Block Patterns
================================ */
.tvl-pattern-box{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:20px 22px;
    margin:22px 0;
    box-shadow:0 4px 18px rgba(15,23,42,.05);
}
.tvl-pattern-box h2,
.tvl-pattern-box h3{
    margin-top:0;
    color:#0f172a;
}
.tvl-formula-box{
    background:#f4f8ff;
    border-left:5px solid #5089f2;
}
.tvl-engineering-note{
    background:#fff8e6;
    border-left:5px solid #f5b400;
}
.tvl-warning-box{
    background:#fff1f2;
    border-left:5px solid #e11d48;
}
.tvl-tip-box{
    background:#ecfdf5;
    border-left:5px solid #10b981;
}
.tvl-cta-box{
    background:linear-gradient(135deg,#0f172a,#0b5bd3);
    color:#ffffff;
    border:none;
}
.tvl-cta-box h2,.tvl-cta-box h3,.tvl-cta-box p{color:#ffffff;}
.tvl-cta-button{
    display:inline-block;
    margin-top:10px;
    padding:10px 18px;
    border-radius:6px;
    background:#ffffff;
    color:#0b5bd3 !important;
    font-weight:700;
    text-decoration:none !important;
}
.tvl-comparison-table table,
.tvl-pattern-table{
    width:100%;
    border-collapse:collapse;
    margin:14px 0;
}
.tvl-comparison-table th,
.tvl-comparison-table td,
.tvl-pattern-table th,
.tvl-pattern-table td{
    border:1px solid #e5e7eb;
    padding:10px 12px;
    text-align:left;
}
.tvl-comparison-table th,
.tvl-pattern-table th{
    background:#f1f5f9;
    color:#0f172a;
}
.tvl-faq-item{
    border-bottom:1px solid #e5e7eb;
    padding:12px 0;
}
.tvl-faq-item strong{display:block;margin-bottom:6px;color:#0f172a;}
.tvl-code-box pre{
    background:#0f172a;
    color:#e5e7eb;
    padding:16px;
    border-radius:8px;
    overflow:auto;
}
