/*
 * Tryg Norway homepage hero — extracted from tryg.no Drupal theme.
 * Markup: .paragraph.banner.hero-banner-height-leftside
 */

body.theme-tryg-no .banner.hero-banner-height-leftside {
    padding: 0 3.5rem;
    position: relative;
    margin: 2.5rem auto;
}

body.theme-tryg-no .banner > .hero-container {
    max-width: 82.5rem;
    margin-inline: auto;
    position: relative;
    aspect-ratio: 16 / 9;
    padding-inline: 3.5rem;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container {
    aspect-ratio: auto;
    padding: 0;
    display: flex;
    flex-direction: row;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container > .container {
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    display: flex;
    height: auto;
    margin-left: -4.375rem;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container > .container .wrapper {
    width: 100%;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image {
    max-width: 47.5625rem;
    position: relative;
    width: auto;
    overflow: visible;
    flex-shrink: 0;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image picture {
    width: 100%;
    display: flex;
}

body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image picture img,
body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image img {
    width: 47.5625rem;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

body.theme-tryg-no .banner .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-content: center;
    position: relative;
    z-index: 2;
}

body.theme-tryg-no .banner .container .wrapper {
    flex-direction: column;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

body.theme-tryg-no .banner .container .wrapper > .headline {
    font-family: "27 Sans", sans-serif;
    font-size: 3rem;
    font-weight: 300;
    line-height: 3.5rem;
    background-color: #ce0303;
    padding: 1rem 1.5625rem;
    margin: 0 0 0.5rem;
    color: #fff;
    width: fit-content;
}

body.theme-tryg-no .banner .container .wrapper > .headline.left {
    text-align: left;
}

body.theme-tryg-no .banner .container .wrapper > .headline b {
    font-weight: 600;
}

body.theme-tryg-no .banner .container .wrapper .card {
    max-width: none;
    padding: 1.5rem 2rem;
    border: none;
    min-height: auto;
    border-radius: 0;
}

body.theme-tryg-no .banner .container .wrapper .card.background-color-card-bg-white {
    background-color: #fff;
}

body.theme-tryg-no .banner .container .wrapper .card .description {
    font-weight: 300;
}

body.theme-tryg-no .banner .container .wrapper .card .description p,
body.theme-tryg-no .banner .container .wrapper .card .description li {
    font-weight: 300;
    font-family: "27 Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #222;
}

body.theme-tryg-no .banner .container .wrapper .card .description p.lead {
    font-size: 1.125rem;
    line-height: 1.5;
}

body.theme-tryg-no .banner .container .wrapper .card .description p.tiny {
    font-size: 0.75rem;
    line-height: 1rem;
    color: #5a5a5a;
}

body.theme-tryg-no .banner .container .wrapper .card .buttons-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

body.theme-tryg-no .banner .container .wrapper .card .buttons-wrapper.auto {
    flex-grow: 0;
}

body.theme-tryg-no .banner .container .wrapper .card .buttons-wrapper .buttons {
    flex-direction: row;
    display: flex;
    margin-bottom: -1.5rem;
}

body.theme-tryg-no .banner .container .wrapper .card .button.button-primary-wrapper {
    min-height: 3rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25rem;
    font-family: "27 Sans", sans-serif;
    cursor: pointer;
    transition: 0.2s all ease;
    display: inline-block;
    padding: 0.75rem 1rem 0.5rem;
    text-align: center;
    background-color: #ce0303;
    color: #fff;
    border-radius: 0.1875rem;
    border: 2px solid #ce0303;
    text-decoration: none;
    width: max-content;
    margin-bottom: 0.625rem;
    margin-right: 1rem;
}

body.theme-tryg-no .banner .container .wrapper .card .button.button-primary-wrapper span {
    display: inline-block;
    line-height: initial;
}

body.theme-tryg-no .banner .container .wrapper .card .button.button-primary-wrapper:hover,
body.theme-tryg-no .banner .container .wrapper .card .button.button-primary-wrapper:focus {
    background-color: #830202;
    border-color: #830202;
    color: #fff;
}

@media (max-width: 74.9375em) {
    body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container {
        flex-direction: column;
    }

    body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container > .container {
        align-items: flex-end;
        justify-content: right;
        margin-left: 0;
        margin-top: 0;
        position: relative;
        height: 100%;
    }

    body.theme-tryg-no .banner.hero-banner-height-leftside .hero-container > .container .wrapper {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image {
        max-width: none;
    }

    body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image picture img,
    body.theme-tryg-no .banner.hero-banner-height-leftside .bg-image img {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 61.9375em) {
    body.theme-tryg-no .banner.hero-banner-height-leftside {
        padding: 0;
        margin: 0;
    }

    body.theme-tryg-no .banner > .hero-container {
        padding: 0;
    }

    body.theme-tryg-no .banner .container .wrapper {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 47.875em) {
    body.theme-tryg-no .banner > .hero-container {
        aspect-ratio: auto;
    }

    body.theme-tryg-no .banner .container {
        margin-top: -7.8125rem;
        min-height: auto;
    }

    body.theme-tryg-no .banner .container .wrapper {
        padding: 2rem 0;
    }

    body.theme-tryg-no .banner .container .wrapper > .headline {
        max-width: 80%;
        width: fit-content;
        margin: 0;
        font-size: 2.5rem;
        line-height: 1.15;
    }

    body.theme-tryg-no .banner .container .wrapper .card {
        padding: 1.5rem 1rem;
        max-width: none;
    }

    body.theme-tryg-no .banner .container .wrapper .card .buttons-wrapper .buttons {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }
}

@media (min-width: 62em) and (max-width: 74.9375em) {
    body.theme-tryg-no .banner .container .wrapper .total-cards-1 .card {
        padding-left: 0;
        padding-right: 0;
    }
}
