/* ==============================
   Global Styles
   ============================== */
body {
  font-family: 'Poppins', sans-serif;
  background: #F6F7F4;
  color: #2B2B2B;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: #3A5F41;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #7BAF87;
}

/* ==============================
   Sections
   ============================== */

main {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 20px;
}

section {
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* 缩短 About Us 和 Faculty Members 间距 */
#about {
  margin-bottom: 5px;
}

#faculty {
  margin-top: 5px;
}

/* Section Titles */
h2 {
  color: #002b5b;
  border-left: 4px solid #002b5b;
  padding-left: 10px;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

h3 {
  color: #444;
  margin-top: 10px;
}

p {
  color: #2B2B2B;
  margin: 5px 0;
}

ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

/* ==============================
   Faculty Section
   ============================== */
.faculty-section {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.faculty-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 32%;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.faculty-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.faculty-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.faculty-card h3 {
  color: #002b5b;
  margin: 5px 0;
  font-size: 1rem;
}

.faculty-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.faculty-card .direction {
  margin-top: 5px;
  background: #f1f4f9;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #003366;
}

/* ==============================
   Research Section
   ============================== */
.research-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}

.research-section h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

/* ==============================
   Footer
   ============================== */
footer {
  background-color: #002b5b;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 10px;
}

footer .footer-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 12px;
  object-fit: cover;
  border: 2px solid #ffffffcc;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 900px) {
  header h1 {
    font-size: 1.8rem;
    margin-left: 0;
  }

  .faculty-section {
    flex-wrap: wrap;
    justify-content: center;
  }

  .faculty-card {
    width: 90%;
    margin-bottom: 10px;
  }

  header .logo {
    position: static;
    display: block;
    margin: 0 auto 10px auto;
    height: 90px;
  }
}

@media (max-width: 768px) {
  nav a {
    font-size: 1rem;
  }
}

.profile-title,
.section-title {
  color: #002b5b;
  border-left: 4px solid #002b5b;
  padding-left: 10px;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.pub-item {
  border-left: 3px solid #003366;
  padding-left: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}
