/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,300&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arvo', serif;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* dark mode colors */
:root{
    --darkMode: #171923;
    --darkModeHover: #292B34;
    --darkContent: #191F2B;
    --greenColor: #38A169;
    --greenTwoColor: #9AE6B4;
    --greenTwoColorHover: rgba(154, 230, 180, 0.12);
    --blueColor: #3564B2;
    --whiteColor: #ffffff;
    --cardColor: #2D3748;

    /* shadows */
    --contentMainShadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;
    --contentShadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* light mode colors */
:root.active{
    --darkMode: #F7FAFC;
    --darkModeHover: #EDF2F7;
    --darkContent: #F7F7F7;
    --greenColor: #38A169;
    --greenTwoColor: #9AE6B4;
    --greenTwoColorHover: rgba(154, 230, 180, 0.12);
    --blueColor: #3564B2;
    --whiteColor: #191F2B;
    --cardColor: #fff;
}


body{
    background-color: var(--darkContent);
}

a{
    text-decoration: none;
    color: #5a5a5a;
}
img{
    width: 100%;
    cursor: pointer;
}

.btn{
    padding: 10px 50px;
    border-radius: 5px;
    border: none;
    background-color: var(--greenTwoColor);
    transition: .5s ease;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.btn:hover{
    background-color: var(--greenColor);
}

.flex-div{
    display: flex;
    align-items: center;
}

nav{
    padding: 13px 2%;
    justify-content: space-between;
    border-bottom: .5px solid rgb(120, 120, 120, .2);
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--darkMode);
    width: 100%;
}

.nav-right i{
    font-size: 20px;
    margin-right: 12px;
    padding: 10px 14px;
    border-radius: 5px;
    color: var(--whiteColor);
    cursor: pointer;
    transition: .5s ease;
}
.nav-right i:hover{
    background-color: var(--darkModeHover);
}

.nav-right .user-icon{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0;
}

.nav-left .menu-icon{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 15px;
    margin-right: 5px;
    background-color: var(--whiteColor);
}
.bars{
    color: var(--whiteColor);
    font-size: 15px;
    margin-right: 15px;
    padding: 7px 14px;
    border-radius: 5px;
    background-color: var(--darkModeHover);
}

.hidden{
    display: none;
}
.icon__hidden{
    display: none;
}

.nav-left .logo{
    width: 130px;
    color: var(--whiteColor);
}

/* -------------- sidebar styles -------------- */

.sidebar{
    background-color: var(--darkMode);
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    /* padding-left: 2%; */
    padding-top: 100px;
    z-index: 1;
}

.shortcut-links a i{
    font-size: 20px;
    margin-right: 20px;   
}

.shortcut-links a{
    display: flex;
    align-items: center;
    width: fit-content;
    flex-wrap: wrap;
    color: var(--whiteColor);
}

.sidebar__link{
    padding: 15px 10px;
    margin: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}
.sidebar__link.active{
    background-color: var(--darkModeHover);
}

.sidebar__link:hover{
    background-color: var(--darkModeHover);
}
.sidebar__link a{
    font-size: 1.3rem;
    font-weight: 700;
}


/* ---------------- main styles ---------------- */

.container{
    position: relative;
    padding-left: 30%;
    padding-right: 2%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.content__box{
    width: 100%;
    min-height: 300px;
    /* background: url('/images/thumbnail1.png') no-repeat; */
    background-size: cover;
    box-shadow: var(--contentMainShadow);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 50px;
    position: relative;
    transition: .5s ease;
}

.content__close-icon{
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 2rem;
    color: var(--greenColor);
    cursor: pointer;
}

.content__title{
    color: var(--whiteColor);
    font-weight: 600;
    font-size: 2.3rem;
}

.content__title span{
    color: var(--greenColor);
}

.parag__info{
    margin-top: 25px;
    line-height: 25px;
    color: var(--whiteColor);
    font-weight: 600;
}
.parag__info span{
    color: var(--greenColor);
}
.parag__info a{
    color: var(--blueColor);
}

.large-container{
    padding-left: 7%;
}

.list-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    column-gap: 16px;
    row-gap: 30px;
    margin-top: 15px;
}

@media (max-width: 1024px){
    .sidebar{
        width: 300px;
        transition: .4s ease-in-out;
        left: -100%;
    }
    .add{
        left: 0;
    }
    .container, .large-container{
        padding-left: 5%;
        padding-right: 5%;
    }
    .nav-right .user-icon{
        display: block;
    }
    .hidden{
        display: block;
    }
    .message__icon{
        display: none;
    }
}


/* ----------------- cources page styles ----------------- */

hr{
    border: 1px solid rgba(119, 255, 153, 0.04);
}

.card__content{
    height: 370px;
    padding: 20px;
    border-radius: 7px;
    background-color: var(--cardColor);
    box-shadow: var(--contentShadow);
}

.card__img-box{
    width: 100%;
    height: 200px;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.card__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new{
    position: absolute;
    padding: 1px 8px;
    font-size: .8rem;
    color: white;
    border-radius: 5px;
    background-color: #26674B;
    top: 6px;
    right: 6px;
    font-weight: 300;
}

.card__title{
    color: var(--whiteColor);
    text-align: center;
    margin: 20px 0;
}

.card__footer{
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(119, 255, 153, 0.04);
}
.card__footer.remove__border{
    border: none;
}

.card__footer-left{
    display: flex;
    align-items: center;
}

.card__footer-left a{
    padding: 5px 15px;
    border: 1px solid var(--greenTwoColor);
    color: var(--greenTwoColor);
    background-color: transparent;
    transition: .5s ease;
    border-radius: 7px;
}
.card__footer-left:hover a{
    background-color: var(--greenTwoColorHover);
}
.card__footer-right{
    color: var(--whiteColor);
}


/* ----------------- cource page style ------------------ */

.cource__box{
    background-color: var(--cardColor);
    box-shadow: var(--contentShadow);
    position: relative;
}

.course__content{
    width: 59%;
    /* width: 100%; */
}

.cource__title{
    color: var(--whiteColor);
    margin-top: 10px;
    margin-bottom: 10px;
}

.cource__subtitle{
    color: var(--whiteColor);
    font-weight: 400;
}

.stars__box{
    margin-top: 15px;
    color: var(--whiteColor);
}

.cource__card{
    min-height: 370px;
    padding: 20px;
    border-radius: 7px;
    background-color: var(--darkContent);
    margin-top: 30px;
    border: 1px solid rgba(119, 255, 153, 0.04);
    
    /* kichrayganda o'zgaradigan hususiyatlar */
    position: absolute;
    right: 5px;
    top: 5px;
    width: 39%;
    box-shadow: var(--contentMainShadow);
}

.price{
    color: var(--whiteColor);
    font-size: 1.3rem;
}

.watching__cource{
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: var(--greenTwoColor);
    border: 1px solid var(--greenTwoColor);
    border-radius: 5px;
    color: var(--darkContent);
    transition: .5s ease;
}

.watching__cource:hover{
    background-color: var(--greenColor);
    border: 1px solid var(--greenColor);

}

/* course body styles */

.page__content{
    min-height: 200px;
}

.course__nav-list{
    display: flex;
    align-items: center;
    justify-content: center;
}

.course__nav-links{
    border-bottom: 2px solid #5a5a5a;
    width: 100%;
    text-align: center;
    line-height: 50px;
    margin-bottom: 30px;
}

.course__nav-links.active{
    border-bottom: 2px solid var(--greenColor);
    width: 100%;
    text-align: center;
}
.course__nav-links.active .course__nav-link{
    color: var(--greenColor);
}

.course__nav-link{
    color: var(--whiteColor);
}

.course__info h1, .course__info p{
    color: var(--whiteColor);
}

.course__subtitle{
    margin-top: 20px;
    display: flex;
    align-items: center;
    column-gap: 15px;
}
.course__subtitle i{
    font-size: 10px;
}

.course__learn{
    margin-top: 40px;
}

.list__learn{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-right: 15%;
}

.learn__left p i{
    margin-right: 15px;
    font-size: 10px;
}


.page__footer{
    background-color: var(--darkMode);
    padding: 20px;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding-left: 27%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: -200px;
}

.page__footer-left{
    text-align: center;
    color: var(--whiteColor);
    margin: 5px 0;
}

.social__links{
    display: flex;
    align-items: center;
    column-gap: 20px;
}
.social__link{
    background-color: var(--darkModeHover);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--whiteColor);
    transition: .5s ease;
}

.social__link:hover{
    background-color: var(--cardColor);
}

/* ------------ video accordion styles -------------- */
.accordion__vids{
    list-style: none;
}

.accordion__vids h1{
    color: var(--whiteColor);
}

.accordion__vids p{
    display: flex;
    align-items: center;
    column-gap: 20px;
    color: var(--whiteColor);
}

.accordion__vids p i{
    font-size: 10px;
    color: var(--whiteColor);
}

.accordio__vid{
    margin: 20px 0;
    cursor: pointer;
}

.accordion__v{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--cardColor);
    color: var(--whiteColor);
    padding: 20px;
    cursor: pointer;
    border-radius: 5px;
}

.accordion__content{
    max-height: 0;
    overflow: hidden;
    transition: all .4s ease-in;
}

.accordion__content-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--darkContent);
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
}

.accordion__content-item-left{
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.accordion__content-title, .accordion__content-item-time{
    color: var(--whiteColor);
}
.accordion__content-item-time{
    text-decoration: underline;
}
.accordion__content-title.active, .accordion__content-item-time.active{
    color: var(--greenColor);
}

.accordion__input{
    display: none;
}

.accordion__input:checked + .accordion__content{
    max-height: 400px;
}
.down__icon {
    transform: rotate(180deg);
}


@media (max-width: 1024px){
    .course__content{
        width: 100%;
    }
    .cource__card{
        /* kichrayganda o'zgaradigan hususiyatlar */
        position: relative;
        width: 100%;
        box-shadow: var(--contentShadow);
        top: 0;
        right: 0;
    }
    .page__footer{
        padding-left: 5%;
        padding-right: 5%;
        justify-content: center;
        flex-direction: column;
    }
}


/* ----------------- video styles ----------------- */

/* ----------------- video page ----------------- */

.play-container{
    padding-left: 2%;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* main video section */

.play-video{
    flex-basis: 65%;
}

.play-video video{
    padding: 18px;
    background-color: var(--cardColor);
    border-radius: 5px;
    width: 100%;
}

.play-video iframe{
    padding: 18px;
    background-color: var(--cardColor);
    border-radius: 5px;
    width: 100%;
    height: 100%;
    border: none;
}

.play-video h3{
    font-size: 2rem;
    color: var(--whiteColor);
    margin: 12px 0;
}
.play-video hr{
    margin-bottom: 25px;
}

/* main video section */

/* right sidebar styles */
.right-sidebar{
    flex-basis: 32%;
    padding: 18px;
    height: 80vh;
    background-color: var(--darkMode);
    border-radius: 5px;
    overflow-y: scroll;
}
.right-sidebar::-webkit-scrollbar{
    display: none;
}

/* -------------- Contact page styles -------------- */

.contact__title{
    color: var(--greenColor);
}
.contact__subtitle{
    color: var(--whiteColor);
    font-weight: 400;
}

.form__box{
    display: flex;
    align-items: center;
    gap: 20px;
    column-gap: 50px;
    min-height: 450px;
    padding: 20px;
    border-radius: 7px;
    background-color: var(--cardColor);
    box-shadow: var(--contentShadow);
    overflow: hidden;
}

.form__content{
    width: 50%;
}
.form__icons{
    width: 40%;
    font-size: 17.5rem;
    color: #718096;
}

.input__box{
    display: flex;
    flex-direction: column;
}

.input__box label{
    color: var(--whiteColor);
    margin-top: 15px;
    margin-bottom: 10px;
}

.input__box input, .input__box textarea{
    padding: 15px;
    background-color: transparent;
    border: 1px solid rgb(72, 82, 100);
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    color: var(--whiteColor);
}
.input__box input{
    max-width: 100%;
}
.input__box input:focus, .input__box textarea:focus{
    border: 1px solid var(--greenColor);
}

::placeholder{
    color: #5E6472;
}

.input__box textarea{
    resize: vertical;
}

.form__content .btn{
    margin-top: 30px;
    color: var(--darkMode);
}


@media (max-width: 900px){
    .play-video{
        flex-basis: 100%;
    }
    .right-sidebar{
        flex-basis: 100%;
    }
    .play-container{
        padding-left: 5%;
    }
    .form__icons{
        display: none;
    }
    .form__content {
        width: 100%;
    }
    .mentor__avatar-box{
        display: none;
    }
}

/* --------------------- Sharhlar styles --------------------- */

.comment__box{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    column-gap: 20px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.user__icons{
    width: 15%;
}

.user__icon-box{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.user__icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user__name{
    font-size: 1.2rem;
    color: var(--whiteColor);
}

.user__name span{
    font-weight: 300;
    font-size: 1rem;
    margin-left: 5px;
}

.user__stars{
    margin-top: -5px;
}
.user__star{
    color: gold;
    font-size: .7rem;
}

.user__message{
    margin-top: 10px;
    font-weight: 400;
    line-height: 25px;
    margin-bottom: 10px;
}

.comment__btn{
    display: block;
    margin: 30px auto 0 auto;
    background-color: transparent;
    border: 1px solid var(--greenTwoColor);
    color: var(--greenTwoColor);
    padding: 5px 12px;
}

.comment__btn:hover{
    background-color: rgb(119, 215, 140, 0.1);
}


/* ------------------ mentor styles ------------------ */

.mentors{
    display: flex;
    align-items: flex-start;
    column-gap: 20px;
}

.mentor__avatar-box{
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.mentor__avatar{
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--whiteColor);
}

.mentor__name, .mentor__subtitle{
    font-size: 1.2rem;
    color: var(--whiteColor);
    font-weight: 600;
}
.mentor__subtitle{
    font-weight: 400;
    font-size: 1rem;
}

.mentor__comments{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mentor__comment{
    display: flex;
    align-items: center;
    column-gap: 5px;
    margin-top: 10px;
}

.mentor__comment i{
    color: var(--greenColor);
    font-size: 1.2rem;
}

.mentor__infos{
    margin-top: 20px;
}

.mentor__info{
    font-weight: 400;
    margin: 20px 0;
}

.mentor__info span{
    color: var(--greenColor);
    font-weight: 600;
}




@media (max-width: 390px){
    .mentor__comments{
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
    }
}