/*------------------------------
Popular Area
-------------------------------*/

.populerarea__wraper {
    margin-bottom: 65px;
    align-items: center;
}

.populerarea__heading {
    @media #{$device-md} {
        margin-bottom: 30px;
    }
    @media #{$device-sm} {
        margin-bottom: 10px;
    }
    a {
        margin-bottom: 25px;
    }
    h2 {
        font-size: 42px;
        line-height: 50px;
        margin-bottom: 0;
        @media #{$device-lg} {
            font-size: 37px;
            line-height: 40px;
        }
        @media #{$device-sm} {
            font-size: 30px;
            line-height: 40px;
        }
    }
}

.populerarea__content {
    padding-left: 50px;
    @media #{$device-lg} {
        padding-left: 0;
    }
    @media #{$device-md} {
        padding-left: 0;
    }
    @media #{$device-sm} {
        padding-left: 0;
    }
    p {
        line-height: 29px;
    }
}

.populerarea__button {
    text-align: right;
    @media #{$device-md} {
        text-align: left;
    }
    @media #{$device-sm} {
        text-align: left;
    }
    a {
        background: var(--secondaryColor);
        border: 1px solid var(--secondaryColor);
        &:hover {
            background: var(--whiteColor);
            border: 1px solid var(--secondaryColor);
            color: var(--secondaryColor);
        }
    }
}
.react-courses-categories.layout-grid {
    .single__service{
        transition: var(--transition);
        border-radius: 6px;
        border: 1px solid #DDD8F9;
        &.style1{
            padding: 30px;
            margin-bottom: 30px;
            position: relative;
            background: var(--primaryColor);
        }
        &.style2{
            display: flex;
            align-items: center;
            gap: 24px;
            background: #FBFAFF;
            padding: 23px 30px;
            .service__img {
                margin: 0 !important;
            }
        }
        &.style3{
            display: flex;
            align-items: center;
            gap: 26px;
            border: 1px solid #DDD8F9;
            border-radius: 6px;
            .service__img{
                display: block;
                max-width: max-content;
                overflow: hidden;
                border-radius: 4px 0 0 4px;
                margin: 0 !important;
                img{
                    transition: 0.3s;
                    transform: scale(1.08);
                    width: 75px;
                }
            }
            .service__content {
                h3 {
                    color: var(--titleColor);
                    font-size: 18px;
                    font-weight: 700;
                    line-height: 1.25;
                    margin-bottom: 0;
                }
            }
        }
    }
    .single__service{
        &:hover{
            border: 1px solid var(--primaryColor);
            &.style3{
                background: var(--primaryColor);
                border:1px solid #DDD8F9;
                img{
                    transform: scale(1.15);
                }
                h3,p{
                    color: #fff !important;
                }
            }
            .service__small__img {
                svg {
                    opacity: 1;
                }
            }
            .service__img {
                color: var(--whiteColor);
                .service__icon {
                    path {
                        fill: var(--whiteColor);
                    }
                }
                .service__icon__bg {
                    path {
                        fill: var(--whiteColor);
                    }
                }
            }
            .service__content {
                h3 {
                    a {
                        color: var(--secondaryColor);
                        &:hover {
                            color: var(--secondaryColor);
                        }
                    }
                    color: var(--secondaryColor);
                }
                p {
                    color: var(--secondaryColor);
                }
            }
        }
        &.ss_margin {
            margin-top: 50px;
            @media #{$device-sm} {
                margin-top: 0;
            }
        }
        .service__content {
            h3 {
                a {
                    color:var(--titleColor);
                    font-family: var(--headingFont);
                    transition: var(--transition);
                }
            }
        }
    }
    
}

.populerarea__2 {
    .row {
        align-items: center;
    }
    background-color: var(--lightGrey10);
    .service__content {
        h3 {
            font-size: 24px;
            font-weight: 500;
            line-height: 1;
            margin-bottom: 15px;
            color:var(--titleColor);
        }
    }
    .service__button {
        a {
            &:hover {
                color: var(--secondaryColor);
            }
        }
    }
    .single__service {
        padding: 35px;
    }
}

.service__img {
    position: relative;
    margin-bottom: 10px;
    svg {
        max-height: 60px;
        transition: var(--transition);
    }
    .service__bg__img {
        svg {
            position: absolute;
            top: -13px;
            left: -10px;
            max-height: 60px;
            transition: var(--transition);
        }
    }
}

.service__content {
    h3 {
        font-size: 24px;
        font-weight: 500;
        line-height: 29px;
        margin-bottom: 5px;
        @media #{$device-lg} {
            font-size: 17px;
            line-height: 15px;
        }
        @media #{$device-sm-large} {
            font-size: 17px;
        }
    }
    p {
        line-height: 29px;
        margin-bottom: 0;
        color: var(--secondaryColor);
    }
}

.service__small__img {
    svg {
        position: absolute;
        top: 20px;
        right: 30px;
        opacity: 0;
        max-height: 25px;
        max-width: 30px;
        transition: var(--transition);
    }
}

.populerarea__2 {
    .service__content__2 {
        h3 {
            @media #{$device-lg} {
                font-size: 17px;
                margin-bottom: 0;
            }
            @media #{$device-md} {
                margin-bottom: 0;
            }
        }
    }
}

.service__content__2 {
    p {
        font-size: 14px;
        line-height: 24px;
        @media #{$device-lg} {
            font-size: 11px;
            line-height: 19px;
        }
    }
}

.service__button {
    margin-top: 15px;
    @media #{$device-lg} {
        margin-top: 0px;
    }
    @media #{$device-md} {
        margin-bottom: 0;
    }
    a {
        font-weight: 500;
        font-size: 14px;
        line-height: 17px;
        color: var(--blackColor);
    }
}

.populerarea__2 {
    background: var(--lightGrey10);
}

.populerarea__content__wraper__2 {
    @media #{$device-md} {
        margin-bottom: 30px;
    }
    @media #{$device-sm} {
        margin-bottom: 30px;
    }
    .section__title {
        margin-bottom: 30px;
    }
    .populerarea__content__2 {
        .populerarea__para__1 {
            margin-bottom: 35px;
            @media #{$device-lg} {
                margin-bottom: 10px;
            }
            @media #{$device-md} {
                margin-bottom: 10px;
            }
            @media #{$device-sm} {
                margin-bottom: 10px;
            }
        }
        .populerarea__para__2 {
            margin-bottom: 40px;
            border-left: 3px solid var(--secondaryColor);
            padding-left: 10px;
        }
    }
    .populerarea__button__2 {
        .default__button {
            background: var(--secondaryColor);
            color: var(--whiteColor);
            border: 1px solid var(--secondaryColor);
            &:hover {
                border: 1px solid var(--secondaryColor);
                color: var(--secondaryColor);
                background: var(--whiteColor);
            }
        }
    }
}

.populerarea__2 {
    background: var(--lightGrey10);
}

.service__wrap__content {
    position: relative;
    .service__animate__shape__2 {
        img {
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
            top: 50px;
            animation: move5 3s infinite linear;
        }
    }
}

.about__wrap__content {
    position: relative;
    .service__animate__shape__1 {
        img {
            position: absolute;
            right: 50px;
            bottom: -50px;
            animation: dot-anim-2 3s linear 0s infinite alternate;
            @media #{$device-md} {
                bottom: 38px;
            }
            @media #{$device-sm} {
                bottom: 36px;
            }
        }
    }
}

.best__categories {
    &__item {
        margin-bottom: 30px;
        &:hover {
            .best__categories__link {
                background-color: var(--secondaryColor);
                color: var(--whiteColor);
            }
            .best__categories__name,
            .best__categories__more {
                color: var(--whiteColor);
            }
        }
    }
    &__link {
        display: flex;
        align-items: center;
        background-color: var(--borderColor);
        border-radius: 5px;
        padding: 20px 30px 15px;
        height: 100%;
        min-height: 70px;
        transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
        justify-content: center;
    }
    &__icon {
        flex-shrink: 0;
        max-width: 60px;
        width: 100%;
    }
    &__info {
        text-align: center;
    }
    &__name {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 500;
        margin: 0;
        transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
        position: relative;
        display: block;
    }
    &__more {
        font-size: 12px;
        color: var(--bodyColor);
        transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
}


.react-courses-categories-slider{
   &.style1{
        .single__service {
            box-shadow: none !important;
            text-align: center;
            background: #fff;
            border-radius: 6px;
            border: 1px solid #DDD8F9;
            display: block;
            padding: 32px;
            text-align: center;
            transition: 0.3s;
            position: relative;
            overflow: hidden;
            &:hover {
                border: 1px solid var(--primaryColor);
            }
            .service__content {
                h3 {
                    color: #221859;
                    text-align: center;
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 32px;
                    margin-top: 18px;
                    margin-bottom: 0px;
                }
                p {
                    color: #221859;
                    text-align: center;
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 26px;
                }
            }
        }
   }
   &.style2{
        .single__service{
            padding: 0;
            background: none;
            border: none;
            text-align: center;
            transition: all 0.4s;
            .service__img {
                overflow: hidden;
                border-radius: 50%;
                @media #{$device-sm-small} {
                    max-width:250px;
                    margin: auto;
                    margin-bottom: 10px;
                }
                img {
                    transform: scale(100%);
                    transition: all 0.4s;
                }
            }
            h3 a{
                color: var(--secondaryColor);
                text-align: center;
                font-size: 20px;
                font-style: normal;
                font-weight: 600;
                line-height: 32px;
                margin-top: 18px;
                margin-bottom: 0px;
                &:hover{
                    color: var(--primaryColor);
                }
            }
            &:hover{
                .service__img {
                    img {
                        transform: scale(105%);
                    }
                }
            }
        }
   }
   .slider-navs {
    margin-top: 70px;
    .slider-nav {
        @media #{$device-md} {
            display: none;;
        }
        @media #{$device-sm} {
            display: none;;
        }
        .slider-button {
            top: auto;
            bottom: 0;
            i {
                color: var(--primaryColor);
            }
            &.swiper-button-prev {
                left: 43%;
            }
            &.swiper-button-next {
                right: 43%;
            }
            &::after {
                display: none;
            }
        }
    }
    .swipper-bulet-pagination {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        .swiper-pagination-bullet {
            background: var(--primaryColor);
            width: 8px;
            height: 8px;
        }
    }
}

}