/* Single-column content layout — used by blog, cv, teaching, interests, projects */

#content {
  margin-bottom: 20px;
  margin-left: 1em;
  margin-right: 1em;
}

.minihead {
  font-variant: small-caps;
  font-size: 14pt;
}

/* Projects page */
.projects-section {
  max-width: 860px;
  margin: 20px auto;
  padding: 0 20px 80px;
}

.projects-intro {
  font-size: 10pt;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}

.project-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.project-row:first-child {
  border-top: 1px solid #e0e0e0;
}

.project-logo {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  width: 100%;
  height: auto;
}

.project-logo-lg img {
  width: 100%;
}

.project-logo-md img {
  width: 75%;
}

.project-description {
  flex: 1;
}

.project-name {
  margin: 0 0 8px;
  font-size: 14pt;
  font-weight: bold;
}

/* Teaching page */
.teaching-section {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 20px 80px;
}

.teaching-heading {
  text-align: center;
  margin: 28px 0 16px;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.course-card {
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 16px 18px;
  width: 260px;
  background: #fafafa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.course-card .course-code {
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 4px;
}

.course-card .course-title {
  font-style: italic;
  color: #555;
  font-size: 10pt;
  margin-bottom: 8px;
}

.course-card .course-school {
  font-size: 9pt;
  color: #777;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4e4;
}

.course-card .course-terms {
  font-variant: small-caps;
  font-size: 9pt;
  line-height: 1.8;
}

.predoc-card .course-school {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.course-enrollment {
  font-size: 9pt;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

.term-winter { color: #1a56c4; }
.term-spring { color: #2a7d2a; }
.term-fall   { color: #c87000; }
.term-summer { color: #e6007e; }

@media (max-width: 767px) {
  /* Projects: stack logo above description */
  .project-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-logo {
    width: 160px;
  }

  /* Teaching: cards go full width */
  .course-card {
    width: 100%;
  }

  /* General content padding on small screens */
  #content {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }
}
