/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.65;
  color: #333;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ===== Section 1: Header (Photo + Name + Contact) ===== */
.header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.header-photo {
  flex-shrink: 0;
}

.header-photo img {
  width: 170px;
  height: auto;
  border-radius: 3px;
}

.header-text {
  flex: 1;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.title {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.contact-info {
  font-size: 0.9rem;
  color: #555;
}

.contact-row {
  margin-bottom: 0.2rem;
}

.contact-label {
  font-weight: 600;
  color: #444;
}

.contact-info a {
  color: #8B0000;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== Section 2: Info Box ===== */
.info-box {
  background: #a51417;
  color: #fff;
  border-radius: 5px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.8rem;
}

.info-box-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.info-box-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
  opacity: 0.8;
}

.info-box-fields {
  font-size: 0.92rem;
  line-height: 1.5;
}

.info-box-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 220px;
}

.info-box-buttons .btn {
  display: inline-block;
  text-align: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.info-box-buttons .btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* ===== Section 3: Research ===== */
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.6rem 0;
}

/* ===== Paper Lists ===== */
.paper {
  margin-bottom: 1.15rem;
}

.paper-title {
  font-weight: 600;
  color: #1a1a1a;
}

.paper-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.paper-authors {
  font-size: 0.93rem;
  color: #555;
}

.paper-journal {
  font-size: 0.93rem;
  font-style: italic;
  color: #666;
}

.paper-note {
  font-size: 0.88rem;
  color: #888;
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.82rem;
  color: #aaa;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-photo img {
    width: 160px;
    margin-bottom: 0.3rem;
  }


  .container {
    padding: 1.5rem 1.1rem 2rem;
  }
}
