body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #222;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #222;
}

.experiment-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.7rem 0;
  padding-bottom: 12px;
  border: none;
  box-shadow: none;
  flex-direction: row !important;
  text-align: left;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2.5rem; /* or increase as needed */
}

.card-img {
  width: 170px;
  min-width: 130px;
  max-width: 200px;
  height: auto;
  margin-right: 0.8rem;
  object-fit: contain;
}

.card-body {
  flex: 1;
  padding: 0.5rem 0;
}

.experiment-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 1.05rem;
  font-style: italic;
  color: #666;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.card-body a {
  color: rgb(212, 175, 55);
  font-weight: 600;
  margin-right: 2px;
  text-decoration: none;
}

.card-body a:hover {
  text-decoration: underline;
}

hr {
  border-top: 1.5px solid #ddd;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .experiment-card {
    flex-direction: row !important;
    align-items: center;
    text-align: left;
  }

  .card-img {
    width: 150px;
    min-width: 110px;
    max-width: 180px;
    margin-right: 0.5rem;
  }

  .card-body {
    padding: 0.5rem 0;
  }

  .experiment-title {
    font-size: 1.3rem;
  }

  .experiment-title.mb-2 {
    font-size: 0.95rem;
    padding-right: 0.1rem;
  }

  .card-subtitle, .card-text {
    font-size: 1rem;
  }
}

.experiment-title.mb-2 {
  font-size: 1.05rem;
  padding-right: 0.2rem;
}

@media (max-width: 768px) {
  .experiment-title.mb-2 {
    font-size: 0.95rem;
    padding-right: 0.1rem;
  }
}

#experiments {
  scroll-margin-top: 80px; /* Adjust this value to match your header height */
}

#content-area {
  padding-bottom: 2.5rem; /* or more if needed */
}

/* PDF Section Styles */
.pdf-list {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 1rem;
}

.pdf-item {
  background: transparent;
  border: none;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.pdf-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 5px;
  padding-left: 0.5rem;
}

.pdf-item a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pdf-item a:hover {
  color: rgb(212, 175, 55);
  text-decoration: none;
  background: rgba(212, 175, 55, 0.05);
}

.pdf-item i {
  color: #dc3545;
  margin-right: 0.5rem;
  font-size: 1.1em;
}

/* Ensure no table background is visible */
.row {
  background: transparent;
}

.col-md-6 {
  background: transparent;
}

/* Responsive adjustments for PDF section */
@media (max-width: 768px) {
  .pdf-item {
    margin-bottom: 0.6rem;
  }
  
  .pdf-item a {
    font-size: 0.9rem;
    padding: 0.4rem;
  }
  
  .pdf-item i {
    font-size: 1em;
  }
}
