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

/* Force all pages to stretch beautifully to full width on desktop */
.page .entry-content, .page .site-main {
    max-width: 100% !important;
    width: 100% !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 {
        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;
    }
}
/* 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 { /* Snaps your columns and logos into alignment */
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !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 { /* Snaps your gray background card into alignment */
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==========================================================================
   2. RESTORE POST TYPOGRAPHY & BASIC FULL-WIDTH WORKING LAYOUT
   ========================================================================== */
/* Force single blog posts to stretch full width on desktop screens */
@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;
    }
    
    /* Control reading widths for post text and lists elements */
    .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;
    }
}

/* Hide metadata line (date/author) completely across all devices */
.entry-meta, .post-meta, .entry-header .meta, .wp-block-post-date, .wp-block-post-author {
    display: none !important;
}

/* Enforce the exact text sizes you loved: keeps H3 smaller in posts */
.single-post .entry-content h3 {
    font-size: 18px !important;
}

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

/* Force all list items to pull their bullet/number markers completely inside the text margins */
.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) {
    /* Reset the main article spacing back to normal flow */
    .single-post .site-main > article {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
        padding-top: 0 !important; /* Removes the absolute vault space completely */
    }

    /* Keep the title box cleanly aligned to the left of your reading margin */
    .single-post .entry-header {
        position: static !important; /* Restores standard document order */
        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; /* Strips the white box */
        padding: 0 !important; /* Strips box margins */
        box-shadow: none !important; /* Strips the shadow drop */
        display: block !important;
    }

    /* Center your compact image with clean spacing above and below */
    .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; /* Keeps the crisp 2:1 image tight and un-stretched */
        height: auto !important; /* Restores natural image scaling */
        margin: 0 auto 40px auto !important; /* Centers it perfectly and separates the text */
    }
}
/* ==========================================================================
   MOBILE INSURANCE LOGOS GRID FIX (768px and below)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Target the specific 6-column container on your locations page */
    .page-id-26 .wp-block-columns,
    .page .entry-content > .wp-block-columns:last-of-type {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; /* Forces them into rows instead of a giant stack */
        justify-content: center !important;
        gap: 15px !important; /* Creates clean breathing room around logos */
    }

    /* Force each logo column to stay small and compact (3 per row) */
    .page-id-26 .wp-block-columns > .wp-block-column,
    .page .entry-content > .wp-block-columns:last-of-type > .wp-block-column {
        flex-basis: calc(33.33% - 15px) !important; /* Perfectly frames 3 icons per row */
        max-width: 33.33% !important;
        margin: 0 !important;
        padding: 5px !important;
    }

    /* Restrict the physical width of the logo images themselves */
    .page-id-26 .wp-block-columns img,
    .page .entry-content > .wp-block-columns:last-of-type img {
        max-width: 70px !important; /* Scales down the logos so they never balloon */
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}
/* ==========================================================================
   FORCE INSURANCE LOGOS TO DISPLAY AS A GRID ON PHONES
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Hard-lock columns to wrap side-by-side on mobile devices */
    .page .entry-content .wp-block-columns {
        display: flex !important;
        flex-flow: row wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    /* Set sizes explicitly to frame exactly 3 small logos per row */
    .page .entry-content .wp-block-columns > .wp-block-column {
        flex: 1 1 calc(33.33% - 15px) !important;
        max-width: 33.33% !important;
        margin: 0 !important;
    }
    .page .entry-content .wp-block-columns img {
        max-width: 65px !important;
        height: auto !important;
    }
}
