/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #555555;
  --color-accent: #ba0c2f; /* OSU Scarlet */
  --color-accent-dark: #8c0a24;
  --color-sidebar-bg: #1a1a2e;
  --color-sidebar-text: #e0e0e0;
  --color-sidebar-hover: #ba0c2f;
  --color-border: #e0e0e0;
  --color-section-bg: #f9f9fb;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --sidebar-width: 240px;
  --max-content-width: 820px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-sidebar-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
  z-index: 100;
  overflow-y: auto;
}

.sidebar__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 1rem;
  margin-bottom: 2rem;
}
.sidebar__name a { color: #fff; text-decoration: none; }
.sidebar__name a:hover { color: var(--color-sidebar-hover); text-decoration: none; }

.sidebar__nav { width: 100%; }

.sidebar__nav a {
  display: block;
  padding: 0.65rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-sidebar-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sidebar__nav a:hover,
.sidebar__nav a.active {
  background: rgba(186, 12, 47, 0.15);
  color: #fff;
  text-decoration: none;
}
.sidebar__nav a.active {
  border-left: 3px solid var(--color-accent);
}

/* ===== MAIN CONTENT ===== */
.main {
  margin-left: var(--sidebar-width);
  padding: 3rem 4rem 4rem;
  max-width: calc(var(--max-content-width) + 8rem);
}

/* ===== HOME HERO ===== */
.hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.hero__photo {
  width: 220px;
  min-width: 220px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero__info h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.hero__info .subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.15rem;
}

.hero__info .affiliation {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
}

.hero__info .contact {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.95rem;
}
.hero__links a { font-weight: 600; }
.hero__links .sep { color: var(--color-border); }

/* ===== SECTION HEADINGS ===== */
.section { margin-bottom: 2.5rem; }

.section__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 1.2rem;
  display: inline-block;
}

/* ===== ABOUT TEXT ===== */
.about-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}
.about-text p + p { margin-top: 1rem; }

/* ===== EDUCATION / EXPERIENCE ENTRIES ===== */
.entry {
  margin-bottom: 1.3rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-border);
}
.entry__degree {
  font-weight: 700;
  font-size: 1rem;
}
.entry__school {
  color: var(--color-text-light);
  font-size: 0.95rem;
}
.entry__year {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 600;
}
.entry__detail {
  font-size: 0.92rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.2rem;
}
.entry__desc {
  font-size: 0.93rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
  line-height: 1.6;
}

/* ===== PUBLICATION LIST ===== */
.pub-list { list-style: none; counter-reset: pub; }
.pub-list > li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
  line-height: 1.7;
}
.pub-list > li::before {
  counter-increment: pub;
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-accent);
}
.pub-list .paper-title { font-style: italic; }
.pub-list .journal { font-weight: 700; }
.pub-list .pub-links { font-size: 0.88rem; margin-top: 0.2rem; }
.pub-list .pub-note {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-top: 0.15rem;
}
.pub-list .pub-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(186, 12, 47, 0.08);
  color: var(--color-accent);
  margin-left: 0.3rem;
}

/* ===== SUBSECTION ===== */
.subsection__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2rem 0 1rem;
}

/* ===== TEACHING TABLE ===== */
.teaching-group { margin-bottom: 2rem; }
.teaching-group__school {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}
.teaching-item {
  padding-left: 1rem;
  border-left: 3px solid var(--color-border);
  margin-bottom: 1rem;
}
.teaching-item__course {
  font-weight: 600;
  font-size: 0.97rem;
}
.teaching-item__term {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ===== AWARDS LIST ===== */
.award-list { list-style: none; }
.award-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.97rem;
}
.award-list li:last-child { border-bottom: none; }
.award-year {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  width: 55px;
}

/* ===== SERVICE LIST ===== */
.service-list { list-style: disc; padding-left: 1.5rem; }
.service-list li {
  font-size: 0.97rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.skill-card {
  background: var(--color-section-bg);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border-left: 3px solid var(--color-accent);
}
.skill-card__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}
.skill-card__items {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== CONFERENCE LIST ===== */
.conf-group { margin-bottom: 1.8rem; }
.conf-group__paper {
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 0.5rem;
}
.conf-group ul {
  list-style: none;
  padding-left: 1.2rem;
}
.conf-group li {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 0.8rem;
}
.conf-group li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 0;
  }
  .sidebar__name { margin-bottom: 0.5rem; width: 100%; }
  .sidebar__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
  .sidebar__nav a { padding: 0.4rem 0.8rem; font-size: 0.72rem; }
  .sidebar__nav a.active { border-left: none; border-bottom: 3px solid var(--color-accent); }
  .main { margin-left: 0; padding: 2rem 1.5rem; }
  .hero { flex-direction: column; align-items: center; text-align: center; }
  .hero__photo { width: 180px; min-width: 180px; }
  .hero__links { justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
}
