// *** HEADER
// ======================================

.page-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: $c-blue;
    height: 45px;
    position: relative;
    padding-right: 8px;

    .menu-icon,
    .search-icon {
        height: 16px;
        width: auto;
        padding: 14px 10px;
        box-sizing: content-box;
        cursor: pointer;
    }

    .logo {
        position: absolute;
        left: 8px;
        top: 4px;
        height: 65px;
        width: auto;
    }

    .txt-logo {
        position: absolute;
        height: 19px;
        left: 82px;
        top: 13px;
        width: auto;
    }
}

.external-links {
    background-color: $c-dark-blue;
    padding: 0 16px;
    text-align: right;

    li {
        display: inline-block;

        a {
            display: inline-block;
            padding: 8px 8px 8px;
            text-transform: uppercase;
            font-size: 12px;
            color: white;
            text-decoration: none;
        }
    }
}

.direct-links {
    padding: 0 16px 0 73px;
    margin-bottom: $gap-small;

    li {
        display: inline-block;

        a {
            display: inline-block;
            padding: 8px 8px 4px;
            text-transform: uppercase;
            font-size: 14px;
            color: $c-red;
            text-decoration: none;
        }
    }
}

@media screen and (min-width: 768px) {
    .page-header {
        height: 60px;

        .logo {
            left: 16px;
            top: 8px;
            height: 80px;
        }

        .txt-logo {
            height: 33px;
            left: 112px;
            top: 14px;
        }

        .menu-icon,
        .search-icon {
            height: 24px;
            padding: 14px 16px;
            box-sizing: content-box;
            cursor: pointer;
        }
    }

    .direct-links {
        padding: 0 16px 0 95px;

        li {
            a {
                padding: 8px 16px 4px;
            }
        }
    }
}

@media screen and (min-width: 1280px) {
    .page-header {
        .logo {
            height: 120px;
        }

        .txt-logo {
            left: 157px;
        }
    }

    .direct-links {
        width: 990px;
        padding: 0;
        margin: 0 auto $gap-default;

        li {
            a {
                display: inline-block;
                padding: 12px 0;
                margin-right: $gap-large;
                font-size: 16px;

                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}

// *** TEASERS
// ======================================

.main-teasers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;

    .teaser {
        display: flex;
        margin-bottom: $gap-default;
        width: 100%;

        .teaser-container {
            width: 100%;
        }

        a {

            &:active,
            &:hover,
            &:visited {
                color: $c-blue;
                text-decoration: none;
            }
        }

        .teaser-image {
            margin-bottom: $gap-tiny;
            position: relative;
            padding-bottom: 56.25%;

            img {
                position: absolute;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .teaser-title h3 {
            font-weight: 600;
            color: $c-blue;
            font-size: 24px;

        }

        &.main-story {
            .teaser-title h3 {
                font-size: 32px;
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .main-teasers {
        .teaser {
            &.w100 {
                width: 100%;
            }

            &.main-story {
                .teaser-title h3 {
                    font-size: 48px;
                }
            }

            &.w50 {
                width: 48.6%;
            }

            a {
                &:hover {
                    text-decoration: underline;
                }
            }

            .teaser-title h3 {
                font-size: 28px
            }
        }
    }
}

.latest-articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    overflow: hidden;

    .teaser {
        width: 48.6%;
        margin-bottom: $gap-default;

        .teaser-container {
            width: 100%;
        }

        a {

            &:active,
            &:hover,
            &:visited {
                color: $c-blue;
                text-decoration: none;
            }
        }

        .teaser-image {
            margin-bottom: $gap-tiny;
            position: relative;
            padding-bottom: 56.25%;

            img {
                position: absolute;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .teaser-title h3 {
            font-weight: 600;
            color: $c-blue;
            font-size: 18px;
            font-weight: 500;
        }
    }
}

@media screen and (min-width: 768px) {
    .latest-articles {
        justify-content: unset;
        flex-direction: column;

        .teaser {
            width: 100%;

            .teaser-title h3 {
                font-size: 18px;
            }

            a {
                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}


// *** ARTICLE
// ======================================

.article-wrapper {
    margin-bottom: $gap-large;

    .main-image .article-image {
        margin-right: -$gap-default;
        margin-left: -$gap-default;
    }

    figcaption {
        padding: $gap-tiny 0 $gap-default;
        font-size: 14px;
        color: $soft-black;
    }

    h1 {
        font-size: 32px;
        color: $c-blue;
        margin-bottom: $gap-medium;
    }

    .lead-text {
        font-weight: 700;
        line-height: 1.2;
        font-size: 19px;
        margin-bottom: $gap-medium;
    }

    .byline {
        margin-bottom: $gap-default;
        font-size: 14px;
        color: $soft-black;
    }

    p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: $gap-default;
    }

    blockquote {
        margin-bottom: $gap-default;
        border-left: 5px solid $c-blue;
        padding: $gap-tiny $gap-small $gap-tiny $gap-default;
        font-size: 18px;
        color: $soft-black;
        font-style: italic;
    }
}

@media screen and (min-width: 600px) {
    .article-wrapper {

        p,
        .byline,
        .lead-text {
            padding: 0 32px;
        }

        .article-image figcaption {
            padding-left: 32px;
            padding-right: 32px;
        }

        blockquote {
            margin-left: 32px;
            margin-right: 32px;
        }
    }
}

@media screen and (min-width: 768px) {
    .article-wrapper {

        .main-image .article-image,
        blockquote {
            margin-right: 0;
            margin-left: 0;
        }

        h1 {
            font-size: 42px;
        }

        p,
        .byline,
        .lead-text {
            padding: 0;
        }
    }
}

@media screen and (min-width: 980px) {
    .article-wrapper {

        p,
        .byline,
        .lead-text {
            padding: 0 64px;
        }

        blockquote {
            margin-left: 64px;
            margin-right: 64px;
        }
    }
}

// *** WIDGET
// ======================================

h2.widget-title {
    color: $c-red;
    font-weight: 500;
    font-size: 24px;
    margin-bottom: $gap-small;
}

.widget {
    margin-bottom: $gap-large;

    &.neste-kamper {
        .fotballdata {
            margin-bottom: $gap-default;
            padding-left: $gap-small;

            .line1,
            .promo {
                display: none;
            }

            .line2 {
                font-size: 18px;
            }
        }
    }
}


// *** FOOTER
// ======================================

.sub-index h1 {
    color: $c-red;
    margin: $gap-default 0 $gap-medium;
    font-size: 32px;
}

@media screen and (min-width: 768px) {
    .sub-index h1 {
        font-size: 42px;
    }
}

// *** FOOTER
// ======================================

.page-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: $c-blue;
    position: relative;
    padding: 16px 0;
    color: $c-white;

    a {
        color: $c-white;
    }

    .txt-logo,
    p {
        width: calc(100% - 32px);
        max-width: 990px;
        margin-bottom: $gap-large;
        text-align: center;
    }
}


// *** MENU
// ======================================

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: $c-dark-blue;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    color: #FFF;
    strong {
        padding: 12px 8px 4px 32px;
        font-size: 18px;
        color: #818181;
        display: block;
        color: #FFF;
    }
    a {
        padding: 4px 8px 4px 32px;
        text-decoration: none;
        font-size: 16px;
        color: #818181;
        display: block;
        color: rgba(255,255,255,.7);
        &:hover {
            text-decoration: underline;
        }
    }
    .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
}