@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600&family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --color-link: #1a6fb5;
  --color-bg-alt: #f2f3f3;
  --element-margin: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #000;
  background: #fff;
}

.centered-site {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

h1 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  margin-bottom: 8px;
  line-height: 1.2;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 14px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

/* ─── Banner ─── */
.banner {
  background: var(--color-bg-alt);
  padding: 44px 24px;
  margin: 0 -24px 44px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.banner-text {
  flex: 1;
}

.banner-text .title {
  font-size: 1rem;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.55;
}

.interests-heading {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 6px;
}

.interests-list {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
}

.interests-list li {
  margin-bottom: 4px;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-buttons a {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid var(--color-link);
  border-radius: 4px;
  color: var(--color-link);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-buttons a:hover {
  background: var(--color-link);
  color: #fff;
  text-decoration: none;
}

.banner-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ─── Sections ─── */
section {
  margin-bottom: 44px;
}

section p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* ─── Publications ─── */
.pub-subsection {
  margin-bottom: 26px;
}

.pub-subsection h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
  margin-bottom: 14px;
}

.pub-list {
  list-style: none;
  padding: 0;
}

.pub-list li {
  margin-bottom: 11px;
  padding-left: 32px;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.55;
}

.pub-list li .pub-num {
  position: absolute;
  left: 0;
  color: #888;
  font-weight: 700;
  font-size: 0.84rem;
  top: 1px;
}

.pub-list li em {
  font-style: italic;
}

.pub-doi {
  font-size: 0.82rem;
  color: #888;
  margin-left: 4px;
}

.toggle-link {
  font-size: 0.85rem;
  color: #999;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  transition: color 0.2s ease;
  user-select: none;
}

.toggle-link:hover {
  color: var(--color-link);
  text-decoration: none;
}

.collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible.hidden {
  display: none;
}

/* ─── Projects placeholder ─── */
.projects-placeholder {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 22px 26px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.75;
}

.projects-placeholder code {
  background: #ebebeb;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.84rem;
  font-family: 'Courier New', monospace;
}

/* ─── Responsive ─── */
@media (max-width: 810px) {
  .banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 32px 20px;
  }
  .link-buttons {
    justify-content: center;
  }
  .banner-image img {
    width: 150px;
    height: 150px;
    border-radius: 4px;
  }
}

@media (max-width: 500px) {
  .link-buttons {
    flex-direction: column;
    align-items: center;
  }
}
