@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&family=Poppins:wght@400;700;900&display=swap');

*{
    padding: 0;
    margin: 0;
}

body{
    background-color: rgb(240, 240, 240);
}

header{
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: white;
    box-shadow: 2px 2px 15px rgb(240, 240, 240);
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 90px;
}

.left-nav{
    display: flex;
    justify-content: center;
    align-items: center;
}

.opcl{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    display: none;
}

.left-nav img{
    width: 150px;
    height: auto;
}

.right-nav{
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-nav ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin-left: 25px;
}

.right-nav ul li a{
    color: black;
    text-decoration: none;
    font-family: "poppins";
    transition: all ease-in .3s;
}

.right-nav ul li a:hover{
    color: #ffa213;
}

/* Main  Start*/

main{
    width: 95%;
    height: auto;
    background-color: white;
    margin: 25px auto;
    padding: 15px;
    display: flex;
    justify-content: start;
    align-items: start;
    border-radius: 5px;
    flex-direction: column;
}

main h1{
    font-family: 'Josefin Sans', sans-serif;
}

.courses-box{
    margin-top: 25px;
    gap: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.course{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    width: 250px;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    transition: all ease-in-out .3s;
    border: 1px solid rgb(225, 225, 225);
}

.course:hover{
    transform: translateY(-10px);
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.course .price{
    position: absolute;
    right: 15px;
    z-index: 100;
    top: 15px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    border-radius: 5px;
}

.course img{
    border-radius: 5px;
    width: 100%;
    height: auto;
}

.course h3{
    font-family: 'Josefin Sans', sans-serif;
    margin-top: 10px;
}

.course p{
    font-family: "poppins";
    margin-top: 5px;
    
}

.course a{
    text-decoration: none;
    font-size: 16px;
    width: 87%;
    padding: 10px 15px;
    background: #ffa213;
    border-radius: 5px;
    margin-top: 5px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all ease-in-out .3s;
    /* box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.2),
                inset 2px 2px 6px white; */
}

.course a:hover{
    background-color: white;
    color: #ffa213;
}

/* Main END */

/* Footer START */

footer{
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 90px;
    background-color: white;
    box-shadow: -2px -2px 15px rgb(240, 240, 240);
}

.left-footer{
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-footer ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-footer ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin-left: 25px;
}

.left-footer ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-decoration: none;
    font-family: "poppins";
    transition: all ease-in .3s;
    font-size: 25px;
}

.left-footer ul li a:hover{
    color: #ffa213;
}

.right-footer{
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-footer img{
    width: 150px;
    height: auto;
}

/* Footer END */

/* Extra Classes */

.main-color{
    color: #ffa213;
}

.main-color-bg{
    background: rgb(255,215,156);
    background: linear-gradient(0deg, rgba(255,215,156,1) 0%, rgba(255,190,93,1) 100%);
}

/* Media */

@media (max-width: 980px){
    .courses-box{
        flex-direction: column;
    }
}

@media (max-width: 953px){
    main{
        flex-direction: column;
        width: 80%;
    }
}

@media (max-width: 850px) {
    nav{
        padding: 10px 45px;
    }
    .opcl{
        display: block;
        margin-right: 5px;
    }
    #close{
        display: none;
        width: 25px;
        height: 25px;
    }
    #open{
        display: block;
        width: 25px;
        height: 25px;
    }
    .right-nav{
        z-index: -1;
        width: 90%;
        position: absolute;
        top: -250px;
        left: 0;
        margin: auto;
        right: 0;
        border-radius: 7px;
        box-shadow: 0 0 2px rgb(0 , 0, 0, 0.2);
        background-color: white;
        transition: all ease-in-out .5s;
        flex-direction: column;
        padding: 25px;
    }
    .right-nav ul{
        flex-direction: column;
        gap: 20px;
    }
    .right-nav ul li{
        margin: 0px;
    }
    footer{
        padding: 10px 45px;
    }
}


@media (max-width: 500px){
    footer{
        padding: 10px 25px;
    }
}


@media (max-width: 445px){
    footer{
        flex-direction: column;
        gap: 5px;
    }
}

