.wp-block-acf-magicwin-uk-v01,
.magicwin-uk-v01 {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    font-family: Figtree, sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.magicwin-uk-v01--split-bg {
    background-image: var(--magicwin-bg-desktop);
}

@media (max-width: 768px) {
    .magicwin-uk-v01--split-bg {
        background-image: var(--magicwin-bg-mobile);
    }
}

.magicwin-uk-v01__overlay {
    position: relative;
    width: 100%;
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
                radial-gradient(circle at 70% 90%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    color: #ffffff;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.magicwin-uk-v01__overlay--steps {
    flex: 0 0 auto;
    justify-content: flex-start;
    background: radial-gradient(ellipse 70% 140px at 50% 0%, #1b2113 0%, transparent 100%), #000;
    padding-top: 48px;
    padding-bottom: 64px;
}

.magicwin-uk-v01__overlay--steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #69b32f17 50%, transparent 100%);
    pointer-events: none;
}

.magicwin-uk-v01__container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    height: 100%;
}

.magicwin-uk-v01__inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.magicwin-uk-v01__header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.magicwin-uk-v01__header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* gap: 16px; */
    max-width: 100%;
}

.magicwin-uk-v01__header-logo {
    flex-shrink: 0;
    line-height: 0;
}

.magicwin-uk-v01__header-logo img {
    display: block;
    max-height: 96px;
    width: auto;
    height: auto;
}

.magicwin-uk-v01__header-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.magicwin-uk-v01__header-text,
.magicwin-uk-v01__header-text.entry-content {
    flex: 0 1 auto;
    color: #ffffff;
    line-height: 1.1;
    font-size: 32px;
    font-weight: 800;
}

.magicwin-uk-v01__header-text p {
    color: #ffffff !important;
    font-size: 25px !important;
    letter-spacing: 2px !important;
}

.magicwin-uk-v01__header-text.entry-content :where(h1, h2, h3, h4, h5, h6, p) {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-transform: none;
}

.magicwin-uk-v01__header-text.entry-content p + p {
    margin-top: 0.5em;
}

.magicwin-uk-v01__header-subtext {
    color: #ffffff;
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
}

.magicwin-uk-v01__top {
    text-align: left;
}

.magicwin-uk-v01__top-left {
    width: 100%;
}

.magicwin-uk-v01__top-right {
    display: none;
}

.magicwin-uk-v01__top-right-img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
    transform-origin: center center;
}

.magicwin-uk-v01__top-right-img--anim {
    animation: magicwinZoomBounce 8s ease-in-out infinite;
}

@keyframes magicwinZoomBounce {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.14); }  
    22%  { transform: scale(1.08); } 
    30%  { transform: scale(1.12); }  
    38%  { transform: scale(1.10); }  
    64%  { transform: scale(1.10); }  

    70%  { transform: scale(1.16); }  
    76%  { transform: scale(1.08); } 
    80%  { transform: scale(1.10); }  
    100% { transform: scale(1.00); } 
}

.magicwin-uk-v01__top-white,
.magicwin-uk-v01__green-top {
    font-size: 65px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 607px;
}

.magicwin-uk-v01__top-white {
    margin-bottom: 8px;
}

.magicwin-uk-v01__bottom {
    text-align: center;
}

.magicwin-uk-v01__bottom-highlight {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 50px;
}

.magicwin-uk-v01__top-left .magicwin-uk-v01__bottom-white {
    margin: 12px 0 0;
    max-width: 607px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.magicwin-uk-v01__btn,
.magicwin-uk-v01__btn--top {
    display: inline-block;
    padding: 12px 60px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

.magicwin-uk-v01__btn:hover,
.magicwin-uk-v01__btn:focus,
.magicwin-uk-v01__btn:focus-visible,
.magicwin-uk-v01__btn--top:hover,
.magicwin-uk-v01__btn--top:focus,
.magicwin-uk-v01__btn--top:focus-visible {
    background-color: #69b32f;
    color: #ffffff;
    text-decoration: none !important;
}

.magicwin-uk-v01__btn--top {
    margin-top: 20px;
}

@media (max-width: 1023px) {
    /* Mobile: image below text, centered content */
    .magicwin-uk-v01__top {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .magicwin-uk-v01__top-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .magicwin-uk-v01__top-right {
        display: block;
        width: 100%;
        max-width: 520px;
        order: 2; /* ensure below text */
    }

    .magicwin-uk-v01__top-right-img {
        margin-top: 34px;
    }

    .magicwin-uk-v01__top-white,
    .magicwin-uk-v01__green-top {
        font-size: 45px;
        font-weight: 700;
        line-height: 1.3;
        max-width: 607px;
        text-align: center;
    }

    .magicwin-uk-v01__top-left .magicwin-uk-v01__bottom-white {
        font-size: 16px;
        text-align: center;
        margin-top: 10px;
    }

    .magicwin-uk-v01__bottom-highlight {
        font-size: 28px;
        line-height: 1.2;
    }

    .magicwin-uk-v01__btn--top {
        align-self: center;
    }
}

@media (min-width: 1024px) {
    .magicwin-uk-v01__overlay {
        padding: 56px 60px 40px;
    }

    .magicwin-uk-v01__overlay--steps {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .magicwin-uk-v01__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .magicwin-uk-v01__top-left {
        flex: 0 1 640px;
    }

    .magicwin-uk-v01__top-right {
        display: block;
        flex: 0 1 520px;
    }

    .magicwin-uk-v01__top-right-img {
        max-width: 520px;
    }

    .magicwin-uk-v01 {
        min-height: 620px;
    }
}

.ast-page-builder-template .entry-content[data-ast-blocks-layout] > *:not(.wp-block-group):where(:not(.uagb-is-root-container):not(.spectra-is-root-container)) > * {
    max-width: unset;
}

a:hover, a:focus {
    color: white !important;
}

/* Full-width block layout */
body:has(.wp-block-acf-magicwin-uk-v01) .ast-separate-container .ast-article-single,
body:has(.wp-block-acf-magicwin-uk-v01) .ast-separate-container #primary,
.qp-has-magicwin-uk-v01 .ast-separate-container .ast-article-single,
.qp-has-magicwin-uk-v01 .ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.wp-block-acf-magicwin-uk-v01) #content > .ast-container,
.qp-has-magicwin-uk-v01 #content.site-content > .ast-container,
.qp-has-magicwin-uk-v01 .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:has(.wp-block-acf-magicwin-uk-v01) .entry-content[data-ast-blocks-layout] > *,
.qp-has-magicwin-uk-v01 .entry-content > * {
    max-width: unset;
}

/* Steps — same overlay + container stack as hero (padding aligns with header/CTA) */
.cards_steps {
    width: 100%;
    margin-top: 50px;
}

.cards_steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.cards_steps__item {
    position: relative;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    min-height: 365px;
    padding: 58px 24px 100px;
    box-sizing: border-box;
}

.cards_steps__number {
    position: absolute;
    top: -50px;
    left: 50%;
    z-index: 2;
    width: 108px;
    height: 108px;
    margin: 0;
    transform: translateX(-50%);
    border-radius: 50%;
    padding: 6px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #000000 0%, #69b32f 100%);
    box-shadow: 0 0 24px rgba(105, 179, 47, 0.35);
}

.cards_steps__number-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #000000;
}

.cards_steps__content {
    position: static;
    width: 100%;
    height: 100%;
    color: #ffffff;
}

/* Same vertical center on every card; description sits below without shifting the title */
.cards_steps__title {
    position: absolute;
    top: 47%;
    left: 50%;
    z-index: 1;
    width: calc(100% - 48px);
    max-width: 280px;
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.cards_steps__description {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: calc(100% - 48px);
    max-width: 280px;
    margin: 0;
    padding-top: 2.75rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    transform: translateX(-50%);
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .cards_steps__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cards_steps__item {
        min-height: 285px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 55px;
        width: 100%;
        padding-top: 50px;
    }

    .cards_steps__number {
        top: -44px;
        width: 93px;
        height: 93px;
    }

    .cards_steps__number-inner {
        font-size: 48px;
    }

    .cards_steps__title {
        font-size: 24px;
    }

    .cards_steps__description {
        padding-top: 2.25rem;
    }
}