@use "../utilities" as *;

/**----------------------------------------
START: Home 6 CSS
----------------------------------------*/

.header-6{
    .shape{
        position: absolute;
        bottom: -34px;
        left: 0;
        width: 100%;
        height: 41px;
        @include breakpoint(md){
            display: none;
        }
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .top-bar{
        background-color: var(--ed-color-theme-primary);
        .top-bar-inner{
            .top-bar-left{
                ul{
                    li{
                        a{
                            color: var(--ed-color-common-white);
                        }
                    }
                }
            }
            .top-bar-right{
                .register-box{
                    padding-right: 0;
                    margin-right: 0;
                    border: none;
                    a{
                        color: var(--ed-color-common-white);
                        &:hover{
                            color: var(--ed-color-common-white);
                        }
                    }
                }
            }
        }
    }
    .primary-header{
        .primary-header-inner{
            .header-menu-wrap{
                ul{
                    li{
                        margin: 0 20px;
                        a{
                            text-transform: capitalize;
                        }
                        &:first-child{
                            margin-left: 0;
                        }
                        &:last-child{
                            margin-right: 0;
                        }
                    }
                    .menu-item-has-children{
                        padding-right: 0;
                        &:after{
                            display: none;
                        }
                        a{
                            padding-right: 0;
                        }
                    }
                }
            }
        }
    }
}


// Hero CSS

.hero-section-6{
    position: relative;
    z-index: 1;
    overflow: hidden;
    .bg-item{
        .hero-bg-img{
            position: absolute;
            top: -40px;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            @include breakpoint(lg){
                top: 0;
            }
            img{
                width: 96%;
                height: 100%;
                object-fit: cover;
                @include breakpoint(xl){
                    object-fit: cover;
                }
                @include breakpoint(lg){
                    width: 100%;
                }
            }
        }
        .bg-overlay{
            background: linear-gradient(90deg, #07A698 30.56%, rgba(5, 47, 43, 0) 81.23%);
            transform: matrix(-1, 0, 0, 1, 0, 0);
            position: absolute;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0; 
            right: -72px;
            z-index: -1;
            @include breakpoint(lg){
                background-color: #07A698;
                width: 100%;
                right: 0;
                opacity: 0.8;
            }
        }
        .shape{
            position: absolute;
            bottom: 0;
            right: 0;
        }
        .shape-2{
            position: absolute;
            bottom: -20px;
            left: 0;
            @include breakpoint(md){
                display: none;
            }
            img{
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }
    }
}

.hero-content.hero-content-6{
    padding: 200px 0 260px 0;
    @include breakpoint(md){
        padding: 150px 0;
    }
    @include breakpoint(sm){
        padding: 100px 0;
    }
    .section-heading{
        .section-title{
            color: var(--ed-color-common-white);
            @include breakpoint(xl){
                br{
                    display: none;
                }
            }
            @include breakpoint(lg){
                br{
                    display: block;
                }
            }
            @include breakpoint(sm){
                br{
                    display: none;
                }
            }
        }
    }
    .hero-btn-wrap{
        margin-bottom: 0;
        .video-btn{
            a{
                color: var(--ed-color-common-white);
            }
        }
    }
}


// Content CSS

.kid-content-section{
    padding-top: 75px;
}


// Service CSS

.service-section-6{
    position: relative;
    z-index: 1;
    .bg-shape{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}

.service-item-6{
    background-color: var(--ed-color-common-white);
    padding: 20px;
    border-radius: 15px;
    .service-thumb{
        height: 230px;
        border-radius: 15px;
        margin-bottom: 30px;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 15px;
        }
    }
    .service-content{
        .title{
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 15px;
        }
        p{
            margin-bottom: 15px;
        }
        .read-more{
            color: var(--ed-color-theme-primary);
            font-size: 16px;
            font-weight: 500;
            @include flex-vertical-center;
            column-gap: 5px;
            i{
                font-size: 14px;
                margin-top: 2px;
            }
        }
    }
}


// Course CSS

.course-item-6{
    .course-thumb{
        position: relative;
        img{
            transform: scale(1);
        }
        .join-btn{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            z-index: 2;
            @include transition(all 0.5s ease-in-out);
            a{
                background-color: var(--ed-color-common-white);
                font-size: 16px;
                font-weight: 600;
                padding: 10px 25px;
                border-radius: 100px;
                line-height: 1;
            }
        }
        .overlay{
            background-color: var(--ed-color-theme-primary);
            width: 0;
            height: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            @include transition(all 0.3s ease-in-out);
        }
    }
    .course-content{
        border-bottom: 0;
        margin-bottom: 10px;
    }
    &:hover{
        .course-thumb{
            .overlay{
                width: 100%;
            }
            img{
                transform: scale(1);
            }
            .join-btn{
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }
}

// Team CSS

.team-section-7{
    position: relative;
    z-index: 1;
    .bg-shape{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}

.team-item-6{
    height: 500px;
    position: relative;
    .team-thumb{
        height: 400px;
        border-radius: 15px;
        overflow: hidden;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
            border-radius: 15px;
            @include transition(all 0.3s ease-in-out);
        }
    }
    .team-content{
        background-color: var(--ed-color-common-white);
        width: 90%;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        padding: 35px 0;
        border-radius: 15px;
        .title{
            font-size: 22px;
            margin-bottom: 0;
        }
        span{
            color: var(--ed-color-text-body);
            font-weight: 400;
            display: block;
            margin-top: 5px;
        }
        .social-list{
            margin-top: 20px;
            li{
                display: inline-flex;
                &:not(:last-of-type){
                    margin-right: 5px;
                }
                a{
                    color: var(--ed-color-theme-primary);
                    height: 40px;
                    width: 40px;
                    border: 1px solid #E0E5EB;
                    border-radius: 50%;
                    @include flex-center;
                    &:hover{
                        background-color: var(--ed-color-theme-primary);
                        color: var(--ed-color-common-white);
                        border: 1px solid var(--ed-color-theme-primary);
                    }
                }
            }
        }
    }
    &:hover{
        .team-thumb{
            img{
                transform: scale(1.03);
            }
        }
    }
}


// Testi CSS

.testimonial-section-6{
    position: relative;
    z-index: 1;
    .bg-img{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}

.testi-carousel-4{
    padding-bottom: 100px;
    .swiper-pagination{
        bottom: 0;
        .swiper-pagination-bullet{
            background-color: transparent;
            height: 20px;
            width: 20px;
            border: 2px solid #E0E5EB;
            opacity: 1;
            border-radius: 50%;
            position: relative;
            &:before{
                background-color: var(--ed-color-theme-primary);
                content: "";
                height: 7px;
                width: 7px;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                border-radius: 50%;
                visibility: hidden;
                opacity: 0;
            }
            &.swiper-pagination-bullet-active{
                border: 2px solid var(--ed-color-theme-primary);
                &:before{
                    visibility: visible;
                    opacity: 1;
                }
            }
        }
    }
}

.testi-item-4{
    p{
        margin-bottom: 0;
    }
    .testi-bottom{
        @include flex-vertical-center;
        justify-content: space-between;
        column-gap: 20px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px dashed #E0E5EB;
        @include breakpoint(sm){
            flex-wrap: wrap;
            row-gap: 15px;
        }
        .testi-review{
            list-style: none;
            @include flex-vertical-center;
            li{
                color: #FFB539;
            }
        }
    }
}


// Event 2

.event-card-2{
    border: 1px solid #E3EAF3;
    grid-template-columns: 200px 1fr;
    @include breakpoint(sm){
        padding: 30px 20px;
        grid-template-columns: 1fr;
    }
    .event-thumb{
        height: 170px;
        max-width: 200px;
        width: 100%;
        @include breakpoint(sm){
            max-width: 100%
        }
    }
    .event-content{
        .event-list{
            @include flex-vertical-center;
            column-gap: 20px;
            margin: 0;
            margin-bottom: 0;
            margin-bottom: 10px;
            @include breakpoint(lg){
                flex-wrap: wrap;
                row-gap: 5px;
            }
            li{
                font-size: 14px;
            }
        }
        .event-bottom{
            @include flex-vertical-center;
            column-gap: 30px;
            @include breakpoint(lg){
                flex-wrap: wrap;
                row-gap: 10px;
            }
            .ed-primary-btn{
                padding: 15px 30px;
            }
            .event-author{
                @include flex-vertical-center;
                column-gap: 10px;
                .author-thumb{
                    height: 40px;
                    width: 40px;
                    img{
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: 50%;
                    }
                }
            }
        }
    }
}

// Register CSS

.register-wrap{
    background: var(--ed-color-common-white);
    box-shadow: 0px 8px 40px rgba(15, 27, 49, 0.12);
    border-radius: 10px;
    padding: 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    @include breakpoint(lg){
        padding: 80px 40px;
    }
    @include breakpoint(sm){
        padding: 50px 20px;
    }
    .shape{
        position: absolute;
        bottom: -20px;
        left: 56%;
        transform: translateX(-50%);
        z-index: -1;
    }
    .section-heading{
        position: relative;
        z-index: 5;
        .section-title{
            @include breakpoint(lg){
                font-size: 36px;
            }
            @include breakpoint(sm){
                font-size: 28px;
            }
            br{
                display: block;
            }
            span{
                color: var(--ed-color-theme-primary);
            }
        }
    }
    .register-img{
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        max-width: 576px;
        width: 100%;
        @include breakpoint(md){
            display: none;
        }
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
        }
    }
}


// Blog CSS

.blog-section-6{
    position: relative;
    z-index: 1;
    @include breakpoint(sm){
        background-color: #EBF2F2;
    }
    .bg-img{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
}

// Footer CSS

.footer-6{
    position: relative;
    z-index: 1;
    margin-top: -28px;
    @include breakpoint(md){
        padding-top: 100px;
        margin-top: -60px;
    }
    @include breakpoint(sm){
        padding-top: 70px;
        margin-top: 0px;
        background-color: #162726;
    }
    .bg-img{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        @include breakpoint(sm){
            display: none;
        }
    }
}

/* !END: Home 6 CSS */
