@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

body {
  font-family: "DM Sans", sans-serif;
}

@media (min-width: 1400px) {
  .container-lg {
    max-width: 1320px;
  }
}

a {
  color: #00624a;
}

a:hover {
  color: #004d3a;
}

/* ---------------------------------------------------------------------------
 * Navbar
 * ---------------------------------------------------------------------------*/

.bg-light {
  background-color: #fff !important;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05);
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------------------------------------------------------------------------
 * Shared
 * ---------------------------------------------------------------------------*/

.title {
  font-size: 1.3rem !important;
  font-weight: bold;
  position: relative;
  margin-bottom: 1rem !important;
  margin-top: 2rem;
}

/* ---------------------------------------------------------------------------
 * Home page
 * ---------------------------------------------------------------------------*/

.main_header {
  display: flex;
  align-items: center;
  min-height: 90vh;
}

.main_header_info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.main_header_info img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 100%;
  border: 5px solid #fff;
}

.main_header_info img[src=""] {
  display: none;
}

.main_header_info h1 {
  font-size: 1.8rem;
  margin-top: 1rem;
}

.main_header_info h2 {
  color: #888;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.main_header_content h6:last-of-type {
  margin-top: 4rem;
}

.main_header_content p {
  text-align: justify;
  margin: 0 !important;
  margin-top: 0.7rem !important;
}

.main_header ul {
  padding: 0;
  padding-left: 1rem;
  margin-top: 1rem;
}

#home_links {
  display: flex;
  align-items: center;
  list-style: none;
  margin-top: 0.5rem;
}

#home_links a {
  margin: 0 0.5rem;
  width: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.4rem;
  transform: scale(1);
  transition: all 0.3s;
}

#home_links a:hover {
  transform: scale(1.1);
}

#home_links img {
  width: auto;
  height: 33px;
  box-shadow: none;
  object-fit: contain;
  border-radius: 0;
  border: none;
}

/* ---------------------------------------------------------------------------
 * Publications / Research page
 * ---------------------------------------------------------------------------*/

.publication_container {
  margin-top: 3rem;
}

.publication_container .publications_header {
  margin-bottom: 1rem;
}

.publication_container .publications_header span {
  font-style: italic;
  font-size: 1rem;
}

.publication_container .publications_header h2 {
  display: inline;
  font-size: 1.15rem;
  text-align: justify;
}

.publication_container .publications_item {
  margin-bottom: 3rem;
  margin-left: 2rem;
  position: relative;
}

.publication_container .publications_item::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000;
}

.publication_container p {
  text-align: justify;
}

.publication_container .publications_footer {
  margin-bottom: 0.5rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  padding-top: 0.5rem;
  border-top: 1px solid #e6e6e6;
}

.publication_container .publications_footer span {
  margin: 0;
  margin-right: 1rem;
}

.publication_container .publications_footer li {
  margin-right: 2rem;
  position: relative;
}

.publication_container .publications_footer li::before {
  content: "";
  position: absolute;
  right: -1rem;
  top: 12%;
  height: 76%;
  width: 1px;
  background-color: #e6e6e6;
}

.publication_container .publications_footer li:last-of-type:before {
  display: none;
}

.publication_container .publications_footer a {
  color: #00624a;
  text-decoration: none;
}

.publication_container .publications_footer span:last-of-type {
  margin-left: 0.5rem;
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Teaching page
 * ---------------------------------------------------------------------------*/

#research_data p {
  margin: 1rem 0;
  text-align: justify;
}

#research_data h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
}

#research_data img {
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
}

/* ---------------------------------------------------------------------------
 * Work Experience page
 * ---------------------------------------------------------------------------*/

#jobs_data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 3rem;
}

#jobs_data .job_item {
  margin: 0;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

#jobs_data .job_item::after {
  content: "";
  position: absolute;
  left: 0px;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: #000;
  border-radius: 50%;
}

#jobs_data .job_item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 2px;
  height: calc(100% + 2rem);
  background-color: #e6e6e6;
}

#jobs_data .job_item:last-of-type:before {
  display: none;
}

#jobs_data .job_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#jobs_data .job_header div {
  display: flex;
  align-items: flex-end;
}

#jobs_data .job_header h1 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

#jobs_data .job_header h2 {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0;
  margin-left: 0.4rem;
}

#jobs_data .job_header .job_location {
  margin-left: 1rem;
  position: relative;
}

#jobs_data .job_header .job_location::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #e6e6e6;
}

#jobs_data p {
  margin-top: 0.5rem;
  text-align: justify;
}

#jobs_data ul {
  padding: 0;
  padding-left: 1rem;
}

/* ---------------------------------------------------------------------------
 * Contact page
 * ---------------------------------------------------------------------------*/

#contact_data {
  list-style: none;
  margin-top: 3rem;
  padding: 0;
}

#contact_data li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
}

#contact_data img {
  width: 30px;
  margin-right: 1.5rem;
}

#contact_data p,
#contact_data a {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
}

#contact_data a {
  text-decoration: none;
  color: #00624a;
}

/* ---------------------------------------------------------------------------
 * Mobile responsive
 * ---------------------------------------------------------------------------*/

@media (max-width: 980px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .navbar-toggler {
    border: none;
  }

  .main_header_info img {
    width: 200px;
    height: 200px;
    margin-top: 1rem;
  }

  .main_header_info h1 {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
  }

  .main_header_info h2 {
    margin-bottom: 0.8rem;
  }

  .main_header_content h6:last-of-type {
    margin-top: 3rem;
  }

  #home_links {
    margin-top: 0;
    margin-bottom: 3rem;
  }

  #home_links a {
    width: 32px;
    margin: 0 0.4rem;
  }

  #home_links img {
    width: 32px;
    height: 32px;
  }

  .publication_container .publications_item {
    margin-left: 1rem;
  }

  .publication_container .publications_item::before {
    left: -1rem;
  }

  #jobs_data .job_item {
    padding-left: 2rem;
    margin-bottom: 2rem;
  }

  #jobs_data .job_item::before {
    height: calc(100% + 2rem);
  }

  #jobs_data .job_header {
    flex-direction: column;
    align-items: flex-start;
  }

  #jobs_data .job_header div {
    display: flex;
    align-items: flex-end;
  }

  #jobs_data .job_header h1 {
    font-size: 1.1rem;
  }

  #jobs_data .job_header h2 {
    font-size: 1.1rem;
    margin-left: 0.4rem;
  }

  #contact_data img {
    width: 30px;
  }
}
