#theoryList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#theoryList .theory-item {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 13.5rem;
  padding: 1.25rem;
  margin: 0 !important;
  background: #fff;
  border: 1px solid rgba(20, 24, 31, .06) !important;
  border-radius: 1rem;
  box-shadow: 0 .375rem .75rem -.125rem rgba(208, 208, 196, .24);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#theoryList .theory-item:hover {
  border-color: rgba(109, 93, 246, .18) !important;
  box-shadow: 0 1rem 2.5rem rgba(20, 24, 31, .08);
  transform: translateY(-2px);
}

#theoryList .theory-item__media {
  width: 18rem !important;
  height: 11rem !important;
  min-height: 11rem !important;
  overflow: hidden;
  border-radius: .875rem !important;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 31, .05);
}

#theoryList .theory-item__content {
  width: auto !important;
  min-width: 0;
}

#theoryList .theory-item__body {
  padding: 0 !important;
}

#theoryList .theory-item__body h2 {
  margin-bottom: .75rem !important;
}

#theoryList .theory-item__body p:last-child {
  margin-bottom: 0;
}

#theoryList .theory-item__body .btn {
  border-radius: 50rem;
}

.science-summary-card {
  background: #fff !important;
  border: 1px solid rgba(20, 24, 31, .07);
  border-radius: 1rem !important;
  box-shadow: 0 .75rem 2rem rgba(20, 24, 31, .06);
}

@media (max-width: 991.98px) {
  #theoryList .theory-item {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  #theoryList .theory-item__media {
    width: 13rem !important;
    height: 10rem !important;
    min-height: 10rem !important;
  }
}

@media (max-width: 767.98px) {
  #theoryList .theory-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  #theoryList .theory-item__media {
    width: 100% !important;
    height: auto !important;
    min-height: 12rem !important;
  }

  #theoryList .theory-item__content {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .science-tasks-page {
    padding-top: 2rem !important;
  }

  #theoryList .theory-item__media {
    min-height: 10.5rem !important;
  }

  #theoryList .theory-item__body .btn {
    width: 100%;
    justify-content: center;
  }
}
