*{
    padding: 0px;
    margin: 0%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: 'Ysabeau Infant', sans-serif;
}
.header{
    width: 100%;
    height: 70vh;
    background-image: url(bannerimg3.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 100px;
}
.headerrap{
    width: 100%;
    height:70vh;
    position: relative;
    background-color: rgba(4,9,30,0.7);
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
.grid{
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 20px;
}
.grid h1{
    font-size: 25px;
    color: #fff;
    padding: 10px;
    text-transform: capitalize;
}
#logo{
    width: 70px;
    height: 8vh;
    border-radius: 50%;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #f44334;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    text-align: center;
    padding-top: 20vh;
    padding-left: 100px;
}
.text-box h1{
    font-size: 52px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
#btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 20px;
    font-size: 13px;
    background: transparent;
    position: relative;
}
#btn:hover{
    border: 1px solid #f44334;
    background: #f44334;
    transition: 0.8s;
}

/* course */

.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.course h1{
    font-size: 36px;
}
.course p{
    color: #777;
    font-size: 14px;
    line-height: 22px;
}
.row{
    width: 80%;
    margin: auto;
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.course-col{
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    flex-basis: 30%;
    transition: 0.5s;
}
h3{
    text-align: center;
    margin: 10px;
}
.course-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}


 /*    trending subjects    */

 .subject{
    width: 100%;
    margin-top: 50px;
  }
  .subject h1{
    text-align: center;
    text-transform: uppercase;
  }
  #big-font{
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 60px;
  }
  .sub{
    width: 100%;
  }
  .sub-rap{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-column-gap: 30px;
    grid-row-gap: 30px;
  }
.box{
    background-image: url(cat-1.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box{
    transition: 0.6s;
}
.box:hover{
    transform: scale(1.2);
}
.box2{
    background-image: url(cat-2.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box2{
    transition: 0.6s;
}
.box2:hover{
    transform: scale(1.2);
}
.box3{
    background-image: url(cat-3.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box3{
    transition: 0.6s;
}
.box3:hover{
    transform: scale(1.2);
}
.box4{
    background-image: url(cat-4.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box4{
    transition: 0.6s;
}
.box4:hover{
    transform: scale(1.2);
}
.box5{
    background-image: url(cat-5.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box5{
    transition: 0.6s;
}
.box5:hover{
    transform: scale(1.2);
}
.box6{
    background-image: url(cat-6.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box6{
    transition: 0.6s;
}
.box6:hover{
    transform: scale(1.2);
}
.box7{
    background-image: url(cat-7.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box7{
    transition: 0.6s;
}
.box7:hover{
    transform: scale(1.2);
}
.box8{
    background-image: url(cat-8.jpg);
    width: 100%;
    height: 30vh;
    border-radius: 10px;
}
.box8{
    transition: 0.6s;
}
.box8:hover{
    transform: scale(1.2);
}
.box-rap{
    background-color: rgba(4,9,30,0.7);
    height: 30vh;
    border-radius: 10px;
}
.box-rap h3{
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding-top: 80px;
    text-transform: capitalize;
}
.box-rap p{
    color: #fff;
    font-size: 15px;
    text-align: center;
}
.zoom{
    overflow: hidden; 
    border-radius: 10px;
}

/* popular courses */

.parent-container{
    width: 100%;
}
.parent-container h1{
    text-align: center;
    font-size: 25px;
    color: #f44336;
    text-transform: uppercase;
    margin-top: 60px;
}
.parent-container p{
    text-align: center;
    font-size: 25px;
}
.parentrap-container{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-top: 60px;
}
.image-box{
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.image-box img{
    width: 100%;
    height: 30vh;
    transition: 0.6s;
}
.image-box img:hover{
    transform: scale(1.1);
}

#color{
    color: #f44336;
}
.small-box{
    height: 32vh;
    background-color: #f2f1f8;
    padding: 20px;
    margin-top: -4px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
#gap{
    margin-right: 10px;
}
.small-box p{
    opacity: 0.9;
    font-size: 20px;
}

.small-box h1{
    font-size: 20px;
    padding-bottom: 30px;
    transition: 0.6s;
    color: black;
}
.small-box a{
    text-decoration: none;
}
.small-box h1:hover{
    color: tomato;
}
    


/* banner */

.ban{
    width: 80%;
    margin: auto;
    background-image: url(bannerimg2.png);
    background-size: cover;
    background-repeat: no-repeat;
    height: 50vh;
    margin-top: 100px;
    margin-bottom: 100px ;
    border-radius: 10px;
}
.banrap{
    width: 100%;
    height: 50vh;
    background-color: rgba(4,9,30,0.7); 
    border-radius: 10px;
}
.box-1{
    padding-top: 130px;
    padding-left: 30px;
    text-align: center;
}
.box-1 h1{
    color: #fff;
    font-size: 30px;
    margin-bottom: 30px;
    text-transform: capitalize;
}

/* footer div */

.footercontainer{
    width: 100%;
    height: 45vh;
    background-color: #111;
}
.footercontainerrap{
    width: 70%;
    margin: auto;
    display: grid;
    grid-template-columns: auto auto auto;
}
.child-box{
    width: 200px;
}
.child-box a{
    text-decoration: none;
}
.child-box a p:hover{
    color: #f44336;
}
.child-box p{
    color: #fff;
    font-size: 20px;
    text-transform: capitalize;
    padding: 10px;
    transition: 0.6s;
}
.child-box h1{
    
    font-size: 18px;
    text-transform: uppercase;
    color: #f44336;
    margin-bottom: 10px;
    margin-top: 20px;
}

.socialicons{
    display: flex;
}
.socialicons a{
    text-decoration: none;
    padding: 5px;
    background-color: aliceblue;
    margin: 15px;
    border-radius: 10px; 
    transition: 0.5s;
    height: 4vh;
}
.socialicons a:hover{
    background-color: black;
}
#linkdin{
    color: red;
    font-size: 20px;
}
#facebook{
    color: red;
    font-size: 20px;
}
#instagram{
    color: red;
    font-size:20px;
}
#tweeter{
    color: red;
    font-size: 20px;
}

.footernav{
    flex: 1;
}
.footernav ul li {
    display: block;
    list-style: none;
    padding: 8px 12px;
    position: relative;
}
.footernav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
.footernav ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: #f44334;
    display: block;
    /* margin: auto; */
    transition: 0.5s;
}
.footernav ul li:hover::after{
    width: 50px;
}
.child-box1{
    width: 400px;
    margin-left: 50px;
}
.child-box1 h1{
    font-size: 18px;
    text-transform: uppercase;
    color: #f44336;
    margin-bottom: 10px;
    margin-top: 20px;
}
.child-box1 p{
    color: #fff;
    font-size: 15px;
}
.sign-up-box{
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto auto;
}
#sign{
    padding: 10px;
    font-size: 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    text-decoration: none;
    text-transform: capitalize;
}
.sign-btn{
    margin-top: 12px;
}
.sign-btn a{
    background-color: #f44334;
    color: #fff;
    font-size: 20px;
    padding: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.sign-btn a{
    text-decoration: none;
    transition: 0.6s;
}
.sign-btn a:hover{
    background-color: #333;
}
.footerbottom {
    width: 100%;
    background-color: #111;
    color: aliceblue;
    text-align: center;
    opacity: 0.8;
}
#heart{
    color: #f44334;
    padding-left: 10px;
}
.designer{
    opacity: 0.8;
    text-transform: uppercase;
    margin: 10px;
}