/* Feature CSS */

@use 'responsive';
@use 'variables'as var;

.feature-card {
    position: relative;
    z-index: 1;
    background-color: var.$white;
    transition-duration: 500ms;
    overflow: hidden;

    &::after {
        transition-duration: 1000ms;
        position: absolute;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background-color: var.$white;
        opacity: 0.10;
        z-index: -1;
        content: '';
        bottom: -120px;
        right: -120px;
    }

    i {
        transition-duration: 500ms;
        flex: 0 0 45px;
        min-width: 45px;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: var.$heading;
        text-align: center;
        color: var.$white;
        line-height: 45px;
        font-size: 20px;
        margin-right: 15px;
    }

    h5 {
        color: var.$white;
    }

    h6 {
        margin-bottom: 0;
        transition-duration: 500ms;
    }

    span {
        transition-duration: 500ms;
        font-size: 1rem;
        color: var.$text;
    }

    &.active,
    &:hover,
    &:focus {
        border-color: var.$heading;
        background-color: var.$heading;
        box-shadow: 0 18px 56px rgba(255, 255, 255, 0.175);

        &::after {
            bottom: -50px;
            right: -40px;
        }

        i {
            box-shadow: 0 2px 38px rgba(255, 255, 255, 0.4);
        }

        h6,
        span {
            color: var.$white;
        }
    }
}

.feature2-card {
    border: 0;

    .card-body {
        padding: 2rem;

        .feature-icon {
            font-size: 3rem;
        }
    }
}

.feature3-card {

    .icons-wrap {
        position: relative;
        z-index: 1;
        margin-bottom: 2rem;
        display: block;

        .first-icon {
            font-size: 3rem;
            color: var.$heading;
        }

        .second-icon {
            font-size: 2.5rem;
            position: absolute;
            top: 20px;
            left: 55%;
            transform: translateX(-50%);
            z-index: -9;
            color: var.$text-gray;
        }
    }
}

.feature--text {
    ul {
        display: flex;
        align-items: center;
        flex-wrap: wrap;

        li {
            flex: 0 0 50%;
            width: 50%;
            max-width: 50%;
            margin-bottom: .75rem;

            >i {
                width: 1.5rem;
                height: 1.5rem;
                background-color: var.$text-gray;
                border-radius: 50%;
                display: inline-block;
                text-align: center;
                color: var.$heading;
                line-height: 1.5rem;
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

.feature-area {
    position: relative;
    z-index: 1;
    overflow: hidden;

    .background-shape {
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.09);
        transform: rotate(-30deg);
        top: -300px;
        left: -250px;
        z-index: -5;

        @media #{responsive.$breakpoint-lg} {
            width: 1200px;
            height: 1200px;
            top: -600px;
            left: -500px;
        }
    }

    &.feature2 {
        background-color: #FCE1B5;
    }
}