/* ==========================================================================
   1. FIXED: CENTER STANDARD PAGE TITLES & CONTROL PADDING (Pages Only)
   ========================================================================== */
.page .entry-title {
    text-align: center !important;
    margin-bottom: 20px !important;
}

/* Restricts the main site reading area to a beautiful, clean margin width */
.page .entry-content, .page .site-main {
    max-width: 900px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Maintain clean desktop padding for standard reading width */
@media screen and (min-width: 992px) {
    .page .entry-content > p,
    .page .entry-content > h2,
    .page .entry-content > h3,
    .page .entry-content > ul,
    .page .entry-content > ol,
    .page .entry-content > .wp-block-columns,
    .page .entry-content > .wp-block-group,
    .page .entry-content > details,
    .page .entry-content > .wp-block-details {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Maintain flawless native text margins on mobile phones */
@media screen and (max-width: 768px) {
    .page .entry-content > p,
    .page .entry-content > h2,
    .page .entry-content > h3 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================================================
   2. RESTORE POST TYPOGRAPHY & BASIC FULL-WIDTH WORKING LAYOUT
   ========================================================================== */
@media screen and (min-width: 992px) {
    .single-post .entry-content, 
    .single-post .site-main,
    .single-post .post-inner,
    .single-post .wp-block-post-content {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .single-post .entry-content > p,
    .single-post .entry-content > h2,
    .single-post .entry-content > h3,
    .single-post .entry-content > ul,
    .single-post .entry-content > ol {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

.entry-meta, .post-meta, .entry-header .meta, .wp-block-post-date, .wp-block-post-author {
    display: none !important;
}

.single-post .entry-content h3 {
    font-size: 18px !important;
}

@media screen and (max-width: 768px) {
    .single-post .entry-title {
        font-size: 26px !important; 
    }
}

.entry-content ul, .entry-content ol, .wp-block-list {
    list-style-position: inside !important;
}

/* ==========================================================================
   3. CLEAN MINIMAL POST LAYOUT: NO OVERLAPS (Desktop Only)
   ========================================================================== */
@media screen and (min-width: 992px) {
    .single-post .site-main > article {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
        padding-top: 0 !important;
    }
    .single-post .entry-header {
        position: static !important;
        max-width: 900px !important;
        margin: 40px auto 20px auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .single-post .entry-title {
        text-align: left !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }
    .single-post .entry-content > .wp-block-image:first-child {
        position: static !important;
        transform: none !important;
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 600px !important;
        height: auto !important;
        margin: 0 auto 40px auto !important;
    }
}

/* ==========================================================================
   4. MOBILE INSURANCE LOGOS GRID FIX 
   ========================================================================== */
@media screen and (max-width: 768px) {
    .wp-block-columns.insurance-grid {
        display: flex !important;
        flex-flow: row wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    .wp-block-columns.insurance-grid > .wp-block-column {
        flex: 1 1 calc(33.33% - 15px) !important;
        max-width: 33.33% !important;
        margin: 0 !important;
    }
    .wp-block-columns.insurance-grid img {
        max-width: 65px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* ==========================================================================
   5. ANCHOR LINK MENU CUSHION FIX 
   ========================================================================== */
@media screen and (min-width: 992px) {
    .page h2[id], .page h3[id], .single-post h2[id], .single-post h3[id] {
        scroll-margin-top: 100px !important;
    }
}

/* ==========================================================================
   6. MOBILE EDGE-TO-EDGE REAL ESTATE FIX 
   ========================================================================== */
@media screen and (max-width: 768px) {
    .page .entry-content > p,
    .page .entry-content > ul,
    .page .entry-content > ol,
    .single-post .entry-content > p,
    .single-post .entry-content > ul,
    .single-post .entry-content > ol,
    .page .entry-content > h2,
    .page .entry-content > h3,
    .single-post .entry-content > h2,
    .single-post .entry-content > h3 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* ==========================================================================
   7. CUSTOM ACCENT CARDS AND BORDERS 
   ========================================================================== */
.framework-card-outline {
    border: 1px solid #eaeaea !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 4px;
}

.my-custom-border {
    border: 1px solid #222222;
    padding: 24px 24px 6px 24px;
    border-radius: 6px;
}

.my-custom-border > *:last-child {
    margin-bottom: 0 !important;
}

@media screen and (max-width: 767px) {
    .my-custom-border p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        letter-spacing: normal !important;
    }
}

.page-id-491 .entry-title, 
.page-id-491 .post-title,
.page-id-491 .wp-block-post-title {
    display: none !important;
}

.questionnaire-card {
    padding: 24px !important; 
    border: 1px solid #dcdcdc !important; 
    border-radius: 8px; 
    box-sizing: border-box;
}

.framework-split-section h2,
.framework-split-section h3 {
    margin-top: 25px !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   8. CLEAN UNIFIED QUERY LOOP RULES (Desktop & Mobile Side-by-Side)
   ========================================================================== */
.wp-block-query {
    max-width: 900px !important; 
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.wp-block-query .wp-block-post-template {
    gap: 20px !important;
}

/* Standard horizontal layout row config */
.wp-block-query .wp-block-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin-top: 15px !important;
    margin-bottom: 0px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0;
}

.wp-block-query .wp-block-post:last-of-type {
    border-bottom: none !important;
}

/* Standard fixed square layout for thumbnails */
.wp-block-query .wp-block-post-featured-image {
    flex: 0 0 120px !important;
    max-width: 120px !important;
    margin: 0 !important;
}

.wp-block-query .wp-block-post-featured-image img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 4px;
}

/* --- FORCES GRAPHIC SIDE-BY-SIDE MOBILE ROW INSTEAD OF BREAKING --- */
@media (max-width: 781px) {
    .wp-block-query .wp-block-post {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .wp-block-query .wp-block-post-featured-image {
        flex: 0 0 85px !important;
        max-width: 85px !important;
    }

    .wp-block-query .wp-block-post-featured-image img {
        width: 85px !important;
        height: 85px !important;
    }
}

/* --- YOUR CUSTOM FONTS (Preserved exactly as you saved them) --- */
.wp-block-query .wp-block-post-title a,
.wp-block-query .wp-block-post-title,
.wp-block-post-template a {
    color: #727779 !important;
    text-decoration: none !important;
    font-size: 1.7rem !important;
    display: inline-block !important;
}

.wp-block-query .wp-block-post-title a:hover {
    color: #555555 !important;
}

/* ==========================================================================
   9. STRICT FIXED CONTROLS FOR THE MAIN INSIGHTS ARCHIVE PAGE 
   ========================================================================== */
.page-id-2367 .wp-block-post,
.blog .wp-block-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    max-width: 100% !important;
    width: 100% !important;
}

.page-id-2367 .wp-block-post > *:not(.wp-block-post-featured-image),
.blog .wp-block-post > *:not(.wp-block-post-featured-image) {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-id-2367 .wp-block-post-featured-image,.blog .wp-block-post-featured-image {flex: 0 0 140px !important;max-width: 140px !important;width: 140px !important;margin: 0 !important;}.page-id-2367 .wp-block-post-featured-image img,.blog .wp-block-post-featured-image img {width: 140px !important;height: 140px !important;object-fit: cover !important;border-radius: 4px;}@media (max-width: 600px) {.page-id-2367 .wp-block-post,.blog .wp-block-post {gap: 15px !important;}.page-id-2367 .wp-block-post-featured-image,.blog .wp-block-post-featured-image {flex: 0 0 90px !important;max-width: 90px !important;width: 90px !important;}.page-id-2367 .wp-block-post-featured-image img,.blog .wp-block-post-featured-image img {width: 90px !important;height: 90px !important;}}/* ==========================================================================10. COVER BLOCK SLIMMING & ALIGNMENT BOUNDS========================================================================== /.wp-block-cover,.wp-block-cover.alignfull {max-width: 900px !important;width: 100% !important;height: 220px !important; / Slims down the vertical height so it doesn't stretch massively */min-height: 220px !important;margin-left: auto !important;margin-right: auto !important;left: 0 !important;right: 0 !important;box-sizing: border-box !important;}.wp-block-cover .wp-block-cover__inner-container {padding: 0 20px !important;}.wp-block-cover.alignfull .wp-block-cover__image-background,.wp-block-cover.alignfull img {max-width: 100% !important;width: 100% !important;height: 100% !important;left: 0 !important;top: 0 !important;object-fit: cover !important;}
/* ==========================================================================
   12. MOBILE GAP FIX: REDUCE SPACE BETWEEN IMAGE AND SPLIT SECTION HEADING
   ========================================================================== */
@media (max-width: 781px) {
    /* 1. Crushes the heavy default vertical layout gaps when columns stack */
    .wp-block-columns,
    .wp-block-column {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        gap: 0 !important;
    }

    /* 2. Controls the exact cushion right above the framework heading */
    .page h2, 
    .page h3,
    .page p {
        margin-top: 10px !important; /* Adjust this number to get your perfect spacing */
    }
}
/* ==========================================================================
   13. FIXED: COMPACT EDITORIAL SIDE-BY-SIDE FEED FOR INSIGHTS ARCHIVE PAGE
   ========================================================================== */

/* --- DESKTOP VIEW (Replicates the precise Resources page layout) --- */
@media screen and (min-width: 769px) {
    /* 1. Breaks the container out of the layout restriction and matches standard content width */
    .blog .site-main,
    .blog .entry-content,
    .archive .site-main {
        max-width: 900px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 2. Forces row alignment side-by-side like the resources block layout */
    .blog .wp-block-post,
    .archive .wp-block-post {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 24px !important;
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 3. Constrains the featured image to a small, neat landscape ratio */
    .blog .wp-block-post-featured-image,
    .archive .wp-block-post-featured-image {
        flex: 0 0 120px !important;
        max-width: 120px !important;
        width: 120px !important;
        margin: 0 !important;
    }

    .blog .wp-block-post-featured-image img,
    .archive .wp-block-post-featured-image img {
        width: 120px !important;
        height: 80px !important;      /* Changes it to a smaller, sleek 2:1 look */
        aspect-ratio: 3 / 2 !important;
        object-fit: cover !important;
        border-radius: 4px;
    }

    /* 4. Keeps the text section wrapping cleanly across the remaining width */
    .blog .wp-block-post > *:not(.wp-block-post-featured-image) {
        flex: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* --- MOBILE VIEW (Forces strict side-by-side small thumbnails) --- */
@media screen and (max-width: 768px) {
    /* 1. Forces horizontal alignment instead of dropping into large stacks */
    .blog .wp-block-post,
    .archive .wp-block-post {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #f0f0f0;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* 2. Forces a compact thumbnail column on phone sizes */
    .blog .wp-block-post-featured-image,
    .archive .wp-block-post-featured-image {
        flex: 0 0 85px !important;
        max-width: 85px !important;
        width: 85px !important;
        margin: 0 !important;
    }

    .blog .wp-block-post-featured-image img,
    .archive .wp-block-post-featured-image img {
        width: 85px !important;
        height: 60px !important;      /* Clean landscape look on mobile */
        object-fit: cover !important;
        border-radius: 4px;
    }

    /* 3. Pulls text content column right next to the image asset */
    .blog .wp-block-post > *:not(.wp-block-post-featured-image) {
        flex: 1 !important;
        margin-top: 0 !important;
    }

    /* 4. Controls paragraph text sizes cleanly so it fits nicely on phones */
    .blog .wp-block-post h3,
    .blog .wp-block-post h2,
    .blog .wp-block-post-title a {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    
    .blog .wp-block-post-excerpt p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

/* Removes separating lines on the very final post items */
.blog .wp-block-post:last-of-type,
.archive .wp-block-post:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}