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

body {
  font-family: 'Lora', serif;
  margin: 0;
  padding: 0;
  line-height: 1.75;
  background: #f9f9f9;
  color: #333;
}

header a {
  color: #333;
}

header a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2em;
}

h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
  margin-top: 0.5em;
}

section {
  padding: 2.5rem;
  max-width: 850px;
  margin: 2rem auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

section h2 a {
  color: inherit;
}

section h2 a:hover {
  text-decoration: none;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0;
}

nav {
  /* margin-top: 1rem; */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  height: 100%;
}

nav a {
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: transparent;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  background-color: #d0d0d0;
  color: #000;
  text-decoration: none;
}

.language-toggle {
  text-align: right;
  margin: 1rem auto 0;
  max-width: 850px;
  padding: 0 2.5rem;
}

.language-toggle button {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.language-toggle button:hover {
  background-color: #666;
}

.sub-affiliation {
  font-size: 1rem;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  color: #666;
}

#group-photo {
  padding: 0;
  /* margin: 0; */
  /* max-width: none; */
  border-radius: 0;
  box-shadow: none;
}

#group-photo img {
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}


.header-content {
  padding-bottom: 0.5rem;
}

.header-content h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0.1rem;
}

.header-content p {
  margin: 0.2rem 0;
  font-size: 1.3rem;
}

.nav-container {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}
.member-section {
  margin-bottom: 2rem;
}

.member-section h3 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

.pub-type {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.pub-title a {
  color: #003366;
  text-decoration: none;
}

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

.pub-sub {
  font-size: 0.95rem;
  color: #555;
}

.pub-author {
  font-size: 0.95rem;
  color: #555;
}

.lab-member {
  text-decoration: underline;
  text-decoration-color: #333;
  font-weight: bold;
}

/* Publication type colored dot and type-specific colors */
.pub-type::after {
  content: '';
  display: inline-block;
  margin-left: 0.5rem;
  margin-bottom: 0.1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.pub-journal {
  color: #1e88e5;
}

.pub-conference {
  color: #43a047;
}

.pub-topconference {
  color: #1e88e5;
}

.pub-workshop {
  color: #fb8c00;
}

.pub-domestic {
  color: #ab47bc;
}

.news-date {
  display: inline-block;
  font-weight: bold;
  color: #555;
  background-color: #f0f0f0;
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.news-toggle-button {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.news-toggle-button:hover {
  background-color: #666;
  text-decoration: none;
}
.pub-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  padding: 0;
}

.pub-link:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.member-affiliation {
  display: inline-block;
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
}

.member-status {
  display: inline-block;
  color: #444;
  font-size: 0.9rem;
  font-style: normal;
}



/* Responsive Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.hamburger div {
  background-color: #333;
  height: 1px;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 600px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    margin: 0;
    padding: 0;
    border-top: 0;
    border-bottom: 0;
  }

  nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    position: absolute;
    top: 3.5rem;
    left: auto;
    right: 1rem;
    width: max-content;
    min-width: 200px;
    z-index: 9;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0 1rem;
    margin: 0;
    border-top: 0;
    border-bottom: 0;
    height: auto;
  }

  nav.show {
    max-height: none;
    padding: 1rem;
  }

  nav a {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: #ffffff;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease;
  }
}

a.header-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* Header background image */
.header-background {
  background: #eeeeee;
  /* background-image: url('images/lobby.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.85);
  background-blend-mode: lighten; */
  padding: 2rem 0;
  color: #333;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

footer {
  background: #eeeeee;
  color: #333;
  text-align: center;
  padding: 1.5rem 0;
  border-radius: 0 0 8px 8px;
}

/* Shared card style for project and member cards */
.shared-card {
  background: #fff;
  border-left: 4px solid #888;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  transition: background 0.2s ease, border-left-color 0.2s;
  position: relative;
  overflow: hidden;
}

.shared-card:not(:has(a)) {
  border-left-color: #ccc;
}

  /* replaced below with :has(a) version */
.shared-card:has(a)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #f0f0f0;
  clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
  z-index: 0;
  transition: width 0.4s ease-in-out;
  pointer-events: none;
}

.shared-card:has(a):hover::before {
  width: 110%;
}

.shared-card > * {
  position: relative;
  z-index: 1;
}


.shared-card .shared-text {
  font-size: 1.05rem;
  font-weight: bold;
  color: #333;
}

.shared-card-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.shared-card-link:hover {
  text-decoration: none;
}

.member-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.2rem;
}

section a:not(.news-toggle-button):not(.shared-card-link) {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

section a:not(.news-toggle-button):not(.shared-card-link):hover {
  color: #174ea6;
  text-decoration: underline;
}