/* Grid CSS for links to students' websites */
.student-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.student-grid h2 {
  text-align: center;
  margin-bottom: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.grid-item {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.grid-item:hover {
  background-color: midnightblue;
  color: white;
}

/* Mobile styles for two links per row */
@media screen and (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .grid-item {
    padding: 10px;
    font-size: 13px;
  }
}
