/* Tighten typography for the single-page layout (smaller, denser like default AcademicPages). */

html {
  font-size: 15px;
}

@media (min-width: 64em) {
  html {
    font-size: 15px;
  }
}

/* Hide template clutter for a minimalist look */
.masthead, .page__footer, .btn--inverse, .page__title {
  display: none !important;
}

#main {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem; /* Shifts the left column to the right slightly */
}

.page__content {
  line-height: 1.55;
  padding-top: 2rem;
}

.page__content h2 {
  font-size: 1.35rem;
  margin-top: 1.6rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.page__content h3 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
}

/* Sidebar author card */
.author__avatar img {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50%;
}

.author__name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.author__bio {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.author__urls {
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  padding-top: 1rem !important;
}

/* Research cards - Row by row layout (Left image, Right text) */
.research-item {
  display: flex !important;
  flex-direction: row !important;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.research-image {
  flex: 0 0 200px !important;
  max-width: 200px !important;
}

.research-image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.research-info {
  flex: 1;
}

.research-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
  line-height: 1.25;
}

.research-title a {
  color: #0056b3;
  text-decoration: none;
}

.research-title a:hover {
  text-decoration: underline;
}

.research-authors {
  margin-bottom: 0.25rem;
  color: #333;
}

.research-venue {
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-style: italic;
}

.research-spotlight {
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.research-links {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.research-links a {
  margin-right: 0.8rem;
  color: #0056b3;
}

.kz-hidden {
  display: none !important;
}

/* Experience items */
.experience-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.experience-info {
  flex: 1;
}

.experience-org {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0056b3;
}

.experience-location {
  color: #666;
  font-size: 0.95rem;
}

.experience-role-time {
  font-style: italic;
  color: #444;
  margin-top: 0.1rem;
}

.experience-icon {
  flex: 0 0 45px;
  margin-left: 1rem;
  display: flex;
  justify-content: flex-end;
}

.experience-icon img {
  max-width: 45px;
  max-height: 45px;
  object-fit: contain;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .research-item {
    flex-direction: column !important;
  }
  .research-image {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
