/*---------------------------------------------------------------------------
Homepage Specific Styles - AEI Oak Theme
---------------------------------------------------------------------------*/
p:empty {
    display: none;
}

/* --- Global Homepage Variables & Resets (if needed beyond style.css) --- */
:root {
    --home-section-padding-y: clamp(3rem, 7vw, 6rem); /* Responsive vertical padding */
    --home-container-max-width: 1200px;
    --home-light-bg: #e2eded; /* Your light teal/off-white */
    --home-dark-primary: #173344; /* Your dark blue */
    --home-accent-green: #85ad86; /* Your accent green */
    --home-text-color: #333333;
    --home-light-text-color: #f8f9fa;
}

body.home {
    /* font-family: 'YourChosenFont', sans-serif; */ /* Ensure this is set in style.css or here */
}
body.slide-header-active .custom-logo{

}
body:not(.slide-header-active) #masthead .custom-logo{

    height:auto !important;

}
body:not(.slide-header-active) .slide-down-header .site-branding{
    display:none;
}
body.slide-header-active .slide-down-header .site-branding{
    display:inline-block;
}
.cover-short{
    min-height:250px !important;

}
.cover-short h2{
    margin-bottom: 1em !important;
}
.cover-short p{
    font-size:20px;
}
.hero-overlay-content.container{
    max-width: none !important; /* Allow full width */
}
.hero-overlay-content h2{
    color:#fff;
    text-align: center;

}
/* --- Helper Classes --- */
.home-section {
    padding-top: var(--home-section-padding-y);
    padding-bottom: var(--home-section-padding-y);
    overflow: hidden; /* Prevent content spill, use with caution if SVGs flare out */
}

.home-container {
    max-width: var(--home-container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative; /* For absolutely positioned children like SVGs */
    z-index: 1; /* Ensure content is above background elements */
}

.bg-light-teal {
    background-color: var(--home-light-bg);
}

.bg-dark-primary {
    background-color: var(--home-dark-primary);
    color: var(--home-light-text-color);
}

.bg-dark-primary .wp-block-heading,
.bg-dark-primary p,
.bg-dark-primary .wp-block-button__link {
    color: var(--home-light-text-color);
}

.bg-dark-primary .wp-block-button.is-style-outline .wp-block-button__link {
    border-color: var(--home-light-text-color);
}

.bg-dark-primary .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--home-light-text-color);
    color: var(--home-dark-primary);
}

/* --- Typography --- */
.home-section .wp-block-heading {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

h1.home-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--home-light-text-color); /* Assuming hero text is on a dark image */

}
.hero-overlay-content.container{

    border-radius: 0 !important; /* Remove border radius for full width */
    border: none !important; /* Remove border for full width */
    text-align: center !important;

}
p.home-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: black;

    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* --- Parallax Backgrounds (for wp-block-cover) --- */
.wp-block-cover.has-parallax {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ensure content within parallax cover is centered and readable */
.wp-block-cover.has-parallax > .wp-block-cover__inner-container,
.wp-block-cover > .wp-block-cover__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    z-index: 1;
    padding: 20px;
}

/* Text shadow for light text on dark cover backgrounds */
.wp-block-cover.is-light .wp-block-cover__inner-container .has-white-color,
.wp-block-cover.has-dark-primary-background-color .wp-block-cover__inner-container .has-white-color,
.wp-block-cover.has-overlay .wp-block-cover__inner-container .has-text-color-white,
.wp-block-cover .wp-block-cover__inner-container *[class*="has-white-color"] {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- SVG Styling --- */
.decorative-svg-icon svg,
.service-icon svg {
    display: inline-block; /* Or block, depending on usage */
    fill: currentColor; /* Inherits color from parent, or set explicitly */
    /* stroke: currentColor; */ /* if using stroke-based icons */
    width: 60px; /* Default size, override as needed */
    height: 60px; /* Default size, override as needed */
    margin-bottom: 1rem;
}

.svg-corner-accent {
    position: absolute;
    width: clamp(80px, 15vw, 150px);
    height: auto;
    z-index: 0; /* Behind content */
    opacity: 0.1; /* Subtle */
}

.svg-corner-accent.top-right {
    top: -20px;
    right: -20px;
    fill: var(--home-accent-green); /* Default fill, can be overridden in block HTML style */
}

.svg-corner-accent.bottom-left {
    bottom: -20px;
    left: -20px;
    transform: rotate(180deg);
    fill: var(--home-dark-primary); /* Default fill, can be overridden in block HTML style */
}

/* --- Animation Placeholders (to be activated with JS if needed) --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Specific Styling --- */

/* Example: Services Section with Columns */
.home-services-section .wp-block-columns {
    gap: 2rem; /* Spacing between columns */
}

.home-services-section .wp-block-column {
    background-color: #fff;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.home-services-section .wp-block-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.home-services-section .service-icon svg {
    fill: var(--home-accent-green);
    width: 50px;
    height: 50px;
}

.home-services-section .wp-block-column h3 {
    font-size: 1.5rem;
    color: var(--home-dark-primary);
    margin-bottom: 0.75rem;
}

/* Example: Media & Text Section */
.home-media-text-section .wp-block-media-text__media {
    border-radius: 8px;
    overflow: hidden; /* Ensures image respects border-radius */
}

.home-media-text-section .wp-block-media-text__media img {
    display: block; /* Removes any bottom space */
}

.home-media-text-section .wp-block-media-text__content {
    padding: 2rem; /* Adjust as needed */
}

/* --- Buttons --- */
.wp-block-button__link {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;

    padding: 12px 28px !important; /* Adjust padding for a modern feel */
    font-weight: 600;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.wp-block-button.is-style-fill .wp-block-button__link {

}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--home-accent-green) !important;
    color: var(--home-light-text-color) !important;
}


/* --- Responsive Adjustments --- */
@media (max-width: 783px) {
    .home-hero-title {
        font-size: 2rem; /* Adjust for smaller screens */
    }

    .home-hero-subtitle {
        font-size: 1rem;
    }

    .home-services-section .wp-block-columns {
        flex-direction: column;
    }

    .home-services-section .wp-block-column {
        margin-bottom: 1.5rem;
    }

    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        padding: 1.5rem 0 0 0; /* Adjust padding for stacked view */
    }
}

@media (max-width: 480px) {
    .home-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .wp-block-button__link {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* --- Common Section Styling */
.home-section {


}
.wp-element-button{
    text-shadow: none !important;
}
.home-section .container {
    max-width: 1200px; /* Consistent with other container uses if applicable, adjust as needed */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.home-section h2 {
    font-size: 2.25rem; /* 36px */
    color: var(--color-dark-primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.home-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--color-accent-green);
}

.wp-block-media-text__media img {
    border: 5px solid #85ad86;
    box-shadow: 10px 5px 0px #173344;
}


/* Section Backgrounds */
.home-section.bg-light {
    background-color: var(--color-light-bg);
}

.home-section.bg-dark {
    background-color: var(--color-dark-primary);
}

.home-section.bg-dark h2,
.home-section.bg-dark p,
.home-section.bg-dark h3 {
    color: var(--color-text-light);
}

.home-section.bg-dark h2::after {
    background-color: var(--color-white); /* White accent line on dark bg */
}

/* SVG Icons */
.home-section .section-svg-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    fill: var(--color-accent-green);
}

.home-section.bg-dark .section-svg-icon {
    fill: var(--color-light-bg);
}

/* Trusted Partner Section */
#home-trusted-partner {
    /* specific styles if any */
}

/* Achieving Aspirations Section */
#home-aspirations {
    /* specific styles if any */
}

.aspirations-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.aspiration-column {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: 350px;
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.aspiration-column h3 {
    font-size: 1.5rem; /* 24px */
    color: var(--color-dark-primary);
    margin-bottom: 15px;
    text-align: center;
}

.aspiration-column .section-svg-icon {
    width: 60px;
    height: 60px;
}

.aspiration-column p {
    font-size: 1rem; /* 16px */
    margin-bottom: 0;
}

/* Community Section */
#home-community {
    /* specific styles if any */
}

/* Call to Action Section */
#home-cta {
    padding-bottom: 80px; /* Extra padding if it's the last visual element before footer */
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-accent-green);
    color: var(--color-white) !important; /* Ensure text color override if 'a' tag */
    border-radius: 5px;
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-dark-primary);
    color: var(--color-white) !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-dark-primary) !important;
    border: 2px solid var(--color-accent-green);
}

.cta-button.secondary:hover {
    background-color: var(--color-accent-green);
    color: var(--color-white) !important;
    border-color: var(--color-accent-green);
}

/* Styling for content from WP Editor (after 'more' tag) */
.home-wp-content {
    padding: 0 0;
}

.home-wp-content .container {
    max-width: 800px; /* Standard content width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.home-wp-content h1,
.home-wp-content h2,
.home-wp-content h3,
.home-wp-content h4,
.home-wp-content h5,
.home-wp-content h6 {

}


/* Responsive adjustments */
@media (max-width: 783px) {


    .home-section h2 {
        font-size: 1.8rem;
    }

    .home-section p {
        font-size: 1rem;
    }

    .aspirations-columns {
        flex-direction: column;
        align-items: center;
    }

    .aspiration-column {
        max-width: 90%;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 80%;
        text-align: center;
    }
}

.home-section .wp-block-cover.mt-4 {
    margin-top: 40px; /* Add space above cover images */
}

/* Ensure full width for cover blocks if they are inside a constrained group in the editor */
.home-section > .container > .wp-block-cover.alignfull,
.home-wp-content > .wp-block-cover.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.section-svg-icon svg {
    display: inline-block; /* Or adjust as needed if they are centered via parent */
}

/* New Styles for Flare and Modern Sections */

/* Flare SVG general positioning */
.flare-svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1; /* Adjust for subtlety */
    overflow: hidden; /* Prevent SVGs from making section bigger */
}

.flare-svg-background svg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Or contain, depending on desired effect */
}

.flare-svg-corner {
    position: absolute;
    width: 100px; /* Adjust size */
    height: 100px; /* Adjust size */
    z-index: 0;
    opacity: 0.25; /* Adjust for subtlety */
}

.flare-svg-corner.top-right {
    top: -20px; /* Adjust positioning */
    right: -20px;
}

.flare-svg-corner.bottom-left {
    bottom: -20px; /* Adjust positioning */
    left: -20px;
    transform: rotate(180deg); /* If using same SVG and need to flip */
}

/* Relative positioning for parent blocks that will contain absolute SVGs */
.wp-block-group.has-flare,
.wp-block-cover.has-flare,
.wp-block-media-text.has-flare {
    position: relative;
}

/* Ensure content is above the flare SVGs */
.wp-block-group.has-flare > .wp-block-group__inner-container,
.wp-block-cover.has-flare > .wp-block-cover__inner-container,
.wp-block-media-text.has-flare .wp-block-media-text__content {
    position: relative;
    z-index: 1;
}

.wp-block-cover.has-flare > .wp-block-cover__inner-container > *,
.wp-block-media-text.has-flare > .wp-block-media-text__content > * {
    position: relative; /* Ensure content within a flared block is above the flare */
    z-index: 1;
}

/* --- NEW: Cover with Dots Flair --- */
.cover-with-dots-flair {
    position: relative; /* Ensure z-index stacking context */
}

/* Ensure the cover's own image and overlay are behind the dots */
.cover-with-dots-flair > .wp-block-cover__image-background,
.cover-with-dots-flair > .wp-block-cover__background {
    z-index: 0; /* Base layer */
}

.cover-with-dots-flair > .wp-block-cover__inner-container {
    position: relative; /* Stacking context for its children and pseudo-elements */
    z-index: 2; /* Above the dots and cover's own bg/overlay */
}

.cover-with-dots-flair > .wp-block-cover__inner-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='sparseDots' patternUnits='userSpaceOnUse' width='50' height='50'%3E%3Ccircle cx='10' cy='10' r='2' fill='%2385ad86' opacity='0.4'/%3E%3Ccircle cx='35' cy='35' r='1.5' fill='%2385ad86' opacity='0.3'/%3E%3Ccircle cx='15' cy='40' r='1.8' fill='%23173344' opacity='0.35'/%3E%3Ccircle cx='40' cy='15' r='1.2' fill='%23173344' opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23sparseDots)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.7; /* User preferred opacity */
    z-index: 1; /* Between cover's bg/overlay (0) and inner-container's content (children of inner-container) */
    pointer-events: none; /* Allow clicks to go through to content */
}

/* Ensure content *within* the inner-container is above the pattern */
/* This rule might be redundant if .wp-block-cover__inner-container itself has z-index:2 and its children are default z-index:auto */
/* .cover-with-dots-flair > .wp-block-cover__inner-container > * {
    position: relative;
    z-index: 1;  Adjust if needed, relative to inner-container's z-index 2 
} */
/* --- END: Cover with Dots Flair --- */

/* --- NEW: Group with Dots Flair --- */
.group-with-dots-flair {
    position: relative; /* Establishes a stacking context */
    background-color: transparent; /* Ensure no solid group background hides the pattern if applied via ::before */
}

.group-with-dots-flair::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='sparseDots' patternUnits='userSpaceOnUse' width='50' height='50'%3E%3Ccircle cx='10' cy='10' r='2' fill='%2385ad86' opacity='0.4'/%3E%3Ccircle cx='35' cy='35' r='1.5' fill='%2385ad86' opacity='0.3'/%3E%3Ccircle cx='15' cy='40' r='1.8' fill='%23173344' opacity='0.35'/%3E%3Ccircle cx='40' cy='15' r='1.2' fill='%23173344' opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23sparseDots)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.7; /* Consistent with user preference */
    z-index: 0; /* Behind the group's actual content */
    pointer-events: none;
}

/* Ensure direct children of the group are stacked above the ::before pseudo-element */
.group-with-dots-flair > * {
    position: relative;
    z-index: 1;
}

/* --- END: Group with Dots Flair --- */

/* --- NEW: Geometric Pattern Flair --- */

/* For Cover Blocks */
.cover-with-geometric-flair {
    position: relative;
}

.cover-with-geometric-flair > .wp-block-cover__image-background,
.cover-with-geometric-flair > .wp-block-cover__background {
    z-index: 0;
}

.cover-with-geometric-flair > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.cover-with-geometric-flair > .wp-block-cover__inner-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='geometricShapes' patternUnits='userSpaceOnUse' width='150' height='150'%3E%3Crect x='20' y='30' width='10' height='10' fill='%23173344' opacity='0.3' transform='rotate(25 25 35)'/%3E%3Cline x1='50' y1='60' x2='80' y2='50' stroke='%2385ad86' stroke-width='1.5' opacity='0.4'/%3E%3Cpolygon points='100,90 108,105 92,105' fill='%23173344' opacity='0.25'/%3E%3Ccircle cx='120' cy='25' r='4' fill='%2385ad86' opacity='0.3'/%3E%3Cline x1='10' y1='120' x2='40' y2='130' stroke='%23173344' stroke-width='1' opacity='0.2'/%3E%3Crect x='65' y='115' width='7' height='7' fill='%2385ad86' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23geometricShapes)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5; /* Initial opacity, adjust as needed */
    z-index: 1;
    pointer-events: none;
}

/* For Group Blocks */
.group-with-geometric-flair {
    position: relative;
    background-color: transparent;
}

.group-with-geometric-flair::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='geometricShapes' patternUnits='userSpaceOnUse' width='150' height='150'%3E%3Crect x='20' y='30' width='10' height='10' fill='%23173344' opacity='0.3' transform='rotate(25 25 35)'/%3E%3Cline x1='50' y1='60' x2='80' y2='50' stroke='%2385ad86' stroke-width='1.5' opacity='0.4'/%3E%3Cpolygon points='100,90 108,105 92,105' fill='%23173344' opacity='0.25'/%3E%3Ccircle cx='120' cy='25' r='4' fill='%2385ad86' opacity='0.3'/%3E%3Cline x1='10' y1='120' x2='40' y2='130' stroke='%23173344' stroke-width='1' opacity='0.2'/%3E%3Crect x='65' y='115' width='7' height='7' fill='%2385ad86' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23geometricShapes)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5; /* Initial opacity, adjust as needed */
    z-index: 0;
    pointer-events: none;
}

.group-with-geometric-flair > * {
    position: relative;
    z-index: 1;
}

/* --- END: Geometric Pattern Flair --- */

/* --- Homepage Button Styles --- */
/* Default state for all WP buttons on home to ensure consistency before specific styles */
body.home .wp-block-button .wp-block-button__link {
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    line-height: 1.5; /* Ensure text is centered vertically */
    box-sizing: border-box; /* Ensure padding and border are included in width/height */
}

/* Primary Button Style (Fill) */
body.home .wp-block-button.is-style-fill .wp-block-button__link,
body.home .wp-block-button:not(.is-style-outline) .wp-block-button__link { /* Catches buttons with no style selected, making fill the default */
    background-color: var(--color-accent-green, #85ad86);
    color: var(--color-white, #FFFFFF);
    border: 2px solid transparent; /* Keep same height as outline button */
    padding: 12px 28px;
    border-radius:  30px ; /* Consider var(--border-radius-normal) if defined */
}

body.home .wp-block-button.is-style-fill .wp-block-button__link:hover,
body.home .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: #729a73; /* Darker green */
    color: var(--color-white, #FFFFFF);
}

/* Secondary Button Style (Outline) */
body.home .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--color-dark-primary, #173344);
    border: 2px solid var(--color-dark-primary, #173344);
    padding: 10px 26px; /* Adjusted padding to maintain similar visual size */
    border-radius: 4px; /* Consider var(--border-radius-normal) if defined */
}



/* Remove default WP button margins if they cause layout issues within sections */
body.home .wp-block-buttons > .wp-block-button {
    margin-bottom: 0; /* Or a small consistent margin like 10px */
    margin-right: 0; /* WordPress adds default right margin */
}

/* If buttons are side-by-side, add some space */
body.home .wp-block-buttons.is-layout-flex > .wp-block-button:not(:last-child) {
    margin-right: 15px;
}

/* --- Section: Introduction (Example if needed) --- */
.home-intro-section {
    /* font-size: 2.8rem;
    color: var(--color-dark-primary);
    margin-bottom: 20px; */
}

.home-intro-section p {
    /* font-size: 1.2rem;
    color: var(--color-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto; */
}

/* Section: Services Columns with Icons and Flare */
.home-services-columns .wp-block-column {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-services-columns .wp-block-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home-services-columns .service-icon svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    fill: var(--color-accent-green);
}

.home-services-columns h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--color-dark-primary);
}

/* Section: Media & Text with Flare */
.home-media-text-flare .wp-block-media-text__content {
    padding: 20px;
}
.no_gap_bottom{
    margin-bottom: 0 !important;
}
.no_gap_top{
    border:0 !important;
    margin-bottom: 0 !important;
}
.add_padding{
    padding: 20px !important;
}
.container_2{
    max-width:1200px !important;
    padding:40px 20px !important;
}
.text_medium_large{
    font-size:1.2em;
}
.home-media-text-flare .wp-block-media-text__media {
    position: relative; /* For potential pseudo-element flare */
    border-radius: 8px;
    overflow: hidden; /* if image is direct child */
}

.home-media-text-flare img {
    border-radius: 8px;
    display: block; /* remove extra space below image */
}

/* Community Section CTA Button (if different from global) */
.home-community-section .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
    color: var(--color-text-light); /* Ensure text color if it's an outline on dark bg */
}

.home-community-section .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
    color: var(--color-dark-primary);
}


/* Example: 80s inspired grid background SVG for a section */
.has-grid-background {
    position: relative;
    overflow: hidden; /* Keep grid lines contained */
}

.grid-svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.07; /* Very subtle */
}

.grid-svg-background svg line {
    stroke: var(--color-accent-green); /* Or var(--color-dark-primary) */
    stroke-width: 2;
}

/* Ensure content within grid background is above */
.has-grid-background > .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

/* Adding a specific class for a section if we want to apply the grid */
.home-section.grid-lines-bg {
    /* This class can be added to a Group block in Gutenberg */
}
.wp-block-cover.is-light.has-parallax.is-visible{
    border-color: #173344;
    border-style: solid;
    border-width: 4px 0;
}
@media (max-width:1200px) {
    .hero-overlay-content.container h3 {
        visibility: hidden;
    }


    .hero-overlay-content h1,
    .hero-overlay-content h3,
    .hero-overlay-content p {
        display: none;

    }

    #masthead > .container .site-branding   {
        padding-left: 0;
    }


}

@media (max-width:1100px) {
    .hero-overlay-content.container h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    .hero-overlay-content.container .wp-block-spacer {
        display: none;
    }
    .hero-overlay-content.container .wp-block-buttons.is-content-justification-left {
        justify-content: flex-end;
    }
}


/*
Important Note for the USER:
This CSS is now tailored for your provided HTML structure:
- Main container: .flip_boxes
- Individual flipping item: .service-box (which is a .wp-block-column)
- Front face elements (direct children of .service-box):
    - div.service-icon (contains your SVG)
    - h3.wp-block-heading
- Back face element (direct child of .service-box):
    - p.has-text-align-center

Check for conflicts: The .service-box elements also have an 'animate-on-scroll' class.
If 'animate-on-scroll' applies its own 'transform' properties, it might conflict with the 'transform: rotateY()' used for the flip effect.
If you see issues, you might need to adjust the 'animate-on-scroll' styles or how these effects are combined.

Adjust colors, fonts, sizes, and spacing further to perfectly match your site's design.
*/

/* === Homepage: Style last two sections (green band + CTA with watermark) === */
/* Green band: second-to-last top-level Group inside the homepage content area */
.home-wp-content > .wp-block-group:nth-last-of-type(2) {
    background-color: #42624E; /* rich green */
    color: #ffffff;
    padding: 48px 20px;
    border-top: 4px solid #173344; /* subtle separators similar to hero borders */
    border-bottom: 4px solid #173344;
    text-align: center;
}

.home-wp-content > .wp-block-group:nth-last-of-type(2) .wp-block-heading,
.home-wp-content > .wp-block-group:nth-last-of-type(2) h2,
.home-wp-content > .wp-block-group:nth-last-of-type(2) h3,
.home-wp-content > .wp-block-group:nth-last-of-type(2) h4 {
    font-family: var(--font-secondary);
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.home-wp-content > .wp-block-group:nth-last-of-type(2) p {
    font-family: var(--font-primary);
    letter-spacing: 0.01em;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 900px;
    margin: 8px auto 20px auto;
}

/* Centered pill button inside the green band */
.home-wp-content > .wp-block-group:nth-last-of-type(2) .wp-block-buttons {
    justify-content: center;
}
.home-wp-content > .wp-block-group:nth-last-of-type(2) .wp-block-button .wp-block-button__link {
    font-family: var(--font-secondary);
    letter-spacing: 0.03em;
    background: #ffffff;
    color: #42624E !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 9999px;
    padding: 10px 20px !important;
    font-weight: 700;
}

/* Bottom CTA section: last Group with light background and subtle right-side watermark */
.home-wp-content > .wp-block-group:last-of-type {
    position: relative;


    overflow: hidden; /* contain watermark */
}


.home-wp-content > .wp-block-group:last-of-type .wp-block-heading,
.home-wp-content > .wp-block-group:last-of-type h2,
.home-wp-content > .wp-block-group:last-of-type h3 {
    font-family: var(--font-secondary);
    letter-spacing: 0.02em;
    color: #173344;
    font-weight: 800;
    margin-bottom: 8px;
}


/* Buttons row spacing and pill styles */
.home-wp-content > .wp-block-group:last-of-type .wp-block-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-wp-content > .wp-block-group:last-of-type .wp-block-button .wp-block-button__link,
.home-wp-content > .wp-block-group:last-of-type .wp-block-button.is-style-outline .wp-block-button__link {
    font-family: var(--font-secondary);
    letter-spacing: 0.03em;
    background: #42624E; /* green button */
    color: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 9999px;
    padding: 12px 22px !important;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.home-wp-content > .wp-block-group:last-of-type .wp-block-button.is-style-outline .wp-block-button__link {
    background: #e7ecee;
    color: #173344 !important;
    border: 1px solid rgba(0,0,0,0.12);
}

.home-wp-content > .wp-block-group:last-of-type .wp-block-button .wp-block-button__link:hover {
    filter: brightness(0.95);
}

/* Responsive tweaks */
@media (max-width: 782px) {
    .home-wp-content > .wp-block-group:nth-last-of-type(2),
    .home-wp-content > .wp-block-group:last-of-type {
        padding: 32px 16px;
        text-align: center;
    }
    .home-wp-content > .wp-block-group:last-of-type::after {
        width: 70%;
        right: -15%;
        opacity: 0.06;
    }
    .home-wp-content > .wp-block-group:nth-last-of-type(2) p,
    .home-wp-content > .wp-block-group:last-of-type p {
        margin-left: auto;
        margin-right: auto;
    }
}
.linked_blocks p{
    font-style: italic;
}