﻿.hero-background {
    position: absolute;
    width: 100%
}

    .hero-background > img {
        width: 100%;
        object-fit: cover;
        object-position: top;
        height: 250px;
    }

.epi-editContainer {
    max-height: 500px !important;
}

.hero-start-page {
    font-family: 'Open Sans';
    font-size: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xxl) var(--spacing-xxs) 0 var(--spacing-xxs);
}

    .hero-start-page h1, h2, h3, h4 {
        font-family: 'Crimson Text'
    }

    .hero-start-page h1 {
        font-size: 42px;
    }

    .hero-start-page h2 {
        font-size: 42px;
        max-width: 470px;
        margin-left: auto;
        margin-right: auto;
        letter-spacing: -0.014em;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-start-page h3 {
        font-size: 42px;
        max-width: 470px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-start-page h3 {
        font-size: var(--font-size-xxl);
        line-height: 1.05;
        margin: initial;
        hyphens: auto;
    }

.hero-upper-row {
    background-color: white;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 10px 0 10px;
}

    .hero-upper-row img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

.hero-left, .hero-right {
    background-color: white;
    width: 100%;
    line-height: 30px;
}

.hero-left {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 424px;
}

.hero-right {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

    .hero-left .read-more:hover, .hero-right .read-more:hover {
        background-color: var(--color-bluishCyan-200);
        text-decoration: none;
    }

    .hero-left .read-more a:hover, .hero-right .read-more a:hover {
        text-decoration: none;
    }

    .hero-left > div, .hero-right > div {
        width: 100%;
        height: auto;
    }

.no-picture {
    margin-bottom: 80px;
}

.hero-text-container {
    margin: 0 var(--spacing-xxs);
}

.hero-text {
    margin: 0 auto var(--spacing-xxxl);
    max-width: 520px;
}

.image-text {
    position: absolute;
    top: 7em;
    text-align: center;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

.hero-image-heading {
    color: white;
    padding: 10px;
    margin-top: 10%;
}

    .hero-image-heading span {
        background-color: var(--color-bluishCyan-200);
        box-shadow: 15px 0 0 var(--color-bluishCyan-200), -15px 0 0 var(--color-bluishCyan-200);
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        padding: 5px 0;
    }

.image-text .button-chevron {
    filter: var(--filter-white);
}

.hero-upper-row .image-text a {
    text-decoration-color: var(--color-white);
    color: white;
}

.read-more {
    font-size: var(--font-size-s);
    position: absolute;
    padding: 14px 20px;
    bottom: 20px;
    margin: 0 auto;
    margin-bottom: 24px;
    left: 0;
    right: 0;
    width: fit-content;
    min-width: 200px;
    box-shadow: 0px 0px 15px rgb(0 0 0 / 5%);
    transition: background 0.1s;
}

    .read-more:active {
        background-color: white;
        color: var(--color-bluishCyan-300);
    }

.hero-left .read-more {
    background-color: var(--color-bluishCyan-300);
    color: white;
    border-radius: 80px;
}

.hero-right .read-more {
    background-color: var(--color-bluishCyan-300);
    color: white;
    border-radius: 80px;
}

.hero-upper-row div > .read-more.with-image {
    color: var(--color-bluishCyan-300);
    background-color: var(--color-white);
    font-weight: 600;
}

.read-more .button-chevron.image-chevron {
    filter: invert(28%) sepia(98%) saturate(524%) hue-rotate(144deg) brightness(95%) contrast(101%);
}

.read-more {
    font-weight: 600;
}

.hero-upper-row div > .read-more.with-image:hover, .hero-upper-row > div > .read-more.with-image:active {
    background-color: var(--color-bluishCyan-200);
    color: var(--color-white);
}

    .hero-upper-row div > .read-more.with-image:hover .button-chevron, .hero-upper-row > div > .read-more.with-image:active .button-chevron {
        filter: var(--filter-white);
    }

.hero-lower-row {
    display: flex;
    flex-direction: column-reverse;
}

    .hero-lower-row h3 {
        margin-top: 0;
    }

.hero-lower-row-item {
    margin-top: 10px;
}

.hero-lower-row > .hero-lower-row-item {
    border-bottom: none;
}

.hero-lower-row-item .no-image-display.svg-file.color-blue {
    background-color: var(--color-bluishCyan-100);
}

.hero-lower-row-item .no-image-display.svg-file.color-orange {
    background-color: var(--color-orange-100);
}

.hero-lower-row-item .no-image-display.svg-file.color-gray {
    background-color: var(--color-gray-200);
}

.hero-lower-row-item .no-image-display.svg-file img {
    filter: var(--filter-white);
    text-align: center;
    transform: scale(0.8);
    object-fit: contain;
}

.hero-lower-row-item .no-image-display.svg-file.color-gray img {
    filter: var(--filter-orange);
}


.hero-lower-row h3 {
    margin-bottom: 0;
    margin-top: var(--spacing-xxs);
}

.hero-lower-row p {
    margin-top: 8px;
    font-size: var(--font-size-xs);
    line-height: 22px;
    margin-bottom: var(--spacing-sm);
}

.hero-lower-row > div:nth-child(3) > div > div > a > h3 {
    margin-top: var(--spacing-xxxs);
}

.hero-lower-row > div > div.extended-click-area > a:hover, .hero-lower-row > div > div > .extended-click-area > a > p:hover {
    text-decoration: none;
}

#youtube {
    margin: 0 auto;
    height: 100%;
    aspect-ratio: 4/3;
}

.hero-lower-row #youtube {
    aspect-ratio: 16/9;
}

div.shortcuts-area > div.shortcut-header > a.fi-heading-link > h2 {
    font-size: 24px;
}


.shortcuts-area {
    padding-top: 36px;
    padding-bottom: var(--spacing-l);
}

    .shortcuts-area h4 {
        margin: 50px 0;
        text-align: center;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

.shortcuts-list > ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    row-gap: var(--spacing-xxs);
}

    .shortcuts-list > ul > li {
        margin: var(--spacing-xxxs) 0;
        width: max-content;
    }

        .shortcuts-list > ul > li > a {
            background-color: var(--color-gray-200);
            color: var(--color-bluishCyan-300);
            border-radius: 30px;
            padding: 1rem 2.5rem;
            font-weight: 600;
        }

            .shortcuts-list > ul > li > a:active {
                background-color: var(--color-gray-600);
                color: white;
            }

.no-image-display {
    display: none;
}

.link-chevron {
    filter: var(--filter-white);
    width: 7px;
    height: 100%;
    transform: translateY(1px);
}

@media screen and (max-width: 799px) {
    .hero-image-heading {
        padding: 2px 10px 8px;
    }
    .hero-text-heading {
        overflow-wrap: break-word;
    }
    .hero-left .read-more {
        position: static;
    }
    .hero-text {
        margin-bottom: var(--spacing-m);
    }

}

@media screen and (max-width: 1059px) {
    h2.hero-image-heading {
        line-height: 1.4;
    }
}

@media screen and (min-width: 700px) {

    .hero-start-page h2 {
        font-size: 42px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }

    .hero-lower-row-item img {
        width: 100%;
    }

    #youtube {
        object-fit: contain;
    }

    .hero-upper-row {
        max-width: 700px;
        align-self: center;
    }

    /*    .hero-lower-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: var(--spacing-xs);
        grid-row-gap: 10px;
    }*/
    .hero-lower-row-item {
        border: none;
    }

        .hero-lower-row-item p {
            margin-top: 0;
        }

    .hero-lower-row > div:nth-child(3) {
        grid-column: 2 span;
    }

        .hero-lower-row > div:nth-child(3) .extended-click-area {
            margin-right: 50px;
            display: inline-block;
        }

    .hero-lower-row {
        max-width: 700px;
        margin: 0 auto;
        text-align: left;
    }

        .hero-lower-row > div:nth-child(3) > div > div > a > h3 {
            margin-top: var(--spacing-xxxs);
        }

        .hero-lower-row #youtube {
            max-width: 700px;
        }

    .shortcuts-list > ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding-top: 14px;
    }

    .shortcuts-area {
        padding: 0 var(--spacing-xxs) var(--spacing-big-xl) 0;
        text-align: left;
    }

    .shortcuts-list {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 400px) {
    .hero-start-page h2 {
        font-size: 34px;
    }
}

@media screen and (min-width: 800px) {
    .shortcuts-list > ul {
        gap: 30px 10px;
    }

        .shortcuts-list > ul > li > a {
            background-color: white;
            border: solid 2px var(--color-bluishCyan-200);
            color: var(--color-bluishCyan-300);
            border-radius: 80px;
            padding: 1rem 2.5rem;
            font-weight: 600;
        }

            .shortcuts-list > ul > li > a:hover {
                background-color: var(--color-bluishCyan-200);
                text-decoration: none;
                color: white;
            }
}

@media screen and (min-width: 1060px) {
    .hero-start-page h1 {
        font-size: 70px;
    }

    .hero-start-page h2 {
        font-size: 50px;
    }

    .hero-start-page h2 {
        font-size: 41px;
        line-height: 1.5;
        margin-left: 0;
    }

    .hero-start-page h3 {
        font-size: 34px;
        line-height: 1.05;
    }

    .no-image-display {
        display: initial;
    }

    .hero-background {
        position: absolute;
        width: 100vw;
        transform: translateX(-50%);
        left: 50%;
    }

        .hero-background > img {
            width: 100%;
            object-fit: cover;
            object-position: top;
            height: 487px;
            margin: 0 auto;
        }

    .hero-start-page {
        position: relative;
        display: grid;
        margin: 0 -18px;
        padding: 120px var(--spacing-xxs) 0 var(--spacing-xxs);
        justify-content: center;
    }

    .hero-upper-row {
        grid-row: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-color: white;
        padding: var(--spacing-xxs) var(--spacing-xxs) 0 var(--spacing-xxs);
        gap: var(--spacing-xxs);
        text-align: left;
        margin-bottom: 0;
        max-width: initial;
        height: 367px;
    }

        .hero-upper-row img {
            width: 100%;
            aspect-ratio: 4/3;
            object-fit: cover;
            position: absolute;
        }

    .hero-image-heading {
        position: absolute;
        color: white;
        padding: 10px;
        width: 500px;
        padding-left: 14px;
        left: 10px;
        top: 20px;
    }

        .hero-image-heading span {
            background-color: var(--color-bluishCyan-200);
            box-shadow: 10px 0 0 var(--color-bluishCyan-200), -10px 0 0 var(--color-bluishCyan-200);
            -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
            padding: 5px 0;
        }

    .extended-click-area:hover .hero-image-heading {
        text-decoration: none;
    }

    .hero-text-container > .hero-text-heading {
        line-height: 1.05;
        margin-top: -13px;
    }

    .read-more {
        font-size: var(--font-size-s);
        display: inline-block;
        position: absolute;
        border: none;
        padding: 15px 25px;
        min-width: 200px;
        text-align: center;
        margin: auto;
        background-color: var(--color-bluishCyan-300);
        color: white;
        object-fit: contain;
    }

        .read-more > a {
            text-decoration: none;
            font-size: var(--font-size-xs)
        }

    .hero-left, .hero-right {
        display: initial;
        position: relative;
        overflow: hidden;
        flex-grow: 1;
        min-height: auto;
    }

    .image-text {
        margin-left: 10px;
        text-align: left;
        margin-right: 0;
        left: 0;
        top: -7px;
    }

        .image-text > a > p {
            font-size: var(--font-size-xs);
            line-height: 1.5;
        }

        .image-text *:target {
            text-decoration: underline;
        }

        .image-text:active {
            text-decoration: underline;
            text-decoration-color: white;
        }

    /*har bild*/
    .hero-text-container {
        margin-top: 40px; /*Inte bästa sätt att placera*/
    }

    .hero-text {
        margin: initial;
        margin-top: var(--spacing-xxxs);
    }

    .hero-upper-row > .extended-click-area > div > .hero-text-container + .read-more {
        margin-left: var(--spacing-xxs);
    }

    .hero-left .read-more, .hero-right .read-more {
        margin: 0 var(--spacing-xs);
        bottom: 30px;
    }

    .hero-right .read-more {
        color: white;
        background-color: var(--color-bluishCyan-300);
    }

    .hero-start-page > .hero-lower-row {
        grid-row: 2;
        display: grid;
        grid-gap: var(--spacing-xxs);
        grid-template-columns: 3fr 3fr 4fr;
        width: 100%;
        justify-items: center;
        align-items: start;
        justify-content: space-evenly;
        background-color: white;
        padding: var(--spacing-xxs) var(--spacing-xxs) 0 var(--spacing-xxs);
        margin-bottom: var(--spacing-s);
        max-width: none;
    }

        .hero-start-page > .hero-lower-row.teaser-only-row {
            grid-template-columns: 1fr 1fr 1fr;
        }

    .hero-lower-row > div {
        width: 100%;
    }

    .hero-lower-row-item {
        width: 100%;
        border: none;
        margin-top: 0;
        margin-bottom: var(--spacing-xxs);
        display: grid;
    }

        .hero-lower-row-item > a {
            display: grid;
        }

            .hero-lower-row-item > a > .no-image-display {
                margin-bottom: var(--spacing-xxs);
                grid-row: 1;
            }

            .hero-lower-row-item > a:hover {
                text-decoration: none;
            }

    .hero-lower-row a > h3:hover {
        text-decoration: underline;
    }

    .hero-lower-row-item h3:hover {
        text-decoration: underline;
    }

    .hero-lower-row > div:nth-child(3) > div > div > a > h3 {
        margin-top: 0;
    }

    .hero-lower-row-item img {
        width: 100%;
        aspect-ratio: 4/3;
        grid-row: 1;
        display: block;
        object-fit: cover;
    }

    .hero-lower-row-item #youtube {
        aspect-ratio: 16/9;
        margin-bottom: var(--spacing-xxxs);
    }

    .hero-lower-row h3 {
        margin-top: 0;
    }

    .hero-lower-row-item h3 {
        grid-row: 2;
    }

    .hero-lower-row-item p {
        font-size: var(--font-size-xs);
        line-height: 1.4em;
        margin-top: 8px;
        grid-row: 3;
    }

    #youtube {
        display: initial;
        height: initial;
    }

    .hero-lower-row > div:nth-child(3) {
        grid-column: 1 span;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .hero-lower-row > div > .hero-lower-row-item.video {
        position: initial;
        aspect-ratio: 16/9;
        height: 100%;
        width: 100%;
    }

    .hero-lower-row > div:nth-child(3) .extended-click-area {
        margin-right: 0;
        display: inline-block;
    }

    .shortcut-header {
        padding-left: var(--spacing-xxs);
    }

    .shortcuts-area {
        padding: 0 var(--spacing-xxs) var(--spacing-big-xl) var(--spacing-xxs);
    }

    .shortcuts-list > ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

        .shortcuts-list > ul > li > a:hover {
            text-decoration: none;
            color: white;
        }

        .shortcuts-list > ul > li > a:focus-visible {
            background-color: var(--color-bluishCyan-300);
            text-decoration: underline;
            color: white;
        }
}

@media screen and (min-width: 1200px) {
    .shortcuts-area {
        padding-bottom: var(--spacing-xxxl);
    }
}
