:root {
  /*--sidebar-bg: linear-gradient(to bottom right, #001f3f, #003566);*/
  --sidebar-bg: linear-gradient(to bottom right, #002B5B, #1A374D);
  /*--sidebar-bg: linear-gradient(to bottom right, #3e5c83, #537189);*/
  --main-bg: linear-gradient(to bottom right, #ffffff, #e0f7fa);
  --navy: rgba(0, 43, 91, 0.9);
  --navy-light: #0077b6;
  --navy-lighter: rgba(0, 43, 91, 0.5);
  --nav-light: #e0f7fa;
  --cyan-light: #e0f7fa;
  --nav-dark: #007c91;
  --nav-border: #0097a7;
  --button-bg: white;
  /*--button-hover: rgba(0, 43, 91, .7);*/
  --button-hover: var(--navy-light);
  --button-active:  rgba(128, 128, 128, 0.5);
  --text-color: #023047;
  --text-white: #ffffff;
  --white: #ffffff;
  --black: #000000;

  /*font sizes*/
  --fs-s3: clamp(0.5rem, 0.20vw + 0.5rem, 0.65rem);
  --fs-s2: clamp(0.65rem, 0.25vw + 0.55rem, 0.75rem);
  --fs-s1: clamp(0.75rem, 0.3vw + 0.6rem, 0.85rem);
  --fs-base: clamp(0.85rem, 0.4vw + 0.65rem, 1rem);
  --fs-l1: clamp(1rem, 0.5vw + 0.7rem, 1.2rem);
  --fs-l2: clamp(1.1rem, 0.6vw + 0.75rem, 1.4rem);
  --fs-l3: clamp(1.25rem, 0.75vw + 0.8rem, 1.6rem);
  --fs-l4: clamp(1.5rem, 0.9vw + 0.85rem, 2rem);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5faff;
}

p {
  line-height: 1.4; /* Adjust as needed, 1.5–1.8 is commonly good for readability */
  text-align: justify;
}

.contact-info p {
  text-align: center;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: clamp(0.5rem, 2vw, 2rem) auto;
  gap: clamp(0.5rem, 1vw, 1rem);
  padding: 0 clamp(0.5rem, 4vw, 2rem);
  box-sizing: border-box;
}

/*.page-wrapper {
  display: grid;
  grid-template-areas:
    "header"
    "sidebar"
    "main";
  grid-template-columns: 1fr;
  gap: 1rem;
}*/

/* Place elements into grid areas */
.page-header {
  width: 100%;
  height: clamp(20px, 10vw, 80px);
  margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
  overflow: hidden;
}


.lab-banner {
  width: 100%;
  height: clamp(20px, 10vw, 80px);
  display: block;
  border-radius: clamp(8px, 1vw, 20px);
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  max-width: 1200px; /* same as .page-wrapper max-width */
  margin: 0 auto; /* center align */
  box-sizing: border-box;
}


.sidebar {
  background: var(--sidebar-bg);
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: 20px;
  text-align: center;
  color: var(--text-white);
  font-size: clamp(0.9rem, 2vw, 1rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar header layout */
.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Default: Mobile screen (side-by-side layout) */
.sidebar img {
  width: 50%;       /* half the width */
  max-width: 100px; /* prevent it from getting too big */
  height: auto;
  border-radius: 5%;
}

/* Name styling */
.sidebar-name {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: bold;
  flex-grow: 1;
  text-align: center;
}

/* Toggle button (chevron) */
.sidebar-toggle {
  display: none; /* Default hidden */
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  gap: 0.3em;
  transition: transform 0.3s ease;
}

.sidebar-toggle ion-icon {
  transition: transform 0.3s ease;
}

/* Rotated when expanded */
.sidebar.expanded .sidebar-toggle ion-icon {
  transform: rotate(180deg);
}

.toggle-label {
  display: none; /* hidden by default */
  font-size: 1rem;
}

/* Sidebar details (extra info) */
.sidebar-details {
  margin-top: 1rem;
  transition: max-height 0.3s ease;
}

.sidebar.expanded .sidebar-toggle {
  display: none;
}

.sidebar-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info p {
  margin: 0;
  line-height: 1.5;
}

/* Buttons group styling */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Shared style for all profile buttons */
.cv-button,
.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 10px;
  background-color: #4a76a8;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.cv-button:hover,
.profile-button:hover {
  background-color: #3b5f8f;
}

/* Custom icons */
.cv-button ion-icon,
.profile-button ion-icon {
  font-size: 1.2em;
}

/* Optional: Add unique colors (if desired) */
.profile-button.scholar {
  background-color: #4285f4; /* Google Blue */
}

.profile-button.scholar:hover {
  background-color: #3367d6;
}

.profile-button.linkedin {
  background-color: #0077b5;
}

.profile-button.linkedin:hover {
  background-color: #005f91;
}


/* Main panel*/

.main-panel {
  flex: 1;
  background: var(--main-bg);
  border-radius: clamp(12px, 2vw, 20px);  /* Responsive rounding */
  padding: clamp(0.5rem, 0.7vw, 1rem) clamp(0.5rem, 2.5vw, 1.2rem); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/*header {
  width: 100%;
  height: 80px;
  background: url('../images/dna3.jpg') no-repeat center;
  background-size: cover;
  border-radius: 20px 20px 0 0;
}*/

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap; /* helps mobile stacking */
}


.section-title {
  font-size: var(--fs-l3);
  font-weight: bold;
  color: var(--text-color);
  background-color: transparent;
}

.nav-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-top: 0rem;
  max-width: 1000px; /* match main-panel width if it's fixed */
  margin: 0 auto;
}

/* Default nav (desktop) */
.section-header-row nav {
  display: flex;
  gap: 3px;
  background-color: var(--nav-light);
  padding: 9px 5px;
  border-radius: 15px;
  box-shadow: 2px 2px 6px var(--nav-dark);
  border: 1px solid var(--navy);
}

nav button {
  background-color: var(--button-bg);
  color: var(--text-color);
  border: none;
  border-radius: 15px;
  padding: 5px 7px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
  font-size: var(--fs-s1);
}

nav button:hover {
  background-color: var(--button-hover);
  color: white;
}

nav button.active {
  background-color: var(--navy);
  color: white;
  /*box-shadow: 0 0 8px 4px var(--white);*/
  /*animation: glow 11.5s infinite ease-in-out;*/
}

@keyframes glow {
  0% {
    box-shadow: 0 0 4px 2px var(--white);
  }
  50% {
    box-shadow: 0 0 12px 6px var(--white);
  }
  100% {
    box-shadow: 0 0 4px 2px var(--white);
  }
}

.content {
  padding: 0.5vh 1vw;
}

.content article {
  display: none;
}

.content article.active {
  display: block;
}


/* Section heading */
.section-heading {
  display: inline-block;
  font-size: var(--fs-base);
  font-weight: bold;
  color: var(--text-color);
  margin: clamp(0.9rem, 2vw, 1.3rem) 0 clamp(0.45rem, 1vw, 0.5rem);
  padding: 6px 16px 6px 26px;  /* tighter vertical padding */
  border-radius: 8px;
  background: linear-gradient(to right, var(--cyan-light), #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  line-height: 1.1;
}

/* Decorative vertical accent bar */
.section-heading::before {
  content: '';
  position: absolute;
  left: clamp(0.4rem, 1vw, 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(3px, 0.5vw, 5px);
  height: 55%;
  background: linear-gradient(to bottom, var(--navy), var(--navy-lighter));
  border-radius: 3px;
}


/*Bullet points */
.fancy-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.fancy-bullets li {
  position: relative;
  padding-left: clamp(1rem, 3vw, 1.8rem);
  line-height: 1.4;
}

.fancy-bullets li::before {
  content: "🧬"; /* DNA emoji as a bullet */
  position: absolute;
  left: 0;
  top: 0;
  font-size: var(--fs-base);
  color: var(--navy-light);
}

/* News */
.news-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.news-list li {
  line-height: 1.4;
  padding-left: clamp(1rem, 3vw, 1.8rem);
  position: relative;
}

.news-icon {
  position: absolute;
  left: 0;
  top: 0;
  color: #ff7f50;
  font-size: var(--fs-s1);
}

.hidden {
  display: none;
}

#showMoreBtn {
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: clamp(8px, 1.5vw, 15px); /* Responsive rounding */
  padding: clamp(0.15rem, 1vw, 0.3rem) clamp(0.5rem, 2vw, 0.6rem); /* Vertical | Horizontal */
  font-size: var(--fs-s2); /* Responsive text size */
  font-weight: bold;
  cursor: pointer;
  margin-top: clamp(0.15rem, 1vw, 0.3rem); /* Spacing from content above */
  transition: background 0.3s ease;
}
#showMoreBtn:hover {
  background-color: var(--navy-light);
}

/*Education */

.education-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.education-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-left: 35px;
  position: relative;
}

.edu-icon {
  position: absolute;
  left: 0;
  top: 3px;
  font-size: var(--fs-l1);
  color: var(--navy-light);
}

.edu-details {
  line-height: 1.4;
}

.edu-year {
  font-size: var(--fs-s1);
  color: #555;
  font-style: italic;
}

/*Research */
.research-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 0.7vw, 0.8rem);  /* 6px to 16px approx */
  margin-bottom: clamp(1rem, 2vw, 2rem);  /* Responsive vertical spacing */
}

.research-filter {
  background-color: var(--white);
  color: var(--text-color);
  border: 1px solid var(--cyan-light);
  border-radius: clamp(10px, 2vw, 15px);
  box-shadow: 2px 2px 6px var(--nav-dark);
  padding: clamp(0.22rem, 0.25vw, 0.45rem) clamp(0.3rem, 0.45vw, 0.6rem); /* vertical | horizontal */
  font-size: var(--fs-s2);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.research-filter:hover {
  background-color: var(--navy-light);
  color: var(--text-white);
}

.research-filter.active {
  background-color: var(--navy);
  color: var(--text-white);
}

.research-project {
  background: linear-gradient(to right, #f1f9ff, #e8f8ff);
  border-radius: 12px;
  padding: 10px 15px 10px 15px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.research-title {
  font-size: var(--fs-base);
  font-weight: bold;
  margin-bottom: 10px;
}

.research-content {
  max-height: 200px;  /* fixed clipped height */
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: flex;
  gap: 20px;
}

.research-content.expanded {
  max-height: 1000px; /* large enough for full content */
  overflow: visible;
}

.research-text {
  flex: 1 1 70%; /* Grow and shrink, base width 70% */
  min-width: 200px; /* prevent text from getting too narrow */
  font-size: var(--fs-base);
  text-align: justify;
}

.research-desc-bullets {
  margin-top: 8px;
  padding-left: 20px;
  list-style-type: circle;
  color: #333;
}

.research-refs-title {
  position: relative;
  padding-left: 18px;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: var(--fs-s1);
  color: var(--navy);
}

.research-refs-title::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 6px;
  background-color: var(--navy);
  border-radius: 4px;
}

.research-refs {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.research-img {
  flex: 0 0 25%; /* fixed base width 25%, no grow */
  max-width: 250px; /* cap image width */
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 100%; /* fill the flex basis */
  height: auto;
  align-self: start; /* align image to top */
}

.toggle-btn {
  margin-top: 10px;
  align-self: flex-start; /* so button aligns left below content */
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background-color: var(--navy-light);
  color: white;
}


/* Publications */

/* Filter Buttons */
.pub-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pub-filter {
  background-color: #48cae4;
  color: white;
  border: none;
  border-radius: 15px;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pub-filter:hover {
  background-color: var(--navy-light);
}

.pub-filter.active {
  background-color: #023e8a;
}

/* Publication List */
.publication-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0px;
}

.publication-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: linear-gradient(to right, #f8f9fa, #f1f9ff);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.06), 
    0 0 0 1px rgba(0, 119, 182, 0.1); /* subtle border ring + soft shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional hover effect */
.publication-list li:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.08), 
    0 0 0 1px rgba(0, 119, 182, 0.15);
}

/* Custom number badge */
.pub-number {
  background: var(--navy);
  color: white;
  font-weight: bold;
  width: clamp(20px, 4vw, 28px);
  height: clamp(20px, 4vw, 28px);
  border-radius: 50%;
  text-align: center;
  line-height: clamp(20px, 4vw, 28px);
  font-size: var(--fs-s2); /* small responsive text size */
  flex-shrink: 0;
  box-shadow: 0 0 0 2px white;
  margin-left: 0; /* flush to edge */
  margin-right: 0px; /* keep a bit of space before text */
}

/* Text content */
.pub-details {
  flex: 1;
  font-size: var(--fs-base);
}

/* PDF link */
.pub-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--navy);
  color: var(--text-white);
  padding: 4px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--fs-s2);
  transition: background 0.3s ease;
}

.pub-link:hover {
  background: var(--navy-light);
  color: white;
}


/* Teaching experience */
.teaching-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.teaching-item {
  position: relative;
  padding-left: 1.5rem; /* Space for bullet */
  margin-bottom: 1em;
}

.teaching-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 0.75em;
  height: 0.75em;
  background: linear-gradient(135deg, #0077cc, #00bfff);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Text and Layout Styling */
.teaching-header {
  font-size: var(--fs-base);
  color: var(--navy, #003366);
  margin-bottom: 0.25em;
}

.teaching-title {
  font-weight: 600;
}

.teaching-course {
  font-style: italic;
  color: var(--dark-gray, #444);
}

.teaching-university {
  font-weight: 500;
  color: var(--gray, #555);
  margin-bottom: 0.4em;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}

.teaching-description {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

/*Achievements */

.custom-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.custom-bullets li {
  position: relative;
  padding-left: 1.8em;
  font-size: var(--fs-base);
  line-height: 1.4;
}

/* Base bullet style */
.custom-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
}

/* Distinct bullets for categories */
.custom-bullets.awards li::before {
  background: linear-gradient(to right, #ffb347, #ffcc33); /* gold-orange */
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.custom-bullets.fellowships li::before {
  background: linear-gradient(to right, #66ccff, #3399ff); /* blue gradient */
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-radius: clamp(12px, 2vw, 20px);
  padding: 1%;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--main-bg);
  max-width: 800px;
  width: 90%;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: clamp(4px, 1.2vw, 8px);
  right: clamp(4px, 1.2vw, 8px);

  background: white;
  color: black;

  border: 2px solid #ccc;
  border-radius: 20%;

  width: clamp(24px, 4.5vw, 35px);
  height: clamp(24px, 4.5vw, 35px);

  font-size: clamp(16px, 4vw, 22px);
  line-height: 1;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f0;
}

/* You can reuse or slightly modify your research/project styles */
.project-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.project-text {
  flex: 1;
  font-size: 1rem;
}

.project-text > *:first-child {
  margin-top: 0; /* no gap above first element */
}

.project-img {
  max-width: 250px;
  max-height: 300px; /* or clamp(...) or a percentage */
  width: auto;
  height: auto;
  object-fit: contain; /* or cover, depending on what you want */
  border-radius: 8px;
  flex-shrink: 0; /* prevent image from shrinking */
  align-self: flex-start; /* prevents vertical stretch */
}

.project-desc-bullets, .project-refs {
  padding-left: 20px;
  margin-top: 10px;
}

.project-refs-title {
  margin-top: 20px;
  font-weight: 600;
}


/* Outreach */

.custom-bullets.conference-talks li::before {
  content: "🎤"; /* microphone icon for talks */
  position: absolute;
  left: 0;
  top: 0.3em; /* slightly lower to align with text */
  font-size: var(--fs-base);
  color: var(--navy-light);
  line-height: 1;
}

.custom-bullets.writing-competitions li::before {
  content: "📝"; /* notebook emoji for writing */
  position: absolute;
  left: 0;
  top: 0.12em;
  font-size: var(--fs-base);
  color: #6c63ff; /* a purple-blue tone */
}

/* === Responsive Adjustments === */
/*Side bar */
@media (min-width: 769px) {
  .content-wrapper {
    display: flex;
    /*align-items: stretch;*/
    min-height: calc(75vh); /* Ensure full viewport height */
    flex-direction: row;
  }

  .sidebar {
    flex: 0 0 17.5%;
    max-width: 300px;
    height: 75vh; /* Full height of viewport */
    display: flex;
    flex-direction: column; /* In case you want internal layout */
    overflow: hidden;
  }

  .main-panel {
    flex: 1;
    min-height: 100%; /* Ensure at least full screen */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .sidebar-header {
    align-items: center;
  }

  .sidebar img {
    width: 100%;   /* span full width of container */
    max-width: none; /* remove max-width limit */
    display: block;
    margin: 0 auto;
  }

  .sidebar-details {
    display: block !important;
  }

  .sidebar-toggle {
    display: none !important;
  }
}

/* Show label on medium screens only */
@media (min-width: 600px) and (max-width: 768px) {
  .toggle-label {
    display: inline;
  }
}

@media (max-width: 900px) {
  /*.page-wrapper {
    flex-direction: column;
    margin: 10px;
  }*/

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (max-width: 700px) {
  .publication-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .pub-number {
    margin-bottom: 10px;
  }

  .pub-link {
    margin-top: 10px;
  }

  .publication-list {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Responsive: Mobile nav bar at bottom */
/* === Mobile: Move nav to bottom === */
@media screen and (max-width: 768px) {

  .page-wrapper {
    flex-direction: column;
  }

  .page-header {
    height: clamp(20px, 5vw, 80px);
  }

  .lab-banner {
    height: clamp(20px, 5vw, 80px);
  }

  .sidebar-header {
    flex-direction: row; /* Side by side */
    align-items: center;
    text-align: left;
  }

  .sidebar-name {
    flex-grow: 1;
    text-align: left;
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-details {
    display: none; /* Hidden initially */
  }

  .profile-links {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }

  .profile-links a {
    flex: 1 1 auto;
    padding: 4px 7px;
    font-size: 0.85em;
    justify-content: center;
    white-space: nowrap;
  }

  .section-header-row nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: var(--nav-light);
    border-top: 1px solid var(--nav-border);
    z-index: 999;
    justify-content: space-around;
    gap: 5px;
    border-radius: 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  }

  .section-header-row nav { 
    gap: 1px;
  }

  nav button {
    flex: 1;
    padding: 0.3rem 0.3rem;
    border-radius: 5px;
    margin: 0 2px;
    font-size: var(--fs-s1);
  }

  .main-panel {
    padding-bottom: 70px; /* Space for bottom nav */
  }


  .research-content{    
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }

  .publication-list li {
    /* Keep it as a row layout */
    flex-direction: row;
    align-items: flex-start;
    padding: 4px 8px;
    gap: 4px;
  }

  .pub-number {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.65rem;
    margin-right: 3px;
    flex-shrink: 0;
  }

  .pub-details {
    font-size: 0.85rem;
  }

  .pub-link {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .teaching-item {
    padding-left: 1.5rem;
  }

  .teaching-item::before {
    width: 0.6em;
    height: 0.6em;
    top: 0.5em;
  }

}


