:root {
    --content-max: 1400px;     /* the line you want to align to (matches header) */
    --outer-max: 1480px;     /* section max incl. L/R padding */
    --gutter-fixed: calc((var(--outer-max) - var(--content-max)) / 2); /* = 40px */
    --gutter: clamp(16px, 4vw, var(--gutter-fixed)); /* fluid → caps at 40px */
}

.is-section-hero {
    margin-top: 0.25rem;
}

/* Hero Section: Container Styling */
.is-section-hero .wp-block-columns {

    /* per your original design, keep side padding */
    --hero-pad-x: 0.5rem;        /* updated at ≥768px below */
    border-radius: 1rem;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    margin: 0 0 -3rem !important;
    overflow: hidden;
    padding: 0 var(--hero-pad-x);
    position: relative;
}

/* Base styling for both columns */
.is-section-hero .wp-block-column {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

.is-section-hero .wp-block-column > .wp-block-group > .wp-block-group h3.wp-block-heading {
    font-size: 2rem;
    line-height: 2.5rem;
    margin: 0 0 1rem;
}

.is-section-hero .wp-block-column > .wp-block-group > .wp-block-group p {
    margin: 0 0 1rem;
}

.is-section-hero .wp-block-column > .wp-block-group > .wp-block-group a.wp-element-button {
    background-color: var(--white);
    border: 2px solid var(--white);
    border-radius: 0.25rem;
    box-shadow: 0 1px 0 1px rgba(255, 255, 255, 0.12) inset, 0 1px 2px 0 rgba(10, 13, 18, 0.05);
    color: var(--color-primary-500);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    padding: 0.75rem 1.125rem;
    transition: all 0.5s ease;
}

.is-section-hero .wp-block-column > .wp-block-group > .wp-block-group a.wp-element-button:hover {
    background-color: var(--color-primary-500);
    color: var(--white);
}

/* Shared Rule for Any Group in Either Column */
.is-section-hero .wp-block-column > .wp-block-group {
    display: flex;
    flex: 1;
}

/* Left Column: Original vibrant gradient and angled edge */
.is-section-hero > .wp-block-columns > .wp-block-column:first-of-type {
    color: var(--white);
    filter: url("#rounded");
    z-index: 1;
}

/* Right Column: Inverse angle to meet left column edge */
.is-section-hero .wp-block-column:last-of-type {
    filter: url("#rounded");
    transform: translateY(clamp(-7rem, -11vw, -3rem));
}

/* Left Column Group: Stack and left-align content */
.is-section-hero .wp-block-column:first-of-type > .wp-block-group {
    align-items: flex-start;
    background-color: hsla(236, 84%, 22%, 1);
    background-image:
        radial-gradient(at 51% 33%, hsla(220, 74%, 29%, 1) 0, transparent 50%),
        radial-gradient(at 30% 0%, hsla(236, 84%, 22%, 1) 0, transparent 50%),
        radial-gradient(at 39% 96%, hsla(236, 84%, 22%, 1) 0, transparent 50%),
        radial-gradient(at 65% 0%, hsla(208, 96%, 25%, 1) 0, transparent 50%),
        radial-gradient(at 100% 61%, hsla(137, 98%, 27%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(137, 98%, 27%, 1) 0, transparent 50%),
        radial-gradient(at 100% 1%, hsla(137, 98%, 27%, 1) 0, transparent 50%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10vw));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10vw));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-end;
    text-align: left;
}

/* INNER LEFT GROUP (copy block):
   Anchor left edge to the header content line, compensating for container padding */
.is-section-hero .wp-block-columns > .wp-block-column:first-child > .wp-block-group > .wp-block-group {

    /* Key alignment line:
       From viewport left, match centered 1400px inset OR fallback gutter,
       then subtract the hero container’s side padding so the visual edge aligns. */
    margin-left: calc(max((100vw - var(--content-max)) / 2, var(--gutter)) - var(--hero-pad-x)) !important;

    /* Reset any legacy offsets */
    margin-right: 0;

    /* Right breathing room inside the column */
    margin-right: var(--gutter);

    /* Mobile/tablet padding as before */
    padding: 2rem 1rem calc(10vw + 1rem);
}

/* Right Column Group */
.is-section-hero .wp-block-column:last-child > .wp-block-group {
    -webkit-clip-path: polygon(0 0, 100% 10vw, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 10vw, 100% 100%, 0 100%);
}

.is-section-hero .wp-block-column:last-child > .wp-block-group .wp-block-image {
    margin-bottom: 0;
}

.is-section-hero .wp-block-column:last-child figure.wp-block-post-featured-image {
    margin-bottom: 0;
}

/* Image Fill */
.is-section-hero .wp-block-column:last-child img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Tags */
.hero-tag {
    margin-bottom: 1rem;
}

.hero-tag h4,
.hero-tag h4 a {
    font-size: 0.75rem;
    font-variation-settings: normal;
    font-weight: 500;
    line-height: 1rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.hero-tag h4 {
    background-color: var(--color-white-alpha-100) !important;
    border-radius: 100px;
    color: var(--white);
    display: inline;
    padding: 0.375rem 1rem;
}

.hero-tag h4 a {
    color: var(--white);
}

.hero-tag h4 a:hover {
    background-color: var(--color-white-alpha-200);
}

/* ===== Breakpoints ===== */

@media (max-width: 1023px) {

    .is-section-hero .wp-block-columns {
        flex-direction: column !important;
    }
}

@media (min-width: 768px) {

    .is-section-hero .wp-block-columns {

        /* your original tablet+ side padding */
        --hero-pad-x: 1rem;
        margin: 0 0 -5rem !important;
        padding: 0 var(--hero-pad-x);
    }

    .is-section-hero .wp-block-column:first-of-type > .wp-block-group > .wp-block-group {
        padding: 5rem 2.5rem calc(15vw + 1rem);
    }

    .is-section-hero .wp-block-column > .wp-block-group > .wp-block-group h3.wp-block-heading {
        font-size: 3.5625rem;
        line-height: 4.25rem;
    }

    .is-section-hero .wp-block-column > .wp-block-group > .wp-block-group a.wp-element-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 1024px) {

    .is-section-hero .wp-block-columns {
        margin: 0 !important;
    }

    .is-section-hero .wp-block-columns > .wp-block-column {
        flex-grow: 1 !important;
    }

    .is-section-hero > .wp-block-columns > .wp-block-column:first-of-type {
        flex-basis: 53% !important;
        margin-right: clamp(-6rem, -5vw, -3rem);
    }

    .is-section-hero .wp-block-column:first-of-type > .wp-block-group {
        -webkit-clip-path: polygon(99% 0, 0 0, 0 100%, 85% 100%);
        clip-path: polygon(99% 0, 0 0, 0 100%, 85% 100%);
    }

    .is-section-hero .wp-block-column:last-child > .wp-block-group {
        -webkit-clip-path: polygon(100% 0, 18% 0, 2% 100%, 100% 100%);
        clip-path: polygon(100% 0, 18% 0, 2% 100%, 100% 100%);
    }

    .is-section-hero > .wp-block-columns > .wp-block-column:last-of-type {
        flex-basis: 47% !important;
        margin-left: clamp(-6.5rem, -5vw, -2.5rem);
        transform: none;
    }

    /* Replace vw offsets with container-aligned inset, minus container padding */
    .is-section-hero .wp-block-column:first-of-type > .wp-block-group > .wp-block-group {
        margin-bottom: 5rem;
        margin-left: calc(max((100vw - var(--content-max)) / 2, var(--gutter)) - var(--hero-pad-x)) !important;
        margin-right: 10rem !important;
        margin-top: 5rem;
        max-width: 71%;
        padding: 0;
    }
	
    .is-section-hero .wp-block-columns > .wp-block-column:first-child > .wp-block-group > .wp-block-group {
        padding: 0;
    }

    .hero-tag {
        margin-bottom: 1.5rem;
    }
}
