
body {
    background-color: #2e3537;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

:root{
  --dark-bg:#0a0a0a;
  --darker-bg:#050505;
  --accent:#2ecc71;
  --accent-glow:rgb(46,204,113,0.4);
  --text:#ffffff;
}


.hidden {
      opacity: 0;
      transform: translateY(-100px); /* default left */
      transition: all 0.8s ease;
      z-index: 0;
}

.show {
      opacity: 1;
      transform: translateY(0); /* visible hone par center */
}



/*navbar*/
nav {
      height:70px ;
      z-index: 1;
      width:100%;
      position: absolute;
      top: 0%;
      background-color: pink;
      color: white;
      font-size: 30px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      background-color: #050505;
      position: fixed;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-btn {
      font-size: 30px;
      cursor: pointer;
      display: none; /* desktop ke liye hidden */
    }

    .nav-menu {
      width: 60%;
      list-style: none;
      position: relative;
      left: 5%;
      justify-content: flex-start;
      display: flex;
      gap: 15px;
    }

    .brand{
      margin-top: 1%;
      height: 100%;
      width: 7%;
    }

    .nav-menu li{
      align-items: center;
      align-self: center;
      align-content: center;
      justify-content: center;
      text-align: center;
      margin: 0 12px 0 12px;
    }

    .nav-menu a {
      font-size: 0.7em;
      color: white;
      transition: 0.3s;
      text-decoration: none;
    }
    .nav-menu a:hover {
      font-size: 0.7em;
      color:#08cb00;
      transform: scale(1.2);
    }

     .nav-menu .btn{
      height: 50px;
      color: black;
      font-size: 1em;
      width: 250px;
      border-radius: 10px;
      transition: 0.3s;
      background-color: var(--accent);
     }
     .nav-menu .btn:hover{
      height: 50px;
      background-color: #ffffff;
      width: 250px;
      border-radius: 10px;
      color: var(--accent);
     }


    /* Scroll lock */
    .no-scroll {
      overflow: hidden;
      height: 100vh;
    }

    /* Dummy content for scrolling */
    .content {
      height: 2000px;
      background: linear-gradient(white, lightblue);
    }
/**/


.title-div{
    height: 70vh;
    width: 100%;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: hsl(0, 0%, 100%);
    font-size: 35px;
    justify-content: center;
    background-image: url(images/courseC.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position:top;
}
.title-div h1{
    width: 100%;
    text-align: center;
}

.title-div p{
    position: relative;
    bottom: 15%;
    font-size: 0.65em;
    padding:0 10%  0% 10%;
    text-align: center;
}
/**/


/* footer css*/

footer{
    width: 100%;
    height: 400px;
    font-size: 20px;
    background-color: #253900;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}


.Quick h2{
  font-size: 35px;
  margin-bottom: 0%;
  color: #ffffff;
}

.Quick{
    line-height: 0.96;
    margin-bottom: 4%;
}



footer h3{
    position: relative;
    left: -29%;
    text-align: left;
    color: yellow;
    bottom: 10%;
}

footer a{
    color: grey;
    font-size: 18px;
    text-decoration: none;

}



footer .contact-2{
    width: 25%;
    height: 70%;
    line-height: 0.9;
    align-self: center;
    position: relative;
    left: 5%;
    margin-bottom: 1%;
    margin-left: 2%;
    text-align: left;
}
.contact-2 h2{
  font-size: 35px;
  margin-bottom: 0%;
  color: #fff;
}

.logo{
    font-size: 25px;
    color: white;
    transition: 0.5s;
}

.logo:hover{
  transform: scale(1.5);
  color: #08cb00;
}

.newsletter{
    width: 40%;
    margin-left: 5%;
    margin-bottom: 2%;
   
}

.newsletter h2{
  font-size: 35px;
  margin-bottom: 0%;
  color: #fff;

}

.newsletter p{
    color: white;
    font-size: 20px;
    padding-right: 5%;
   
}
.newsletter input{
    height: 50px;
    width: 65%;
    padding-left: 2%;
    font-size: 20px;
    border-radius: 8px;
    border: 1px solid grey;
    margin-bottom: 2%;
}

.newsletter input:hover{
  border: 1px solid #08cb00;
  background-color: white;
  transition: 0.3s;

}
.newsletter form{
    margin-top: 0%;
  }
.newsletter button{
    height: 52px;
    width: 68%;
    color: black;
    font-size: 1em;
    background-color: var(--accent);
    border: 1px solid grey;
    border-radius: 8px;
    transition: 0.3s;
    color: white;
    
}

.newsletter button:hover{
  background-color: white;
  color: #08cb00;
}




main{
    font-size: 20px;
    
    
}

.courses{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    color:white;
    background-color: #050505;
}

.courses-body{
    width: 90%;
    background-color: inherit;
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;

    
}

.courses-child{
    width: 23%;
    background: linear-gradient(var(--accent-glow), black);
    margin: 1%;
    border-radius: 10px;
    box-shadow: 4px 4px 15px rgba(22, 238, 119, 0.1);
    transition: 0.3s;
   

}

.courses-child:hover{
  position: relative;
  bottom: 1%;
  background-color: #2ecc71;
  box-shadow: 4px 4px 15px rgba(22, 238, 119, 0.5);
  transform: translatey(-10px);
}

.courses-child-text{

     padding: 8px;
}


.courses-child img{
    width: 100%;
}

.courses-child h3{
    font-size: 0.9em;
    line-height: 1;
    margin: 0;
}
.courses-child p{
    font-size: 0.8em;
}



.child-bottom{
    height: 15%;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;

}

.child-bottom button{
    width: 30%;
    background-color: white;
    color: #2ecc71;
    margin: 5px;
    font-size: 0.8em;
    font-weight: bold;
    border: 0;
    border-radius: 10px;
}

.child-bottom button:hover{
  background-color: #2ecc71;
  color: black;
}

/**/

/*responsive*/
/* ✅ Responsive Styling */
@media (max-width: 992px) {
    body{
        overflow-x: hidden;
    }

    nav{
      background-color: var(--dark-bg);
      z-index: 1;
      overflow-y: hidden;
      position: fixed;
    }

    .brand{
      position: relative;
      right: 8%;
      width: 20%;
    }

    .nav-btn {
        position: relative;
        left: 10%;
        display: block;
    }
      .nav-menu {
        position: fixed;
        top: -30px;
        left: -100%;
        width: 70%;
        height: 100%;
        background: #444;
        flex-direction: column;
        gap: 20px;
        z-index: 1000;
        padding: 50px 20px;
        transition: left 0.3s ease-in-out;
    }
      .nav-menu.active {
        left: 0;
        padding-top: 80px ;
        justify-content: flex-start;
    }

      .nav-menu li{
        align-items: center;
        width: 100%;
        background-color: inherit;
        padding-bottom: 20px;
        font-size: 30px;
    }
      .nav-menu li a:hover{
        align-items: center;
        width: 100%;
        color: #08cb00;
        padding-bottom: 20px;
        font-size: 30px;
    }
      #app-btn{
        display: none;
    }

    
    /*footer*/
    footer {
    flex-direction: column;
    height: auto;
    text-align: left;
    padding: 1% 2% 1% 1%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  footer h3{
    left: 0%;
  }
  
  .logo{
    font-size: 1.2em;
    color: white;
    transition: 0.5s;

  }
   .Quick h2 {
    font-size: 1.2em;
    margin-bottom: 0%;
    color: #ffffff;
   }
   .contact-2 h2 {
    font-size: 1.2em;
    margin-bottom: 0%;
    color: #fff;
    }
   
  footer .child {
    width: 100%;
    margin:0;
    line-height: 0.9;
  }
  footer .beta{
    width: 100%;
    height: 70%;
    line-height: 0.8;
    align-self: center;
    padding-left: 2%;
    text-align: left;
    margin-top: 5%;
   
}



    footer .contact-2 {
        width: 100%;
        height: 70%;
        line-height: 0.8;
        text-align: left;
        position: relative;
        left: 0;
        margin-bottom: 5%;
    }

footer .contact-2 .logo{
  text-align: center;
  margin: 2px;
}

  .newsletter {
    width: 100%;
    margin: 0;
  }

  .newsletter h2 {
    font-size: 1.5em;
    margin-bottom: 0%;
    color: #fff;
  }

  .newsletter input {
    width: 97%;
    margin: 5px 0;
  }
  .newsletter button{
    width: 100%;
    margin: 5px 0;
  }

  .newsletter form{
    margin-top: -5%;
  }
  footer h3 {
    position: relative;
    right: 2%;
    font-size: 0.8em;
    color: yellow;
    bottom: 13%;
    margin-left: -5%;
    margin-bottom: 5%;
   }

   .courses-body{
    flex-direction: column;
   }

   .courses-child{
    margin-top: 5%;
    width: 95%;
   }
   .title-div{
    height: 40vh;
   }
   .title-div h1{
    font-size: 1em;
   }
   .title-div p {
    bottom: 5%;
    font-size: 0.5em;
   }
}