:root {
    --products-grid-cols: 4;
}

.rich-text.display-1 {
    font-weight: unset;
}

hr {
    height: 1px;
    background-color: #888;
}

.main-menu .dropdown-menu {
    border: 2px solid #0f3d81;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;

    div:first-child {
        border-right: 1px solid #000;
        padding-right: 30px;
    }

    div:last-child {
        padding-left: 30px;

        * {
            margin: 0;
        }
    }

    /* Hide the 'tagline' except on large screens */
    @media (max-width: 1199px) {
        div:first-child {
            border: none;
        }
        
        div:last-child {
            display: none;
        }
    }

    img {
        width: auto;
        height: 90px;
    }
    
    &.logo-smaller {
        img {
            height: 85px;
        }

        @media (max-width: 991px) {
            img {
                margin: 12px 0;
            }
        }
    }
}

footer {
    margin-top: 2.5rem;
    padding-bottom: .5rem;

    .footer-menu-container {
        display: flex;
        align-items: center;
        justify-content: end;

        ul.footer-menu {
            display: flex;
            flex-direction: row;
            /*gap: .25rem;*/

            list-style-type: none;
            margin: 0;

            li:not(:last-child)::after {
                content: "|";
                font-weight: bold;
                margin: 0 12px;
            }
        }
    }

    hr {
        margin: .3rem 0;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    max-width: calc(300px * var(--products-grid-cols) + 20px * calc(var(--products-grid-cols) - 1));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;

    a {
        &:hover {
            background-color: #DDD;
        }
        
        transition: background-color .3s ease-in-out;
        
        background-color: #EEE;
        border-radius: var(--bs-border-radius-xl);
        aspect-ratio: 1;

        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;


        img {
            max-width: 80%;
            max-height: 80%;

            width: auto;
            height: 200px;
        }
    }
}

.page-title {
    hr {
        margin: 0 0 2rem;
    }
}

.breadcrumbs {
    .separator {
        color: #8d8d8d;
        padding-top: 20px;
    }

    .nav-item {
        display: flex;
        align-items: center;
    }
    
    .nav-item > a {
        padding-bottom: 0;
    }
    
    .nav-item:first-child > a {
        padding-left: 0;
    }

    .nav-link {
        text-decoration: underline;

        &.active {
            color: #8d8d8d;
            text-decoration: none;
        }

        &:hover {
            color: rgba(0, 0, 0, 0.7);
        }
    }
}

.hero-image-carousel {
    .hero-carousel-item {
        padding: 2rem;
        min-height: 30vh;
        
        background-position: top;
        background-size: cover;
        background-repeat: no-repeat;
        
        .rich-text {
            margin-bottom: 5rem !important;
        }
    }
    
    @media (max-width: 991px) {
        .hero-carousel-item > .rich-text {
            max-width: 95% !important;
            
        }
    }
}

.blog-articles-section {
    hr {
        margin-bottom: .5rem;
    }
    
    .blog-article-list-item {
        display: flex;
        flex-direction: row;
        min-height: 180px;
        margin-bottom: 1rem;

        @media (max-width: 576px) {
            flex-direction: column;
            
            div.thumbnail {
                margin: 0 auto !important;
            }
        }
        
        div.thumbnail {
            aspect-ratio: 1.33;
            height: 150px;
            background-position: center center;
            background-size: cover !important;
            margin-right: 1rem;
            border-radius: var(--bs-border-radius-xl);
        }
        
        h1, h2 {
            margin-bottom: 0;
            
            a:hover, a:active {
                text-decoration: underline;
            }
        }
    }
}

.blog-article {
    hr {
        margin-bottom: .5rem;
    }


    .blog-metadata {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

.angle-clip {
    padding: 3rem 0 5rem;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%)
}

@media(min-width: 992px) {
    .angle-clip {
        padding: 6rem 0 9rem;
    }
}

.lift {
    box-shadow: none !important;
}