body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #f6f8fa;
  color: #21243d;
  font-size: 1.10rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  background: #fff;
  border-bottom: 2.5px solid #ececff;
  padding: 0.95rem 0 0.85rem 0;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: .03em;
}
nav a {
  color: #373abd;
  text-decoration: none;
  padding: 0.2em 0.3em 0.15em 0.3em;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
nav a.active, nav a:focus, nav a:hover {
  border-bottom: 2.5px solid #373abd;
  color: #21243d;
}
.huggingface-emoji {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin-right: 0.4em;
  font-size: 1.18em;
  vertical-align: middle;
}
.container.main-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.3rem 1.1rem;
}

.sidebar {
  width: 240px;         /* wider */
  min-width: 180px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(30,32,50,0.06);
  padding: 1.2rem 0.5rem 0.9rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar-contact i {
  margin-right: 0.43em;
  color: #888bb0;
  width: 1.1em;
  text-align: center;
}
.sidebar-contact a {
  vertical-align: middle;
}


/* -- ENHANCED NAME AND TITLE IN SIDEBAR -- */
.sidebar-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.4rem 0 0.12rem 0;
  color: #1a1854;
  letter-spacing: 0.01em;
  white-space: nowrap; /* keep name on one line */
}

.sidebar-title {
  color: #373abd;
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 1.03rem;
  line-height: 1.35;
}

.profile-pic-tiny {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.8px solid #e7e9fc;
  box-shadow: 0 2px 7px rgba(30,32,50,.11);
  margin-bottom: 0.45rem;
}

.sidebar-contact {
  font-size: 1.00rem;
  color: #333a;
  margin-top: 0.1rem;
  line-height: 1.43;
}
.sidebar-contact a {
  color: #2d72d9;
  text-decoration: none;
}
.sidebar-contact a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */
main {
  flex: 1 1 0;
  min-width: 0;
}
main section {
  margin-bottom: 2.3rem;
}
h2 {
  color: #373abd;
  font-size: 1.27rem;
  margin-bottom: 0.32rem;
  margin-top: 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.23rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* -- COMPACT BULLET POINTS -- */
ul, ol {
  padding-left: 1.25em;
  margin-top: 0.35em;
  margin-bottom: 0.18em;
}
ul li, ol li {
  margin-bottom: 0.13em;
  font-size: 1.02rem;
  line-height: 1.45;
}
ul ul, ul ol {
  margin-top: 0.08em;
  margin-bottom: 0.08em;
}

a {
  color: #2d72d9;
  text-decoration: none;
  word-break: break-all;
}
a:hover {
  text-decoration: underline;
}

footer {
  background: #21243d;
  color: #cfd2e2;
  text-align: center;
  padding: 1rem 0 1.3rem 0;
  font-size: 0.99rem;
  margin-top: 2.2rem;
}

/* -- CENTER MAIN-CONTENT ON OTHER PAGES (NO SIDEBAR) -- */
.main-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.3rem 1.1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(70,90,120,0.05);
}

/* Responsive: sidebar stacks on top, photo stays medium */
@media (max-width: 700px) {
  nav {
    gap: 0.7rem;
    font-size: 1rem;              /* Smaller tab text */
    padding: 0.7rem 0 0.6rem 0;   /* Less vertical padding */
  }
  nav a {
    padding: 0.18em 0.55em 0.15em 0.55em; /* Less side padding for tabs */
    font-size: 1em;
  }
  .container.main-flex {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 0.2rem;
  }
  .sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0.18rem;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .profile-pic-tiny {
    margin-right: 0.6rem;
    margin-bottom: 0;
    width: 38px;
    height: 38px;
  }
  .sidebar-name {
    font-size: 0.97rem;
    margin: 0 0.7rem 0 0;
  }
  .sidebar-title { font-size: 0.87rem; }
  .sidebar-contact { font-size: 0.87rem; }
  main, .main-container { padding: 0.07rem 0.08rem; }
}

@media (max-width: 400px) {
  nav {
    font-size: 0.82rem;
    gap: 0.25rem;
    padding: 0.25rem 0 0.19rem 0;
  }
  nav a {
    padding: 0.10em 0.2em 0.08em 0.2em;
    font-size: 0.97em;
  }
  .sidebar,
  .container.main-flex,
  .main-container {
    padding: 0.05rem 0.02rem;
  }
  .profile-pic-tiny {
    width: 22px;
    height: 22px;
    margin-right: 0.35rem;
  }
  .sidebar-name, .sidebar-title, .sidebar-contact { font-size: 0.78rem; }
}

