/* Hero Section: Container Styling */
.is-section-hero .wp-block-columns {
    align-items: stretch !important;
    border-radius: 1rem;
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 0.5rem;
    overflow: hidden;
    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;
    padding: 0 0.5rem;
}

.is-section-hero .wp-block-column > .wp-block-group > .wp-block-group h3.wp-block-heading {
    font-size: 2rem;
    font-variation-settings: "wght" 750, "wdth" 80;
    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: 1px 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, -12vw, -3.5rem));
}

/* 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(100% 0, 0 0, 0 88%, 100% 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10vw));
    clip-path: polygon(100% 0, 0 0, 0 88%, 100% 100%);
    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;
}

.is-section-hero .wp-block-column:first-of-type > .wp-block-group > .wp-block-group {
    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;
}

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

@media (max-width: 1023px) {

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

@media (min-width: 768px) {

    .is-section-hero .wp-block-column {
        padding: 0 1rem;
    }

    .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 > .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(-7rem, -6vw, -4.5rem);
    }

    .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(-7rem, -6vw, -4.5rem);
        transform: none;
    }

    .is-section-hero .wp-block-column:first-of-type > .wp-block-group > .wp-block-group {
        margin-bottom: 5rem;
        margin-left: 12.25vw !important;
        margin-right: 8.5vw !important;
        max-width: 71%;
        padding: 0;
    }
}
