:root{
  --text: #111;
  --muted: #555;
  --line: #e6e6e6;
  --link: #0b63ce;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: var(--text);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.topbar{
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-title{
  font-weight: 700;
  white-space: nowrap;
}

nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.container{
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.left-column{
  flex: 1.2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.right-column{
  flex: 3.8;
  padding: 6px 0;
}

h1{ margin: 10px 0 6px; font-size: 26px; }
h2{ margin: 22px 0 8px; font-size: 22px; }
h3{ margin: 18px 0 8px; font-size: 18px; }
h4{ margin: 14px 0 6px; font-size: 16px; }

p{
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0;
}

hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.profile-photo{
  width: 240px;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.role{
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.contact-links{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.contact-links li{ margin: 8px 0; }

.logo-right{
  float: right;
  width: 60px;
  height: auto;
  margin-left: 12px;
  margin-top: 2px;
}

.card{
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  margin: 10px 0;
}

/* Simple slideshow */
.slideshow{
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin: 14px 0 18px;
  max-width: 820px;
}

.slideshow img{
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: none;
}

.slideshow img.active{
  display: block;
}

.slideshow-caption{
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Responsive */
@media (max-width: 900px){
  .container{ flex-direction: column; }
  .left-column, .right-column{ width: 100%; }
  .slideshow img{ height: 260px; }
}

/* Skills block */
.skills-block h3 { margin-bottom: 10px; }

.skill-group {
  margin: 12px 0;
}

.skill-group .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  line-height: 1;
  white-space: nowrap;
}

/* Social icons under name */
.social-icons {
  display: flex;
  gap: 14px;
  margin: 10px 0 6px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover img {
  opacity: 1;
  transform: translateY(-1px);
}


/* Contact list with icons + labels */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.contact-list img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

/* Research paper blocks */
.paper {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  margin: 14px 0;
}

.paper h4 {
  margin: 0 0 6px;
}

.paper-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

/* TYPE A: single image left, text right */
.paper--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.paper-media img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* TYPE B: two images side by side, text below */
.paper--stack .paper-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.paper--stack .paper-media-grid img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* TYPE C: single wide banner image + text below */
.paper--banner .paper-media-banner img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

/* Mobile: show the full image (no cropping) */
@media (max-width: 900px) {

  /* Type A single image */
  .paper-media img {
    height: auto;          /* let the image define its height */
    object-fit: contain;   /* show whole image */
    background: #fff;      /* fill any letterboxing */
  }

  /* Type B grid images */
  .paper--stack .paper-media-grid img {
    height: auto;          /* no forced height */
    object-fit: contain;
    background: #fff;
  }

  /* Type C banner */
  .paper--banner .paper-media-banner img {
    height: auto;
    object-fit: contain;
    background: #fff;
  }
}

/* Best paper / award badge */
.award-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #7a3e00;
  background: #fff3cd;       /* soft gold */
  border: 1px solid #ffe69c;
  border-radius: 999px;
  vertical-align: middle;
}



/* Make bullet lists match paragraph text */
.text-list {
  margin: 8px 0 12px 18px;
  padding: 0;
  color: var(--muted);
}

.text-list li {
  margin: 6px 0;
  line-height: 1.55;
  font-size: inherit;
  font-family: inherit;
}

/* Mobile navigation: stack menu below site title */
@media (max-width: 768px) {

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav ul {
    justify-content: flex-start;
    width: 100%;
  }

  nav ul li {
    margin: 0;
  }
}



/* Responsive */
@media (max-width: 900px) {
  .paper--banner .paper-media-banner img {
    height: 220px;
  }
}


/* Responsive: stack everything on small screens */
@media (max-width: 900px) {
  .paper--split {
    grid-template-columns: 1fr;
  }
  .paper-media img {
    height: 220px;
  }
  .paper--stack .paper-media-grid {
    grid-template-columns: 1fr;
  }
  .paper--stack .paper-media-grid img {
    height: 220px;
  }
}


/* Research theme */
.focus-group {
  margin: 12px 0;
}

.focus-group .label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
