body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

::-webkit-scrollbar {
  display: none;
}

.Header {
  background-color: #1d1d1d;
  height: 35px;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-weight: bold;
  font-size: 17px;
  color: white;
}

.sub-header {
  background-color: #f1f1f1;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: #333;
}

.nmit-logo {
  height: 80px;
  width: auto;
  margin-left: 55px;
  margin-bottom: 20px;
}

.Search-box {
  display: block;
  margin-left: auto;
  padding-right: 50px;
}

.search {
  height: 45px;
  width: 300px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 5px;
}

.search-btn {
  height: 38px;
  width: 90px;
  border-radius: 20px;
  border: none;
  background-color: #014682;
  color: white;
  margin-left: 10px;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #3d678c;
  transform: scale(1.05);
}

/* ------------------------------- */
/* .Team-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  width: 100%;
  font-size: 26px;
  font-weight: 480;
} */
/* ---------------------------------- */

/* Auto Sliding Label */

.Team-intro {
  display: flex; /* make children align in a row */
  gap: 9rem;
  font-size: 18px;
  font-weight: 500;
  font: bold;
  padding-block: 8px;
  border-block: 0.6px solid black;
  background-color: #e3e3e3;
  overflow: hidden;
  white-space: nowrap; /* prevent line break */
  user-select: none; /* prevent text selection or highlite */
}

.team-name {
  display: inline-block; /* instead of flex */
}

.team-name {
  display: inline-flex;
  gap: 9rem;
  animation: scroll 13s linear infinite;
}

.Team-intro:hover .team-name {
  animation-play-state: paused;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-100% - 9rem));
  }
}

/* ----Slider Section---- */

.slider-body {
  background-image: linear-gradient(to top right, skyblue, #1d2598);
  min-height: calc(100vh - 155px);
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: monospace;
}

.slider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 700px;
  overflow: hidden;
  perspective: 1000px;
}

.item {
  position: absolute;
  width: 300px;
  height: 420px;
  text-align: justify;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 20px;
  transition: 0.5s;
  /* left: calc(50% - 300px); */
  top: 13%;
  transform: translateY(-50%);
  left: 8%;
}
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: cover;
}

.photo-info {
  position: absolute;
  width: 650px;
  height: 420px;
  padding: 20px;
  text-align: justify;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: 0.5s;
  left: calc(50% - 100px);
  top: -0%;
  left: 95%;
  margin: 1px;
}

.item {
  transform: translateX(-100px);
}

.photo-info {
  transform: translateX(100px);
}
.Team.heading {
  position: absolute;
  top: 240px; /* distance from top */
  left: 27%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal, italic;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  color: #071937;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.number {
  font-size: 14px;
  font-weight: normal;
  color: #333;
}

.mail-box {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
}

.notice {
  height: 600px;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: 2px 2px 4px rgba(255, 255, 255, 0.5);
  background-color: transparent;
  width: 36%;
  margin: 85px;
  margin-bottom: 20%;
  margin-right: 10%;
  border-radius: 10px;
  padding: 10px;
}

.notice-heading {
  justify-content: center;
  display: flex;
}

.notice-list {
  font-size: 19px;
  font-weight: 580;
  color: rgba(255, 255, 255, 0.5);
}

/* <-------- Media Query --------> */

@media (max-width: 1200px) {
  .photo-info {
    width: 500px;
    left: 85%;
  }

  .Team.heading {
    left: 35%;
    top: 200px;
    font-size: 28px;
  }

  .notice {
    width: 45%;
    margin-right: 5%;
  }
}

@media (max-width: 768px) {
  .sub-header {
    flex-direction: column;
    text-align: center;
  }

  .nmit-logo {
    margin-left: 0;
    height: 70px;
  }

  .Search-box {
    margin: 10px 0;
    padding-right: 0;
  }

  .search {
    width: 200px;
  }

  .slider {
    flex-direction: column;
    height: auto;
  }

  .item {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 20px;
  }

  .photo-info {
    position: relative;
    width: 100%;
    left: 0;
    margin-top: 10px;
  }

  .notice {
    width: 90%;
    margin: 20px auto;
    height: auto;
  }

  .Team.heading {
    position: static;
    transform: none;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .Header {
    font-size: 14px;
    text-align: center;
  }

  .search {
    width: 160px;
    height: 38px;
  }

  .search-btn {
    width: 70px;
    height: 34px;
    font-size: 12px;
  }

  .Team-intro {
    font-size: 14px;
    gap: 4rem;
  }

  .item {
    width: 90%;
    height: auto;
  }

  .photo-info {
    width: 100%;
    font-size: 14px;
  }

  .notice-heading {
    font-size: 18px;
  }

  .notice-list {
    font-size: 15px;
  }
}
