/* overall styles */

body {
    margin: 0;
    /* font-family: 'Poppins', sans-serif; */
    font-family: 'Kumbh Sans', sans-serif;
    
}

* {
    box-sizing: border-box;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--black);
}
h1, h2, h3, h4, h5 {
    line-height: 1.2;
}
 h1 {
    font-size: 2.7rem;
    color: var(--color-danger);
}
h2 {
    font-size: 3rem;
}
h3 {
    font-size: 2rem;
}
h4 {
   font-size: 1.5rem;
} 
 
.left {
    text-align: left;
}

p {
    color: var(--black);
   }

.btn {
   display: inline-block;
   background:var(--blue);
   color: white;
   padding: 1rem 3rem;
   border: 1px solid transparent;
   font-weight: 500;
   transition: var(--transition);
   border-radius: 50rem;
}
.btn:hover {
   background: var(--light-blue);
   color: var(--color-white);
   border-color: var(--color-white);
}
.btn-primary {
   background: var(--blue);
   color: var(--color-white);
}
img {
   width: 100%; 
   display: block;
   object-fit: cover;
}

/* navbar */

:root{
    --blue: #283891; 
    --light-blue:#0f75bc;
    --black:#444;
    --light-color:#666;
    --color-white: #fff;
    --color-light: rgba(255,255,255,0.7);
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);

    --container-width-lg: 100%;
    --container-width-md: 90%;
    --container-width-sm: 100%;
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

*{
    margin:0; padding:0;
    box-sizing: border-box;
    outline: none; border:none;
    text-decoration: none;
    transition:all .2s linear;
    transition:width none;
    list-style: none;
}


html::-webkit-scrollbar{
    width:1rem;
}

html::-webkit-scrollbar-track{
    background:transparent;
}

html::-webkit-scrollbar-thumb{
    background:var(--blue);
    border-radius: 6px;
}

section {
    padding: 5rem 9%;
}


.header .header-1{
    background:#fff;
    padding:.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .header-1 .icons div,
.header .header-1 .icons a{
    font-size: 1.3rem;
    margin-left: 1rem;
    color: var(--blue);
    cursor: pointer;
}

.email {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.email p {
    font-size: 1rem;
    color: var(--blue);
    font-weight: 600;
}

.header .header-1 .icons div:hover,
.header .header-1 .icons a:hover{
    color: var(--light-blue);
}

#search-btn{
    display: none;
}

.navbar {
    display: flex;
    justify-content: center;
    
}
.nav-dropdown {
    display: block;
}
.header .header-2{
    background:var(--blue);
}

.header-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 5rem;
}
.header-2 li {
    margin-right: 2rem;
}
.header-2 li a {
    color: white;
   
}
ul .nav-menu:hover ul {
    display: block;
}

ul li a:hover {
    color: var(--light-blue);
  }
/* ul li:hover > ul {
    display: block;
  } */
ul .nav-dropdown {
    position: absolute;
    background: var(--blue);
    display: none;
    border-radius: 6px;
    bottom: -4.7rem;
    z-index: 100;
    box-shadow: 0px 6px 23px -10px rgba(0, 0, 0, 0.5);
    animation: fadeInMenu 0.3s both ease-in;
}


@keyframes fadeInMenu {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
.nav-dropdown li  {
    padding: .5rem 1rem;
}

.nav-menu i {
    transition: transform 0.3s;
}
.nav-menu:hover i {
    transform: rotateZ(180deg);
}

/* .header .header-2 .navbar{
    text-align: center;
}

.header .header-2 .navbar a{
    color:#fff;
    display: inline-block;
    padding:1.2rem;
}

.header .header-2 .navbar a:hover{
    background:var(--light-blue);
} */

.header .header-2.active{
    position:fixed;
    top:0; left:0; right:0;
    z-index: 1000;

}

.bottom-navbar{
    text-align: center;
    background:var(--blue);
    position: fixed;
    bottom:0; left:0; right:0;
    z-index: 1000;
    display: none;
}

.bottom-navbar a{
    font-size: 1.5rem;
    padding:2rem;
    color:#fff;
}

.bottom-navbar a:hover{
    background:var(--dark-color);
}


.loader-container{
    position: fixed;
    top:0; left: 0;
    height:100%;
    width: 100%;
    z-index: 10000;
    background:#f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-container.active{
    display: none;
}


.loader-container img {
    width: auto;
}
/* end of navbar */

.home {
    height: calc(100vh - 125.38px);
    overflow: hidden;
    position: relative;
}

.home .slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding: 0 15px;
    display: none;
    animation: slide 2s ease;
}

.home .slide.active {
    display: flex;
} 
.small {
    display: none;
    }

@keyframes slide {
    0% {
        transform: scale(1.1);
    }
    100% {
         transform: scale(1);
    }
}

.container {
    max-width: 960px;
    margin: auto;
   
}

.home .container {
    flex-grow: 1;
}

.home .caption {
    width: 60%;
}
.home .caption h1 {
    font-size: 60px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 2px; 
}

.home .slide.active .caption h1 {
    opacity: 0;
    animation: captionText 1s ease forwards;
    animation-delay: 1s;
    
}

.home .caption p {
    font-size: 20px;
    margin: 15px 0 30px;
    color: #e9e6e6;
    line-height: 1.5;

}
.home .slide.active .caption p {
    opacity: 0;
    animation: captionText 1s ease forwards;
    animation-delay: 1.2s;
    
}

.home .caption a {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--blue);
    text-decoration: none;
    color: #fff;
    border-radius: 50px;
    letter-spacing: 1px;
    border: none;
}
.home .caption a:hover {
    background-color: var(--light-blue);
}

.home .slide.active .caption a {
    opacity: 0;
    animation: btn 1s ease forwards;
    animation-delay: 1.4s;
    
}

@keyframes captionText {
    0% {
        opacity: 0; transform: translateX(-100px);
    }
    100% {
        opacity: 1; transform: translateX(0);
    }
}

@keyframes btn {
    0% {
        opacity: 0; transform: translateY(100px);
    }
    100% {
        opacity: 1; transform: translateX(0);
    }
}



.home .indicator {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 2;
    transform: translateX(-50%);
}
.home .indicator div {
    display: inline-block;
    width: 25px;
    height: 25px;
    color: #ffffff;
    background-color: var(--blue);
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin: 0 3px;
}

.home .indicator div.active {
    background-color: #000000;
}

@media(max-width: 767px) {
    .controls {
        display: none;
    }
    .home .slide {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        padding: 0 15px;
        display: none;
        animation: slide 2s ease;
        
    }
}

#next-slide,
#prev-slide {
    position: absolute;
    top: 50%; 
    transform: translateY(-40%);
    height: 2.5rem;
    width: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    background: var(--blue) ;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    border-radius: 50%;
   
}

#next-slide:hover,
#prev-slide:hover
 {
    background: var(--light-blue);
    color: white;
}

#prev-slide{
    left: 2rem;
}

#next-slide {
    right: 2rem;
}


/*===========================  categories  =========================*/
.categories {
    background: white;
    height: 29rem;
}
.categories h2 {
    line-height: 1;
    margin-bottom: 2rem;
}
.categories__container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 2rem;
}
.categories__left p {
 margin: 1rem 0 3rem;
 line-height: 1.5;
}
.categories__right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.category {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
  
}
.category:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

.category h4 {
    margin: 1rem 0 1rem;
}
.category p {
    font-size: 1.1rem;
}

/* about us section */
.about {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 50px;
}
.about  .video-container 
                {
        flex: 1 1 420px; 
    }
.about .video-container   video 
            {
    border-radius: 10px;
    width: 100%;
}
 .about .video-container .controls 
                {
    text-align: center;
    padding: 20px 0;
        }
.about .video-container span {
    display: inline-block;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: blue;
    cursor: pointer;
    margin: 7px;
            }
.about .video-container span:hover {
        background: blue;   
    }
.about  .content {
    flex: 1 1 420px;
    margin-bottom: 50px;
}
.about  .content  span {
    color: blue;
    font-size: 20px;
}
.about  .content h3 
    {
    color: black;
    font-size: 35px;
    margin-top: 5px;
}
.about  .content p {
    /* padding: 1rem 0; */
    font-size: 18px;
    color: rgb(15, 15, 15);
    /* line-height: 1.5; */
}

.box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0 3rem;
}
.box-container .box {
   
    flex: 1 1 200px;
}
.box i {
    padding-right: 15px;
    color: var(--blue);
}
    



/*======================  popular courses  =======================*/

.courses {
    margin-top: 0;
    background-color: #f3f3f3;
}

.course__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    
}
.course {
    background: #fff;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3); 

}

.course__info {
    padding: 2rem;
}
 .course__info p {
     margin: 1.2rem 0 2rem;
     line-height: 1.5;
} 

.achievement__card h3 {
    font-size: 1.6rem;
    color: white;
}

 .gallery {
    margin-top: -5rem;
}
.gallery .course__image img {
    border-radius: 8px;
    overflow: hidden;
}
 img {
    border-radius: 8px;
}
/*===================achievements=======================*/

.background {
    background: var(--blue);
}
.about__achievements-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    
}
.about__achievements-right h2 {
    color: rgb(49, 49, 49);
}

.about__achievements-right .index  {
    color: white;
}

.about__achievements-right .paragraph {
    margin: 1rem 0 2.5rem;
    line-height: 1.5;
    color: white;
}

.about__achievements-right > p {
    margin: 1rem 0 2.5rem;
    line-height: 1.5;
    color: rgb(44, 43, 43);
}
.achievement__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.achievement__card {
    /* background: var(--color-bg1);
    padding: 1.6rem; */
    border-radius: 6px;
    /* text-align: center;
    color: #fff; */
    background: white;
    box-shadow: 0 .3rem .3rem rgba(0,0,0,0.3);
    transition: var(--transition);
}
/* .achievement__card:hover {
    background: var(--color-bg2);
    box-shadow: 0 .5rem .5rem rgba(0,0,0,0.3)
} */


.achievement__card p {
    margin-top: 1rem;
}
/* newsletter section */

.newsletter{
    background:url(../images/letter-bg.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 3rem;
}


.newsletter {
    text-align: center;
}

.newsletter  h3{
    font-size: 3rem;
    padding-top: 4rem;
    color:#fff;
    padding-bottom: 4rem;
    font-weight: bold;
}
.newsletter a {
    margin-bottom: 3rem;
    border: none;
}



/*newsletter section ends */
/*===========================  footer  =========================*/

footer {
    background: rgb(37, 37, 37);
    padding-top: 5rem;
    font-size: 0.9rem;
}
.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer__container > div h4 {
    margin-bottom: 1.2rem;
    color: white;
}
.footer__1 p {
    margin: 0 0 2rem;
    color: white;
    margin-top: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.9rem;
}
footer ul li {
    margin-bottom: 0.7rem;
}
footer ul li a {color: white;}
footer ul li a:hover {
    text-decoration: underline;
}
.footer__socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: white;
}
.footer__4 p {color: white;}
.footer__copyright {
    background: rgb(26, 25, 25);
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    color: rgb(211, 209, 209);
}
.mission {
    font-size: 1rem;
    line-height: 1.1;
}


/*================media queries header and home ==================*/
@media (max-width:991px){

    /* html{
        font-size: 55%;
    } */

    .header .header-1{
        padding:2rem;
    }

    section{
        padding:3rem 2rem;
    }

}

@media (max-width:768px){

    html{
        scroll-padding-top: 0;
    }

    body{
        padding-bottom: 6rem;
    }

    .header .header-2{
        display:none;
    }

    .bottom-navbar{
       
        display: flex;
        align-items: center;
        justify-content: space-between;
       
    }

    .bottom-navbar p {
        color: white;
        margin-bottom: 20px;
        margin-top: -20px;
        font-size: 12px;
    }

    #search-btn{
        display: inline-block;
    }

    .header .header-1{
        box-shadow: var(--box-shadow);
        position: relative;
    }

    .header .header-1 .search-form{
        position:absolute;
        top:-115%; right:2rem;
        width: 90%;
        box-shadow: var(--box-shadow);
    }

    .header .header-1 .search-form.active{
        top:115%;
    }

    .home .row .content{
        text-align: center;
    }

    .home .row .content h3{
        font-size: 3.5rem;
    }

    .newsletter{
        background-position: right;
    }

    .newsletter form{
        margin-left:0;
        max-width: 100%;
    }

}

@media (max-width:450px){

     html{
        font-size: 90%;
    } 

} 

/*===================  media queries tablet  =====================*/

@media screen and (max-width: 1024px) {
    
    .container {
        width: var(--container-width-md);
    }
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 2rem;
    }
    .container {
          width: var(--container-width-md);
      }
   
/*=====================categories section media queries==================*/
  .categories {
      height: auto;
     margin: auto;
  }
  .categories__container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  .categories__left {
      margin-right: 0;
  }
/*=============popular courses media queries==============*/
  .courses {
      margin-top: 0;
  }
  .course__container {
      grid-template-columns: 1fr;
  }

/*===================footer media queries==================*/
  .footer__container {
      grid-template-columns: 1fr 1fr;
      text-align: center;

  }
}

/*=================  media queries phone  ================*/

@media screen and (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }
    
/*=======================navbar====================*/
    .navbar {
        right: 3%;
    }
/*======================header======================*/


    #next-slide,
    #prev-slide {
        display: none;
    }

    .categories__left p {
        font-size: 18px;
    }

    .categories__right {
        text-align: center;
    }

    .categories__right h4 {
        font-size: 25px;
    }
     
     .email {
        display: none;
    }
    .course {
        box-shadow: none;
    }

    .course p {
        font-size: 18px;
    }

    .course h4 {
        font-size: 25px;
    }
    .courses {
        margin-top: -5rem;
    }

    .logo {
        width: 35%;
    }
    

    .home .caption h1 {
        
        font-size: 40px;
        margin-bottom: 3rem;
        
    }
    .home .caption p {
        font-size: 14px;
        margin-top: -30px;
    }
    

    .newsletter {
        background-position: center;
    }
    .newsletter  h3 {
        font-size: 2rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .about__achievements-left {
        height: 50%;
    }
    .about__achievements-right p {
        font-size: 18px;
    }

    .about__achievements-container {
        grid-template-columns: 1fr;
    }

    /* .footer__1 {
        margin-left: 2rem;
    } */
    .footer__container {
        grid-template-columns: 1fr;
    }
    .header__right .icon-2 {
        width: 25%;
        display: block; 
        top: 60%;
        right: 100px;    
    }
   
}
