.homepage {
  --biotrop-green: #174b3b;
  --biotrop-green-bright: #34785a;
  --biotrop-ink: #24352e;
  --biotrop-muted: #64736b;
  --biotrop-border: #dce6df;
  --biotrop-paper: #f5f7f3;
  color: var(--biotrop-ink);
  font-family: "Roboto", Arial, sans-serif;
  background: #fbfcfa;
}

.homepage a {
  color: var(--biotrop-green);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.homepage a:focus-visible,
.homepage button:focus-visible {
  outline: 3px solid #e3a92f;
  outline-offset: 3px;
}

.homepage .home-hero {
  position: relative;
  overflow: hidden;
  background: #173b30;
}

.homepage .hero-slide {
  position: relative;
  min-height: clamp(500px, 72vh, 760px);
  overflow: hidden;
  background: #173b30;
}

.homepage .hero-image,
.homepage .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.homepage .hero-image {
  object-fit: cover;
  object-position: center;
}

.homepage .hero-shade {
  background: linear-gradient(90deg, rgba(10, 29, 20, .78), rgba(10, 29, 20, .43) 53%, rgba(10, 29, 20, .08));
}

.homepage .hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  color: #fff;
}

.homepage .hero-caption .container {
  max-width: 1140px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.homepage .hero-eyebrow,
.homepage .section-kicker {
  margin: 0 0 .8rem;
  color: #a8d19a;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.homepage .hero-caption h1 {
  max-width: 900px;
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.homepage .hero-caption > .container > p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.homepage .hero-controls {
  position: absolute;
  z-index: 3;
  right: max(1.25rem, calc((100vw - 1140px) / 2));
  bottom: 2rem;
  display: flex;
  gap: .55rem;
}

.homepage .hero-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: rgba(13, 39, 26, .42);
  transition: background-color .2s ease, transform .2s ease;
}

.homepage .hero-control:hover {
  transform: translateY(-2px);
  background: var(--biotrop-green);
}

.homepage .homepage-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.homepage .section-heading {
  margin-bottom: 1.7rem;
}

.homepage .section-heading .section-kicker {
  margin-bottom: .35rem;
  color: var(--biotrop-green-bright);
}

.homepage .section-heading h2 {
  margin: 0;
  color: var(--biotrop-green);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.homepage .news-section {
  background: var(--biotrop-paper);
}

.homepage .news-card {
  height: 100%;
  margin: .25rem .55rem 1rem;
  overflow: hidden;
  border: 1px solid var(--biotrop-border);
  border-radius: .45rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.homepage .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(28, 60, 43, .11);
}

.homepage .news-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.homepage .news-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e7eee9;
}

.homepage .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.homepage .news-card:hover .news-image img {
  transform: scale(1.035);
}

.homepage .news-card-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.homepage .news-card-body time {
  color: var(--biotrop-muted);
  font-size: .82rem;
}

.homepage .news-card-body h3 {
  margin: .8rem 0 1.15rem;
  color: var(--biotrop-ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.homepage .news-read-more,
.homepage .section-link {
  color: var(--biotrop-green);
  font-size: .9rem;
  font-weight: 700;
}

.homepage .section-link {
  margin-top: .5rem;
  text-align: right;
}

.homepage .section-link a {
  text-decoration: none;
}

.homepage .homepage-poster {
  padding: 1.5rem 0;
  background: #fff;
}

.homepage .homepage-poster img,
.homepage .sidebar-posters img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .4rem;
}

.homepage .gallery,
.homepage .publication {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.homepage #owl-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .45rem;
  background: #e7eee9;
}

.homepage #owl-gallery figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage #owl-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1.25rem 1rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(12, 30, 21, .78));
  font-size: .95rem;
}

.homepage .publication-card {
  height: 100%;
  margin: .25rem .4rem 1rem;
  overflow: hidden;
  border: 1px solid var(--biotrop-border);
  border-radius: .4rem;
  background: #fff;
}

.homepage .publication-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.homepage .carousel-item-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--biotrop-paper);
}

.homepage .carousel-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.homepage .publication-card:hover img {
  transform: scale(1.025);
}

.homepage .carousel-item-text {
  padding: 1rem;
}

.homepage .item-kicker {
  color: var(--biotrop-green-bright);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.homepage .item-title {
  margin: .45rem 0 0;
  color: var(--biotrop-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.homepage .research {
  align-items: stretch;
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--biotrop-border);
  border-radius: .5rem;
  background: var(--biotrop-paper);
}

.homepage .research .image {
  display: flex;
  align-items: center;
}

.homepage .research .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: .35rem;
}

.homepage .research h3 {
  margin: 1.25rem 0 .8rem;
  color: var(--biotrop-ink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
}

.homepage .research h3 small {
  display: block;
  margin-top: .45rem;
  color: var(--biotrop-muted);
  font-size: .85rem;
  font-weight: 400;
}

.homepage .research p,
.homepage .sidebar-panel p {
  color: #536159;
  font-size: .96rem;
  line-height: 1.75;
}

.homepage .homepage-sidebar {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.homepage .homepage-sidebar > * {
  max-width: 100%;
  min-width: 0;
}

.homepage .sidebar-panel {
  padding: 1.35rem;
  border: 1px solid var(--biotrop-border);
  border-radius: .45rem;
  background: #fff;
}

.homepage .sidebar-panel .section-heading {
  margin-bottom: 1rem;
}

.homepage .sidebar-panel .section-heading h2 {
  font-size: 1.45rem;
}

.homepage .sidebar-panel .section-heading h2 small {
  display: block;
  margin-top: .3rem;
  color: var(--biotrop-muted);
  font-size: .85rem;
  font-weight: 500;
}

.homepage .event-list,
.homepage .othernews ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.homepage .event-list li + li,
.homepage .othernews li + li {
  border-top: 1px solid var(--biotrop-border);
}

.homepage .event-link {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}

.homepage .event-link time {
  display: flex;
  flex: 0 0 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.8rem;
  border-radius: .3rem;
  color: #fff;
  background: var(--biotrop-green);
  line-height: 1.2;
}

.homepage .event-link .day {
  font-size: 1.25rem;
  font-weight: 700;
}

.homepage .event-link .month,
.homepage .event-link .year {
  font-size: .72rem;
}

.homepage .event-info {
  display: grid;
  align-content: center;
  gap: .25rem;
}

.homepage .event-title {
  color: var(--biotrop-ink);
  font-weight: 700;
  line-height: 1.4;
}

.homepage .event-venue {
  color: var(--biotrop-muted);
  font-size: .85rem;
}

.homepage .callforpaper .btn {
  margin-top: .25rem;
  border-color: var(--biotrop-green);
  background: var(--biotrop-green);
  color: #fff;
}

.homepage .callforpaper .btn:hover,
.homepage .callforpaper .btn:focus {
  border-color: #103a2e;
  background: #103a2e;
  color: #fff;
}

.homepage .othernews li a {
  display: grid;
  gap: .4rem;
  padding: .85rem 0;
  color: var(--biotrop-ink);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.homepage .othernews time {
  color: var(--biotrop-muted);
  font-size: .78rem;
  font-weight: 400;
}

.homepage .social-feed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 350px;
  border: 0;
}

.homepage .sidebar-counter img {
  max-width: 100%;
  height: auto;
}

.homepage .institutional-close {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  color: #fff;
  text-align: center;
  background: var(--biotrop-green);
}

.homepage #footer {
  border-top: 1.5rem solid var(--biotrop-paper);
}

.homepage .institutional-close img {
  display: block;
  width: min(170px, 45vw);
  max-height: 100px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.homepage .institutional-close h2 {
  max-width: 850px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.4;
}

.homepage .work-with-biotrop {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: #fbfcfa;
}

.homepage .work-with-biotrop-heading {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.homepage .work-with-biotrop-heading .section-kicker {
  margin-bottom: .45rem;
  color: var(--biotrop-green-bright);
}

.homepage .work-with-biotrop-heading h2 {
  margin: 0 0 .7rem;
  color: var(--biotrop-green);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.homepage .work-with-biotrop-heading > p:last-child {
  margin: 0;
  color: var(--biotrop-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.homepage .work-with-biotrop-options {
  max-width: 1080px;
  margin: 0 auto;
}

.homepage .work-with-biotrop-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  min-height: 160px;
  padding: 1.35rem;
  border: 1px solid var(--biotrop-border);
  border-radius: .45rem;
  color: var(--biotrop-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.homepage .work-with-biotrop-card:hover {
  transform: translateY(-3px);
  border-color: #b7ccbd;
  box-shadow: 0 12px 28px rgba(28, 60, 43, .09);
}

.homepage .work-with-biotrop-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: .4rem;
  color: var(--biotrop-green);
  background: #eaf2ed;
  font-size: 1.05rem;
}

.homepage .work-with-biotrop-card-copy {
  display: grid;
  flex: 1 1 auto;
  gap: .45rem;
}

.homepage .work-with-biotrop-title {
  color: var(--biotrop-green);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.homepage .work-with-biotrop-description {
  color: var(--biotrop-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.homepage .work-with-biotrop-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--biotrop-green-bright);
  font-size: 1.25rem;
  transition: transform .2s ease;
}

.homepage .work-with-biotrop-card:hover .work-with-biotrop-arrow {
  transform: translateX(3px);
}

.homepage .work-with-biotrop-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.homepage .work-with-biotrop-contact p {
  margin: 0;
  color: var(--biotrop-ink);
  font-weight: 600;
}

.homepage .work-with-biotrop-contact .btn {
  border-color: var(--biotrop-green);
  background: var(--biotrop-green);
  color: #fff;
  font-weight: 600;
}

.homepage .work-with-biotrop-contact .btn:hover,
.homepage .work-with-biotrop-contact .btn:focus {
  border-color: #103a2e;
  background: #103a2e;
  color: #fff;
}

.homepage.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.homepage.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 767.98px) {
  .homepage .hero-slide {
    min-height: 560px;
  }

  .homepage .hero-shade {
    background: linear-gradient(90deg, rgba(10, 29, 20, .75), rgba(10, 29, 20, .34));
  }

  .homepage .hero-caption .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .homepage .hero-controls {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .homepage .research .image img {
    height: auto;
    object-fit: contain;
  }

  .homepage .work-with-biotrop-options {
    max-width: 520px;
  }

  .homepage .work-with-biotrop-card {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .homepage-content > .container > .row {
    --bs-gutter-x: 1.5rem;
  }

  .homepage .work-with-biotrop-contact {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage *,
  .homepage *::before,
  .homepage *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
