.coaching-card-items {
    margin-top: 30px;
    position: relative;
    z-index: 9;
    padding: 40px 30px;

    &::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(65%);
        border-radius: 14px;
        background-color: var(--white);
        transition: all .35s ease-in-out;
        z-index: -1;

        @include breakpoint(max-sm){
            height: calc(60%);
        }
    }

    .coacing-image {
        width: 180px;
        height: 180px;
        margin: 0 auto;

        img {
            @include imgw;
            border-radius: 50%;
        }
    }

    .icon {
        width: 60px;
        height: 60px;
        line-height: 70px;
        text-align: center;
        border-radius: 50%;
        font-size: 32px;
        background-color: $theme-color;
        color: $white;
        text-align: center;
        margin: -40px auto 0;
        position: relative;
        z-index: 9;
        @include transition;
    }

    .content {
        margin-top: 20px;

        h3 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }
    }

    &:hover {
        &::before {
            height: calc(100%);
            background-color: $theme-color;
        }

        .icon {
            background-color: $white;
            color: $theme-color;
            transform: scaleX(-1);
        }

        .content {
            h3 {
                a {
                    color: $white;
                }
            }

            p {
                color: $white;
            }
        }
    }

    &.active {
        &::before {
            height: calc(100%);
            background-color: $theme-color;
        }

        .icon {
            background-color: $white;
            color: $theme-color;
            transform: scaleX(-1);
        }

        .content {
            h3 {
                a {
                    color: $white;
                }
            }

            p {
                color: $white;
            }
        }
    }
}

.coaching-box-items {
    margin-top: 30px;
    background-color: $white;
    box-shadow: $shadow;
    border-radius: 10px;

    .coaching-image {
        position: relative;
        overflow: hidden;

        img {
            @include imgw;
            border-radius: 10px 10px 0 0;
            transition: 0.5s;
            background-size: cover;

            &:nth-child(1){
                perspective: 300px;
                transition: transform 500ms ease;
                transform-origin: top center;
                transform: translateX(0%) translateX(0px) scaleX(1) rotateY(0deg);
            }

            &:nth-child(2){
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                object-fit: cover;
                transition: transform 700ms ease, top 700ms ease;
                transform: translateX(0%) translateX(150px) scaleX(0) rotateY(90deg);
                transform-origin: bottom center;
                width: 100%;
            }
        }

        .image-overlay {
            display: flex;
            width: 100%;
            height: 100%;
            background-color: rgba(2, 32, 61, 0.6);
            position: absolute;
            top: 0;
            left: 0;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transform: translateY(-20%);
            transition: opacity 500ms ease, transform 500ms ease;
            border-radius: 10px 10px 0 0;
            font-size: 32px;
            color: $white;
        }

        .price {
            width: 109px;
            height: 109px;
            background: $theme-color;
            border: 2px solid $white;
            -webkit-transition: all 0.4s ease;
            transition: all 0.4s ease;
            text-align: left;
            border-radius: 50%;
            padding: 21px 0 0 16px;
            position: absolute;
            right: -35px;
            bottom: -41px;
            font-size: 20px;
            line-height: 32px;
            font-weight: 500;
            margin: 0;
            color: $white;
        }
    }

    .content {
        padding: 25px;

        h4 {
            margin-bottom: 5px;

            a {
                &:hover {
                    color: $theme-color;
                }
            }
        }

        p {
            margin-bottom: 15px;
        }
    }

    &:hover {
        .coaching-image {
            img {
                &:nth-child(1){
                    transform-origin: bottom center;
                    transform: translateX(-100%) translateX(150px) scaleX(0) rotateY(90deg);
                }
                
                &:nth-child(2){
                    transition: transform 500ms ease, top 500ms ease;
                    transform: translateX(0%) translateX(0px) scaleX(1) rotateY(0deg);
                }
            }

            .image-overlay {
                opacity: 1;
                transform: translateY(0);
            }

            .price {
                width: 109px;
                height: 109px;
                background: $white;
                border: 2px solid  $theme-color;
                -webkit-transition: all 0.4s ease;
                transition: all 0.4s ease;
                text-align: left;
                border-radius: 50%;
                padding: 21px 0 0 16px;
                position: absolute;
                right: -35px;
                bottom: -41px;
                font-size: 20px;
                line-height: 32px;
                font-weight: 500;
                margin: 0;
                color: $header-color;
            }
        }
    }
}

.coaching-box-items-2 {
    margin-top: 30px;
    padding: 30px;
    @include flex;
    gap: 25px;
    position: relative;
    z-index: 7;

    @include breakpoint (max-md){
       flex-wrap: wrap;
    }

    &::before {
        @include before;
        background-color: $white;
        border-radius: 10px;
        z-index: -1;
        @include transition;
        left: initial;
        width: 80%;

        @include breakpoint (max-md){
            width: 100%;
        }
    }

    .coaching-image {
        width: 180px;
        height: 180px;

        img {
            @include imgw;
            border-radius: 50%;
        }
    }

    .coaching-content {
        flex-basis: 60%;

        @include breakpoint (max-md){
            flex-basis: 100%;
        }

        h3 {
            margin-bottom: 7px;
        }
    }

    &:hover {
        &::before {
            width: 100%;
            background-color: $theme-color;
        }

        .coaching-content {
    
            h3 {
               a {
                    color: $white;
               }
            }

            p {
                color: $white;
            }

            .link-btn {
                color: $white;

                i {
                    background-color: $white;
                    color: $header-color;
                }
            }
        }
    }
}

.coaching-details-wrapper {
    .coaching-details-items {
        .details-image {
            img {
                @include imgw;
            }
        }

        .details-content {
            margin-top: 30px;

            h2 {
                font-size: 36px;
                margin-bottom: 20px;
            }

            .details-thumb-2 {
                img {
                    @include imgw;
                }
            }

            .thumb-2 {
                position: relative;
    
                img {
                    @include imgw;
                }
    
                .video-box {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
    
                    .video-btn {
                        background-color: $theme-color;
                        color: $white;
                        display: inline-block;
                        font-size: 16px;
                        height: 80px;
                        width: 80px;
                        line-height: 80px;
                        border-radius: 50%;
                        text-align: center;
                    }
    
                    .ripple {
                       &::before,&::after {
                            height: 80px;
                            width: 80px;
                       }
                    }
                }
            }
    
            .content {
                h3 {
                    font-size: 28px;
                    margin-bottom: 15px;
                }
    
                ul {
                    li {
                        color: $header-color;
    
                        &:not(:last-child){
                            margin-bottom: 10px;
                        }
    
                        i {
                            color: $theme-color;
                            margin-right: 5px;
                        }
                    }
                }
            }
        }
    }

    .country-sidebar {
        .single-contact-form {
            background-color: $white;
            box-shadow: $shadow;
            padding: 35px;

            .wid-title {
                margin-bottom: 20px;
            }

            .single-form-input {
                input,textarea {
                    border: none;
                    padding: 14px 20px;
                    background-color: $bg-color;
                    width: 100%;
                    margin-bottom: 20px;
                    text-transform: capitalize;
                    color: $text-color;
                    outline: none;
                }

                textarea {
                    padding-bottom: 90px;
                }
            }

            .theme-btn {
                padding: 16px 40px;
            }
        }

        .country-sidebar-widget {
            margin-top: 30px;
            margin-bottom: 30px;

            .contact-bg {
                padding: 120px 40px;
                position: relative;
                z-index: 9;

                &::before {
                    @include before;
                    background-color: $black;
                    opacity: .5;
                    z-index: -1;
                }

                h2 {
                    font-size: 60px;
                    color: $white;
                    margin-bottom: 30px;

                    @include breakpoint (max-xl){
                        font-size: 50px;
                    }

                    @include breakpoint (max-md){
                        font-size: 42px;
                    }

                    @include breakpoint (max-sm){
                        font-size: 32px;
                    }
                }

                h3 {
                    color: $white;
                    margin-bottom: 5px;
                }
            }
        }
    }
}