/* ==========================================================================
   HVAC247PRO - GLOBAL BLOG FIX (NUCLEAR OPTION)
   This CSS will force proper blog styling on ALL blog pages without
   needing to edit individual HTML files. Ultra-specific selectors with
   !important flags to override ALL existing styles.
   ========================================================================== */

/* TARGET EVERY POSSIBLE BLOG CONTAINER */
body[class*="blog"] .container,
body[class*="single"] .container,
article, .blog-post, .post, .entry-content,
.rts-blog-details, .blog-details-area,
div[class*="blog"], section[class*="blog"] {
    background: #ffffff !important;
}

/* FORCE MAXIMUM WIDTH ON CONTENT */
body[class*="blog"] main,
body[class*="single"] main,
.rts-blog-details .container,
.blog-details-area .container,
article .container {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* FORCE ALL HEADINGS TO BE VISIBLE AND STYLED */
body[class*="blog"] h1,
body[class*="single"] h1,
article h1, .entry-title,
.blog-post h1, .post-title {
    font-size: clamp(28px, 5vw, 48px) !important;
    font-weight: 700 !important;
    color: #0a2540 !important;
    line-height: 1.3 !important;
    margin: 30px 0 20px 0 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body[class*="blog"] h2,
body[class*="single"] h2,
article h2, .entry-content h2 {
    font-size: clamp(24px, 4vw, 36px) !important;
    font-weight: 700 !important;
    color: #0a2540 !important;
    line-height: 1.4 !important;
    margin: 30px 0 15px 0 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    visibility: visible !important;
}

body[class*="blog"] h3,
body[class*="single"] h3,
article h3, .entry-content h3 {
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 600 !important;
    color: #0a2540 !important;
    line-height: 1.4 !important;
    margin: 25px 0 12px 0 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    visibility: visible !important;
}

/* FORCE ALL PARAGRAPHS TO BE READABLE */
body[class*="blog"] p,
body[class*="single"] p,
article p, .entry-content p,
.blog-post p, .post-content p {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
    margin-bottom: 20px !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FORCE LISTS TO BE VISIBLE AND STYLED */
body[class*="blog"] ul,
body[class*="blog"] ol,
article ul, article ol,
.entry-content ul, .entry-content ol {
    margin: 20px 0 20px 30px !important;
    padding-left: 20px !important;
    display: block !important;
    visibility: visible !important;
}

body[class*="blog"] li,
article li, .entry-content li {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
    margin-bottom: 10px !important;
    display: list-item !important;
    visibility: visible !important;
}

/* FORCE IMAGES TO DISPLAY PROPERLY */
body[class*="blog"] img,
article img, .entry-content img,
.blog-post img, .post-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 25px auto !important;
    border-radius: 8px !important;
    visibility: visible !important;
}

/* FORCE LINKS TO BE VISIBLE */
body[class*="blog"] a:not(.btn),
article a:not(.btn),
.entry-content a:not(.btn) {
    color: #234982 !important;
    text-decoration: underline !important;
    display: inline !important;
    visibility: visible !important;
}

/* REMOVE ANY WEIRD WORDPRESS/COOLAIR CONFLICTS */
body[class*="blog"] *,
article *, .entry-content * {
    box-sizing: border-box !important;
}

/* FORCE PROPER SPACING ON ALL SECTIONS */
body[class*="blog"] section,
article section,
.blog-post section {
    padding: 40px 0 !important;
    background: #ffffff !important;
}

/* REMOVE ANY OVERLAY OR OPACITY ISSUES */
body[class*="blog"]::before,
body[class*="blog"]::after,
article::before, article::after {
    display: none !important;
}

/* FORCE BLOCKQUOTES TO DISPLAY */
body[class*="blog"] blockquote,
article blockquote,
.entry-content blockquote {
    border-left: 4px solid #234982 !important;
    padding: 20px 30px !important;
    margin: 25px 0 !important;
    background: #f8f9fa !important;
    font-style: italic !important;
    display: block !important;
    visibility: visible !important;
}

/* FORCE TABLES TO DISPLAY */
body[class*="blog"] table,
article table,
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    display: table !important;
    visibility: visible !important;
}

body[class*="blog"] table th,
article table th {
    background: #234982 !important;
    color: #ffffff !important;
    padding: 12px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

body[class*="blog"] table td,
article table td {
    padding: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* FORCE CODE BLOCKS TO DISPLAY */
body[class*="blog"] code,
article code,
.entry-content code {
    background: #f4f4f4 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 15px !important;
    display: inline !important;
    visibility: visible !important;
}

body[class*="blog"] pre,
article pre,
.entry-content pre {
    background: #2d2d2d !important;
    color: #f8f8f2 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 20px 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    body[class*="blog"] main,
    body[class*="single"] main,
    article .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    body[class*="blog"] h1,
    article h1 {
        font-size: 28px !important;
    }

    body[class*="blog"] h2,
    article h2 {
        font-size: 24px !important;
    }

    body[class*="blog"] h3,
    article h3 {
        font-size: 20px !important;
    }

    body[class*="blog"] p,
    body[class*="blog"] li,
    article p, article li {
        font-size: 16px !important;
    }
}

/* NUCLEAR OPTION - REMOVE ALL DISPLAY:NONE ON CONTENT */
body[class*="blog"] main *:not(script):not(style):not(noscript),
article *:not(script):not(style):not(noscript),
.entry-content *:not(script):not(style):not(noscript) {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* RESTORE PROPER DISPLAY TYPES */
body[class*="blog"] div,
body[class*="blog"] section,
article div, article section {
    display: block !important;
}

body[class*="blog"] span,
body[class*="blog"] a,
body[class*="blog"] strong,
body[class*="blog"] em,
article span, article a, article strong, article em {
    display: inline !important;
}

body[class*="blog"] ul,
body[class*="blog"] ol,
article ul, article ol {
    display: block !important;
}

body[class*="blog"] li,
article li {
    display: list-item !important;
}
