/*--------------------------------------------------------------
# meta box
--------------------------------------------------------------*/

.pxl-meta-box1 {
    .pxl-item--content {
        list-style: none;
        margin: 0;
    }
    .list--item {
        position: relative;
        padding: 56px 0 86px;
        border-bottom: 1px solid #ddd;
        &:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }
        &.pxl-hover-transition {
            @include transition(all 0.4s ease-in-out);
        }
        &:before {
            content: attr(data-text);
            font-size: 30px;
            font-weight: 600;
            line-height: 1;            
            position: absolute;
            left: 0;
            color: $third_color;
            top: calc(25% + 15px);
            transition: inherit;
        }
        > a {
            position: relative;
            display: block;
            padding-left: 125px;
            color: $third_color;          
            &.pxl-hover-transition {
                @include transition(all 0.4s ease-in-out);
            }
            &:before {
                content: "";
                position: absolute;
                display: inline-block;
                left: 50px;
                top: 50%;
                width: 90px;
                height: 2px;
                background-color: $primary_color;
                transform: rotate(-45deg);
                transform-origin: left center;
                transition: inherit;
                @media #{$max-sm} {
                    background-color: $secondary_color;
                    transition: background-color 0s, width 0.5s;
                }
            }
            &:after {
                content: "";
                position: absolute;
                display: inline-block;
                left: 50px;
                top: 50%;
                width: 0px;
                height: 2px;
                background-color: $secondary_color;
                transform: rotate(0deg);
                transform-origin: left center;
                transition: inherit;
                @media #{$max-sm} {
                   width: 0;
                   transition-delay: 0.2s;
               }
           }
       }
       &.active {
        &:before {
            color: $secondary_color;
        }
        >a {                
            &:before {
                background-color: $secondary_color;
            }
        }
        .item--title {
            color: $primary_color;
        }
        .pxl-item--image {
            opacity: 1;
            visibility: visible;
            transform: translatey(0);
            .pxl-item--button a{
                transform: scale(1);
            }
        }
    }
    &:hover {
        >a {
            padding-left: 150px;
            transition-delay: 0.2s;
            color: $primary_color;
            &:before {
                width: 0px;
                background-color: $secondary_color;
                transition: background-color 0s, width 0.5s;
            }
            &:after {
                width: 90px;
                transition-delay: 0.2s;
            }
        }
    }
    @media #{$max-lg} {
        &:before {
            font-size: 30px;
        }
        >a {
            padding-left: 115px;
            &:before {
                width: 80px;
            }
        }
        &:hover {
            >a {
                padding-left: 140px;
                &:after {
                    width: 80px;
                }
            }
        }
    }
    @media #{$max-md} {
        padding: 45px 0 50px;
        >a {
            padding-left: 95px;
            &:before {
                width: 60px;
            }
        }
        &:hover {
            >a {
                padding-left: 120px;
                &:after {
                    width: 60px;
                }
            }
        }
    }
    @media #{$max-sm} {
        padding: 35px 0 40px;
        >a {
            padding-left: 0;
            margin-bottom: 20px;
            &:before {
                width: 0;
            }
        }
        &:hover {
            a {
                padding-left: 0;
                &:after {
                    width: 0;
                }
            }
        }
    }
}
.item--title {
    line-height: 1.333333;     
    color: $third_color;                    
    margin-bottom: 0;
    @media #{$max-md} {
        font-size: 28px;
    }
    @media #{$max-sm} {
        font-size: 24px;
    }
    @media #{$max-xs} {
        font-size: 24px;
    }
}
.pxl-item--image {
    position: absolute;
    right: 0;
    bottom: 50%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;            
    max-width: 300px;
    transform: translatey(20px);
    @media #{$max-sm} {
        position: unset;
        opacity: 1;
        visibility: visible;
        max-width: 100%;
        height: 200px;
        transform: none;
        img {
         height: 100%;
         width: 100%;
         object-fit: cover;
     }
 }
 .pxl-item--button {
    position: absolute;
    bottom: -40px;
    left: -70px;
    @media #{$max-sm} {
        left: 0;
        bottom: 0;
    }
    a {                
        display: flex;
        align-items: center;
        justify-content: center;
        width: 108px;
        height: 108px;
        background-color: $secondary_color;
        min-width: auto;
        padding: 0;
        color: $fourth_color;
        font-size: 16px;
        border-radius: 100%;
        text-transform: uppercase;
        letter-spacing: 1.1px;
        transform: scale(0.5);
        transition: all 0.5s ease-in-out;    
        @media #{$max-sm} {
            transform: scale(1);
            width: 80px;
            height: 80px;
        }              
    }
}
}
.pxl-item--inner {
    position: relative;
    &:hover {
        .list--item {
            &:before {
                z-index: 5;
            }
            a {
                z-index: 5;
            }
        }
    }
}
}

.pxl-meta-box-grid1 {
    .pxl-item--content {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    .pxl-item--icon {
        margin: 0 20px 0 0;
        i {
            color: $secondary_color;
            font-size: 22px;
        }
        img {
            max-height: 22px;
        }
    }
    .pxl-item--title {
        font-size: 24px;
        margin-bottom: 0;
    }
}
.pxl-meta-box-grid2 {
    .pxl-item--inner {
        padding: 40px 40px 45px;
        @media #{$max-xs} {
            padding: 40px 30px 45px;
        }
    }
    .pxl-item--icon {
        margin-bottom: 39px;
        @media #{$max-xs} {
            margin-bottom: 29px;
        }
    }
    .pxl-item--title {
        margin-bottom: 13px;
        @extend .pxl-h4-size;
    }
}
