html,
body {
  font-family: 'Lato', sans-serif;
  font-size: 1.05em;
}

h1,
h2,
h3,
h4 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  margin-bottom: 0.5em;
}

a.icon-link {
  text-decoration: none;
}

i {
  color: var(--bs-light);
  font-size: 15.5rem;
}

i:hover {
  color: #0a58ca !important;
}

.no-padding {
  padding: 0px;
  margin: 0px;
}

.icon-link {
  margin: 0 0.5em;
  transition: color 0.2s, transform 0.2s;
}

.icon-link:hover {
  color: #0a58ca;
  transform: scale(1.2);
}

/* SIDEBAR styles */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 12px 12px;
  z-index: 1050;
  background: #222;
  color: #fff;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.10);
}

body.sidebar-active {
  overflow: hidden;
}

#sidebar.sidebar-open {
  transform: translateX(0);
}

/* SIDEBAR TOGGLE BUTTON */
.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 10px;
  z-index: 1100;
  border: none;
  outline: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 30%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.3s;
  cursor: pointer;
}

.sidebar-toggle.open {
  background: #222;
}

.sidebar-toggle i {
  font-size: 2.7rem;
  color: #2c3e50;
  font-weight: bold;
  transition: color 0.3s;
  text-shadow:
    1px 0 0 currentColor,
    0 1px 0 currentColor,
    -1px 0 0 currentColor,
    0 -1px 0 currentColor;
}

.sidebar-toggle.open i {
  color: #fff;
  text-shadow:
    1px 0 0 #fff,
    0 1px 0 #fff,
    -1px 0 0 #fff,
    0 -1px 0 #fff;
}

/* SIDEBAR CONTENT */
#sidebar>img {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

ul.nav {
  border-radius: 8px;
  padding: 0.5em;
  margin-top: 1em;
}

#sidebar>h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
  margin-left: 0%;
}

#sidebar>h4 {
  padding-left: 5%;
  font-size: 27px;
}

#sidebar>.links {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

footer {
  border-top: 1px solid #374151;
  margin-top: 2em;
  padding-top: 0.7em;
  color: #b0b8c1;
  font-size: 0.9em;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: end;
  font-size: 0.8rem;
  padding: 0%;
  font-weight: 400;
}

.address:last-child {
  margin-left: 8px;
}

/* MAIN CONTENT AREA */
#content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh);
  padding: 5px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

#sidebar.sidebar-open~#content {
  margin-left: 300px;
}

.content {
  padding: 24px;
}

@media (max-width: 600px) {
  /* #content { */
  padding: 5px 10px;
  /* } */
}

#content-container {
  overflow-y: visible;
}

/* NAV */
#navbar {
  padding: 0;
  margin-top: 10%;
  display: flex;
  width: 100%;
  margin-left: 0%;
}

.nav-item {
  text-align: left;
  border-radius: 5px;
  color: var(--bs-light);
  width: max-content;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  color: var(--bs-light);
  text-decoration: none;
  width: 100%;
}

.nav-link:hover {
  background: #000000;
  color: #0a58ca !important;
}

.card {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(1, 20, 60, 0.08);
  transform: translateY(-3px) scale(1.02);
}

.nav-link.active {
  color: #0a58ca !important;
  font-weight: 600;
}

.nav-item.active {
  background: transparent;        
  box-shadow: none;
  border-left: 4px solid #0a58ca;
  color: #0a58ca !important;
}

.nav-item.active > .nav-link {
  background: #000000;          
}

.nav-link-sub {
  font-size: 0.88rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  color: rgb(255, 255, 255) !important;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 0.75rem;
}
.nav-link-sub:hover{
  background: #000000;
  color: #0a58ca !important;
}

.nav-link-sub.active {
  color: #0a58ca !important;
}
.subnav-chevron {
  transition: transform 0.2s ease;
}
[aria-expanded="true"] .subnav-chevron {
  transform: rotate(180deg);
}

/* Identity (landing/ overview of sub-pages) */
.identity>h1 {
  font-weight: 900;
  text-align: left;
  margin: 0;
  margin-bottom: 16px;
}

.identity>.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: space-between;
}

.identity {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.identity>p {
  text-align: left;
  margin: 0;
}

.content>.card {
  margin-bottom: 12px;
  border-radius: 5px;
  background-color: inherit;
}

.content>.card:first-child {
  margin-top: 7px;
}

.card-body i {
  color: var(--bs-dark);
}

.card-body .bi {
  transition: .3s transform ease-in-out;
}

.card-body .collapsed .bi {
  transform: rotate(90deg);
}

.topic-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
}

.topic {
  min-width: 200px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-right: 30px;
}

.collapse-icon {
  display: inline-block;
  position: absolute;
  right: 0;
  margin-right: 8px;
}

.card {
  width: 100%;
}

.card>img {
  filter: blur(1px) sepia(8%) contrast(110%);
}

.card-body>a {
  color: #0a58ca;
  text-decoration: none;
  padding-bottom: 16px;
}

.card-title,
.card-text {
  padding-left: 16px;
  padding-right: 16px;
}

.collapsing {
  height: 0px;
  overflow: hidden;
}

/* Publication list */
.publications {
  text-align: left;
}

.publications>hr {
  margin-left: 30%;
  margin-right: 30%;
}

.publications>h1,
.publications>h2,
.publications>h3,
.publications>h4,
.publications>h5,
.publications>h6 {
  text-align: left;
}

.publications>h3 {
  line-height: 1.5;
  font-size: 1.3em;
  font-weight: 600;
}

.publication {
  margin-bottom: 1.8rem;
}

.publication ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.publications>ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding-left: 0.5rem;
}

.publication-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.publication-header>h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1;
  font-size: 1.2em;
  color: var(--bs-dark);
  margin-right: 1rem;
}

.publication-header a {
  text-decoration: none;
}

.publication-journal {
  box-shadow: inset 3px 0px 0px 0px #1874fc, inset -3px 0px 0px 0px #1874fc;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 5px;
  width: 100px;
}

.publication-journal:hover {
  box-shadow: inset 3px 0px 0px 0px #0a58ca, inset -3px 0px 0px 0px #0a58ca;
}

.publication-authors {
  display: flex;
  align-items: top;
  justify-content: flex-start;
  text-align: center;
  padding: 8px;
}

.publication-authors>p {
  text-indent: 2em;
  margin: 0;
}

.publication-authors>p>em {
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
}

.publication-authors>ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0;
  flex-wrap: wrap;
  align-items: top;
}

.publication-authors>ul>li {
  padding-left: 5px;
  padding-right: 5px;
}

.publication-authors>p {
  color: var(--bs-dark);
  text-align: left;
}

.publications>ul>hr {
  margin-left: 67%;
}

.publication-abstract {
  padding: 8px;
}

.publication-abstract>p {
  text-indent: 2em;
  margin: 0;
}

.publication-abstract>p>em {
  text-decoration: none;
  font-style: normal;
  font-weight: 700;
}

.publication-abstract>p>em:after {
  content: " ";
}

.col-10 {
  width: 70%
}

.title {
  width: 90%;
  margin-left: 5%;
}

@media (max-width: 1000px) {
  #content {
    margin-left: 35px;
  }

  .content {
    max-width: 90vw;
    padding: 5px 0vw;
    align-self: left;
  }
}

@media (max-width: 800px) {
  #sidebar {
    width: 85vw;
    min-width: 180px;
    max-width: 96vw;
  }
}

@media (max-width: 600px) {
  .identity img {
    object-position: right center;
  }
}