/*!
 * Start Bootstrap - Modern Business (https://startbootstrap.com/template-overviews/modern-business)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-logomodern-business-nav/blob/master/LICENSE)
 */

body {
  padding-top: 54px;
  /*background-color:#000;*/
}

@media (min-width: 992px) {
  body {
    padding-top: 56px;
  }
}

.carousel-item {
  height: 75vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.portfolio-item {
  margin-bottom: 30px;
}

.pi-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.orcid-link,
.profile-icon-link {
  display: inline-flex;
  border-radius: 50%;
  line-height: 1;
}

.profile-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  vertical-align: -0.12em;
}

.orcid-link img,
.profile-icon-link img {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
}

.orcid-link:focus,
.profile-icon-link:focus {
  outline: 2px solid #0b6f3c;
  outline-offset: 2px;
}

.contact-map-column {
  display: flex;
}

.contact-map {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
}

/* Horizontal social preview: stable even when the external platform is down. */
.news-social-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 58%);
  width: 100%;
  max-width: 900px;
  margin: 1rem auto 1.5rem;
  overflow: hidden;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: #fff;
  color: #212529;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news-social-card:hover,
.news-social-card:focus {
  border-color: #aeb8c2;
  color: #212529;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.news-social-card-media {
  min-height: 210px;
  overflow: hidden;
  background: #05080c;
}

.news-social-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Editorial and paper previews must remain uncropped. */
.news-social-card-media--contain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
}

.news-social-card-media--contain img {
  max-height: 210px;
  object-fit: contain;
}

/* Journal covers are portrait-oriented and should remain fully visible. */
.news-social-card-media--cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 0.75rem;
  background: #f3f4f6;
}

.news-social-card-media--cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.news-social-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem;
}

.news-social-card-body strong {
  font-size: 1.3rem;
  line-height: 1.25;
}

.news-social-card-meta {
  color: #657786;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.news-social-card-link {
  margin-top: 0.25rem;
  color: #1d72b8;
  font-weight: 600;
}

.news-archive {
  border-top: 1px solid #dee2e6;
}

.news-archive:last-child {
  border-bottom: 1px solid #dee2e6;
}

.news-archive summary {
  padding: 0.85rem 0.25rem;
  color: #343a40;
  font-weight: 600;
  cursor: pointer;
}

.news-archive summary::marker {
  color: #6c757d;
}

.news-archive-content {
  margin: 0 0 0.9rem 0.35rem;
  padding: 0.15rem 0.75rem 0.1rem 1rem;
  border-left: 2px solid #e9ecef;
}

@media (max-width: 767.98px) {
  .news-social-card {
    grid-template-columns: 1fr;
  }

  .news-social-card-media {
    min-height: 165px;
    max-height: 210px;
  }

  .news-social-card-media--contain img {
    max-height: 185px;
  }

  .news-social-card-media--cover {
    min-height: 220px;
    max-height: 260px;
  }

  .news-social-card-media--cover img {
    max-height: 235px;
  }

  .news-social-card-body {
    padding: 1.1rem 1.2rem;
  }
}

/* Keep the language selector as one compact component at every breakpoint. */
.language-switcher {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
  white-space: nowrap;
}

.language-switcher .language-link {
  padding-right: 0.45rem;
  padding-left: 0.45rem;
}

.language-switcher .language-link,
.language-switcher .language-link[aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
}

.language-switcher a.language-link:hover,
.language-switcher a.language-link:focus {
  color: #fff;
}

.language-divider {
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

@media (max-width: 991.98px) {
  .contact-map-column {
    aspect-ratio: 4 / 3;
  }

  .language-switcher {
    margin-top: 0;
    margin-left: 0;
  }

  .language-switcher .language-link:first-child {
    padding-left: 0;
  }
}
