/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

/* common styles or utilities*/
html,body{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
}
body{
    font-family: 'Poppins', sans-serif;
    background-color: #F3F1FF;
}
main{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container{
    background-color: #FFFFFF;
    width: 870px;
    padding: 30px;
    margin-top: 21px;
    border-radius: 5px;
}
hr{
    border: 1px solid #D1D1D1;
    margin-bottom: 27px;
}
.purple-color{
    color: white;
}
/* top navigation bar styles */
nav{
    background-color: #3056d3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 1440px;
    height: 94px; 
}
.nav-logo, .nav-links{
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-logo img{
    width: 40.42px;
    height: 51px;
    padding-right: 20px;
}
.nav-logo p{
    color: white;
    font-size: 24px;
    margin: 0px;
}
.nav-links a{
    text-decoration: none;
    font-size: 16px;
    color: white;
    margin-right: 36px;
}
.nav-links a:hover{
    text-decoration: underline;
}
.nav-links img{
    width: 51px;
    height: 51px;    
}
/* top players style */
.top-players{
    margin-bottom: 30px;
}
.section-title{
    color: #3056d3;
    font-size: 24px;
    margin-top: 3px;
}
.players{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-row-gap: 30px;
}
.player{
    display: flex;
    align-items: center;
}
.player img{
    width: 56px;
    height: 56px;
}
.player a{
    text-decoration: none;
}
.player a:hover .player-name{
    color: #3056d3;
    text-decoration: underline;
    cursor: pointer;
}
.player-name{
    margin-left: 16px;
    font-size: 18px;
    color: #3056d3;
}

/* top blogs styles */
.blogs{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-row-gap: 26px;
}
.blog{
    display: flex;
}
.blog .thumbnail img{
    width: 177px;
    height: 117px;
    transition: width 0.2s linear 0s,height 0.2s linear 0s;
}
.blog .thumbnail img:hover{
    width: 200px;
    height: 140px;
}
.blog-info{
    margin-left: 16px;
}
.blog-title{
    font-size: 20px;
    
}
.blog-title:hover{
    color: #3056d3;
    text-decoration: underline;
    cursor: pointer;
}
.blog-author{
    color: #9F9F9F;
    font-size: 16px;
}
.blog-author a{
    text-decoration: none;
    color: #3056d3;
    font-size: 16px;
}
.blog-author a:hover{
    text-decoration: underline;
    color: tomato;
}

/* Courses Style */

.courses{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-column-gap: 24px; 
}
.course{
    text-align: center;
    box-shadow: 10px 10px 30px lightgray;
    padding: 20px;
    border-radius: 14px;
    transition: border 0.1s linear 0s;
}
.course:hover{
    border: 3px solid #3056d3;
}
.course .course-banner img{
    width: 224px;
    height: 104px;
}
.course-title:hover{
    color: #3056d3;
    text-decoration: underline;
    cursor: pointer;
}
.course-author:hover{
    text-decoration: underline;
    color: tomato;
}
.course-info{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fa-star{
    font-size: 12px;
}
.fa-star.filled{
    color: #FFC014;
}
.fa-star.empty{
    color: #AEAEAE;
    opacity: 0.25;
}
.course-info span{
    color: #A2A2A2;
}
.course-duration{
    padding: 5px 10px;
    color: #FF4A60;
    background: #FFE4E8;
    border-radius: 14.6913px;
    text-align: center;
    align-items: center;
}

/* footer styles */
footer{
    background-color: #3056d3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}
/* Media Queries */

/* Mobile Devices */
@media only screen and (max-width: 688px){
    nav{
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center;
    }
    .nav-logo, .nav-links {
        width: 100%;
        height: 100%;
    }
    .nav-logo{
        margin-top: 20px;
    }
    .nav-links{
        padding-top: 0px;
    }
    .nav-links img{
        margin-bottom: 10px;
    }
    .container{
        width: 75%;
    }
    .players, .blogs, .courses{
        grid-template-columns: repeat(1,1fr);
    }
    .player, .blog{
        flex-direction: column;
        justify-content: center;
    }
    .blog,.course, .section-title{
        text-align: center;
    }
    .course{
        margin-bottom: 40px;
    }
    footer{
        align-items: center;
    }
    footer p{
        font-size: 9px;
        text-align: center;
    }
   
}
/* Tablet Devices */
@media only screen and (min-width:689px) and (max-width: 1024px){
    nav{
        width: 100%;
        height: 100%;
        flex-direction: column;
        align-items: center;
    }
    .container{
        width: 100%;
    }
    .section-title{
        text-align: center;
    }
    .players{
        grid-template-columns: repeat(2,1fr);
    }
    .player{
        justify-content: center;
    }
    .blogs, .courses{
        grid-template-columns: repeat(1,1fr);
    }
    .blog{
        padding-left: 100px;
    }
    .courses{
        grid-row-gap: 40px;
    }
    .course{
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }
    footer p{
        font-size: 13px;
        text-align: center;
    }

    
}