.learning-page {
  font-family: system-ui, sans-serif;
  background-color: white;
  margin: 0;
}

  pre {
    background: #f4f4f4;
    padding: 1rem;
    overflow-x: auto;
  }
  table {
    border-collapse: collapse;
    margin-top: 1rem;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
  }

  /* 💡 Add layout helpers */
  .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

.col-md-4 {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}


  @media (min-width: 768px) {
    .col-md-4 {
      flex: 0 0 33.3333%;
      max-width: 33.3333%;
    }
  }

  .d-flex {
    display: flex;
  }

  .justify-content-between {
    justify-content: space-between;
  }

  .align-items-center {
    align-items: center;
  }

  .text-dark {
    color: #212529;
  }

  .text-decoration-none {
    text-decoration: none;
  }

  .w-100 {
    width: 100%;
  }

  /* 💡 Problem card styling */
.problem-card {
  flex-grow: 1;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease-in-out;
  height: 100%;
}
.problem-card:hover {
  background-color: #f1f3f5;
  transform: scale(1.02);
}

/* === Dropdown styles from styles.css === */
/* Limit height of Problems dropdown and make it scrollable */
#problemsDropdown + .dropdown-menu {
  max-height: 300px; /* adjust as needed */
  overflow-y: auto;
}