
/* Reset scroll and layout limits */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #abb6c3ff;
  color: #474747;
  line-height: 1.6;
  overflow: hidden;
}

/* Container for sidebar + main content */
.wrapper {
  display: flex;
  max-width: 1500px;
  margin: 20px auto;
  height: calc(100vh - 40px);
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 100px;
  min-width: 100px;
  flex-shrink: 0;
  background-color: #f0f4f8;
  padding: 20px;
  transition: width 0.3s ease;
  text-align: center;
  border-radius: 10px 0 0 10px;
  height: 100%;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Sidebar navigation */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-nav li {
  margin-bottom: 40px;
  text-align: center;
}

.sidebar-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #003366;
  transition: color 0.2s ease;
}

.sidebar-nav li a img {
  width: 32px;
  height: auto;
  margin-bottom: 5px;
  filter: brightness(1.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sidebar-nav li a:hover img,
.sidebar-nav li a.active img {
  transform: scale(1.2);
  filter: brightness(1);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  font-weight: bold;
  color: #001f4d;
}

/* Main content */
.main-content {
  flex-grow: 1;
  padding: 40px;
  background-color: #fff;
  border-radius: 0 10px 10px 0;
  margin: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  overflow-wrap: break-word; /* ensures long lines break */
  word-break: break-word;
}
.main-content p {
  text-align: justify;
}
/* Bio section with profile and name side-by-side */
.bio-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  background-color: #ffffff;
  border-radius: 10px;
  text-align: center;
}

.bio-horizontal .profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
}

.bio-horizontal .bio-text h1 {
  margin: 0;
  font-size: 2rem;
}

.bio-horizontal .bio-text p {
  margin: 4px 0;
}

/* Header (used in legacy layout) */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
}

header p {
  margin-top: 0;
  color: #555;
  font-size: 1rem;
}

/* Navigation (legacy) */
nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: block;
}

nav li {
  display: inline;
}

nav a {
  text-decoration: none;
  color: #4e627c;
}

nav a:hover {
  font-weight: bold;
}

/* Bio block (legacy, optional use) */
.bio {
  background-color: #f0f4f8;
  padding: 1.2rem;
  border-radius: 10px;
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Content sections */
.sections {
  background-color: #f0f4f8;
  padding: 1rem;
  border-radius: 10px;
  text-align: left;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Footer links and icons */
.links {
  text-align: left;
  font-size: 0.95rem;
}

.links a {
  color: #4e627c;
  text-decoration: none;
  margin: 0 0.5rem;
}

.links img {
  margin: 0 10px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.links img:hover {
  transform: scale(1.3);
}

/* Photo + name block (legacy horizontal header) */
.header-with-photo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.header-text {
  flex: 1;
  min-width: 200px;
}

.publication-link {
  color: #4e627c;
  text-decoration: none;
}

.publication-link:hover {
  color: #4e627c;
  font-weight: bold;
}

h1 {
  color: #4e627c;
}

h2 {
  color: #6b7c93; /* Slightly lighter for section titles */
}

h3 {
  color: #8796ab; /* Softer for subsection titles */
}

h4, h5, h6 {
  color: #8796ab; /* Same as h3 for consistency */
}
