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

/* body,
html {
  overflow-x: hidden;
} */
.header {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.bg-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(4, 9, 30, 0.5), rgba(4, 9, 30, 0.5)); 
  z-index: 2; 
}

.header-content {
  position: relative;
  z-index: 3; 
  color: #fff;
  max-width: 900px; 
  padding: 0 20px;
}


/**Nav section**/
nav {
  display: flex;
  padding: 0 3%;
  height: 90px;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;

  background-color: transparent;
  transition: 0.5s ease-in-out;
}

.logo-container {
  position: relative;
  display: inline-block;
  width: 340px; 
  height: 40px; 
}

.logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 80%;
  transition: opacity 0.7s ease-in-out; 
}

.logo-topo {
  opacity: 1;
}
.logo-rolagem {
  opacity: 0;
}

nav.rolagem .logo-topo {
  opacity: 0;
}
nav.rolagem .logo-rolagem {
  opacity: 1;
}

nav.rolagem {
  background-color: #000000;
  padding: 0 3%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-links {
  flex: 1;
  text-align: right;
}

.nav-links ul li {
  list-style-type: none;
  display: inline-block;
  padding: 8px 12px;
  position: relative;
}

.nav-links ul li ::after {
  content: "";
  width: 0%;
  height: 2px;
  background-color: #f4f82b;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links ul li:hover ::after {
  width: 100%;
}

.nav-links ul li a {
  color: #fff;
  text-decoration: none;
}

/*Hero Text*/
.text-box {
  position: absolute;
  top: 50%;
  left: 3%;        
  transform: translateY(-50%);
  text-align: left;
  color: white;
  z-index: 3;
  max-width: 700px;
}
.text-box h1 {
  font-size: 62px;
  width: auto;
  display: inline;
  white-space: nowrap;
}

.text-box p {
  padding: 0;
  margin: 15px 0 40px;
  color: #fff;
  line-height: 1.6;
  max-width: 700px;
  font-size: 20px;
  white-space: nowrap;
}

.hero-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 34px;
  font-size: 13px;
  background-color: transparent;
  position: relative;
  cursor: pointer;
}

.hero-btn:hover {
  border: 1px solid #f4f82b;
  background: #f4f82b;
  transition: 1s;
}

nav .fa {
  display: none;
}

/*Media query for Main page*/
@media (max-width: 700px) {
  nav {
    padding: 15px 6%;
    align-items: center;
  }

  nav img {
    width: 130px;
    margin-top: 0;
  }

  nav .fa {
    margin: 0;
  }

  body {
    overflow-x: hidden;
  }

  .text-box {
    padding-left: 0;
    width: 90%;
    max-width: 90%;
  }

  .text-box h1 {
    
    font-size: 23px;
    white-space: normal;
  }

  .text-box p {
    max-width: 100%;
    width: 100%;
    font-size: 15px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .nav-links ul li {
    display: block;
  }

  .nav-links ul li:hover {
    translate: -10% 0;
    transition: 0.5s;
  }

  .nav-links {
    position: fixed;
    background-color: #dfe304;
    height: 100vh;
    width: 200px;
    top: 0;
    right: -200px;
    /* display: none; */
    text-align: left;
    z-index: 2;
    transition: 1s;
  }

  nav .fa {
    display: block;
    color: #fff;
    margin: 10px;
    font-size: 22px;
    cursor: pointer;
  }

  .nav-links ul {
    padding: 30px;
  }
}

/**Courses section**/
.course {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

h1 {
  font-size: 36px;
  font-weight: 600;
}

p {
  color: #474747;
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  padding: 10px;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
}

.course-col {
  flex-basis: 31%;
  background: #ffee0025;
  border-radius: 10px;
  margin-bottom: 5%;
  padding: 20px 12px;
  box-sizing: border-box;
  transition: 0.5s;
}

.course-col:hover {
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0px;
}

@media (max-width: 700px) {
  .row {
    flex-direction: column;
  }
}

/*Campus section*/
.campus {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 50px;
}

.campus-col {
  flex-basis: 100%;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.campus-col img {
  width: 100%;
  height: 675px;
  object-fit: cover;
  display: block;
}

.layer {
  background-color: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.5s;
  cursor: pointer;
}

.layer:hover {
  background-color: rgba(243, 251, 4, 0.7);
  cursor: default;

}

.layer h1 {
  width: 100%;
  font-weight: 800;
  color: #fff;
  font-size: 56px;
  bottom: 0%;
  left: 50%;
  translate: -50% 0;
  position: absolute;
  opacity: 0;
  transition: 0.5s;
}

.layer:hover h1 {
  bottom: 49%;
  opacity: 1;
}

/*Facilities section*/
.facilites {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

.facilities-col {
  flex-basis: 31%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
}

.facilities-col img {
  width: 100%;
  border-radius: 10px;
}

/*testimonials*/
.testi {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-top: 100px;
}

.testi-col {
  flex-basis: 44%;
  border-radius: 10px;
  margin-bottom: 5%;
  text-align: left;
  background-color: #ffee0025;
  padding: 25px;
  cursor: pointer;
  display: flex;
}

.testi-col img {
  height: 60px;
  margin-left: 5px;
  margin-right: 30px;
  border-radius: 50%;
}

.testi-col p {
  padding: 0;
}

.testi-col h3 {
  margin-top: 15px;
  text-align: left;
}

.testi-col .fa {
  color: #ffeb13;
}
.testi-col:hover{
    cursor: default;
}

@media (max-width: 700px) {
  .testi-col img {
    margin-left: 0px;
    margin-right: 30px;
  }
}

/*CTA section */
.cta {
  margin: 100px auto;
  width: 80%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(assets/banner2.jpg);
  background-position: center;
  background-size: cover;
  text-align: center;
  padding: 100px 0;
  border-radius: 20px;
}

.cta h1 {
  color: #fff;
  margin-bottom: 40px;
  padding: 0;
}

@media (max-width: 700px) {
  .cta h1 {
    font-size: 24px;
  }
.campus-col img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: left center;
  }

}

/* footer */
footer {
  background-color: black;
  width: 100%;
  text-align: center;
  padding: 10px;
}

footer .top-footer button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
  margin: 0 15px;
  transition: .5s;
}

footer .top-footer button:hover {
  background-color: white;
  color: black;
}

footer .middle-footer {
  margin: 20px;
}

footer .middle-footer a {
  color: white;
  margin: 0 12.5px;
  text-decoration: none;
}

footer .middle-footer a:hover {
  text-decoration: underline;
}

footer .bottom-footer {
  border-top: 2px solid white;
}

footer .bottom-footer p {
  color: white;
  margin-top: 10px;
}

/*****ABOUT US PAGE********/
.sub-header {
  height: 50vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)),
    url(./assets/destiny.jpg);
  background-position: bottom;
  background-size: cover;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.sub-header h1 {
  margin-top: 140px;
}

.about-us {
  width: 80%;
  margin: auto;
  padding-top: 80px;
  padding-bottom: 50px;
}

.about-col {
  flex-basis: 48%;
  padding: 30px 2px;
}

.about-col img {
  width: 100%;
}

.about-col h1 {
  padding-top: 0;
}

.about-col p {
  padding: 15px 0 25px;
}

.red-btn {
  border: 1px solid #f4f82b;
  background-color: transparent;
  color: #cdc602;
}

.red-btn:hover {
  color: white;
}

/*Blog content*/
.blog-content {
  width: 80%;
  margin: auto;
}

.blog-left {
  flex-basis: 65%;
}

.blog-left h2 {
  color: #222;
  font-weight: 600;
  margin: 30px 0;
}

.blog-left p {
  color: #444444;
  padding: 0;
}

.blog-left img {
  width: 100%;
}

.blog-right {
  flex-basis: 32%;
}

.blog-right h3 {
  background-color: #f8e304;
  color: #fff;
  padding: 7px 0;
  font-size: 16px;
  margin-bottom: 20px;
}

.blog-right div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}

.blog-right div span {
  cursor: pointer;
}

/* Commenting form  */
.comment-box {
  border: 1px solid #ccc;
  margin: 50px 0;
  padding: 10px 20px;
}

.comment-box h3 {
  text-align: left;
}

.comment-box .comment-form input,
.comment-box .comment-form textarea {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: #f0f0f0;
}

.comment-form button {
  margin: 10px 0;
}

@media (max-width: 700px) {
  .sub-header h1 {
    font-size: 24px;
  }
}

/* Contact us Page  */
.location {
  width: 80%;
  margin: auto;
  padding: 80px 0;
}

.location h1{
  font-size: 34px;
}

.location iframe {
  width: 100%;
}

.contact-us {
  width: 80%;
  margin: auto;
}

.conatact-col {
  flex-basis: 48%;
  margin-bottom: 30px;
}

.conatact-col div {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.contact-col div .fa {
  font-size: 28px;
  color: #f4f82b;
  margin: 10px;
  margin-right: 30px;
}

.contact-col div p {
  padding: 0;
}

.contact-col div h5 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #555;
}

.contact-col input,
.contact-col textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 17px;
  outline: none;
  border: 1px solid #ccc;
}