/* Page layout for subpages (Research, Awards, Teaching) */

.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}

.header-left {
  flex: 1;
}

.header-left h1 {
  margin: 0;
  font-size: 24px;
  color: #000;
}

.header-left h1 a {
  color: #0366d6;
  text-decoration: none;
}

.header-left h1 a:hover {
  text-decoration: underline;
}

.header-right {
  flex: 1;
  text-align: right;
}

.header-right p {
  margin: 0;
  font-size: 14px;
}

.header-right a {
  color: #0366d6;
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

.page-content {
  line-height: 1.6;
  color: #333;
  width: 100%;
}

.page-content h1:not(:first-child) {
  margin-top: 50px !important;
  margin-bottom: 30px !important;
  padding-bottom: 15px !important;
  font-size: 24px !important;
  border-bottom: 4px solid #003366 !important;
  color: #222 !important;
  font-weight: bold !important;
}

.page-content h1:first-child {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 32px;
}

.page-wrapper .page-content h2 {
  margin-top: 50px !important;
  margin-bottom: 30px !important;
  padding-bottom: 15px !important;
  font-size: 24px !important;
  border-bottom: 4px solid #003366 !important;
  color: #222 !important;
  font-weight: bold !important;
}

.page-content hr {
  display: none !important;
}

.page-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content a {
  color: #0366d6;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-footer {
  margin-top: 100px;
  padding: 30px 0 20px 0;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 12px;
  color: #999;
  position: relative;
  z-index: 1;
}

/* Research project layout */
.research-project {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
  align-items: flex-start;
  width: 100%;
}

/* Remove border from first project after section header (accounting for hr between h1 and project) */
.page-content h1 + hr + .research-project,
.page-content h1 + .research-project {
  border-top: none !important;
  padding-top: 0 !important;
}

.research-images {
  flex: 0 0 30%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.research-images img {
  width: 100%;
  height: auto;
  display: block;
}

.research-content {
  flex: 1;
  min-width: 0;
}

.research-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    text-align: left;
    margin-top: 15px;
  }

  .page-wrapper {
    padding: 15px;
  }

  .page-content h1 {
    font-size: 24px;
  }

  .page-content h2 {
    font-size: 20px;
  }

  .research-project {
    flex-direction: column;
    gap: 15px;
  }

  .research-images {
    flex: 1;
  }

  .research-content {
    flex: 1;
  }
}

/* Teaching page styles */
.teaching-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.teaching-course {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin-right: 20px;
}

.teaching-years {
  flex-shrink: 0;
  font-size: 16px;
  color: #666;
  text-align: right;
  white-space: nowrap;
}

/* Awards page styles */
.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.award-content {
  flex: 1;
  font-size: 16px;
  color: #333;
  margin-right: 20px;
}

.award-year {
  flex-shrink: 0;
  font-size: 16px;
  color: #666;
  text-align: right;
  white-space: nowrap;
}

