hr {
    /* border: 0; */
    height: 5 px;
    background: #03ffd5;
    /* background-image: linear-gradient(to right, #ccc, #333, #ccc); */
  }

  b {
    /* font-size: 110%; */
    font-weight: bold;
    color: #ffffff;
  }

  #name {
    font-size: 1.75rem; /* A  /* Remove dropdown functionality on mobile needed for desktop view */
    /* Add other base styles if necessary, e.g., color, margin */
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: white; /* Assuming white text from hyde theme */
    font-weight: bold;
    text-decoration: none;
    /* font-family: Georgia, 'Times New Roman', Times, serif; */
  }

  .subtitle {
    display: none; /* Hide by default on desktop */
    color: #03ffd5;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 0.25rem;
  }

  .sidebar-nav-item {
    color: #ffffff;
    font-size: 12px;
  }

  .publications {
    font-size: 110%;
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* font-weight: bold; */
    color: #ffffff;
  }

  .scrollable {
    height: 300px;
    overflow-y: scroll;
    background-color: #2e4152;
  }

  .date {
    width: 10%;
    vertical-align: top;
    font-weight: bold;
  }

  .table-item {
    vertical-align: top;
  }

  .icons {
    font-size: 23px;
    margin-right: 8px;
  }

  /* Profile image responsiveness */
  #circle {
    max-width: 100%;
    height: auto;
    width: 300px; /* Desktop default */
  }

  /* Mobile-first social media icons */
  .mobile-social-icons {
    display: none;
    margin-top: 0.5rem;
    text-align: center;
  }

  .mobile-social-icons a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
  }

/* --- Responsive Styles --- */

/* Mobile social icons styling */
.mobile-social-icons {
  display: none; /* Hidden by default on desktop */
}

/* Enhanced mobile styles for better responsiveness */
@media (max-width: 480px) {
  /* Extra small devices - phones */
  #name {
    font-size: 1rem !important;
  }

  #circle {
    width: 120px;
    max-width: 120px;
  }

  .mobile-social-icons {
    display: block;
  }

  .mobile-social-icons a {
    font-size: 1.2rem;
    margin: 0 0.3rem;
  }

  .content.container {
    padding-top: 60px !important;
    width: 92% !important;
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .content.container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .content.container p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .scrollable {
    height: 250px;
    font-size: 1rem;
  }

  .date {
    font-size: 0.95rem;
  }

  .table-item {
    font-size: 1rem;
  }

  /* Make tables more mobile-friendly */
  .scrollable table {
    font-size: 0.95rem;
  }

  .scrollable td {
    padding: 0.5rem 0.3rem;
  }
}

/* Media query for mobile devices (e.g., screens less than 768px wide) */
@media (max-width: 768px) {
  /* Reset body padding for mobile */
  html,
  body {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Profile image mobile sizing */
  #circle {
    width: 150px;
    max-width: 150px;
  }

  .mobile-social-icons {
    display: block;
  }

  /* --- Mobile Top Bar --- */
  body > .sidebar {
    display: none !important; /* Hide the entire sidebar on mobile */
  }

  .subtitle {
    display: block;
    font-size: 0.8rem;
    margin-left: 0.5rem;
  }

  h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Ensure container inside doesn't interfere */
  body > .sidebar .container.sidebar {
     padding: 0;
     display: contents;
  }

  /* Style the name */
  body > .sidebar h1 {
    margin: 0;
    flex: 1;
  }

  body > .sidebar h1 a#name {
     font-size: 1.2rem;
     font-weight: bold;
     color: #ffffff;
     text-decoration: none;
     display: inline-block;
     line-height: 60px;
     vertical-align: middle;
  }
  
  /* Keep name spans inline on mobile */
  body > .sidebar h1 a#name .first-name,
  body > .sidebar h1 a#name .last-name {
    display: inline !important;
  }

  /* Mobile social icons - always visible beside hamburger */
  .mobile-social-icons {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    order: 2;
  }

  .mobile-social-icons a {
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    line-height: 60px;
    display: inline-block;
  }

  /* --- Mobile Nav Button --- */
  .mobile-nav-toggle {
    display: block;
    position: static;
    order: 3;
    font-size: 1.8rem;
    color: white;
    background: none;
    border: none;
    padding: 0 0.5rem;
    cursor: pointer;
    height: 60px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    line-height: 60px;
  }

  /* Hide sidebar elements on mobile */
  .sidebar-about,
  .sidebar-nav,
  body > .sidebar .container.sidebar {
    display: none !important; /* Hidden on mobile */
  }

  /* --- Show Dropdown When Active --- */
  .sidebar.mobile-menu-active .sidebar-about,
  .sidebar.mobile-menu-active .sidebar-nav {
    display: block;
  }

  /* Smooth dropdown for sidebar nav/about */
.sidebar-about,
.sidebar-nav {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.sidebar.mobile-menu-active .sidebar-about,
.sidebar.mobile-menu-active .sidebar-nav {
  max-height: 500px; /* Enough to show all content */
  opacity: 1;
}

/* Always show profile photo above content on mobile */
@media (max-width: 768px) {
  #circle {
    display: block;
    margin: 0.5rem auto 1rem auto;
  }
  .sidebar-about #circle {
    display: none; /* Hide duplicate in dropdown */
  }
}

/* Show mobile social icons in top bar on mobile */
@media (max-width: 768px) {
  .mobile-social-icons {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding-right: 1rem;
  }
  
  .mobile-social-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 60px;
  }
}

/* --- Adjust Main Content --- */
  .content.container {
    padding-top: 1rem;
    margin: 0 !important; /* Reset all margins */
    width: 96% !important; /* Wider content area */
    max-width: 96% !important;
    padding: 0.5rem !important; /* Reduced padding */
    box-sizing: border-box;
  }

  /* Improved typography for mobile */
  .content.container h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .content.container p {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Better table handling for mobile */
  .scrollable {
    height: 280px;
    width: 100% !important;
    border-radius: 0;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .scrollable table {
    width: 100%;
    font-size: 1.1rem;
  }

  .scrollable td {
    padding: 0.7rem 0.5rem;
    word-wrap: break-word;
  }

  .date {
    width: 15%;
    font-size: 1rem;
  }

  .table-item {
    font-size: 1.1rem;
  }

  /* Publications styling */
  .publications {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  /* Lists styling */
  ul[type="square"] {
    padding-left: 1rem;
  }

  ul[type="square"] li {
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 1.1rem;
  }

  body {
    margin: 0; /* Remove default body margin on mobile */
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  #circle {
    width: 200px;
    max-width: 200px;
  }

  .content.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.profile-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
#circle {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1rem;
}
#profile-name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.profile-title, .profile-affiliation {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.profile-links {
  margin-top: 1rem;
}
.profile-links a {
  color: #a084e8;
  font-size: 2rem;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}
.profile-links a:hover {
  color: #fff;
}
@media (min-width: 769px) {
  .profile-header {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  #circle {
    width: 200px;
    height: 200px;
  }
  #profile-name {
    font-size: 2.2rem;
  }
  .profile-title, .profile-affiliation {
    font-size: 1.2rem;
  }
}

/* Remove duplicate mobile styles - consolidated above */

/* Sidebar profile photo styling */
.sidebar-photo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  margin: 1rem auto;
  display: block;
}

/* Hide sidebar photo on mobile */
@media (max-width: 768px) {
  .sidebar-photo {
    display: none;
  }
}

/* Show sidebar photo on desktop */
@media (min-width: 769px) {
  .sidebar-photo {
    display: block;
  }
  
  /* Ensure name has proper left margin on desktop - more specific rule */
  body > .sidebar .container.sidebar h1 a#name {
    margin-left: 1rem !important;
    display: block !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  
  /* Force last name to new line on desktop */
  body > .sidebar .container.sidebar h1 a#name .last-name {
    display: block !important;
  }
}

/* Mobile-only profile section styles */
.mobile-profile-header {
  display: none; /* Hidden by default on desktop */
  margin: 1rem 0 2rem 0;
}

.profile-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #2e4152;
  padding: 1rem;
  border-radius: 8px;
  margin: 0;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mobile-circle {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.profile-text .name {
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.profile-text .title {
  font-size: 1.1rem;
  color: #03ffd5;
  margin-bottom: 1rem;
}

.mobile-profile-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.4rem;
  justify-items: center;
  align-items: center;
  width: 100%;
}

.mobile-profile-icons a {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.mobile-profile-icons a:hover {
  color: #03ffd5;
}

/* Show mobile profile photo only on mobile */
@media (max-width: 768px) {
  .mobile-profile-header {
    display: block;
  }
}

/* Hide mobile profile photo on desktop */
@media (min-width: 769px) {
  .mobile-profile-header {
    display: none;
  }
}
