/* ==========================================================================
   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;
    }
}
/* 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 { /* Snaps your toggle qualifications 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 (Only applies to specific pages)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. Only apply grid styling if the columns container has the class 'insurance-grid' */
    .wp-block-columns.insurance-grid {
        display: flex !important;
        flex-flow: row wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    /* 2. Style the individual columns containing logos */
    .wp-block-columns.insurance-grid > .wp-block-column {
        flex: 1 1 calc(33.33% - 15px) !important;
        max-width: 33.33% !important;
        margin: 0 !important;
    }
    
    /* 3. Scale down the images inside the logo grid */
    .wp-block-columns.insurance-grid img {
        max-width: 65px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

==========================================================================
   ANCHOR LINK FIX: Prevent Fixed Header Menu from Hiding Titles on Desktop
   ========================================================================== */
@media screen and (min-width: 992px) {
    /* Add a protective cushion above targeted headings when clicked */
    .page h2[id], 
    .page h3[id],
    .single-post h2[id],
    .single-post h3[id] {
        scroll-margin-top: 100px !important; /* Pushes the title down safely below the nav bar */
    }
}
/* ==========================================================================
   MOBILE REAL ESTATE OPTIMISATION: Edge-to-Edge Full Width Text
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Strip heavy padding from paragraphs and lists so text fills the screen */
    .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 {
        padding-left: 5px !important;   /* Tiny 5px cushion so text doesn't hit the physical bezel */
        padding-right: 5px !important;
    }

    /* Keep H2 and H3 headings flush with the new wide text edge */
    .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;
    }
}
/* ==========================================================================
   RESOURCES PAGE: Add Border Lines to Group Cards Natively
   ========================================================================== */
.framework-card-outline {
    border: 1px solid #eaeaea !important; /* Adds a clean, soft, modern border line */
    padding: 20px !important; /* Generates comfortable inner text breathing room */
    margin-bottom: 20px !important; /* Forces a perfect gap layout between your phase blocks */
    border-radius: 4px; /* Subtle rounding on corners for a high-end editorial look */
}
/* Custom border and spacing for the Group block on the Supporting Life Changes page */
.my-custom-border {
    border: 1px solid #222222;    /* Kept thin as per your adjustment */
    padding-top: 24px;            /* Padding space at the top */
    padding-bottom: 6px;          /* Balanced bottom gap as per your adjustment */
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 6px;
}

/* Strips out the extra default bottom spacing from the very last item inside the border */
.my-custom-border > *:last-child {
    margin-bottom: 0 !important;
}

/* Forces text blocks inside this box to match standard body font styling on mobile devices */
@media screen and (max-width: 767px) {
    .my-custom-border p {
        font-size: 16px !important;       /* Forces a standard readable mobile text size */
        line-height: 1.5 !important;      /* Forces standard paragraph line spacing */
        letter-spacing: normal !important;/* Keeps letters from spreading apart */
    }
}
/* Hides the default page header title specifically on the Resources page */
.page-id-491 .entry-title, 
.page-id-491 .post-title,
.page-id-491 .wp-block-post-title {
    display: none !important;
}
/* Padding and Border for Questionnaire Cards */
.questionnaire-card {
    padding: 24px !important; 
    border: 1px solid #dcdcdc !important; 
    border-radius: 8px; 
    box-sizing: border-box;
}
  /* 5. Tightens the top spacing on the heading itself */
    .framework-split-section h2,
    .framework-split-section h3 {
        margin-top: 25px !important;
        padding-top: 0 !important;
    }
}
/* --- SECTION CONTAINER --- */
.insights-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

/* --- HORIZONTAL ROWS --- */
.insight-row {
    border-bottom: 1px solid #e0e0e0; /* Creates the separating line between rows */
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;               /* Vertically centers the image with the text */
}

/* Trims the border on the very last row so it looks clean */
.insights-section .insight-row:last-of-type {
    border-bottom: none;
}

/* Forces the square thumbnail image to stay small and sharp */
.insight-row .wp-block-column:first-child img {
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px; /* Optional: adds a subtle rounded corner to the thumbnail */
}

/* Adjusts the title and button layout within the right column */
.insight-row .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
   
    
    /* Shrinks the thumbnail even more on tiny screens */
    .insight-row .wp-block-column:first-child {
        flex-basis: 80px !important;
    }
    
    .insight-row .wp-block-column:first-child img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Tweaks text size so it fits elegantly next to the mobile thumbnail */
    .insight-row h4 {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
}
