* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.nav-links {
  position: absolute;
  top: 30px;
  right: 30px;
}

.nav-links ul {
  list-style-type: none;
  display: flex;
}

.nav-links ul li::after {
  content: "";
  display: block;
  width: 0%;
  height: 5px;
  background-color: rgb(219, 65, 65);
}

.nav-links ul li:hover::after {
  width: 80%;
  border-radius: 10px;
  margin: auto;
  transition: 0.5s;
}

header {
  min-height: 100vh;
  padding: 20px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.509)),
    url(images/banner.png);
  background-position: center;
  background-size: cover;
}

.nav-links a {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-decoration: none;
  color: white;
  padding: 10px;
}

.textbox {
  color: white;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 75vh;
  margin: auto;
}

.textbox h1 {
  font-size: 60px;
  padding-bottom: 20px;
}

.textbox a {
  margin-top: 20px;
  color: white;
  font-weight: 400;
  border: 1px solid white;
  padding: 8px;
  border-radius: 5px;
  text-decoration: none;
}

.textbox a:hover {
  background-color: rgb(219, 65, 65);
  border: 1px solid rgb(219, 65, 65);
  transition: 0.8s;
}

.logo {
  min-width: 150px;
  width: 20%;
}
.fa-solid.fa-bars::before,
.fa-solid.fa-xmark::before {
  display: none;
}
@media only screen and (max-width: 700px) {
  .textbox h1 {
    font-size: 40px;
    padding-bottom: 20px;
  }
 
  .fa-solid.fa-bars::before,
  .fa-solid.fa-xmark::before {
    display: block;
  }
  .fa-solid {
    color: white;
    font-size: 25px;
  }
  .fa-bars {
    position: absolute;
    top: 15px;
    right: 30px;
  }
  .fa-xmark {
    margin: 10px 15px;
    z-index: 2;
  }
  .nav-links {
    z-index: 1;
    width: 60vw;
    height: 100vh;
    background-color: rgb(219, 65, 65);
    position: absolute;
    top: 0;
    right: -400px;
    transition: 1s;
  }
  .nav-links ul {
    flex-direction: column;
    padding: 70px 30px;
    font-size: 75%;
  }
  .nav-links ul li {
    margin-bottom: 10px;
  }
}
/* for adding shadows */
.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0px 6px 20px rgba(0, 0, 0, 0.5);
}

/* ---------course------------ */
#course {
  padding-top: 100px;
  /* display:flex; */
  text-align: center;
  /* justify-content: center; */
  width: 80%;
  margin: auto;
}

#course h1 {
  font-size: 40px;
  padding-bottom: 20px;
}

.box {
  width: 30%;
  border: 1px solid rgb(254, 206, 171);
  background-color: rgb(252, 205, 171);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 100px;
}
.box h3 {
  padding-bottom: 10px;
}

.boxes {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
}

@media only screen and (max-width: 768px) {
  .boxes {
    margin-top: 30px;
    flex-direction: column;
  }
  .box {
    width: 80%;
    margin: auto;
    margin-bottom: 40px;
    padding: 50px 30px;
  }
}

@media only screen and (max-width: 480px) {
  #course h1 {
    font-size: 35px;
  }
  .boxes {
    flex-direction: column;
  }
  .box {
    width: 85%;
    margin-bottom: 25px;
    padding: 50px 30px;
  }
}

/* ----------campus------------ */
.campus {
  text-align: center;
}

.campus h1 {
  font-size: 40px;
  padding-bottom: 30px;
}

.campus_img {
  width: 80%;
  display: flex;
  margin: auto;
  margin-top: 60px;
  margin-bottom: 50px;
  justify-content: space-aroun
}

.campus_col {
  margin: 15px;
  position: relative;
  border-radius: 15px;
}

.campus_col img {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.layer {
  background-color: rgba(219, 65, 65, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 15px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.layer h3 {
  text-align: center;
  margin: auto;
  font-size: 28px;
  color: white;
}

.layer:hover {
  opacity: 1;
  transition: 0.3s;
}

@media only screen and (max-width: 768px) {
  .campus_img {
    flex-direction: column;
  }
  .campus {
    width: 80%;
    margin: auto;
  }
}

@media only screen and (max-width: 480px) {
  .layer h3 {
    font-size: 24px;
  }
}
/* ----------Facilities------------ */
.facilities {
  text-align: center;
}

.facilities h1 {
  font-size: 40px;
  padding-bottom: 30px;
}

.f_box {
  width: 85%;
  margin: auto;
  margin-top: 60px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-around;
}

.fimg {
  width: 28%;
  text-align: left;
}

.fimg img {
  width: 100%;
  border-radius: 15px;
}

.fimg h2 {
  padding-top: 20px;
  padding-bottom: 10px;
}

@media only screen and (max-width: 768px) {
  .facilities {
    width: 80%;
    margin: auto;
  }
  .f_box {
    margin-top: 10px;
    flex-direction: column;
  }
  .fimg {
    width: 80%;
    margin: auto;
  }
  .fimg img {
    margin-top: 50px;
  }
}
@media only screen and (max-width: 480px) {
  .facilities {
    width: 90%;
  }
}

/* ----------reviews------------- */
.reviews {
  text-align: center;
}

.reviews h1 {
  font-size: 40px;
  padding-bottom: 30px;
}

.rating {
  width: 90%;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-around;
}

.review {
  width: 40%;
  padding: 15px;
  display: flex;
  background-color: rgb(243, 203, 152);
  border-radius: 15px;
}

.rev_img {
  width: 100%;
}

.review img {
  height: 70px;
  margin-right: 20px;
  border-radius: 50%;
}

.rev_con {
  text-align: left;
}

.rev_con h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

@media only screen and (max-width: 768px) {
  .reviews {
    width: 90%;
    margin: auto;
  }
  .rating {
    flex-direction: column;
  }
  .review {
    width: 80%;
    margin: auto;
    margin-top: 30px;
  }
}

/* -------------contact_us---------------- */

#contact_us {
  margin: 100px auto;
  padding: 80px 0;
  width: 80%;
  height: 300px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(images/banner2.jpg);
  background-size: cover;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contact_us h1 {
  color: white;
  font-size: 45px;
  font-weight: bold;
  margin: 0px 10px;
  text-align: center;
}

#contact_us a {
  width: 30%;
  font-weight: bold;
  margin: auto;
  margin-top: 10px;
  border: 2px solid white;
  padding: 20px;
  color: white;
  text-decoration: none;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  #contact_us a {
    font-size: 15px;
    width: 50%;
  }
  #contact_us h1 {
    font-size: 30px;
  }
}
@media only screen and (max-width: 480px) {
  #contact_us h1 {
    font-size: 25px;
    margin: 10px;
  }
}

/* --------------footer----------------- */
#footer {
  text-align: center;
  background-color: rgb(28, 28, 28);
  color: white;
  overflow: hidden;
}

#footer h4 {
  margin-top: 25px;
  font-weight: 600;
  margin-bottom: 25px;
  display: inline-block;
}

#footer p {
  margin-bottom: 25px;
  width: 80%;
  margin: auto;
}

.icons .fa-brands {
  padding: 5px;
  margin-bottom: 20px;
}
