/* public/css/fonts.css */
@font-face {
    font-family: 'poppins';
    src: url('../fonts/poppins-regular-webfont.woff2') format('woff2'),
    url('../fonts/poppins-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Add other font styles if needed */


html {
    background-color: #ba0d33;
    font-family: 'poppins', sans-serif;

    body {
        margin:0;
    }

    .row {
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        padding: 0 20px;
    }

    .row-narrow {
        max-width: 1300px;
        margin: 0 auto;
        position: relative;
        padding: 0 20px;
    }

    header {
        background-color: #ba0d33;
        padding: 30px 10px;

        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: inline-block;
            margin: 0;

            img {
                max-width: 280px;
            }
        }
        .controls {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;

            form, h1 {
                display: inline-block;
            }
            p {
                color: #fff;
                font-size: 16px;
                margin:0 20px 0 0;
                display: inline-block;

            }
            button {
                text-transform: uppercase;
            }

            .controls-button-wrapper {
                display: flex;
                gap: 20px;
            }

        }

        @media screen and (max-width: 767px) {
            .logo img {
                max-width: 180px;
            }

            .top-nav {
                display: block;
            }

            .controls {
                display:block;
                transform:none;
                position:relative;
                margin-top:20px;

                .controls-button-wrapper {
                    margin-top: 20px;

                    form {
                        display:block;
                        margin-top:0px;
                    }
                }

            }
        }
    }

    main {
        background-color: #fff;
        padding: 0px;
        overflow: hidden;

        section {
            margin: 0 0 30px;
        }

        h2 {
            background-color: #dcdcdc;
            padding: 20px 0;
            margin: 0 0 30px;
        }

        .button, button {
            margin: 10px;
            padding: 15px 20px 15px 40px;
            display: inline-block;
            text-transform: uppercase;
            background-color: #ba0d33;
            height: 54px;

            &:before {
                background-image: url("/assets/img/lock-icon.svg");
                background-repeat: no-repeat;
                background-size: contain;
                content: "";
                display: inline-block;
                height: 20px;
                left: 15px;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 14px;
            }

            &.button-launch {
                padding: 15px 20px 15px 45px;
                height: 54px;
                &:before {
                    background-image: url("/assets/img/open-external-icon.svg");
                    background-repeat: no-repeat;
                    background-size: contain;
                    content: "";
                    display: inline-block;
                    height: 20px;
                    left: 15px;
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 20px;
                }
            }
        }

        .background-image {
            .row {
                height: 100%;
            }

            height: 200px;
            width: calc(100% + 20px);
            background-image: url('/assets/img/knotstone-background.jpg');
            margin: 0 -10px;
            background-size: cover;
            position: relative;
            background-position: center;

            &:before {
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                content: '';
                display: inline-block;
                background-color: rgba(0,0,0,0.4);
            }

            &.background-image-alt {
                background-image: url('/assets/img/knotstone-background-alt.jpg');
            }

            h1 {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%,-50%);
                color:#fff;
                font-size: 40px;
                font-weight: 500;
                padding: 40px;
                width: 100%;
                box-sizing: border-box;
                text-align: center;
                margin: 0;
            }
        }

        h2 {
            font-weight: 500;
            font-size: 22px;
            color: #333;
        }

        .login {
            display: block;
            text-align: center;
            color: #ba0d33;
        }
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-gap: 40px;

        @media screen and (max-width: 1200px) {
            grid-template-columns: 1fr 1fr 1fr;
        }

        @media screen and (max-width: 767px) {
            grid-template-columns: 1fr 1fr;
        }

        @media screen and (max-width: 500px) {
            grid-template-columns: 1fr;
        }

        .service-item {
            text-align: left;
            color:#333;

            img {
                max-width: 100%;
            }

            h3 {
                font-size: 22px;
                font-weight: 500;
                color: #333;
                margin: 14px 0 10px;
            }

            p {
                font-size: 20px;
            }

            button {
                margin: 0px;
            }
        }
    }

    .button, button {
        background-color: transparent;
        position: relative;
        border: 1px solid #fff;
        padding: 10px;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        cursor: pointer;
        line-height: 24px;
        box-sizing: border-box;
        height: 44px;

        &:hover {
            opacity: 0.8;
        }
    }

    footer {
        background-color: #ba0d33;
        color:#fff;
        padding: 40px 10px;
        position: relative;
        overflow: hidden;

        &:after {
            content: '';
            display: inline-block;
            position: absolute;
            height: 999px;
            width: 100%;
            left: 0;
            top: 0;
        }

        .footer-logo ,.footer-links {
            display: inline-block;
            vertical-align: top;
        }
        .footer-logo img {
            width: 60px;
            height: 60px;
        }
        .footer-links {
            margin-left: 10px;

            a {
                color: #fff;
                text-decoration: none;
                a:hover {
                    text-decoration: underline;
                }
            }

            div {
                margin: 10px 0;
                display: block;
            }
        }
    }
}

.messages .error {
    padding: 20px;
    box-sizing: border-box;
    font-size: 20px;
    background-color: #333;
    color: #fff;
}

.documents{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    @media screen and (max-width: 600px) {
        grid-template-columns: 1fr;
    }
}

.file-document {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #dcdcdc;
    padding: 5px 20px;
    justify-content: space-between;

    .file-meta-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .file-icon {
        width:30px;
        height: 30px;
        position: relative;
        vertical-align: middle;
        content:"";
        display: inline-block;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        flex-shrink: 0;

        &.pdf-icon {
            background-image:url("/assets/img/file-pdf.svg");
        }

        &.document-icon {
            background-image:url("/assets/img/file-doc.svg");
        }

        &.xlsx-icon {
            background-image:url("/assets/img/file-xls.svg");
        }

    }

    a {
        padding: 10px 0;
        display: inline-block;
        text-decoration: none !important;
        color: #333;

        &:hover {
            opacity: 0.7;
        }
    }

    .file-size, .file-title {
        color: #333;
        font-weight: bold;
    }

    .file-size {
        flex-shrink: 0;
    }

    .file-title {
        font-weight: bold;
    }

    .file-download {
        width:30px;
        height: 30px;
        position: relative;
        vertical-align: middle;
        content:"";
        display: inline-block;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-image:url("/assets/img/file-download.svg");
        flex-shrink: 0;
    }

}
