/* Home top-section implementation based on the supplied mobile reference. */
body.home {
    --ln-home-blue: #075fca;
    --ln-home-blue-deep: #063a91;
    --ln-home-navy: #061538;
    --ln-home-pink: #ca0050;
    --ln-home-yellow: #ffad00;
}

body.home .global-header-shell {
    background: #fff;
}

body.home .home-offer-strip {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 9px 22px;
    background: linear-gradient(90deg, #bb0044 0%, #d30053 52%, #c10049 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

body.home .home-offer-strip > span:last-child {
    max-width: 760px;
}

body.home .home-offer-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    font-size: 21px;
}

body.home .home-trust-strip {
    background: var(--ln-home-navy);
}

body.home .home-trust-strip-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 840px);
    min-height: 82px;
    padding: 0;
}

body.home .home-trust-item {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-right: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

body.home .home-trust-item:nth-child(4) {
    border-right: 0;
}

body.home .home-trust-item:nth-child(5) {
    display: none;
}

body.home .home-trust-item i {
    margin: 0;
    font-size: 25px;
}

body.home .home-trust-item:nth-child(1) i,
body.home .home-trust-item:nth-child(3) i {
    color: #079eff;
}

body.home .home-trust-item:nth-child(2) i {
    color: #ed0061;
}

body.home .home-trust-item:nth-child(4) i {
    color: #ffb20b;
}

body.home .ln-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background-color: #075fca;
    background-image: url("../../../images/home-first-section-bg-img.png");
    background-repeat: no-repeat;
    background-position: center 38%;
    background-size: cover;
}

body.home .ln-hero::before,
body.home .ln-hero::after {
    display: none;
    content: none;
}

body.home .ln-hero-container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 1320px);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    gap: 24px 52px;
    padding: 58px 0;
}

body.home .ln-hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 650px;
}

body.home .ln-hero-copy .ln-eyebrow {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

body.home .ln-hero h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 4.75vw, 72px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

body.home .ln-hero h1 .ln-hero-line-outline {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.35px rgba(255, 255, 255, .72);
}

body.home .ln-hero-visual {
    grid-column: 2;
    grid-row: 1 / 4;
    min-height: 510px;
    align-self: stretch;
}

body.home .ln-hero-image-wrap {
    top: 50%;
    right: -20px;
    width: min(112%, 720px);
    height: 500px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
}

body.home .ln-hero-image-wrap img.ln-hero-car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 25px 25px rgba(0, 15, 55, .28));
}

body.home .ln-instructor-search {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 620px);
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(155px, .9fr) 60px;
    align-items: center;
    gap: 0;
    /* Reserves room below the pill for the absolutely-positioned validation
       message (.ln-search-error) so it never overlaps the description text
       that follows in the next grid row. */
    margin: 0 0 26px;
    padding: 5px 7px 5px 10px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(5, 27, 82, .22);
}

body.home .ln-search-field {
    min-width: 0;
    height: 46px;
    border-right: 1px solid #d9dee7;
    border-bottom: 0;
}

body.home .ln-search-field .ln-search-icon,
body.home .ln-search-field .ln-search-icon.ln-search-location-icon {
    left: 8px;
    width: 28px;
    height: 28px;
    overflow: visible;
    color: #071a48;
}

body.home .ln-search-field .ln-search-icon i {
    font-size: 18px;
}

body.home .ln-instructor-search input,
body.home .ln-instructor-search select,
body.home .ln-postcode-field input {
    height: 46px;
    padding: 0 28px 0 40px;
    color: #142144;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 46px;
    border: 0;
    background-color: transparent;
}

body.home .ln-instructor-search input::placeholder {
    color: #6f7585;
    opacity: 1;
    text-transform: none;
}

body.home .ln-instructor-search select {
    padding-right: 26px;
    background-position: calc(100% - 9px) center;
    background-size: 10px;
}

body.home .ln-search-submit {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0 0 0 12px;
    padding: 0;
    border-radius: 50%;
    background: #0861e8;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 7px 15px rgba(8, 97, 232, .3);
}

body.home .ln-search-submit:hover,
body.home .ln-search-submit:focus-visible {
    background: #0054d8;
    color: #fff;
}

body.home .ln-search-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.home .ln-search-error {
    top: calc(100% + 7px);
    left: 18px;
    color: var(--ln-pink);
}

body.home .ln-hero-description {
    grid-column: 1;
    grid-row: 3;
    width: min(100%, 590px);
    text-align: left;
}

body.home .ln-hero-description,
body.home .ln-hero-description p {
    margin: 0;
    color: rgba(255, 255, 255, .93);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

@media (max-width: 1199px) {
    body.home .global-header-shell .ln-public-phone,
    body.home .global-header-shell .head-inner .top-contact a.call {
        display: inline-flex !important;
        padding-right: 16px !important;
        font-size: 14px !important;
    }

    body.home .ln-hero-container {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
        gap: 22px 30px;
    }

    body.home .ln-hero-image-wrap {
        right: -24px;
        height: 455px;
    }
}

@media (max-width: 991px) {
    body.home .home-trust-strip-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.home .home-trust-item {
        min-height: 52px;
        border-bottom: 0;
    }

    body.home .ln-hero {
        min-height: 760px;
        background-position: center 43%;
    }

    body.home .ln-hero-container {
        min-height: 760px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 335px auto auto;
        align-content: center;
        gap: 18px;
        padding: 48px 0;
    }

    body.home .ln-hero-copy,
    body.home .ln-hero-visual,
    body.home .ln-instructor-search,
    body.home .ln-hero-description {
        grid-column: 1;
    }

    body.home .ln-hero-copy { grid-row: 1; }
    body.home .ln-hero-visual { grid-row: 2; min-height: 335px; }
    body.home .ln-instructor-search { grid-row: 3; justify-self: center; }
    body.home .ln-hero-description { grid-row: 4; justify-self: center; text-align: center; }

    body.home .ln-hero-copy {
        max-width: 720px;
    }

    body.home .ln-hero h1 {
        max-width: 720px;
        font-size: clamp(44px, 7.5vw, 66px);
    }

    body.home .ln-hero-image-wrap {
        top: 50%;
        right: 50%;
        width: min(82vw, 600px);
        height: 360px;
        transform: translate(50%, -50%);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body.home .ln-hero {
        background-position: center 42%;
    }
}

@media (max-width: 767px) {
    body.home .global-header-shell {
        padding-top: var(--ln-header-h, 72px);
    }

    body.home .global-header-shell .ln-public-header,
    body.home .global-header-shell header.header {
        min-height: 72px;
    }

    body.home .global-header-shell .ln-public-header__inner,
    body.home .global-header-shell .head-inner {
        grid-template-columns: minmax(104px, 1fr) auto auto;
        width: calc(100% - 24px);
        min-height: 72px;
        gap: 0;
        padding: 4px 0 !important;
    }

    body.home .global-header-shell .ln-public-brand,
    body.home .global-header-shell .head-inner > a.logo {
        width: min(126px, 100%) !important;
        max-width: 126px !important;
        min-height: 50px;
    }

    body.home .global-header-shell .ln-public-brand img,
    body.home .global-header-shell .head-inner > a.logo img {
        height: 50px !important;
    }

    body.home .global-header-shell .ln-public-utility,
    body.home .global-header-shell .head-inner .top-contact {
        gap: 8px;
    }

    body.home .global-header-shell .ln-public-phone,
    body.home .global-header-shell .head-inner .top-contact a.call {
        display: inline-flex !important;
        gap: 6px;
        min-height: 36px;
        padding: 0 !important;
        border-right: 0;
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    body.home .global-header-shell .ln-public-header-actions a.call > .icon {
        font-size: 14px;
    }

    body.home .global-header-shell .ln-public-account,
    body.home .global-header-shell .head-inner .top-contact .account-link,
    body.home .global-header-shell .head-inner .top-contact a.btn.login {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px;
    }

    body.home .global-header-shell .togglebtn,
    body.home .global-header-shell .head-inner .togglebtn {
        width: 36px !important;
        height: 36px !important;
        margin-left: 7px !important;
        border: 0;
        border-radius: 0;
    }

    body.home .home-offer-strip {
        min-height: 58px;
        gap: 13px;
        padding: 8px 16px;
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
    }

    body.home .home-offer-strip > span:last-child {
        max-width: 285px;
    }

    body.home .home-offer-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    body.home .home-trust-strip-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        min-height: 83px;
    }

    body.home .home-trust-item,
    body.home .home-trust-item:nth-child(2),
    body.home .home-trust-item:nth-child(3),
    body.home .home-trust-item:nth-child(4) {
        min-height: 52px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 6px;
        padding: 0 5px;
        border-right: 1px solid rgba(255, 255, 255, .32);
        border-bottom: 0;
        font-size: 8px;
        line-height: 1.35;
        text-align: center;
    }

    body.home .home-trust-item:nth-child(4) {
        border-right: 0;
    }

    body.home .home-trust-item i {
        font-size: 22px;
    }

    body.home .ln-hero {
        min-height: 625px;
        background-position: center center;
    }

    body.home .ln-hero-container {
        width: calc(100% - 38px);
        min-height: 625px;
        grid-template-rows: auto 195px auto auto;
        align-content: start;
        gap: 10px;
        padding: 28px 0;
    }

    body.home .ln-hero-copy .ln-eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    body.home .ln-hero h1 {
        max-width: 320px;
        font-size: clamp(32px, 9vw, 35px);
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    body.home .ln-hero-visual {
        min-height: 195px;
    }

    body.home .ln-hero-image-wrap {
        width: min(91vw, 340px);
        height: 195px;
    }

    body.home .ln-instructor-search {
        width: 100%;
        min-height: 50px;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) 50px;
        padding: 4px 5px 4px 8px;
        border-radius: 999px;
    }

    body.home .ln-search-field {
        height: 42px;
        border-right: 1px solid #d9dee7;
        border-bottom: 0;
    }

    body.home .ln-search-field .ln-search-icon,
    body.home .ln-search-field .ln-search-icon.ln-search-location-icon {
        left: 5px;
        width: 23px;
        height: 23px;
    }

    body.home .ln-search-field .ln-search-icon i {
        font-size: 16px;
    }

    body.home .ln-instructor-search input,
    body.home .ln-instructor-search select,
    body.home .ln-postcode-field input {
        height: 42px;
        padding: 0 22px 0 31px;
        font-size: 10px;
        font-weight: 500;
        line-height: 42px;
    }

    body.home .ln-instructor-search select {
        padding-right: 18px;
        background-position: calc(100% - 5px) center;
        background-size: 8px;
    }

    body.home .ln-search-submit {
        width: 38px;
        min-width: 38px;
        height: 38px;
        margin-left: 10px;
        font-size: 14px;
    }

    body.home .ln-hero-description,
    body.home .ln-hero-description p {
        font-size: 10.5px;
        line-height: 1.5;
        text-align: center;
    }
}

@media (max-width: 374px) {
    body.home .global-header-shell .ln-public-brand,
    body.home .global-header-shell .head-inner > a.logo {
        width: min(112px, 100%) !important;
        max-width: 112px !important;
    }

    body.home .global-header-shell .ln-public-phone,
    body.home .global-header-shell .head-inner .top-contact a.call {
        font-size: 10px !important;
    }

    body.home .global-header-shell .ln-public-header-actions a.call > .icon {
        display: none;
    }

    body.home .ln-hero-container {
        width: calc(100% - 28px);
        grid-template-rows: auto 190px auto auto;
    }

    body.home .ln-hero h1 {
        max-width: 300px;
        font-size: clamp(31px, 10.3vw, 37px);
    }

    body.home .ln-hero-visual {
        min-height: 190px;
    }

    body.home .ln-hero-image-wrap {
        width: min(92vw, 310px);
        height: 205px;
    }

    body.home .ln-instructor-search input,
    body.home .ln-instructor-search select,
    body.home .ln-postcode-field input {
        padding-left: 28px;
        font-size: 9px;
    }

    body.home .ln-search-field .ln-search-icon,
    body.home .ln-search-field .ln-search-icon.ln-search-location-icon {
        left: 3px;
        width: 21px;
    }

    body.home .home-trust-item {
        font-size: 7px;
    }
}

@media (max-width: 340px) and (max-height: 780px) {
    body.home .ln-hero,
    body.home .ln-hero-container {
        min-height: 520px;
    }

    body.home .ln-hero-container {
        grid-template-rows: auto 160px auto auto;
        gap: 6px;
        padding: 14px 0 82px;
    }

    body.home .ln-hero-copy .ln-eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
    }

    body.home .ln-hero h1 {
        font-size: 28px;
    }

    body.home .ln-hero-visual {
        min-height: 160px;
    }

    body.home .ln-hero-image-wrap {
        height: 170px;
    }

    body.home .ln-hero-description,
    body.home .ln-hero-description p {
        font-size: 8.75px;
        line-height: 1.4;
    }
}

@media (min-width: 341px) and (max-width: 389px) and (max-height: 820px) {
    body.home .ln-hero-container {
        grid-template-rows: auto 180px auto auto;
        gap: 6px;
        padding: 27px 0 82px;
    }

    body.home .ln-hero-visual,
    body.home .ln-hero-image-wrap {
        min-height: 180px;
        height: 180px;
    }
}

@media (max-width: 767px) and (orientation: landscape) and (max-height: 520px) {
    body.home .ln-hero {
        min-height: 560px;
    }

    body.home .ln-hero-container {
        width: min(calc(100% - 48px), 720px);
        min-height: 560px;
        grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
        grid-template-rows: auto auto auto;
        gap: 16px 25px;
        padding: 30px 0;
    }

    body.home .ln-hero-copy,
    body.home .ln-instructor-search,
    body.home .ln-hero-description {
        grid-column: 1;
    }

    body.home .ln-hero-copy { grid-row: 1; }
    body.home .ln-instructor-search { grid-row: 2; }
    body.home .ln-hero-description { grid-row: 3; text-align: left; }
    body.home .ln-hero-visual { grid-column: 2; grid-row: 1 / 4; min-height: 410px; }

    body.home .ln-hero-image-wrap {
        right: 50%;
        width: min(54vw, 430px);
        height: 350px;
        transform: translate(50%, -50%);
    }
}
