/***** Global *****/
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background-color: #fafafa;
  color: #222;
  line-height: 1.7;
}

/***** Navigation *****/
header {
  background: #1f2937;
  padding: 1rem 0;
}

nav {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

nav a {
  color: #e5e7eb;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #60a5fa;
}

/***** Layout *****/
.container {
  display: flex;
  max-width: 1000px;
  margin: 40px auto;
  gap: 50px;
  padding: 0 20px;
}

/***** Sidebar *****/
.sidebar {
  flex: 1;
  max-width: 260px;
  text-align: center;
}

.sidebar img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar h1 {
  font-size: 1.6rem;
  margin: 0.3rem 0;
  text-align: center;
}

.sidebar p {
  margin: 0.2rem 0;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}

.sidebar a {
  color: #2563eb;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

/***** Main Content *****/
.main {
  flex: 2;
}

.main h2 {
  font-size: 1.4rem;
  margin-top: 0;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 5px;
}

.main p {
  margin: 0.8rem 0 1.5rem;
}

/***** Lists *****/
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/***** Links *****/
a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

/***** Footer *****/
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #e5e7eb;
}

/***** Responsive *****/
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 20px auto;
  }

  .sidebar {
    max-width: 100%;
    text-align: center;
  }

  .main {
    width: 100%;
  }
}

.pub {
  background: #fff;
  padding: 12px 15px;
  margin-bottom: 12px;
  border-left: 3px solid #2563eb;
}

.pub:hover {
  background: #f3f4f6;
}

/* ===== Team Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* ===== Card Style ===== */
.card {
  background: #ffffff;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.card:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #2563eb;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

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

.card p {
  margin: 3px 0;
  font-size: 0.95rem;
  color: #444;
}

/* Subtle topic styling */
.card em {
  color: #666;
  font-size: 0.9rem;
}

/* Make card links behave like normal cards */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Icons row ===== */
.icons {
  margin-top: 8px;
}

.icons a {
  margin-right: 10px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Hover effect */
.icons a:hover {
  transform: scale(1.2);
  color: #2563eb;
}

.cosupervision {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

/* ===== Responsive (mobile) ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

#toTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#toTopBtn:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}


/* Intro text */
.intro {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 25px;
}

/* Section spacing */
.main h2 {
  margin-top: 30px;
}

/* Lists */
.main ul {
  margin: 10px 0 20px;
  padding-left: 20px;
}

.main li {
  margin-bottom: 6px;
}

/* Closing note */
.closing {
  margin-top: 30px;
  font-style: italic;
  color: #555;
}

/* Slight emphasis for important section */
h2 {
  font-weight: 600;
}

.contact-simple {
  padding-left: 10px;
  border-left: 3px solid #2563eb;
}

.contact-simple a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

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