@import url("https://fonts.googleapis.com/css2?family=Lato:ital@1&family=Oswald&family=Spline+Sans:wght@300&display=swap");
* {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  font-family: "Oswald", sans-serif;
  font-family: "Spline Sans", sans-serif;
}
.header {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/cole-keister-vEgVWRBr2VY-unsplash.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
.Sub-header {
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/pang-yuhao-_kd5cxwZOK4-unsplash.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
.sup-header{
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/julian-hochgesang-Dkn8-zPIbwo-unsplash.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
.New-header{
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/Rules\ &\ Regulations.png);
  background-position: center;
  background-size: cover;
  position: relative;
}
.New1-header{
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/Courses.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
.New2-header{
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/Facilities.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}
.New3-header{
  min-height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(images/campus.jpeg);
  background-position: center;
  background-size: cover;
  position: relative;
}
nav {
  display: flex;
  padding: 2% 6%;
  justify-content: space-between;
  align-items: center;
}
nav img {
  width: 80px;
}
.nav-link {
  flex: 1;
  text-align: right;
}
.nav-link ul li {
  list-style: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}
.nav-link ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
}
.nav-link ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-link ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 17px;
    color: #fff;
}
nav .fa{
    display: none;
}
@media(max-width: 700px) {
    .text-box h1{
        font-size: 62px;
    }
    .nav-link ul li {
      display: block;
    }
    .nav-link{
        position: absolute;
        background: #d42215;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa {
        display: block;
        color: rgb(255, 255, 255);
        margin: 10px;
        font-size: 22px;
        cursor: pointer; 
    }
    .nav-link ul{
        padding: 30px;
    }
}