@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

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

:root {
  --primaryColor: #315326;
  --secondaryColor: #91B32B;
  --secondarySelectorColor: #6E8A21;
  --primaryTextColor: #000;
  --secondaryTextColor: #333;
}

.justified-text {
  text-align: justify;
}

.center-text {
  text-align: center;
}

.primary-text {
  color: var(--primaryTextColor);
  font-size: medium;
}

.secondary-text {
  color: var(--secondaryTextColor);
  font-size: medium;
}



.desktop-header {
  padding: 0.75rem 0.75rem;
  background-color: var(--primaryColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* #desktop-nav {
  display: flex;
  justify-content: flex-end;
} */

.header-content-separator {
  height: 2px;
  background-color: var(--secondaryColor);
}

p {
  font-size: 1.1rem;
  color: var(--primaryTextColor);
  font-weight: 500;
  line-height: 30px;
  word-wrap: break-word;
  line-height: 1.7rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primaryTextColor);
}

header img {
  object-fit: cover;
}

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0 0.5rem 0;
  white-space: nowrap;
}

.nav-list li {
  transition: all 300ms linear;
  text-transform: capitalize;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 1rem;
}

/* .nav-list li:last-child {
  margin-right: 1rem;
} */

/* .nav-list li a {
  text-decoration: none;
  color: white;
} */

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

.email-link {
  text-decoration: none;
  color: inherit;
}

.nav-list li a {
  text-decoration: none;
  color: white;
  padding: 10px;
  background-color: var(--primaryColor);
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
  /* Smooth transition for hover effect */
}

.nav-list li a:hover {
  color: white;
  background-color: var(--secondaryColor);
}

/* .nav-list li::after {
  content: "";
  position: absolute;
  right: 0%;
  width: 2px;
  height: 70%;
  background-color: grey;
  top: 50%;
  transform: translateY(-50%);
  background-color: #80808094;
}

.nav-list li:last-child::after {
  width: 0px;
} */

/* .nav-list li a:hover {
  color: white;
  background-color: var(--secondaryColor);
} */

.bannerImg {
  width: 100%;
  height: 250px;
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

.bannerImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bannerImg-heading {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  color: #fff;
  background-color: var(--primaryColor);
  /* background-color: #91B32B; */
  display: flex;
  align-items: center;
}

/* Marquee Effect Styling */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-left: 100%;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.header-banner-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #fff;
  /* background-color: var(--primaryColor); */
  background-color: rgba(49, 83, 38, 0.25);
  display: flex;
  align-items: center;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.bannerImg-heading h1 {
  font-size: 25px;
  font-weight: 500;
  padding: 0 10px;
  line-height: 35px;
}

.header-banner-text h1 {
  font-size: 20px;
  font-weight: 500;
  padding: 10px;
  width: 100%;
  text-align: center;
}

#allInfo {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem auto;
}

#mainContent {
  flex: 3;
}

.mainContent-div {
  display: flex;
  gap: 1rem;
}

.mainContent-text {
  flex: 2;
}

.mainContent-text h3 {
  margin-bottom: 10px;
}

.mainContent-image {
  flex: 1;
}

.mainContent-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mainContent-image h3 {
  text-decoration: none;
  font-size: 22px;
  text-align: center;
}

.mainContent-list1 {
  padding-left: 2rem;
  line-height: 2rem;
  color: var(--primaryColor);
}

.normal-list {
  padding-left: 2rem;
  line-height: 2rem;
  font-size: 1.1rem;
  color: var(--primaryTextColor);
}

.mainContent-list1+div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mainContent-list1+div img {
  object-fit: contain;
}

#mainContent>h2 {
  margin-bottom: 1rem;
}

.office-div {
  margin-top: 1.5rem;
  color: var(--primaryTextColor);
}

.emails-div {
  margin-top: 1.5rem;
}

.emails-div a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  line-height: 2rem;
}

#latestNews {
  padding-top: 1.5rem;
  border-top: 1px solid var(--primaryColor);
  margin-top: 1.5rem;
}

#latestNews h2 {
  margin-bottom: 1.5rem;
}

.sidebar-img-div {
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 3px;
}

.sidebar-img-div img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

#sideInfo {
  flex: 1;
  position: relative;
}

#sideInfo>h2 {
  padding-bottom: 1rem;
}

.latestNews-date {
  margin-bottom: 2rem;
}

.latestNews-date p {
  line-height: 1.5rem;
}

.latestNews-date p:nth-child(2) {
  font-style: italic;
  font-weight: bold;
}

#sideInfo {
  padding: 4px 1rem 0rem 1rem;
  background-color: #80808026;
  height: 100%;
  position: relative;
  padding-bottom: 18rem;
}

.sidebar-img-div p {
  font-weight: 500;
  font-size: 18px;
}

.sidebar-img-div p a {
  color: var(--primaryColor);
}

.followUs {
  background-color: var(--primaryColor);
  color: #fff;
  border-radius: 100vw;
  padding: 2px 14px;
  text-decoration: none;
  font-size: 13px;
  margin-top: 1rem;
}

.follow-twitter {
  color: var(--primaryColor);
}

.sidebar-img-div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.posts {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  background-color: #fff;
  padding-bottom: 3rem;
  box-shadow: 0 0 3px grey;
  position: absolute;
  width: 95%;
  top: 73%;
  height: fit-content;
}

.post-head {
  padding: 10px 1.3rem;
  border-bottom: 1px solid grey;
}

.post-head a {
  text-decoration: none;
  font-size: 18px;
  transition: all 300ms linear;
  color: #000;
  font-size: 22px;
  font-weight: 600;
}

.post-head a:hover {
  text-decoration: underline;
}

.post-logo i {
  font-size: 3rem;
}

.post-logo {
  margin: 2rem 0;
}

.posts h2 {
  font-size: 2rem;
  line-height: 2rem;
  font-size: 34px;
  font-weight: 600;
}

.posts p {
  color: grey;
  margin-top: 1rem;
}

.post-logo-div {
  padding: 0 1rem;
}

.viewOnX a {
  color: #fff;
  border-radius: 100vw;
  padding: 1rem 2rem;
  border: none;
  background-color: #227bd7;
  text-decoration: none;
  margin-top: 3rem;
  transition: all 300ms linear;
}

.viewOnX a:hover {
  background-color: #2e18d3;
}

.viewOnX {
  margin-top: 2rem;
}

/* #footer {
  background-color: var(--primaryColor);
}

#footer p {
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
}

.footer-content p:first-child {
  flex: 2;
  padding: 1.5rem 0;
}

.footer-content p:last-child {
  flex: 1;
} */

#footer {
  background-color: var(--primaryColor);
  text-align: center;
  /* Center align text in the footer */
}

#footer p {
  color: #fff;
  margin: 0.25rem 0;
  /* Add margin to separate the paragraphs */
}

.footer-content {
  display: block;
  /* Use block display to stack paragraphs */
  padding: 0.5rem 0;
}

.latestNews-img-div img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.latestNews-img-div {
  margin-bottom: 2rem;
  width: 100%;
}

.latestNews-img-div p {
  margin-top: 1rem;
}

.latestNews-btn a {
  color: #fff;
  padding: 3px 10px;
  background-color: var(--primaryColor);
  text-decoration: none;
}

/*:::::::::::::::::::::::::::::Research page start:::::::::::::::::::::::::::::*/
.bannerHeading {
  padding: 1px;
  background-color: var(--primaryColor);
  color: #fff;
  font-size: 20px;
  border-top: 1px solid var(--secondaryColor);
  border-bottom: 1px solid var(--secondaryColor);
}

.bannerHeading h1 {
  font-weight: 400;
}

.top-research {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.top-research div:first-child {
  flex: 0.8;
}

.top-research div:first-child img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.top-research div:last-child {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mainContent-list1 li span {
  font-weight: bold;
  color: var(--primaryColor);
}

.mainContent-list1 li a {
  color: var(--primaryColor);
}

.info-card {
  border-top: 1px solid var(--primaryColor);
  padding-top: 25px;
  margin-top: 2rem;
  /* padding-bottom: 2rem; */
}

.info-card ul {
  padding-left: 1rem;
  color: var(--primaryColor);
}

.info-card ul li {
  line-height: 1.7rem;
}

.info-card h2 {
  padding-bottom: 25px;
}

.mainContent-list1+div+.info-card {
  border-top: 1px solid var(--primaryColor);
}

.info-card>div {
  display: block;
  gap: 1rem;
}

.info-card>div img {
  flex: 0.7;
  width: 100%;
  height: 100%;
}

.info-card>div div {
  flex: 1.3;
}

.info-card>div div a {
  background-color: var(--primaryColor);
  color: #fff;
  text-decoration: none;
  padding: 7px 15px;
  margin-top: 1rem;
  display: inline-block;
}

.adjustHeight {
  height: auto !important;
  padding-bottom: 0 !important;
}

/*:::::::::::::::::::::::::::::Research page end:::::::::::::::::::::::::::::*/

/*:::::::::::::::::::::::::::::Team page start:::::::::::::::::::::::::::::*/
#whole-team {
  display: flex;
  gap: 2rem;
}

#whole-team div:first-child {
  flex: 8;
}

#whole-team div:first-child img {
  width: 100%;
  height: auto;
}

#whole-team div:last-child {
  flex: 2;
}

#whole-team {
  margin: 2rem auto;
}

.personal_details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Adds a 10px gap between all child elements */
}

.investigator-div {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  color: var(--primaryTextColor);
  align-items: top;
}

.investigator-div>div:first-child img {
  width: 350px;
  height: auto;
  object-fit: contain;
}

.investigator-div>div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.investigator-div>div:last-child ul {
  padding-left: 2rem;
  line-height: 2rem;
}

.lab-members {
  background-color: #eee;
  padding: 10px;
}

.lab-members div:last-child {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  padding: 1rem 1rem 2rem 1rem;
}

.lab-members div:last-child ul {
  list-style: none;
  line-height: 1.4rem;
  color: var(--primaryColor);
}

.lab-members div:last-child ul li a {
  text-decoration: none;
}

.lab-members-div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  flex-wrap: wrap;
}

.lab-members div:first-child img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

#lab-member-section>h2 {
  margin: 2rem 0;
}

.past-lab-member {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #eee;
  padding: 10px;
}

.past-lab-members-div {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.past-lab-members-div a {
  color: var(--primaryColor);
}

.past-lab-member h4 {
  color: var(--primaryColor);
}

#past-labmember h2 {
  margin: 2rem 0;
}

/*:::::::::::::::::::::::::::::Team page end:::::::::::::::::::::::::::::*/

/*:::::::::::::::::::::::::::::News page Start:::::::::::::::::::::::::::::*/
.news-div {
  border-bottom: 1px solid var(--primaryColor);
  padding: 0 0 2rem 0;
  margin-bottom: 2rem;
}

.news-div>div {
  display: flex;
  gap: 1rem;
  padding: 0 0rem;
}

.news-div>div img {
  width: auto;
  height: 300px;
}

/* .news-div>div p a {
  font-weight: 900;
  color: var(--primaryTextColor);
} */

.news-div>p {
  font-weight: 500;
  font-size: 20px;
}

.news-div>p,
.news-div>h2 {
  margin-bottom: 1rem;
  padding: 0 0rem;
  font-weight: 400;
  color: var(--primaryTextColor);
}

/*:::::::::::::::::::::::::::::News page end:::::::::::::::::::::::::::::*/

/*:::::::::::::::::::::::::::::Teaching page start:::::::::::::::::::::::::::::*/
.teaching-div {
  display: flex;
  gap: 3rem;
  justify-content: center;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--primaryColor);
}

.teaching-div h3 {
  color: var(--primaryTextColor);
}

.teaching-div>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.teaching-div>div>h2 {
  font-weight: 700;
}

.teaching-div>img {
  flex: 1;
  height: 280px;
  width: 380px;
  object-fit: contain;
}

#all-news-section .news-div:first-child {
  padding-top: 2rem;
}

/*:::::::::::::::::::::::::::::Teaching page end:::::::::::::::::::::::::::::*/

/*:::::::::::::::::::::::::::::Publication page start:::::::::::::::::::::::::::::*/
#publications {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 1.5rem 0 5rem 0;
}

#publications>div>h2 {
  margin-bottom: 1rem;
}

/*:::::::::::::::::::::::::::::Publication page end:::::::::::::::::::::::::::::*/

/*---------------------Navbar css start-----------------------*/
.navbarNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
  background-color: var(--primaryColor);
  height: 50px;
  position: relative;
  width: 100%;
  /* gap: 2rem; */
}

.hamburger-menu span {
  display: block;
  width: 35px;
  height: 5px;
  background-color: #fff;
  margin-bottom: 7px;
}

.bar1 {
  transform-origin: 0% 0%;
  transition: transform 0.3s ease-in-out;
}

.bar2 {
  transition: transform 0.2s ease-in-out;
}

.bar3 {
  transform-origin: 0% 100%;
  transition: transform 0.3s ease-in-out;
}

/* .hamburger-menu {
  width: 40px;
  height: 40px;
} */

.bar:last-child {
  margin-bottom: 0px;
}

/* .hamburger-menu {
  position: relative;
  height: 40px;
  width: 40px;
} */

.input-checkbox-ham {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 100;
  background-color: red;
  opacity: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  top: 10px;
  left: calc(100% - 54px);
}

.menu-items-logo {
  margin-bottom: 2rem;
  margin-left: 1rem;
}

.menu-items {
  padding: 0.5rem 0;
  background-color: var(--primaryColor);
  width: 80%;
  transform: translate(-150%);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  height: 100vh;
}

.menu-items li a {
  color: #fff;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  padding: 2rem 0;
  width: 100%;
  padding-left: 1rem;
}

.menu-items li {
  list-style: none;
  font-size: 1.3rem;
  position: relative;
  display: flex;
  justify-content: space-between;
}

.menu-items li::before {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background-color: #ffffff3d;
}

.inner-menu-btn {
  padding: 0px 7px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
  font-weight: 600;
  position: relative;
  transition-duration: 500ms;
}

.openNestedLinksBtn {
  position: absolute;
  inset: 0;
}

.nested-ul-div {
  height: 0;
  overflow: hidden;
}

.nested-ul-links {
  height: 0;
  overflow: hidden;
  transition-duration: 300ms;
}

.openNestedUL {
  position: absolute;
  right: 0;
  height: 27px;
  width: 27px;
  margin-right: 1rem;
  margin-top: -27px;
  opacity: 0;
}

.nav-footer-content {
  display: flex;
  align-items: center;
  padding: 6px 1rem;
}

.nav-footer-content p {
  margin-bottom: 0;
  color: #fff;
}

.nav-footer-content-icon i {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 1rem;
}

.input-checkbox-ham:checked~.menu-items {
  transform: translateX(0);
}

.input-checkbox-ham:checked~.hamburger-menu .bar1 {
  transform: rotate(45deg);
}

.input-checkbox-ham:checked~.hamburger-menu .bar2 {
  transform: scaleY(0);
}

.input-checkbox-ham:checked~.hamburger-menu .bar3 {
  transform: rotate(-45deg);
}

.text-head {
  position: relative;
  visibility: visible;
  color: red;
  text-align: right;
}

/*---------------------Navbar css start-----------------------*/

.bold {
  font-weight: bold;
}

.top-margin-1rem {
  margin-top: 1rem;
}

.content-wrapper {
  flex: 1;
  min-height: 700px;
}

.quick-link-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.quick-link-container a {
  text-decoration: none;
  color: #FFF;
  font-size: 16px;
  padding: 8px;
}

.quick-link-container a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 16px;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-icons a {
  text-decoration: none;
  color: var(--primaryColor);
  font-size: 40px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondarySelectorColor);
  transform: scale(1.1);
}

.google-scholar-icon {
  width: 40px;
  height: 40px;
  padding: 1px;
  margin-top: -6px;
}

.google-scholar-icon:hover rect {
  fill: var(--secondarySelectorColor);
}