.insights {    
    .insights-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 30px;
        position: relative;
        z-index: 1;

        @media screen and (max-width: 1100px) {
            gap: 20px;
        }
        @media screen and (max-width: 804px) {
            gap: 15px;
        }
        .filter-heading {
            font-size: 1.8rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.44px;
            margin: 0;

            @media screen and (max-width: 1100px) {
                width: 100%;
            }
        }
        .filter-categories {
            width: 330px;
            height: 48px;
            position: relative;
            z-index: 1;

            @media screen and (max-width: 804px) {
                width: 100%;
            }
            .filter-box {
                width: 100%;
                background-color: var(--color-black);
                border: 1px solid #A7A9AC;
                border-radius: 8px;
                overflow: hidden;
                position: absolute;
                top: 0;
                left: 0;
                transition: .2s ease-in-out;

                &:hover, &:focus-visible {
                    border-color: var(--color-white);
                    
                    .filter-button {
                        color: var(--color-white);
                    }
                }
                &.open {
                    .filter-button {
                        font-weight: bold;
                        color: var(--color-white);

                        &:after {
                            width: 10px;
                            height: 2px;
                            right: 16px;
                            background-image: url('../svg/minus.svg');
                        }
                    }
                    .filter-dropdown {
                        padding: 0 8px 8px;
                        max-height: 2000px;
                    }
                }
                .filter-button {
                    width: 100%;
                    padding: 12px 42px 12px 16px;
                    text-align: left;
                    background: transparent;
                    border: none;
                    font-size: 1.4rem;
                    color: #A7A9AC;
                    cursor: pointer;
                    position: relative;
                    transition: .2s ease-in-out;

                    &:after {
                        content: '';
                        display: block;
                        width: 10px;
                        height: 12px;
                        position: absolute;
                        top: 50%;
                        right: 16px;
                        transform: translateY(-50%);
                        background-image: url('../svg/dropdown-arrow.svg');
                        background-size: cover;
                        background-repeat: no-repeat;
                        transition: .1s ease-in-out;
                    }
                }
                .filter-dropdown {
                    width: 100%;
                    padding: 0 8px;
                    max-height: 0;
                    transition: 1s ease-in-out;
                    
                    .filter-category {
                        display: block;
                        position: relative;
                        background-color: rgba(var(--color-white-rgb), .25);
                        border-radius: 8px;
                        padding: 8px 39px 8px 12px;
                        font-size: 1.4rem;
                        text-decoration: none;
                        color: var(--color-white);
                        margin-bottom: 4px;
                        transition: .3s ease-in-out;

                        &:last-of-type {
                            margin-bottom: 0;
                        }
                        &:hover, &:focus-visible {
                            background-color: rgba(var(--color-white-rgb), 1);
                            color: #51534A;
                            font-weight: bold;
                        }
                        &:focus, &.active {
                            background-color: rgba(var(--color-white-rgb), 1);
                            color: #51534A;
                            font-weight: bold;

                            &:after {
                                opacity: 1;
                                visibility: visible;
                            }
                        }
                        &:after {
                            content: '';
                            display: block;
                            width: 15px;
                            height: 11px;
                            position: absolute;
                            top: 50%;
                            right: 14px;
                            transform: translateY(-50%);
                            background-image: url('../svg/check.svg');
                            background-size: cover;
                            background-repeat: no-repeat;
                            opacity: 0;
                            visibility: hidden;
                            transition: .1s ease-in-out;
                        }
                    }
                }
            }
        }
        .filter-search {
            width: 330px;

            @media screen and (max-width: 804px) {
                width: 100%;
            }
            .search-form {
                width: 100%;
                position: relative;

                label {
                    width: 100%;
                }
                .search-field {
                    width: 100%;
                    padding: 12px 16px 12px 40px;
                    background-color: transparent;
                    border: 1px solid #A7A9AC;
                    border-radius: 8px;
                    font-size: 1.4rem;
                    color: var(--color-white);
                    transition: .2s ease-in-out;

                    &:focus {
                        outline: none;
                        border-color: var(--color-white);
                    }
                }
                .search-submit {
                    width: 15px;
                    height: 15px;
                    position: absolute;
                    top: 50%;
                    left: 16px;
                    transform: translateY(-50%);
                    background: transparent;
                    border: none;
                    padding: 0;
                    background-image: url('../svg/search.svg');
                    background-size: cover;
                    background-repeat: no-repeat;
                    cursor: pointer;
                }
            }
        }
    }
    .search-results-header {
        .search-title {
            margin-top: 30px;

            span {
                color: var(--color-primary);
            }
        }
    }
    .insights-grid {
        margin-top: 40px;

        .insight {
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;

            a {
                color: inherit;

                &:hover, &:focus-visible {
                    .insight-image {
                        img {
                            transform: scale(1.1);
                        }
                    }
                    .insight-content {
                        .read-more {
                            color: var(--color-white);

                            .link-arrow {
                                top: -4px;
                                right: -3px;
                            }
                        }
                    }
                }
            }
            .insight-image {
                width: 100%;
                height: 300px;
                border-radius: 30px;
                overflow: hidden;
                margin-bottom: 16px;

                @media screen and (max-width: 768px) {
                    height: 200px;
                }
                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: .7s ease;
                }
            }
            .insight-content {
                width: 100%;
                height: calc(100% - 316px);
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                @media screen and (max-width: 768px) {
                    height: calc(100% - 216px);
                }
                .insight-category {
                    font-size: 2rem;
                    font-weight: 800;
                    text-transform: uppercase;
                    letter-spacing: 1.6px;
                    color: var(--color-primary);
                    margin-bottom: 1.2rem;
                }
                .insight-title {
                    font-size: 1.8rem;
                    font-weight: bold;
                    line-height: 1.4;
                    margin-bottom: .7rem;
                }
                .insight-subtitle {
                    font-size: 1.8rem;
                    font-style: italic;
                    line-height: 1.4;
                    margin-bottom: 1.5rem;
                }
                .read-more {
                    display: inline-block;
                    font-size: 1.6rem;
                    font-weight: 800;
                    line-height: 1.2;
                    text-transform: uppercase;
                    letter-spacing: 1.28px;
                    color: #B4B4B4;
                    margin-bottom: 0;
                    transition: .2s ease-in-out;

                    @media screen and (max-width: 991px) {
                        font-size: 1.8rem;
                        letter-spacing: 1.8px;
                    }
                    .link-arrow {
                        position: relative;
                        display: inline-block;
                        width: 10px;
                        height: 10px;
                        top: -1px;
                        right: 0;
                        transition: .2s ease-in-out;

                        svg {
                            width: 100%;
                            height: 100%;
                            
                            path {
                                stroke-width: 3px;
                            }
                        }
                    }
                }
            }
        }
        .insights-pagination {
            margin-top: 60px;

            @media screen and (max-width: 576px) {
                margin-top: 40px;
            }
            .nav-links {
                display: flex;
                justify-content: space-between;

                .nav-previous, .nav-next {
                    a {
                        display: inline-block;
                        padding: 8px 16px;
                        font-family: var(--font-primary);
                        font-size: 1.6rem;
                        line-height: 1.2;
                        font-weight: 500;
                        text-transform: uppercase;
                        text-align: center;
                        text-decoration: none;
                        border-radius: 8px;
                        cursor: pointer;
                        transition: .3s ease-in-out;
                        border: 1px solid var(--color-white);
                        color: var(--color-white);

                        &:hover, &:focus-visible {
                            background-color: var(--color-white);
                            color: var(--color-black);
                        }
                    }
                }
            }
        }
        .not-found {
            .search-title {
                margin-bottom: 30px;

                span {
                    color: var(--color-primary);
                }
            }
            p {
                margin-bottom: 0;
            }
            .btn {
                margin-top: 30px;
            }
        }
    }
}