* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: sans-serif;
}
body {
  position: relative;
}
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: green;
  border-radius: 4px;
}
a {
  text-decoration: none;
}

.mobile {
  display: none;
}

#close {
  display: none;
}
.loader-text {
  display: block;
  margin-top: 30px;
}
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: center;
  background-color: rgb(0, 0, 0);
  z-index: 9999;
}
.loader {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 10px solid #ccc;
  border-top: 10px solid white;
  animation: spin 3s linear infinite;
}
.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-family: arial, sans-serif;
  color: white;
}
@keyframes spin {
  0% {
    transform: translate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
header {
  background-color: green;
  position: sticky;
  left: 0;
  top: 0;
  z-index: 2;
  color: white;
  display: flex;
  padding: 25px 0;
  justify-content: space-around;
}
.logo-div {
  display: flex;
  padding-right: 15px;
  justify-content: space-between;
  border-right: 2px solid white;
  align-items: center;
  width: 25%;
}
.logo-div img {
  display: inline-block;
  width: 80px;
}
.nav-div {
  width: 67%;
}
.nav-div ul {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  align-items: center;
}
.nav-div ul li {
  width: fit-content;
  list-style: none;
  color: rgb(224, 196, 140);
  display: flex;
  padding: 12px;

}
.nav-div ul li:hover {
  color: white;
  cursor: pointer;
}
.nav-div a {
  color: rgb(235, 215, 178);
}
.sub-nav {
  display: none;
}
.nav-div ul li:hover .sub-nav {
  display: block;
  position: absolute;
  background-color: darkolivegreen;
  margin-top: 25px;
  cursor: pointer;
  padding: 10px;
  z-index: 5;
}
.nav-div ul li:hover .sub-nav ul {
  display: block;
  z-index: 5;
}

.nav-div ul li :hover .sub-nav ul li {
  width: fit-content;
  font-size: 1.1rem;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.faculty-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
.faculty-title span {
  color: green;
}
.department-div {
  padding-bottom: 15px;
  display: flex;
  width: 90%;
  margin: auto;
  justify-content: space-around;
}
.department-title {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}
.reg-btn {
  background-color: green;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  padding: 7px 14px 7px 14px;
}
.department-writeup {
  width: 50%;
}
.department-writeup p {
  line-height: 1.45;
  margin-bottom: 15px;
}
.department-img {
  width: 40%;
  overflow: hidden;
  transform: scale(1.1);
}
.department-img img {
  object-fit: contain;
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: block;
}
.reg-form {
  display: flex;
  padding-right: 20px;
  flex-direction: column;
  padding: 24px 20px;
  gap: 10px;
  width: 30%;
  border-radius: 5px;
  z-index: 10000;
  position: fixed;
  top: 50%;
  left: 50%;
  box-shadow: 0 1px 0 5px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9500;
}

.hide {
  display: none;
}
.reg-form label {
  margin-bottom: 8px;
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
}
.reg-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
  outline: none;
}
.reg-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
  outline: none;
}
.reg-form option {
  text-transform: capitalize;
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-title {
  font-size: 24px;
  color: black;
}
.close-reg {
  font-size: 2rem;
  color: #333;
  padding: 4px;
  cursor: pointer;
  border: none;
  background: none;
}
.close-reg:hover {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.01);
}
.send-btn {
  width: 120px;
  cursor: pointer;
  margin-top: 15px;
  border: none;
  background-color: green;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}
footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 40px;
  background-color: green;
  padding-top: 20px;
  padding-bottom: 10px;
  color: white;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
footer h3 {
  margin-left: 12px;
  margin-bottom: 20px;
}
footer i {
  margin-left: 12px;
  margin-right: 5px;
  padding-right: 5px;
  line-height: 1.3;
  margin-bottom: 9px;
}
footer span {
  margin-left: 8px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.mini-div1 {
  width: 22%;
  margin: 0 auto 0 auto;
  padding: 15px 0 0 90px;
  display: flex;
  flex-direction: column;
}
.mini-div2 {
  width: 22%;
  padding: 15px 0 0 70px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
}
.mini-div3 {
  width: 22%;
  padding: 15px 0 0 20px;
  flex-direction: column;
  display: flex;
  margin: 0 auto 0 auto;
}
.mini-div4 {
  display: flex;
  flex-direction: column;
  border-left: 1px solid white;
  padding: 15px 0 0 10px;
  margin: 0 auto 0 auto;
  width: 28%;
}
.mini-div4 p {
  margin-bottom: 15px;
  line-height: 1.2;
}
.below-footer {
  width: 100%;
  background-color: green;
  overflow: hidden;
  position: relative;
  padding: 5px 0;
  color: white;
}
.below-footer p {
  text-align: center;
}
.below-footer span {
  margin-right: 3px;
}
.scroll {
  animation: scroll 20s linear infinite;
}
@media screen and (max-width: 550px) and (min-width: 0px) {
  header {
    align-items: center;
    display: flex;
    padding: 15px 0;
    justify-content: space-between;
  }
  .logo-div {
    flex-direction: column;
    padding-right: 0;
    border-right: none;
    align-items: center;
    width: 60%;
  }
  .logo-div img {
    width: 40px;
    margin-bottom: 5px;
  }
  .logo-div p {
    font-size: 0.9rem;
  }
  .nav-div {
    width: 20%;
  }

  .nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    height: 60vh;
    padding-bottom: 40px;
    width: 300px;
    top: 0;
    left: -300px;
    align-content: flex-start;
    transition: 1.3s;
  }
  .nav-div ul li {
    width: fit-content;
    border-bottom: 1px solid white;
    list-style: none;
    color: white;
    display: flex;
    padding: 0 12px 10 12px;
    margin-bottom: 10px;
  }
  .nav-div ul li:hover {
    color: white;
  }
  .nav-div a {
    color: white;
  }
  .sub-nav {
    display: none;
  }
  .nav-div ul li:hover .sub-nav {
    display: block;
    position: absolute;
    color: white;
    padding-bottom: 10px;
    background-color: green;
    margin-bottom: 15px;
    padding: 10px;
    z-index: 5;
  }
  .nav-div ul li:hover .sub-nav ul {
    display: block;
    z-index: 5;
  }

  .nav-div ul li :hover .sub-nav ul li {
    width: fit-content;
    font-size: 1.1rem;
    padding: 5px;
    text-align: left;
    background: transparent;
  }

  .active {
    left: 0px;
    z-index: 5;
    height: 55vh;
    background-color: green;
  }

  .mobile {
    display: block;
    cursor: pointer;
  }

  .mobile i {
    font-size: 40px;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
  }

  .faculty-title {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 30px;
  }
  .department-div {
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 99%;
    margin: auto;
    gap: 0;
  }
  .department-title {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 40px;
  }
  .department-writeup {
    width: 90%;
    margin: 0 auto;
  }
  .department-writeup p {
    line-height: 1.25;
    font-size: 0.9rem;
  }
  .department-img {
    width: 90%;
    display: block;
    margin: 0 auto;
    overflow: hidden;
  }

  .department-img img {
    width: 70%;
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 20px;
    display: block;
  }
  .reg-form {
    padding-left: 10px;
    width: 95%;
    margin: auto;
    padding-top: 50px;
    border-radius: 5px;
    z-index: 10000;
  }
  .reg-form label {
    margin-bottom: 10px;
  }
  footer {
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 10px;
  }
  footer h3 {
    margin-left: 12px;
    margin-bottom: 20px;
  }
  footer i {
    margin-left: 10px;
    margin-right: 5px;
    padding-right: 5px;
    line-height: 1.3;
    margin-bottom: 9px;
  }
  footer span {
    font-size: 1rem;
    margin-bottom: 9px;
  }
  .mini-div1 {
    width: 98%;
    margin: 0 auto 0 auto;
    padding: 7px 0 0 10px;
    display: flex;
  }
  .mini-div2 {
    width: 98%;
    padding: 7px 0 15px 10px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: column;
  }
  .mini-div3 {
    width: 98%;
    padding: 7px 0 15px 10px;
    margin: 0 auto 0 auto;
  }
  .mini-div4 {
    width: 98%;
    flex-direction: column;
    border-left: none;
    padding: 0 0 15px 10px;
    margin: 0 auto 0 auto;
  }
  .mini-div4 p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1;
  }
  .below-footer {
    width: 100%;
    padding: 7px 0;
  }
  .below-footer p {
    text-align: center;
    font-size: 12px;
  }
}
