:root {
  --bg: #f4efe6;
  --bg-alt: #e7f1ec;
  --ink: #1f2623;
  --muted: #5a6a62;
  --accent: #0f6c5a;
  --accent-2: #c0573b;
  --card: #ffffff;
  --border: rgba(31, 38, 35, 0.08);
  --shadow: 0 18px 45px rgba(31, 38, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, var(--bg) 0%, var(--bg-alt) 60%, #f7efe0 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle at top, rgba(15, 108, 90, 0.18), transparent 60%);
  z-index: -2;
  top: -10vmax;
  right: -15vmax;
}

body::after {
  background: radial-gradient(circle at center, rgba(192, 87, 59, 0.18), transparent 60%);
  bottom: -10vmax;
  left: -10vmax;
  top: auto;
  right: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.top-nav {
  position: sticky;
  top: 0;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo a {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(31, 38, 35, 0.12);
  transition: transform 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.nav-menu a:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 108, 90, 0.4);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.language-toggle {
  display: inline-flex;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  background: #fff;
}

.language-toggle button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.language-toggle button.active {
  background: var(--accent);
  color: #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.hero-card {
  background: var(--card);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid;
  gap: 1.2rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid rgba(15, 108, 90, 0.15);
  box-shadow: 0 12px 28px rgba(31, 38, 35, 0.14);
}

.hero-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0;
}

.hero-title {
  font-weight: 600;
  color: var(--accent);
  margin: 0.3rem 0 0.1rem;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 108, 90, 0.08);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(15, 108, 90, 0.2);
}

.section {
  margin-top: 3rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(31, 38, 35, 0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.news-item,
.pub-item,
.edu-item,
.service-item {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 0;
}

.honor-item {
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 1rem;
}

.honor-date {
  font-weight: 700;
  color: var(--accent-2);
  padding-right: 1rem;
  border-right: 1px solid rgba(31, 38, 35, 0.15);
}

.honor-title {
  color: var(--ink);
}

.news-item,
.edu-item,
.service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 26px rgba(31, 38, 35, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover,
.edu-item:hover,
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(31, 38, 35, 0.16);
}

.news-item:last-child,
.pub-item:last-child,
.edu-item:last-child,
.service-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: var(--accent-2);
}

.pub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent-2);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 12px 28px rgba(31, 38, 35, 0.1);
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:last-child {
  margin-bottom: 0;
}

.pub-card:link,
.pub-card:visited {
  color: inherit;
  text-decoration: none;
}

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(31, 38, 35, 0.18);
}

.pub-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffaf4;
  box-shadow: 0 10px 22px rgba(31, 38, 35, 0.14);
}

.pub-body {
  display: grid;
  gap: 0.4rem;
}

.edu-item {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
}

.edu-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fffaf4;
  box-shadow: 0 10px 22px rgba(31, 38, 35, 0.14);
}

.edu-body {
  display: grid;
  gap: 0.4rem;
}

.pub-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.pub-meta {
  color: var(--muted);
  line-height: 1.6;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-tags span {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(192, 87, 59, 0.5);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.corresponding {
  font-size: 0.75em;
  color: var(--accent-2);
  margin-left: 0.1rem;
}

.section-footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-menu {
    position: absolute;
    top: 68px;
    right: 20px;
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    flex-direction: column;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-avatar {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 1.6rem;
  }

  .hero-links a {
    width: 100%;
    justify-content: center;
  }

  .pub-card {
    grid-template-columns: 1fr;
  }

  .pub-media img {
    max-height: 180px;
    object-fit: cover;
  }

  .edu-item {
    grid-template-columns: 1fr;
  }

  .edu-media img {
    max-height: 160px;
    object-fit: cover;
  }

  .honor-item {
    grid-template-columns: 1fr;
  }

  .honor-date {
    border-right: none;
    padding-right: 0;
  }
}
