.helpdocs {
    img {
        height: auto;
    }

    .helpdocs__grid {
        display: flex;
        justify-content: space-between;
        width: 100%;
        .helpdocs__grid-item {
            &:first-child {
                flex-basis: 322px;
                flex-shrink: 0;
                background-color: #fafafa;
            }
            &:last-child {
                max-width: calc(100% - 390px);
                padding-top: 30px;
                padding-bottom: 50px;
                width: 100%;
            }
            .left__sidebar {
                padding: 30px;
                .search__form {
                    margin-bottom: 20px;
                    form {
                        position: relative;
                        input {
                            &.search__term {
                                display: block;
                                font-family: "Roboto", sans-serif;
                                font-size: 14px;
                                font-weight: 500;
                                font-stretch: normal;
                                font-style: normal;
                                line-height: normal;
                                letter-spacing: 0.23px;
                                color: #a1a1a1;
                                width: 100%;
                                height: 36px;
                                border: 2px solid #ccc;
                                padding: 10px 50px 10px 15px;

                            }
                            &[type="submit"] {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 50px;
                                height: 36px;
                                border: none;
                                opacity: 0;
                                z-index: 4;
                                &:hover {
                                    cursor: pointer;
                                }
                            }
                            &:focus,
                            &:active {
                                outline: none;
                            }
                            &::-webkit-input-placeholder,
                            &::-moz-placeholder,
                            &:-ms-input-placeholder,
                            &:-moz-placeholder {
                                font-family: "Roboto", sans-serif;
                                font-size: 14px;
                                font-weight: 500;
                                font-stretch: normal;
                                font-style: normal;
                                line-height: normal;
                                letter-spacing: 0.23px;
                                color: #a1a1a1 !important;
                            }
                        }
                        svg {
                            position: absolute;
                            right: 10px;
                            width: 14px;
                            top: 50%;
                            transform: translateY(-50%);
                            fill: #cccccc;
                            z-index: 3;
                        }
                    }
                }
                .categories__list {
                    .mobile__categories-dropdown {
                        position: relative;
                        display: none;
                        font-family: "Roboto", sans-serif;
                        font-size: 14px;
                        font-weight: 500;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: normal;
                        letter-spacing: 0.23px;
                        color: #a1a1a1;
                        width: 100%;
                        height: 36px;
                        border: 2px solid #ccc;
                        padding: 8px 50px 8px 15px;
                        &.activeDropdown {
                            img {
                                transform: translateY(-50%) rotate(-180deg);
                            }
                        }
                        img {
                            position: absolute;
                            right: 10px;
                            top: 50%;
                            transform: translateY(-50%);
                            -moz-transition: all .3s ease-in-out;
                            -o-transition: all .3s ease-in-out;
                            -webkit-transition: all .3s ease-in-out;
                            transition: all .3s ease-in-out;
                        }
                    }
                    ul {
                        padding-left: 0;
                        list-style-type: none;
                        li {
                            &.main__list-items {
                                margin-bottom: 20px;
                                &:last-child {
                                    margin-bottom: 0;
                                }
                                &:hover {
                                    cursor: pointer;
                                }
                                &.activeList {
                                    img {
                                        transform: rotate(-180deg);
                                    }
                                }
                            }
                            img {
                                position: relative;
                                display: inline-block;
                                margin-right: 5px;
                                max-width: 10px;
                                height: auto;
                                top: -3px;
                                -moz-transition: all .3s ease-in-out;
                                -o-transition: all .3s ease-in-out;
                                -webkit-transition: all .3s ease-in-out;
                                transition: all .3s ease-in-out;
                            }
                            .category__title {
                                display: inline-block;
                                font-family: "Roboto", sans-serif;
                                font-size: 16px;
                                font-weight: 500;
                                font-stretch: normal;
                                font-style: normal;
                                line-height: normal;
                                letter-spacing: normal;
                                color: #a1a1a1;
                                margin: 0;
                            }
                            ul {
                                display: none;
                                padding-bottom: 10px;
                                -moz-transition: height .3s ease-in-out;
                                -o-transition: height .3s ease-in-out;
                                -webkit-transition: height .3s ease-in-out;
                                transition: height .3s ease-in-out;
                                li {
                                    font-family: "Roboto", sans-serif;
                                    font-size: 14px;
                                    font-weight: 500;
                                    font-stretch: normal;
                                    font-style: normal;
                                    line-height: normal;
                                    letter-spacing: normal;
                                    padding: 5px 10px 5px 20px;
                                    margin-bottom: 5px;
                                    border-left: 5px solid transparent;
                                    -moz-transition: all .3s ease-in-out;
                                    -o-transition: all .3s ease-in-out;
                                    -webkit-transition: all .3s ease-in-out;
                                    transition: all .3s ease-in-out;
                                    &:hover {
                                        background-color: #fff;
                                        border-left: 5px solid #006482;
                                    }
                                    &:first-child {
                                        margin-top: 15px;
                                    }
                                    &:last-child {
                                        margin-bottom: 0;
                                    }
                                    a {
                                        text-decoration: none;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .single__help {
                padding-right: 96px;
                .single__help-breadcrumbs {
                    .single__help-breadcrumb-category {
                        font-family: "Roboto", sans-serif;
                        font-size: 14px;
                        font-weight: 500;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: 1.29;
                        letter-spacing: normal;
                        color: #a1a1a1;
                    }
                    .single__help-breadcrumb-title {
                        font-family: "Roboto", sans-serif;
                        font-size: 14px;
                        font-weight: 500;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: 1.29;
                        letter-spacing: normal;
                        color: #111111;
                    }
                }
                .single__help-title {
                    h1 {
                        font-family: "Roboto", sans-serif;
                        font-size: 28px;
                        font-weight: bold;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: normal;
                        letter-spacing: normal;
                        margin: 30px 0 10px 0;
                        color: #111111;
                    }
                }
                .single__help-content {
                    h1,
                    h2,
                    h3,
                    h4,
                    h5,
                    h6,
                    p,
                    li {
                        font-family: "Roboto", sans-serif;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: normal;
                        letter-spacing: normal;
                        color: #111111;
                    }
                    h2 {
                        font-size: 21px;
                        font-weight: bold;
                    }
                    h3,
                    h4,
                    h5 {
                        font-size: 16px;
                        font-weight: bold;
                    }
                    p {
                        font-size: 16px;
                        font-weight: normal;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: 1.56;
                        letter-spacing: normal;
                        color: #111111;
                        margin: 0 0 20px 0;
                    }
                    a {
                        color: #006482;
                        text-decoration: none;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                    .wp-block-code {
                        padding: 30px;
                        background-color: #fafafa;
                        code {
                            background-color: #fafafa;
                        }
                    }
                    ul,
                    ol {
                        padding-left: 20px;
                        li {
                            font-size: 16px;
                            margin: 0 0 10px 0;
                            &:last-child {
                                margin: 0;
                            }
                        }
                    }
                }
            }

            small {
                &.results__text {
                    position: relative;
                    display: block;
                    font-family: "Roboto", sans-serif;
                    font-size: 14px;
                    font-weight: 500;
                    font-stretch: normal;
                    font-style: normal;
                    line-height: 1.29;
                    letter-spacing: normal;
                    color: #a1a1a1;
                    margin-bottom: 5px;
                }
            }
            .helpdocs__grid-item-wrapper {
                padding-right: 97px;
                margin-bottom: 20px;
                .help__doc {
                    padding: 15px 0 20px 0;
                    border-bottom: 1px solid #cccccc;
                    h2 {
                        margin: 0 0 5px 0;
                        a {
                            font-family: "Roboto", sans-serif;
                            font-size: 16px;
                            font-weight: 500;
                            font-stretch: normal;
                            font-style: normal;
                            line-height: normal;
                            letter-spacing: normal;
                            text-decoration: none;
                            color: #006482;
                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                    .help__doc-description {
                        font-family: "Roboto", sans-serif;
                        font-size: 14px;
                        font-weight: normal;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: normal;
                        letter-spacing: normal;
                        color: #111111;
                        p {
                            margin: 0;
                        }
                    }
                }
                .pagination {
                    text-align: right;
                    margin-top: 20px;
                    .page-numbers {
                        display: inline-block;
                        font-family: "Roboto", sans-serif;
                        font-size: 18px;
                        font-weight: 500;
                        font-stretch: normal;
                        font-style: normal;
                        line-height: normal;
                        letter-spacing: normal;
                        color: #a1a1a1;
                        padding: 6px 10px;
                        border-radius: 2px;
                        text-decoration: none;
                        -moz-transition: all .3s ease-in-out;
                        -o-transition: all .3s ease-in-out;
                        -webkit-transition: all .3s ease-in-out;
                        transition: all .3s ease-in-out;
                        &.prev,
                        &.next {
                            position: relative;
                            top: -2px;
                        }
                        &:hover {
                            text-decoration: none;
                        }
                        &.current {
                            background-color: #666;
                            color: #fff;
                        }
                        i {
                            font-size: 13px;
                            color: #a1a1a1;
                        }
                    }
                    svg {
                        width: 20px;
                        fill: #a1a1a1;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .helpdocs {
        .helpdocs__grid {
            display: block;
            .helpdocs__grid-item {
                &:first-child {
                    flex-basis: 100%;
                    .left__sidebar {
                        padding: 10px 15px;
                        .categories__list {
                            .mobile__categories-dropdown {
                                display: block;
                            }
                            ul {
                                display: none;
                                margin: 0;
                                padding: 15px 10px;
                                background-color: #fff;
                                &.main__ul {
                                    border: 2px solid #ccc;
                                    border-top: none;
                                }
                                li {
                                    position: relative;
                                    img {
                                        position: absolute;
                                        right: 10px;
                                        top: 6px;
                                    }
                                    ul {
                                        padding-left: 0;
                                        li {
                                            padding: 5px 10px 5px 20px;
                                            &:first-child {
                                                margin-top: 0;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                &:last-child {
                    max-width: 100%;
                    padding-top: 10px;
                }
                .helpdocs__grid-item-wrapper {
                    padding: 0 15px;
                    .pagination {
                        text-align: center !important;
                    }
                }
                small {
                    &.results__text {
                        font-size: 12px;
                    }
                }
                .single__help {
                    padding: 0 15px;
                    .single__help-breadcrumbs {
                        .single__help-breadcrumb-category,
                        .single__help-breadcrumb-title {
                            font-size: 12px;
                        }
                    }
                    .single__help-title {
                        h1 {
                            font-size: 20px;
                        }
                    }
                    .single__help-content {
                        h2 {
                            font-size: 18px;
                        }
                        h3,
                        h4,
                        h5 {
                            font-size: 16px;
                        }
                        p {
                            font-size: 14px;
                        }
                        .wp-block-code {
                            padding: 10px;
                        }
                        ul,
                        ol {
                            li {
                                font-size: 14px !important;
                            }
                        }
                    }
                }
            }
        }
    }
}