.wp-block-new-theme-hero.page-hero {
    background: linear-gradient(180deg, var(--new-theme-color-bg-base, #dff0fa) 0, var(--new-theme-color-bg-elevated, #ecf7fd) 100%);
    color: var(--new-theme-color-ink, #1a4a66);
    isolation: isolate;
    min-height: 520px;
    overflow: hidden;
    padding: 72px 0 285px;
    position: relative;
}

.wp-block-new-theme-hero.page-hero .page-hero__background,
.wp-block-new-theme-hero.page-hero .page-hero__overlay {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.wp-block-new-theme-hero.page-hero .page-hero__background {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}

.wp-block-new-theme-hero.page-hero .page-hero__overlay {
    background: linear-gradient(135deg, rgba(223, 240, 250, 0.82) 0, rgba(197, 228, 247, 0.6) 100%);
    z-index: -1;
}

.wp-block-new-theme-hero.page-hero::after {
    background: var(--new-theme-color-bg-base, #dff0fa);
    content: "";
    height: 210px;
    left: -5%;
    position: absolute;
    top: calc(100% - 105px);
    transform: rotate(-3deg);
    transform-origin: top left;
    width: 110%;
    z-index: 0;
}

.wp-block-new-theme-hero.page-hero > .container {
    position: relative;
    z-index: 1;
}

.wp-block-new-theme-hero .page-hero__content {
    max-width: 100%;
}

.wp-block-new-theme-hero .page-hero__content > :first-child {
    margin-top: 0;
}

.wp-block-new-theme-hero .page-hero__content > :last-child {
    margin-bottom: 0;
}

.wp-block-new-theme-hero .page-hero__content h1,
.wp-block-new-theme-hero .page-hero__content > .wp-block-heading:first-child {
    color: var(--new-theme-color-ink, #1a4a66);
    font-family: var(--new-theme-font-heading);
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 24px;
}

.wp-block-new-theme-hero .page-hero__content > p:first-of-type {
    color: var(--new-theme-color-text-muted, #356b87);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.55;
    max-width: 760px;
}

/* CTA button inside hero */
.wp-block-new-theme-hero .wp-block-button__link,
.wp-block-new-theme-hero .page-hero__cta {
    background: var(--new-theme-color-peach, #ffd4b8);
    border-radius: 9999px;
    color: var(--new-theme-color-peach-text, #7a4e2e);
    font-weight: 700;
    padding: 14px 32px;
    transition: background 0.2s;
}

.wp-block-new-theme-hero .wp-block-button__link:hover,
.wp-block-new-theme-hero .page-hero__cta:hover {
    background: var(--new-theme-color-peach-hover, #ffe2cc);
    color: var(--new-theme-color-peach-text, #7a4e2e);
}

.wp-block-new-theme-hero.page-hero--light {
    color: var(--new-theme-color-ink, #1a4a66);
}

.wp-block-new-theme-hero.page-hero--promo {
    background: #dff0fa;
    color: var(--new-theme-color-ink, #1a4a66);
    min-height: 480px;
    padding: 118px 0 132px;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__background {
    background-position: center bottom;
    background-size: cover;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__overlay {
    background:
        linear-gradient(90deg, rgba(223, 240, 250, 0.14) 0, rgba(223, 240, 250, 0.58) 31%, rgba(223, 240, 250, 0.58) 61%, rgba(223, 240, 250, 0.12) 100%),
        linear-gradient(180deg, rgba(223, 240, 250, 0.08) 0, rgba(223, 240, 250, 0.42) 100%);
}

.wp-block-new-theme-hero.page-hero--promo::after {
    background: linear-gradient(180deg, rgba(223, 240, 250, 0) 0, var(--new-theme-color-bg-base, #dff0fa) 100%);
    height: 150px;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 0;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__content::before {
    background: rgba(223, 240, 250, 0.86);
    border-radius: 24px;
    content: "";
    filter: blur(18px);
    inset: -18px -34px -16px;
    position: absolute;
    z-index: -1;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__content h1,
.wp-block-new-theme-hero.page-hero--promo .page-hero__content > .wp-block-heading:first-child {
    color: var(--new-theme-color-ink, #1a4a66);
    font-size: clamp(38px, 4.3vw, 52px);
    letter-spacing: 0;
    margin-bottom: 16px;
}

.wp-block-new-theme-hero.page-hero--promo .page-hero__content > p:first-of-type {
    color: var(--new-theme-color-text-muted, #356b87);
    font-size: clamp(17px, 1.6vw, 20px);
    margin-bottom: 26px;
}

.wp-block-new-theme-hero.page-hero--promo .wp-block-button__link,
.wp-block-new-theme-hero.page-hero--promo .page-hero__cta {
    background: #ffd4b8;
    border: 1px solid rgba(255, 154, 91, 0.35);
    box-shadow: 0 12px 24px rgba(255, 180, 128, 0.22);
    min-width: 170px;
    padding: 16px 36px;
}

@media (max-width: 767px) {
    .wp-block-new-theme-hero.page-hero {
        min-height: 430px;
        padding-bottom: 230px;
        padding-top: 52px;
    }

    .wp-block-new-theme-hero.page-hero::after {
        height: 150px;
        top: calc(100% - 70px);
    }

    .wp-block-new-theme-hero.page-hero--promo {
        min-height: 560px;
        padding: 52px 0 245px;
    }

    .wp-block-new-theme-hero.page-hero--promo .page-hero__background {
        background-position: center bottom !important;
        background-size: auto 58%;
    }

    .wp-block-new-theme-hero.page-hero--promo .page-hero__content {
        margin-left: 0;
        max-width: 100%;
        text-align: left;
    }

    .wp-block-new-theme-hero.page-hero--promo::after {
        bottom: 0;
        top: auto;
    }
}
