/* Start Main Rules */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul,p,a,li{
    margin-bottom: unset;
}

.modal-header .close{
    margin: 0;
    padding: 0;
}

.modal-header{
    flex-direction: row-reverse;
}

.success{
    background: #2db12d;
    font-weight: 600;
}

.no-radius{
    border-radius: 0 !important;
}

.table-container{
    overflow: auto;
}

.flex-r-r{
    flex-direction: row-reverse;
}

.flex-c-r{
    flex-direction: column-reverse;
}

:root {
    --primary: #0C2C4A;
    --secondry: #A8905D;
}


body{
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary);
    position: relative;
}

.block {
    display: block !important;
}

html {
    scroll-behavior: smooth;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}


/* Medium */

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}


/* Large */

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}



.btn{
    border: none;
    padding: 10px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    border: 1px solid var(--primary);
    transition: 0.5s;
}

.btn:hover{
    background: var(--secondry);
    color: white;
    border: 1px solid var(--primary);
}

.btn-secondry{
    border: none;
    padding: 10px;
    border-radius: 10px;
    background: var(--secondry);
    color: white;
    cursor: pointer;
    border: 1px solid var(--secondry);
    transition: 0.5s;
}

.btn-secondry:hover{
    background: var(--primary);
    color: var(--secondry);
    border: 1px solid var(--secondry);
}


.btn.sm{
    display: none;
}

.text-15{
    font-size: 15px;
}


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

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


/* End Main Rules */




/* Start Header */

    header{
        width: 100%;
        height: 70px;
        background-color: var(--secondry);
        position: relative;
    }


    header .logo{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .logo img{
        width: 130px;
    }

    header nav{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    header nav .btns{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    header nav .search form{
        width: 270px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header nav .search button{
        border-radius: 10px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header nav .search input{
        height: 36px;
        padding: 8px;
        border-radius: 10px;
        border: none;
        padding-left: 25px;
        width: 100%;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    header .btns b.btn{
        border-radius: 50%;
    }

    .flexed {
        display: flex;
    }

    .hidden{
        display: none;
    }

    header .menu{
        /* display: flex; */
        justify-content: space-between;
        flex-direction: row;
        gap: 60px;
        right: 0;
    }

    header .menu ul{
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 25px;
        flex-direction: row;
    }

    header .menu ul li a{
        color: white;
        text-decoration: none;
        /* font-size: 17px; */
        transition: 0.5s;
    }


    header .menu ul li a:hover{
        color: var(--primary);
        border-bottom: 1px solid var(--primary);
    }

    .mobile-menu{
        display: none;
        cursor: pointer;
    }



/* End Header */




section.join{
    width: 100%;
    height: 40px;
    border-top: 1px solid var(--primary);
    /* position: absolute;
    top: calc(70px + 15px);
    z-index: 111;
    padding-bottom: 20px; */
    padding: 30px 10px;
    padding-left:120px;
    background-color: var(--secondry);
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

section.join .join_btns{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    flex-basis: 30%;
    flex-direction: row-reverse;
}

section.join .news{
    display: flex;
    flex-basis: 70%;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
}

section.join .news marquee{
    box-shadow: -1px 1px 1px #0a253fab, 2px 0px 1px #0a253fab, -1px 2px 1px #0a253fab, -1px -1px 1px #0a253fab;
    padding: 7px;
    background: #0a253f;
    border-radius: 7px;
    color: white;
}

section.join .news .alert-icon{
    padding-left: 10px;
    display: flex;
    justify-content: center;
    font-size: 30px;
    align-items: center;
    color: #0a253f;
}

section.join .btn{
    background-color: var(--primary);
    color: white;
    padding: 7px;
    transition: 0.5s;
    border: none;
}

section.join .btn:hover{
    background-color: var(--secondry);
}

/* Start Landing */

section.landing{
    height: calc(calc(100vh + 110px));
    position: relative;
    padding-top: 30px;
}

section.landing .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}


section.landing .image{
    padding-top: 80px;
    width: 50%;
}

section.landing .image img{
    max-width: 100%;
}




section.landing .text
{
    width: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap:45px;
}


section.landing .text bdi{
    font-weight: bold;
    color: var(--secondry);
}

section.landing .text button{
    width: 400px;
}

section.landing video{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    pointer-events: none;
}

/* End Landing */


/* Start Courses */

    section.courses_container{
        width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 40px;
    }

    section.courses_container h1{
        color: white;
        direction: rtl;
        margin-bottom: 40px;
    }

    section.courses_container .courses .title{
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 20px;
        text-overflow: ellipsis;
        padding-left: 20px;
    }

    section.courses_container .courses .instructor{
        color: white;
        padding-left: 20px;
    }

    section.courses_container .courses .data{
        width: 245px;
        height: 155px;
        color: var(--primary);
        border: 1px solid #5e533a;
        padding: 10px;
        direction: rtl;
        background-color: var(--secondry);
        padding-bottom: 30px;
        overflow: hidden;
        border-bottom-left-radius: 7px;
        border-bottom-right-radius: 7px;
    }

    section.courses_container .courses .data a{
        color: var(--primary);
        text-decoration: none;
        transition: 0.5s;
    }

    section.courses_container .courses .data a:hover{
        color: #0b4881;
    }



    section.courses_container .courses .image{
        width: 245px;
        height: 150px;
        position: relative;
        overflow: hidden;
        border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    }

    section.courses_container .courses .image.purchased::before{
        color: white;
        line-height: 160px;
        text-align: center;
        content: "Purchased";
        width: 60%;
        height: 100%;
        background: #3c8530cf;
        position: absolute;
        transform-origin: top left;
        top: 0;
        left: -27px;
        transform: skewX(10deg);
    }

    section.courses_container .courses .image.owned::before{
        color: white;
        line-height: 160px;
        text-align: center;
        content: "Owned";
        width: 60%;
        height: 100%;
        background: #313085cf;
        position: absolute;
        transform-origin: top left;
        top: 0;
        left: -27px;
        transform: skewX(10deg);
        -webkit-transform: skewX(10deg);
        -moz-transform: skewX(10deg);
        -ms-transform: skewX(10deg);
        -o-transform: skewX(10deg);
}
    section.courses_container .courses .image img{
        width: 100%;
        height: 100%;
    }

    div.row.c_container{
        width: 100%;
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 40px;
    }
    div.row.c_container h1{
        color: white;
        direction: rtl;
        margin-bottom: 40px;
    }

    div.row.c_container  .title{
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 20px;
        text-overflow: ellipsis;
    }

    div.row.c_container  .instructor{
        color: white;
    }

    div.row.c_container  .data{
        width: 245px;
        height: 155px;
        color: var(--primary);
        border: 1px solid #5e533a;
        padding: 10px;
        direction: rtl;
        background-color: var(--secondry);
        padding-bottom: 30px;
        overflow: hidden;
    }

    div.row.c_container .data a{
        color: var(--primary);
        text-decoration: none;
        transition: 0.5s;
    }

    div.row.c_container  .data a:hover{
        color: #0b4881;
    }



    div.row.c_container  .image{
        width: 245px;
        height: 145px;
    }

    div.row.c_container  .image img{
        width: 100%;
        height: 100%;
    }




    section.course_header{
        /* margin-top: 40px; */
        margin-bottom: 40px;
        background: #153e64;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    section.course_header .container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    section.course_header .category_tree{
        font-size: 18px;
    }

    section.course_header .title{
        font-weight: bold;
        font-size: 30px;
    }

    section.course_header .description{
        font-size: 18px;
    }

    section.course_header .text{
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
        max-width: 650px;
    }

    section.course_header .text .btns{
        display:flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    section.course_header .text .btns .btn{
        background-color: var(--secondry);
        color: white;
        display:flex;
        justify-content: space-between;
        align-items: center;
        gap: 7px;
        position: relative;
    }



    section.course_header .text .btns .btn:hover{
        background-color: var(--primary);
        color: white;
    }

    section.course_header .box .image{
        width:100%;
        max-height: 250px;
    }
    section.course_header .box img{
        width: 100%;
        height: 200px;
        max-height: 100%;
    }

    section.course_header .box .enroll{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    section.course_header .box .enroll a{
        width: calc(100% - 40px);
        text-decoration: none;
        border: none;
    }

    section.course_header .box .enroll .btn{
        width: 100%;
        cursor: pointer;
    }

    section.course_header .box .enroll .btn:hover{
        color: white;
    }

    section.course_header .box{
        background-color: white;
        width: 350px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 30px;
    }

    section.course_header .box .info h5{
        font-weight: bold;
        padding-left: 15px;
    }

    section.course_header .box .info{
        /* padding-left: 20px; */
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    section.course_header .box .info .price i{
        color: var(--primary);
    }

    section.course_header .box .info .price{
        padding-left: 15px;
        font-size: 20px;
        /* font-weight: bold; */
        font-family: udemy sans,-apple-system,BlinkMacSystemFont,Roboto,segoe ui,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
        text-align: left;
        width: calc(100% - 30px);
    }


    section.course_header .box .info hr{
        margin: 0;
    padding: unset;
    background: var(--primary);
    margin-left: auto;
    width: calc(100% - 30px);
    margin-right: auto;
    }

    section.course_header .box .info .info_container{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
        gap:5px
    }

    section.course_header .box .info .info_container div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 15px;
    }

    section.course_header .box .info .info_container div i{
        width: 40px;
        text-align: center;
    }




    section.course_content{
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    section.course_content .container{
        color: white;
    }

    section.course_content  h2{
        text-align: center;
        margin-bottom:20px;
    }

    section.course_content .content{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-flow: row wrap;
        background-color: var(--secondry);
        max-width: 900px;
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 5px;
        box-shadow: -8px 5px 9px var(--primary);
        gap: 10px;
    }


    section.course_content .content div{
        width:calc(50% - (2.4rem/2));
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex-direction: row-reverse;
    }




    section.instructor{
        color: white;
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
        border-top: 1px solid #1f5d97;
        border-bottom: 1px solid #1f5d97;
    }


    section.instructor h2:first-child{
        font-weight: bold;
        text-decoration: underline;
    }


    section.instructor h3{
        font-weight: bold;
    }


    section.instructor img{
        border-radius: 50%;
        width: 200px;
        height: 200px;
        margin: 20px 0;
        filter: drop-shadow(1px 0px 6px var(--secondry));
    }


    section.instructor .data{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    section.instructor .data .info{
        max-width: 30%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    section.instructor .data .about
    {
        width: 70%;
    }





    .resources{
    margin-top: 50px;
    margin-bottom: 50px;
    }

    .resources .collapse{

        background: #113f6a;
        border: 1px solid #ffffff42;

    }

    .resources .card{
        margin-bottom: 10px;
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .resources .card-body{
        background-color: #113f6a;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: space-between;
        align-items: flex-start;
        color: white;
    }

    .resources .card-body a{
        color: white;
        text-decoration: underline;
    }

    .resources .card-header{
        background-color: var(--secondry);
    }

    .resources .card-header h5 a{
        color: white;
        text-decoration: none;
    }




    .exams-container table,
    .live-sessions-container table
    {
        background-color: white;
        color: var(--primary);
    }

    .exams-container table th,
    .live-sessions-container table th{
        color: var(--primary);
        font-weight: bold;
    }


    .enter-exam{
        margin-top: 150px;
    }

    .enter-exam .card{
        background-color: white;
        color: var(--primary);
    }

    .wait-room-container,
    .result-container,
    .exams-container,
    .live-sessions-container,
    .con{
        margin-top: 50px;
    margin-bottom: 50px;
    }

    .search-btn{
        padding: 0.375rem 0.75rem !important;
    }

    #textLanding h1,
    #textLanding p{
        text-align: center;
    }


/* End Courses */




/* Start Footer */

    footer{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px;
        background-color: var(--secondry);
        /* position: fixed;
        bottom: 0;
        width:100%; */
    }






    footer p{
        color: white;
    }

/* End Footer */







@media(max-width:870px){
    section.courses_container .courses .image,
    section.courses_container .courses .data{
        width: 300px;
    }
}

@media(max-width:770px){
    section.courses_container .courses .image,
    section.courses_container .courses .data{
        width: 260px;
    }
}


@media(max-width:630px){

    section.courses_container .courses .course{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    section.courses_container .courses .image,
    section.courses_container .courses .data{
        width: 300px;
    }
}






@media(max-width:1200px){

    header .container{
        position: relative;;
    }
    header .menu{
        /* display: none; */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        background-color: var(--secondry);
        z-index: 2;
        gap: 30px;
    }

    header .menu ul{
        gap: 0;
        flex-direction: column;
    }

    header .menu ul li{
        width: 100%;
        text-align: center;
        background: var(--secondry);
        padding: 20px;
        border-bottom: 1px solid var(--primary);
        cursor: pointer;
        transition: 0.5s;
    }

    header .menu ul li:hover{
        background-color: var(--primary);
        color: var(--secondry);
    }


    header nav .search form{
        width: 100%;
        justify-content: center;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--primary);
    }

    header nav .search input{
        width: 350px;
    }


    header nav .btns{
        justify-content: center;
        margin-bottom: 25px;
    }

    header .btns b.btn{
        width: 200px;
        border-radius: 5px;
        text-align: center;
    }


    .mobile-menu{
        display: flex;
    }

    .mobile-menu i{
        color: var(--primary);
        font-size: 22px;
    }
    .mobile-menu:hover i{
        color: #695833;
    }

    .btn.sm{
        display: flex;
    }

    .btn.logout{
        display: none;
    }
}


@media(max-width:991px){
    section.course_header .container{
        flex-direction: column;
        gap: 50px;
    }

    section.course_header .box,
    section.course_header .text{
        width: 100%;
    }
}


@media(max-width:767px){
    section.landing{
        height: calc(100vh + 110px);
    }

    section.landing .container{
        flex-direction: column;
    }

        header nav {
            gap: 380px;
        }

        section.join{
            padding: 0;
            padding-top: 10px;
            justify-content: center;
        }

        #textLanding h1,
        #textLanding p{
            text-align: center;
        }

        section.course_content .content{
            flex-direction: column;
            gap: 10px;
        }

        section.course_content .content div{
            width:100%
        }



}


 @media(max-width:693px){
    header nav{
        gap: 290px;
    }
}

@media(max-width:590px){
    header nav{
        gap: 200px;
    }

    header nav .search input{
        width:290px
    }

    section.join{
        height: 100px;
        flex-direction:column;
        justify-content:center;
        align-items:center
    }
    .btn.sm{
        display: none;
    }

    .btn.logout{
        display: flex;
    }
}

@media(max-width:480px){
    header nav{
        gap: 120px;
    }
    section.landing .text h1{
        font-size: 30px;
    }

    header nav .search input{
        width:220px
    }
}

@media(max-width:405px){
    header nav{
        gap: 100px;
    }

    section.landing .text button {
        width: 260px !important;
    }
}

@media(max-width:360px){
    section.landing .text h1{
        font-size: 25px;
    }

    header nav .search input{
        width:195px
    }
}


@media(max-width:277px){
    section.landing .text p,
    section.landing .text h1{
        text-align: center;
    }
}



@media(max-width:991px){
    section.instructor .data{
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    section.instructor .data .info{
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    section.instructor .data .info h5{
        font-size: 18px;
    }


    section.instructor .data .info h3{
        font-size: 23px;
    }
}

/* .question h1,
.question h2,
.question h3,
.question h4,
.question h5,
.question h6,
.question p,
.question span,
.question div {
    direction: rtl;
}
 */


.options .form-group{
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.chat-btn-notification{
    position: relative;
}

.chat-btn-notification::after{
    content: "";
    width: 15px;
    height: 15px;
    background: #00ff43;
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
}


.blog .container,
.blog .posts .post .meta{
    flex-direction: row;
}
