/*
Theme Name: Phoenix Wise Solutions Pro
Theme URI: https://phoenixwise.ca
Author: Phoenix Wise Solutions
Description: Premium child theme for Phoenix Wise Solutions - Custom development for BreezeCome
Author URI: https://phoenixwise.ca
Template: betheme
Version: 2.0.2
*/

/* ========================================
   BLOG POST TYPOGRAPHY OPTIMIZATION
   Only affects single blog post pages
   Added !important to override BeTheme defaults
   ======================================== */

/* Single Blog Post Content Container */
body.single-post .the_content_wrapper,
body.single-post .post-content,
body.single-post article .post-content {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* H2 Headings - Main Sections */
body.single-post .the_content_wrapper h2,
body.single-post .post-content h2,
body.single-post article.post .the_content_wrapper h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    color: #1a1a1a !important;
}

/* First H2 should not have extra top margin */
body.single-post .the_content_wrapper h2:first-child,
body.single-post .post-content h2:first-child {
    margin-top: 0 !important;
}

/* H3 Headings - Sub Sections */
body.single-post .the_content_wrapper h3,
body.single-post .post-content h3,
body.single-post article.post .the_content_wrapper h3 {
    font-size: 22px !important;
    line-height: 1.4 !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    color: #2a2a2a !important;
}

/* H4 Headings */
body.single-post .the_content_wrapper h4,
body.single-post .post-content h4,
body.single-post article.post .the_content_wrapper h4 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-top: 25px !important;
    margin-bottom: 12px !important;
    color: #333 !important;
}

/* Paragraphs */
body.single-post .the_content_wrapper p,
body.single-post .post-content p {
    margin-bottom: 20px !important;
    line-height: 1.8 !important;
}

/* Lists - Unordered and Ordered */
body.single-post .the_content_wrapper ul,
body.single-post .the_content_wrapper ol,
body.single-post .post-content ul,
body.single-post .post-content ol {
    margin-bottom: 25px !important;
    padding-left: 25px !important;
}

body.single-post .the_content_wrapper li,
body.single-post .post-content li {
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}

/* Nested lists */
body.single-post .the_content_wrapper ul ul,
body.single-post .the_content_wrapper ol ol,
body.single-post .post-content ul ul,
body.single-post .post-content ol ol {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Strong/Bold text */
body.single-post .the_content_wrapper strong,
body.single-post .post-content strong {
    color: #1a1a1a !important;
}

/* Links within content */
body.single-post .the_content_wrapper a:not(.button),
body.single-post .post-content a:not(.button) {
    color: #c8102e !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.2s ease !important;
}

body.single-post .the_content_wrapper a:not(.button):hover,
body.single-post .post-content a:not(.button):hover {
    border-bottom-color: #c8102e !important;
}

/* Blockquotes */
body.single-post .the_content_wrapper blockquote,
body.single-post .post-content blockquote {
    margin: 30px 0 !important;
    padding: 20px 25px !important;
    background: #f9f9f9 !important;
    border-left: 4px solid #c8102e !important;
    font-style: italic !important;
}

/* Emphasis/Italic - especially for disclaimers */
body.single-post .the_content_wrapper em,
body.single-post .post-content em {
    color: #666 !important;
}

/* Spacing before FAQ sections (common pattern) */
body.single-post .the_content_wrapper h2 + h3,
body.single-post .post-content h2 + h3 {
    margin-top: 20px !important;
}

/* Better spacing for content after lists */
body.single-post .the_content_wrapper ul + p,
body.single-post .the_content_wrapper ol + p,
body.single-post .post-content ul + p,
body.single-post .post-content ol + p {
    margin-top: 25px !important;
}

/* Better spacing for content after headings */
body.single-post .the_content_wrapper h2 + p,
body.single-post .the_content_wrapper h3 + p,
body.single-post .post-content h2 + p,
body.single-post .post-content h3 + p {
    margin-top: 0 !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body.single-post .the_content_wrapper h2,
    body.single-post .post-content h2 {
        font-size: 24px !important;
        margin-top: 40px !important;
    }
    
    body.single-post .the_content_wrapper h3,
    body.single-post .post-content h3 {
        font-size: 20px !important;
        margin-top: 30px !important;
    }
    
    body.single-post .the_content_wrapper,
    body.single-post .post-content {
        font-size: 16px !important;
    }
}
