:root {
  --bs-link-color-rgb: black;
  --bs-link-hover-color-rgb: black;
  --bs-dropdown-link-active-bg: var(--bs-secondary);
  --bs-body-font-family: "Inter", sans-serif !important;

  --theGreen: #81d185;
  --theGreen-rgb: 129, 209, 133;
  --theGrey: #92908f;
  --theGrey-rgb: 146, 144, 143;
  --theYellow: #ffc857;
  --theYellow-rgb: 255, 200, 87;
  --theBlue: #3365e2;
  --theBlue-rgb: 51, 101, 226;
  --thePurple: #a77bca;
  --thePurple-rgb: 167, 123, 202;
  --theRed: #e5323b;
  --theRed-rgb: 229, 50, 59;
  --theNavy: #2e4052;

  --theOrange: #fdb598;
  --theOrange-rgb: 253, 181, 152;
  --theBrown: #693118;

  --dct-color-mode: rgb(0, 0, 0);
  --dct-color-mode-rev: rgb(255, 255, 255);
  --dct-invert: invert(0);
  --bs-accordion-active-color: var(--dct-color-mode) !important;
  --bs-form-check-bg: var(--dct-color-mode) !important;
  --bs-modal-zindex: 1100 !important;
}

[data-bs-theme="dark"] {
  --theNavy: #89c0f8;
  --bs-secondary-bg-rgb: 33, 37, 41;
  --bs-dark-rgb: rgb(255, 255, 255);
  --dct-color-mode: rgb(255, 255, 255);
  --dct-color-mode-rev: rgb(0, 0, 0);
  --bs-body-bg: black;
  --bs-tooltip-bg: var(--dct-color-mode);
  --dct-invert: invert(1);
  

  .text-dark {
    color: white !important;
  }

  hr.navbar-toggler {
    border-color: white;
  }

  .card {
    border-color: var(--theGrey);
  }

  .rescale-icon,
  .takeaway-icon, .icon-link::before, .modal-url, .arrow-container {
    filter: invert(1);
  }

  .accordion-button::before {
    filter: invert(0) !important;
  }

  .accordionGreen .accordion-button {
    background-color: rgba(var(--theGreen-rgb), 0.6) !important;
  }

  .accordionRed .accordion-button {
    background-color: rgba(var(--theRed-rgb), 0.6) !important;
  }

  .accordionGreen .accordion-button:not(.collapsed) {
    background-color: rgba(var(--theGreen-rgb), 0.9) !important;
  }

  .accordionRed .accordion-button:not(.collapsed) {
    background-color: rgba(var(--theRed-rgb), 0.9) !important;
  }

  .requirements-container .accordion-button {
    background-color: rgba(var(--thePurple-rgb), 0.6) !important;
  }

  .requirements-container .accordion-button:not(.collapsed) {
    background-color: rgba(var(--thePurple-rgb), 0.9) !important;
  }

  .accordion-button.advantages::before {
    filter: invert(1) !important;
  }

  .imgFigure.invertDark{
    filter: invert(1) !important;
  }
}

/* =========================
   HTML & BODY
   ========================= */
html {
  font-family: "Inter", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::selection,
body::-moz-selection {
  background-color: #fdb598;
  color: black;
}

p {
  text-align: left;
}

@font-face {
  font-family: "Amiri";
  src: url("https://static.igem.wiki/teams/5561/fonts/amiri-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://static.igem.wiki/teams/5561/fonts/inter-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libertinus Serif";
  src: url("https://static.igem.wiki/teams/5561/fonts/libertinus-regular.woff2")
    format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (min-width: 768px) {
  .dryLabBody {
    flex-direction: row;
  }

  .navbar.sideMenu {
    max-width: 250px;
    position: -webkit-sticky;
    position: sticky;
    top: 7rem;
    text-align: center;
  }

  .container {
    max-width: 80%;
    width: 90%;
  }

  .content {
    margin: 1rem;
    padding: 2rem;
  }

  .nextToAvatar {
    width: 100%;
  }
}

@media (max-width: 767.99px) {
  .dryLabBody {
    flex-direction: column;
  }

  .col-9 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .navbar.sideMenu {
    max-width: 500px;
    width: 80%;
    display: absolute;
  }

  .container {
    max-width: 95%;
    width: 95%;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    padding-right: 0;
  }

  .content {
    padding: 16px;
  }

  .modal-body {
    padding: 0%;
  }

  .nextToAvatar {
    width: 50%;
  }

  .plasmidSelection {
    flex-direction: column;
  }

  .human-practices-summary {
    display: none;
  }

  #plasmid {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100%;
  }

  .growthCurveContainer {
    width: 100% !important;
    max-height: 300px !important;
    height: 350px !important;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item::after {
    left: -25px !important;
  }

  .calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
  }

  .calendar-details {
    margin-top: 3rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  .team-overlay {
    display: none !important;
  }

  .caution-icon {
    display: none !important;
  }

  .attributions-accordions {
    flex-direction: column;
  }

  .human-practices-takeaways li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forest-header {
    padding-bottom: 4rem !important;
  }
  .modal-header a {
    margin-right: 3rem !important;
  }

  .partsContent{
    margin: 0.2rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 660px) {
  span.secondPartyHeadline {
    display: none !important;
  }

  .modal-content {
    padding: 1rem !important;
  }

  .avatar {
    width: 100px !important;
  }

  .hp-card-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .hp-card-header > * {
    width: 100%;
    align-self: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Only on very small phones */
  .avatar:not(.inModal) {
    height: 100% !important;
  }

  .img-container,
  .img-container img {
    height: 300px !important;
    max-height: 300px !important;
  }
}

/* =========================
   LAYOUT & NAVIGATION
   ========================= */
h1.headline,
.headline {
  margin: 1rem;
  padding: 2rem 1rem 1rem 1rem;
}

.navbar.sticky-top {
  color: white;
  border-color: var(--bs-light-bg-subtle) var(--bs-light-bg-subtle)
    var(--theGreen) var(--bs-light-bg-subtle);
  border-style: solid;
  border-bottom-width: 3px;
  margin: 0.5rem auto;
  padding: 0.75rem;
}

.navbar-brand-shown {
  visibility: visible !important;
  animation: navbarBrandFadeIn 0.3s ease;
}

@keyframes navbarBrandFadeIn {
  100% {
    visibility: visible;
  }
}

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

.navbar-nav > .nav-item {
  border-radius: 10px;
  color: black;
}

.dropdown-divider {
  margin: 0 !important;
}

.dropdown-item {
  text-align: center !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background-color: var(--bs-body-bg) !important;
}

/* =========================
   SIDE MENU
   ========================= */
.sideMenu {
  border-bottom-color: var(--theGreen);
  border-bottom-width: 2.6px;
  border-bottom-style: solid;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  align-self: flex-start;
  margin: 1rem;
  max-width: 500px;
  width: 20%;
}

.sideMenuElement {
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: transparent;
  color: var(--bs-body-color);
  text-align: left;
}

.sideMenuElement.active,
.sideMenuElement:hover {
  color: var(--theGreen) !important;
  border-left-color: var(--theGreen);
  text-shadow: 0.2px 0.2px 0.2px rgba(0, 0, 0, 0.5);
}

/* =========================
   CONTENT & CARDS
   ========================= */

.card {
  border: 0;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  cursor: pointer;
}

.card-img-top {
  width: 100%;
  height: 12rem;
  width: 12rem;
  border-radius: 50%;
}

.toggler::before {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-left: 0.3em solid;
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
}

.challenges {
  color: var(--theRed);
}

.blockquote {
  font-family: "Libertinus Serif", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 34px;
  line-height: 45px;
  color: var(--theNavy);
}

figure.text-center {
  margin: 2rem 0 0 0;
}

.human-practices-takeaways::before {
  display: inline-block;
  vertical-align: 0.255em;
  content: "Takeaways: ";
}

.human-practices-takeaways {
  border: none !important;
}

.human-practices-long {
  margin-top: 1rem;
}

.source {
  color: var(--bs-body-color);
  scroll-margin-top: 360px;
}

.up-btn {
  color: var(--theNavy);
  text-decoration: none;
  position: relative;
  background-color: var(--bs-secondary-bg);
  border-radius: 10px;
  padding: 6px;
}

.imgFigure {
  max-width: 90%;
  display: block;
  max-height: 50vh;
  margin: auto;
  object-fit: contain;
  text-align: center !important;
}

figure iframe{
  max-height: 40vh;
  width: 100%;
  border: 0px;
  aspect-ratio: 4/3;
}

figure figcaption.imgFigure{
  max-height: none !important;
}


/* =========================
   BUTTONS
   ========================= */
.btn {
  color: var(--dct-color-mode);
  background-color: var(--theGreen);
  border-color: var(--theGreen);
}

.btn:hover {
  color: black;
  background-color: var(--thePurple);
  border-color: var(--thePurple);
}

.btn.exploreMore {
  color: black !important;
  background-color: var(--thePurple) !important;
  border-color: var(--thePurple) !important;
}

.btn.exploreMore:hover {
  background-color: var(--theGreen) !important;
  border-color: var(--theGreen) !important;
}

/* =========================
   PROFILE CARDS & MEMBERS
   ========================= */
.member-profile-card {
  position: relative;
  width: 300px;
  height: 400px;
  bottom: 20%;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s;
}

.member-profile-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.member-profile-card .member-profile-desc {
  transition: transform 0.3s, height 0.3s;
}

.member-profile-card:hover .member-profile-desc,
.member-profile-card:active .member-profile-desc {
  height: 90%;
}

.member-profile-card:hover .hidden {
  display: block !important;
}

.lead {
  font-weight: 700;
  font-size: 2rem;
}

.modal-xl {
  max-width: 90vh !important;
}

.modal {
  z-index: 1100 !important;
}

/* =========================
   UTILITY CLASSES & CUSTOM
   ========================= */
.left-aligned {
  margin-left: auto;
}

.bg-dark {
  background-color: #343a40 !important;
}

.bg-hero {
  background-color: #45b06cff;
}

/* Callout styles */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--dct-color-mode);
  border-top-color: var(--bs-body-bg) !important;
  border-right-color: var(--bs-body-bg) !important;
  border-bottom-color: var(--bs-body-bg) !important;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
  background-color: var(--bs-body-bg);
}

.bd-callout h4 {
  margin-bottom: 1.25rem;
}

.bd-callout p:last-child {
  margin-bottom: 0;
}

.bd-callout code {
  border-radius: 0.25rem;
}

.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}

.bd-callout-info {
  border-left-color: #5bc0de;
}

.bd-callout-warning {
  border-left-color: #f0ad4e;
}

.bd-callout-danger {
  border-left-color: #d9534f;
}

/* Profile card & avatar */
.profile-card {
  width: 90%;
  max-width: 28rem;
  background-color: var(--bs-secondary-bg);
}

.avatar {
  max-width: 130px;
  aspect-ratio: 3/4;
  border-radius: 7%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  background: white;
  object-fit: contain;
}


.rescale-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 24px;
  height: 24px;
  stroke: black;
}

.takeaway-icon {
  stroke: black;
}

.rescale-icon:hover {
  fill: #239799;
  stroke: #239799;
}

.emoji-row {
  gap: 0.4rem;
  flex-wrap: wrap;
}

.emoji-col {
  flex: 1 1 18%;
  max-width: 18%;
  display: flex;
  justify-content: center;
}


.PI-website {
  max-height: 30px !important;
  height: 30px;
  margin-top: 10px;
}

.emoji-img {
  width: auto;
  max-height: 40px;
  background-color: rgb(233, 236, 239);
  border-radius: 20%;
}

.member-name {
  font-size: 1.5rem !important;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* Modal */
.modal-content {
  padding: 3rem;
}

.btn-close {
  scale: 1.5;
}

/* =========================
   Timeline
   ========================= */
.timeline {
  border-left: 1px solid var(--theNavy);
  position: relative;
  list-style: none;
}

.timeline .timeline-item {
  position: relative;
}

.timeline .timeline-item:after {
  position: absolute;
  display: block;
  top: 0.5rem;
}

.timeline .timeline-item:after {
  background-color: var(--theNavy);
  left: -38px;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  content: "";
}

.timeline-date {
  font-weight: 400;
}

.closeBtn {
  stroke: var(--dct-color-mode);
}

/* =========================
   HEADER & FOOTER
   ========================= */
.headerWiki {
  scroll-margin-top: 90px;
  color: var(--theNavy);
  margin-top: 2rem;
}

.WikiGroup {
  scroll-margin-top: 90px;
}

.icon-link {
  color: var(--theNavy) !important;
  align-items: baseline !important;
}

.icon-link::before {
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
  background: no-repeat center/contain;
}

.wiki-link::before {
  content: "";
  background-image: url(https://static.igem.wiki/teams/5561/icons/share.svg);
}

.wiki-cite::before {
  content: "";
  background-image: url(https://static.igem.wiki/teams/5561/icons/cite.svg);
}

.wikiHR {
  border-color: green;
  border-width: 3px;
  border-radius: 10px;
}

a.footer-link,
footer a {
  color: black;
  font-weight: bold;
  text-decoration: none;
}

a.footer-link:hover{
  color: black;
}

footer a {
  color: var(--bs-body-bg);
}

footer a:hover {
  color: var(--bs-body-bg);
  text-decoration: underline;
}

.footer {
  background-color: var(--theGreen);
  margin-top: -1px;
  color: black !important;
  fill: black !important;
}

.imageFooter {
  background-position: bottom center;
  background-repeat: repeat-x;
  background-size: contain;
  min-height: 75px;
  margin-top: 3rem;
}

.marquee-container {
  width: 100%;
  padding: 2rem 0;
  background-color: var(--theGreen);
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: marquee 70s linear infinite;
  width: max-content;
  white-space: nowrap;
}

.marquee-item {
  flex: 0 0 auto;
  padding: 0 20px;
  font-size: 1.2rem;
  border-color: #495057;
  border-radius: 1rem;
  border-style: solid;
  border-width: 1px;
}

.marquee-item img {
  height: 20vh;
  width: 40vh;
  object-fit: contain;
}

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

  100% {
    transform: translateX(-50%);
  }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.plasmid-label {
  font-size: 1rem;
  dominant-baseline: middle;
  fill: var(--dct-color-mode) !important;
}

.plasmid-name {
  font-size: 1.4rem;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
  font-weight: bold;
  fill: var(--dct-color-mode) !important;
  letter-spacing: 0.1rem;
}

.plasmid-line {
  stroke: var(--dct-color-mode);
  stroke-opacity: 0.8;
  stroke-width: 1;
  stroke-dasharray: 3, 3;
}

.plasmid-svg {
  width: 100%;
}

.plasmid-subtitle {
  font-size: 14px;
  text-anchor: middle;
}

.feature:hover {
  opacity: 0.6;
  cursor: pointer;
}

.feature {
  transition: opacity 0.2s ease;
}

.label {
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.tooltip {
  z-index: 800 !important;
}

.plasmid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

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

.plasmid-wrapper h3 {
  margin-bottom: 1rem;
  color: var(--theNavy);
}

.growthCurveContainer {
  position: relative;
  width: 100%;
  height: 500px;
  overflow-x: auto;
}

.badge {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--theGreen), 1) !important;
}

/* =========================
   IMAGES & SPECIAL
   ========================= */
img.d-inline-block {
  margin-right: 0.75rem;
}

.selectElement {
  max-width: 150px;
  background-color: var(--theGreen);
  border-radius: 8px;
  border-color: var(--theGreen);
}

/* =========================
   TAG CHIPS
   ========================= */
/* Override global .btn styles for tag chips */
.tag-chip.btn {
  /* unselected = white */
  color: black !important;
  border-color: var(--theGreen) !important;
  border-radius: 8px;
}

.tag-chip.btn.active {
  background-color: var(--thePurple) !important;
  /* selected = --theGreen */
  color: black !important;
}

#tagChips::before {
  content: "Filter: ";
  display: inline-block;
  vertical-align: 0.255em;
}

/* Hover/focus: keep unselected chips white; selected stay green */
.tag-chip.btn:hover {
  background-color: var(--thePurple) !important;
  color: black !important;
  border-color: var(--thePurple) !important;
  box-shadow: 0 0 0 0.2rem rgba(129, 209, 133, 0.25);
}

.tag-chip.btn.active:hover {
  color: black !important;
  box-shadow: 0 0 0 0.2rem rgba(129, 209, 133, 0.35);
}

.team-overlay {
  background: var(--theGreen) !important;
  color: var(--theGreen);
  position: absolute;
  bottom: 0;
  width: 40%;
  opacity: 1;
  color: black;
  font-size: 20px;
  padding: 20px;
  text-align: end;
  transform: translateY(-30%);
}

.img-container {
  width: 98%;
  max-width: 98%;
  min-width: 98%;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: 400px !important;
  object-fit: cover;
  object-position: center 25%;
}

.img-fluid {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 60vw !important;
  max-height: 800px;
  object-position: center 25%;
}

.block-icon {
  height: 5rem !important;
  width: 5rem !important;
}

/* =========================
   SPONSOR GRID
   ========================= */
.sponsor-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: white;
  border-color: rgba(var(--theGrey-rgb), 0.4) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.sponsor-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--theGreen) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sponsor-card:focus-visible {
  outline: 2px solid var(--theGreen);
  outline-offset: 2px;
  border-color: var(--theGreen) !important;
}

.sponsor-logo img {
  max-width: 100%;
  object-fit: contain;
}

.sponsorName{
  color: var(--bs-body-color);
}

@media (max-width: 576px) {
  .sponsor-card {
    padding: 0.5rem !important;
  }

  .sponsor-logo {
    height: 64px !important;
  }

  .sponsor-logo img {
    max-height: 44px !important;
  }

  .sponsor-card .small {
    font-size: 0.85rem;
  }
}

/* =========================
   HOME
   ========================= */

.caution-icon {
  height: 5rem;
  width: 5rem;
  margin: 0 2rem;
}

/* =========================
   Accordions
   ========================= */

/* Prevent width change during collapse/expand */
.accordionGreen,
.accordionRed {
  width: 100%;
  /* Fill the available space */
  min-width: 0;
  /* Allow shrinking if needed */
}

/* Force accordion items to maintain constant width */
.accordion-item {
  width: 100%;
  transition: none !important;
  /* Disable any transitions that might affect width */
}

.accordionGreen .accordion-button {
  background-color: rgba(var(--theGreen-rgb), 0.3) !important;
  width: 100%;
}

.accordionRed .accordion-button {
  background-color: rgba(var(--theRed-rgb), 0.3) !important;
  width: 100%;
}

/* Ensure the color doesn't change when collapsed/expanded */
.accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--dct-color-mode) !important;
}

.accordionGreen .accordion-button:not(.collapsed) {
  background-color: rgba(var(--theGreen-rgb), 0.6) !important;
}

.accordionRed .accordion-button:not(.collapsed) {
  background-color: rgba(var(--theRed-rgb), 0.6) !important;
}

/* Force accordion content to maintain width */
.accordion-collapse {
  width: 100%;
}

div.accordion-body {
  background-color: var(--dct-color-mode-rev) !important;
}

.accordion-button.advantages::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("https://static.igem.wiki/teams/5561/icons/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  font-weight: bold;
  margin-right: 7px;
  filter: invert(0);
}

.accordion-button.disadvantages::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("https://static.igem.wiki/teams/5561/icons/report.svg");
  background-size: contain;
  background-repeat: no-repeat;
  font-weight: bold;
  margin-right: 7px;
  filter: invert(1);
}

.accordion-body {
  --bs-bg-opacity: 1;
  background-color: rgba(
    var(--bs-secondary-bg-rgb),
    var(--bs-bg-opacity)
  ) !important;
}

.accordion.accordionRed::before {
  content: "Challenges: ";
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
}

.accordion.accordionGreen::before {
  content: "Advantages: ";
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
}

.form-check-input {
  border-color: var(--dct-color-mode) !important;
}

.click-here-text {
  display: block;
  margin-bottom: 5px;
  background-position: 0px;
  --bs-text-opacity: 1;
  color: var(--bs-secondary-color) !important;
  margin-left: 1.3rem;
}

.requirements::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("https://static.igem.wiki/teams/5561/icons/checkboxopen.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 7px;
  filter: invert(1) !important;
}

.accordion-button.requirements:not(.collapsed)::before {
  background-image: url("https://static.igem.wiki/teams/5561/icons/checkedboxrequirements.svg");
}

.accordion-button.requirements.collapsed {
  background-color: rgba(var(--thePurple-rgb), 0.3);
}

.accordion-button.requirements {
  background-color: rgba(var(--thePurple-rgb), 0.6);
}

.requirements-container::before {
  content: "Requirements: ";
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
}


.accordion-button.contribution.collapsed {
  background-color: rgba(var(--theOrange-rgb), 0.5);
}

.accordion-button.contribution {
  background-color: rgba(var(--theOrange-rgb), 0.8);
}


/* =========================
   ATTRIBUTION CARDS
   ========================= */
.attribution-card {
  border: 1px solid rgba(var(--theGrey-rgb), 0.3);
  border-radius: var(--bs-card-inner-border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: default;
}

.attribution-header {
  background: var(--theGreen);
  color: black;
  border-bottom: none;
  padding: 1.5rem;
}

.attribution-profile-image-container {
  flex-shrink: 0;
}

.attribution-avatar {
  width: 70px !important;
  height: 70px !important;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border-width: 3px;
  border-color: var(--dct-color-mode-rev);
  border-style: solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.attribution-member-info {
  flex: 1;
  min-width: 0;
}

.attribution-member-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: black;
}

.attribution-member-role {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  margin: 0;
}

.attribution-body {
  padding: 1.5rem;
  background-color: var(--bs-body-bg);
}

.attribution-section-title {
  color: var(--theNavy);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--theGreen);
  display: inline-block;
}

.attribution-tasks-section {
  margin-bottom: 1.5rem;
}

.attribution-task-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.attribution-task-badge {
  background: var(--theGreen);
  color: black;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.attributions-details-section {
  position: relative;
}

.attributions-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.attributions-more-btn {
  background: none;
  border: 2px solid var(--theNavy);
  color: var(--theNavy);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.attributions-more-icon {
  width: 16px;
  height: 16px;
}

.attributions-details-list {
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theGreen) transparent;
  animation: fadeIn 0.3s ease;
}

.attributions-details-list::-webkit-scrollbar {
  width: 6px;
}

.attributions-details-list::-webkit-scrollbar-track {
  background: transparent;
}

.attributions-details-list::-webkit-scrollbar-thumb {
  background: var(--theGreen);
  border-radius: 3px;
}

.attributions-detail-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(var(--theGrey-rgb), 0.2);
  transition: background-color 0.2s ease;
}

.attributions-detail-item:last-child {
  border-bottom: none;
}

.attributions-detail-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--theNavy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.attributions-detail-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--bs-body-color);
}

.attribution-sponsor-avatar{
  width: 80px !important;
  height: 80px !important;
  display: block;
  border-radius: 0 !important;
  object-fit: contain;
  border-width: 3px;
  border-color: var(--dct-color-mode-rev);
  border-style: solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: white !important;
}


/* Mobile responsiveness for attributions */
@media (max-width: 768px) {
  .attribution-header {
    padding: 1rem;
  }

  .attribution-header .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .attribution-avatar {
    width: 60px;
    height: 60px;
  }

  .attribution-member-name {
    font-size: 1.2rem;
  }

  .attribution-body {
    padding: 1rem;
  }

  .attribution-task-badges {
    justify-content: center;
  }

  .attributions-details-list {
    max-height: 300px;
  }

  .attributions-details-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .attributions-more-btn {
    align-self: center;
  }
}

@media (max-width: 576px) {
  .attribution-avatar {
    width: 50px;
    height: 50px;
  }

  .attribution-member-name {
    font-size: 1.1rem;
  }

  .attribution-task-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .attributions-detail-text {
    font-size: 0.85rem;
  }

  .attributions-more-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

.WetLabPart::before{
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("https://static.igem.wiki/teams/5561/icons/plasmid.svg");
  background-size: contain;
  background-repeat: no-repeat;
  font-weight: bold;
  margin-right: 7px;
  filter: var(--dct-invert);
}

.DryLabPart::before{
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-image: url("https://static.igem.wiki/teams/5561/icons/computer.svg");
  background-size: contain;
  background-repeat: no-repeat;
  font-weight: bold;
  margin-right: 7px;
  filter: var(--dct-invert);
}

.dropdown-item.medal{
  background: linear-gradient(45deg, #9B1E8F, #E5AC6E, #ED9681, #9F2793, #E737B8, #B85FAF, #3F37AF, #5C9DEA, #9B1E8F, #E5AC6E);
  background-size: 400% 100%;
  animation: smooth-shimmer 12s ease-in-out infinite;
  color: white !important;
}

@keyframes smooth-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}