@import url('//fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

.row {
    margin: 3%;
}
::-webkit-scrollbar {
    width: 4px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #FACF11;
  }

/* Courses */

.all-courses{
    background-color: #F2F4FA;
    margin-top: 6%;

}

.owl-carousel .owl-nav {
    display: none;
}

.owl-carousel .owl-dots {
    display: none;
}

.head-section {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    color: white;
    background-color:#001A31;
    padding: 4% 0;
    margin-bottom: 3%;

}

.head-section p {
    padding: 0.5% 0;
    margin: 0;
}

.head-section div {
    background-color: #FACF11;
    height: 5px;
    width: 60px;
    margin: auto;
}

.department-title {
    color: #001A31;
    padding: 1% 2%;
}

.department-title h1 {
    font-size: 34px;
    font-weight: 500;
    margin: 0% 0% 0% 4%;
}


@media only screen and (max-width: 1001px){
    .department-holder{
        display: none !important;
    }

    .section.courses{
        display: block !important;
    }
    .department-title h1 {
        text-align: center;
        margin: 0%;
    }
    .section.courses .owl-carousel .owl-nav{
        display: flex;
        justify-content: space-evenly;
        padding: 0% 20%;
        position: absolute;
        width: 100%;
        bottom: 0%;
    }

    .section.courses span{
        font-size: 30px;
    }
}

@media only screen and (max-width: 768px){

    /* .department-holder{
        display: none !important;
    }

    .section.courses{
    display: block !important;
} */
.department-title h1 {
    font-size: 30px;
}
.courses .card p{
    height: 130px;
}
}

section.courses .owl-carousel .owl-dots{
    display: none;
}

/* @media only screen and (max-width: 768px){
    .head-section{
        margin-top: 10%;
    }
} */

@media only screen and (max-width: 600px){
    .head-section h1{
        font-size:25px
    }
    /* .owl-carousel {
        margin-bottom: -10%;
    } */
    .all-courses {
        margin-top: 11%;
    }
}

@media only screen and (max-width: 501px){
    .head-section h1{
        font-size:25px
    }
    .department-title h1 {
        font-size:26px;
        margin: 5% 0% 4% 0%;
    } 
}


@media only screen and (max-width: 426px){
    .courses h1 {
        font-size: 24px !important;
    }
    .courses .card p {
        font-size: 14px;
    }
}

.courses .card{
    border-radius: 16px;
    background-repeat: no-repeat;
    background-size: cover; 
    background-color: #001C34;
    margin: 5%;
    margin-bottom: 14%;
    cursor: pointer;
}
.courses .ml{
    background-image: url("../images/home/ml.png");
}
.courses .ds{
    background-image: url("../images/home/ds.png");
}
.courses .ai{
    background-image: url("../images/home/ai.png");
}
.courses .wd{
    background-image: url("../images/home/wd.png");
}
.courses .cs{
    background-image: url("../images/home/cs.png");
}
.courses .cc{
    background-image: url("../images/home/cc.png");
}
.courses .app{
    background-image: url("../images/home/app.png");
}
.courses .ar{
    background-image: url("../images/home/ar.png");
}
.courses .es{
    background-image: url("../images/home/es.png");
}
.courses .hev{
    background-image: url("../images/home/hev.png");
}
.courses .iot{
    background-image: url("../images/home/iot.png");
}
.courses .rob{
    background-image: url("../images/home/rob.png");
}
.courses .ac{
    background-image: url("https://teachnook.com/v3/assets/images/home/ac.png");
}
.courses .cd{
    background-image: url("https://teachnook.com/v3/assets/images/home/cd.png");
}
.courses .ic{
    background-image: url("https://teachnook.com/v3/assets/images/home/ic.png");
}
.courses .cp{
    background-image: url("https://teachnook.com/v3/assets/images/home/cp.png");
}
.courses .dm{
    background-image: url("../images/home/dm.png");
}
.courses .fin{
    background-image: url("https://teachnook.com/v3/assets/images/home/fin.png");
}
.courses .hr{
    background-image: url("https://teachnook.com/v3/assets/images/home/hr.png");
}
.courses .sm{
    background-image: url("https://teachnook.com/v3/assets/images/home/sm.png");
}
.courses .nt{
    background-image: url("https://teachnook.com/v3/assets/images/home/nt.png");
}
.courses .ge{
    background-image: url("https://teachnook.com/v3/assets/images/home/ge.png");
}

.courses .card .but-center{
    display: flex;
    justify-content: center;
}
.courses .card a{
    background-color:#FACF11;
    color: black;
    border: none;
    font-size: 18px;
    font-weight: 500;
    padding: 2% 15% 2% 15%;
    border-radius: 24px;
    margin-top: 53%;
    text-decoration: none;
}
.courses .card p{
    color: white;
    padding: 6% 8% 10% 8%;
    line-height: 28px;
    /* overflow: scroll;
    overflow-x: hidden;
    height: 17%; */
    font-size: 16px;
    margin-bottom: 10%;
    height: 120px;
    overflow-y: scroll;
}
.courses .center{
    display: flex;
    justify-content: center;
}
.courses .center button{
    color: #324FAD;
    font-size: 18px;
    background-color: transparent;
    padding: 1% 3%;
    border-color: #324FAD;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3%;
    border-radius: 14px;
    margin-top: 4%;
}
.courses .center button:hover{
    background-color:#324FAD;
    border-color: #324FAD;
    color:white;
}
.courses .card img{
    display: block;
    margin: 10% 35% 0% auto;
    padding-bottom: 10%;
    width: 33%;
}

.courses .owl-carousel .carousel-item {
    margin: 8%;
    border-radius: 16px;

}

@media only screen and (max-width:501px){
    .courses h1, .why-choose h1, .user h1,.exports h1{
        font-size: 27px;
    }
    .courses .card p {
        line-height: 22px;
        /* font-size: 13px; */
    }
    .courses .card a {
        font-size: 16px;
        padding: 2% 13% 2% 13%;
    }
    .courses .center button {
        margin-bottom: 8%;
    }
    .department-title h1 {
        margin: 10% 0% 4% 0%;
    }    
}

@media only screen and (max-width: 376px){
    .courses .card p {
        font-size: 13px;
    }
    .all-courses {
        margin-top: 14%;
    }
}