/* Keep the carousel alongside the existing Kadence enquiry form. */
.single-content .kb-row-layout-id100_089a00-64.wp-block-kadence-rowlayout:has(.mks-home-hero) {
    margin-bottom: 0;
    background: #f3edfd;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) > .kt-row-column-wrap {
    width: 100%;
    max-width: none;
    padding-block: clamp(20px, 3vw, 42px);
    padding-inline: clamp(12px, 1.6vw, 32px);
}

.kadence-column100_324c65-a1:has(.mks-home-hero) > .kt-inside-inner-col > .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: clamp(16px, 2vw, 26px);
    margin: 0;
}

.kadence-column100_324c65-a1:has(.mks-home-hero) > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 2.5vw, 34px);
    border: 1px solid #e6daf8;
    border-radius: 24px;
    background: #fff;
    color: #251737;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) #mks-course-advice {
    margin: 0 0 .45rem;
    color: #2e174b;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    scroll-margin-top: 6rem;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-column100_86bc09-49 > .kt-inside-inner-col {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #51415f;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-column100_86bc09-49 p {
    margin: 0 0 1rem;
    text-align: left;
    line-height: 1.45;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-form-100_788f78-6c .kb-form .kadence-blocks-form-field .kb-text-style-field {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #d8c8ee;
    border-radius: 9px;
    box-shadow: none;
    background: #fbf8ff;
    color: #28193d;
    line-height: 1.25;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-form-100_788f78-6c .kb-form .kadence-blocks-form-field .kb-forms-submit {
    min-height: 44px;
    width: 100%;
    margin-top: 4px;
    border: 1px solid #6127be;
    border-radius: 9px;
    box-shadow: none;
    background: #6127be;
    color: #fff;
    font-weight: 700;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-form-100_788f78-6c.kb-form-wrap {
    margin-inline: 0;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-form-100_788f78-6c .kb-form .kadence-blocks-form-field .kb-forms-submit:hover {
    border-color: #472087;
    background: #472087;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-column100_4231f7-97 {
    margin-top: 14px;
}

.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kadence-column100_4231f7-97 img {
    width: auto;
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
    object-position: left;
}

.mks-home-hero [hidden] {
    display: none !important;
}

.mks-home-hero__stage {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #20112f;
    color: #fff;
}

.mks-home-hero__slide {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(340px, 32vw, 456px);
    padding: 32px clamp(24px, 4vw, 56px) 74px;
    background: #29153c;
}

.mks-home-hero__photo,
.mks-home-hero__slide::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mks-home-hero__photo {
    object-fit: cover;
    object-position: 66% 36%;
}

.mks-home-hero__slide::after {
    content: "";
    background: linear-gradient(90deg, rgba(25, 10, 43, .98) 0%, rgba(25, 10, 43, .84) 36%, rgba(25, 10, 43, .12) 80%),
        linear-gradient(0deg, rgba(25, 10, 43, .66), transparent 58%);
}

.mks-home-hero__copy {
    width: min(66%, 440px);
}

.mks-home-hero .mks-home-hero__brand {
    margin: 0 0 12px;
    color: #e6ccff;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mks-home-hero .mks-home-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.05rem, 4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.mks-home-hero .mks-home-hero__description {
    max-width: 34ch;
    margin: .8rem 0 1.15rem;
    color: #f8f0ff;
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    line-height: 1.5;
}

.mks-home-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mks-home-hero__links a,
.mks-home-hero__links a:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 8px;
    background: #e4ceff;
    color: #29153c;
    font-size: .875rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.mks-home-hero__links a:hover {
    background: #f1e3ff;
    color: #29153c;
}

.mks-home-hero__arrows {
    position: absolute;
    right: clamp(16px, 2vw, 26px);
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.mks-home-hero__arrows button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #e6d2ff;
    border-radius: 50%;
    background: #30194c;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

.mks-home-hero__arrows button[data-mks-playback] {
    font-size: .95rem;
    font-weight: 800;
}

.mks-home-hero__arrows button:hover {
    background: #57278d;
}

.mks-home-hero__courses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr);
    gap: 7px;
    margin-top: 10px;
}

.mks-home-hero__courses a {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 68px;
    overflow: hidden;
    padding: 6px 8px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #28173c;
    color: #fff;
    font-size: clamp(.72rem, 1.15vw, .95rem);
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
}

.mks-home-hero__courses img,
.mks-home-hero__courses a::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mks-home-hero__courses img {
    object-fit: cover;
    object-position: 65% 34%;
}

.mks-home-hero__courses a::after {
    content: "";
    background: linear-gradient(0deg, #1d0e31 0%, rgba(29, 14, 49, .72) 32%, transparent 76%);
}

.mks-home-hero__courses a:hover,
.mks-home-hero__courses a[aria-current="true"] {
    border-color: #864af9;
    color: #fff;
}

.mks-home-hero :is(a, button):focus-visible,
.kb-row-layout-id100_089a00-64:has(.mks-home-hero) .kb-form :is(input, button):focus-visible {
    outline: 3px solid #6127be;
    outline-offset: 2px;
}

.mks-home-hero__stage :is(a, button):focus-visible {
    outline-color: #fff;
}

@media (max-width: 850px) {
    .kadence-column100_324c65-a1:has(.mks-home-hero) > .kt-inside-inner-col > .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .mks-home-hero__slide {
        min-height: 370px;
        padding: 105px 20px 66px;
    }

    .mks-home-hero__copy {
        width: 100%;
    }

    .mks-home-hero__photo {
        object-position: 72% 25%;
    }

    .mks-home-hero__slide::after {
        background: linear-gradient(0deg, rgba(25, 10, 43, .99) 0%, rgba(25, 10, 43, .92) 51%, rgba(25, 10, 43, .2) 100%);
    }

    .mks-home-hero .mks-home-hero__title {
        max-width: 14ch;
    }

    .mks-home-hero__courses {
        gap: 4px;
    }

    .mks-home-hero__courses a {
        padding-inline: 3px;
        font-size: .68rem;
    }
}
