body {
    display: flex;
    /* font-family: 'Arial', sans-serif; */
    font-family: "Effra", Helvetica, sans-serif;
    background-color: #fff;
    color: #333;
}

.sidebar {
    width: 170px;
    background-color: #182633;
    color: #ffffff;
    height: 100vh;
    position: fixed;  /* Ensures it stays on the left */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.sidebar h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.sidebar a {
    color: #bbb;
    text-decoration: none;
    padding: 15px 0;
    margin-left: -5px;
    display: block;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #fff;
}

/* Title Card Styling */
.main-container {
    display: flex;
    flex-direction: column;
    margin-left: 170px; /* Adjusted for sidebar */
    width: calc(100% - 145px);
    align-items: center; /* Ensures child elements align properly */
}

.title-card {
    position: relative;
    width: 100%;
    max-width: 750px; /* Matches content */
    text-align: center;
    padding-top: 200px;
    padding-bottom:150px;
    background-color: #ffffff;
    color: #333;
    margin: auto;
    left: 10px;
    /* transform: translateX(-50%); */
    /* margin-left: 10px; */
}

.title-card h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0px;
    border-bottom: none;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666;
}

.subtitle2 {
    font-size: 1.22rem;
    font-weight: normal;
    color:#182633;
    margin-top: 3px;
}

/* Space between title card and main sections */
section {
    padding-top: 80px;
}

.content {
    padding: 30px;
    width: calc(100% - 230px); /* Adjusted for spacing between content and sidebar */
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
    
/* Adjust spacing for smaller screens */
@media (max-width: 1100px) {
    .main-container {
        margin-left: 150px; /* Adjust margin for smaller screens */
    }

    .content {
        width: calc(100% - 100px); /* Ensure spacing remains */
        padding-right: 0px;
    }
}

@media (max-width: 750px) {
    .title-card h1 {
        font-size: 3rem;
    }

    .title-card{
        padding-top: 50px;
        padding-bottom: 0px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .subtitle2 {
        font-size: 1rem;
    }
    
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    color: #182633;
    /* font-family: "Aptos"; */
}

.subheader {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 40px 0 20px;
    position: relative;
}

/* Ensure section is aligned properly */
.about {
    display: flex;
    flex-direction: column; /* Stack the header first, then content */
    align-items: flex-start; /* Align content with text instead of centering */
    width: 100%;
    max-width: 900px;
    margin: auto;
}

/* Header should always stay on top */
.about-header {
    width: 100%;
    text-align: left; /* Align header with text */
    margin-bottom: 20px;
}

/* Text & Image container */
.about-content {
    display: flex;
    align-items: flex-start; /* Aligns text and image at the top */
    justify-content: space-between; /* Space between text and image */
    width: 100%;
    gap: 40px; /* Space between text and image */
}

/* Ensure text takes up proper space */
.about-text {
    flex: 1; /* Make text take remaining space */
    text-align: justify;
}

/* Ensure image stays on the right */
.about-image {
    flex-shrink: 0; /* Prevent image from shrinking */
    max-width: 350px; /* Limit max width */
}

/* Ensure image resizes properly */
.about-image img {
    width: 150%;
    max-width: 352px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Adjust layout for smaller screens */
@media (max-width: 1100px) {
    .about-content {
        flex-direction: column; /* Stack image above text */
        align-items: center;
    }

    .about-header {
        order: -2; /* Move header to the top */
        /* text-align: center; */
    }

    .about-image {
        order: -1; /* Move image below the header */
        width: 80%; /* Ensure proper scaling */
        max-width: 300px; /* Prevent excessive shrinking */
    }
    
    .about-text {
        order: 0; /* Ensure text is placed below the image */
        width: 100%;
        text-align: justify;
    }
}

.about-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.research-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.research-item img {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

.lab {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.lab:nth-child(even) {
    flex-direction: row-reverse;
}

.lab img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.publication {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 15px;
    margin: 30px 0;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: 0.3s;
    width: 100%; /* Ensure the box takes full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    min-width: 225px; /* Set a minimum width for the box */
    padding: 20px;
}

.publication p {
    text-align: Justify;
}

.publication:hover {
    background-color: #f9f9f9;
}

.pub-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: nowrap; /* Allow wrapping of elements if needed */
}

.pub-header::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.9rem;
    color: #999;
}

.status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #f1f3f5;
    color: #182633;
    min-width: unset;
}

.pub-info {
    display: flex;
    flex-direction: column;
}

.pub-info strong {
    font-size: 1.05rem;
    line-height: 1.4;
}

.pub-info em {
    font-size: 0.9rem;
    color: #666;
}

.publication-content {
    display: none;
    margin-top: 10px;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
}

.publication-content img {
    width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: width 0.3s;
}

.scholar a {
    color: #6104b9;
    text-decoration: none;
}

.scholar a:hover {
    color: #c22ae0;
    text-decoration: none;
}

/* Adjust layout for smaller screens */
@media (max-width: 1000px) {
    .publication-content {
        flex-direction: column; /* Stack image above text */
        align-items: center; /* Center content */
    }
}

@media (max-width: 750px) {
    .publication {
        padding: 10px; /* Adjust padding */
        margin: 15px 0; /* Adjust margin */
    }

    .pub-header {
        flex-direction: column; /* Stack header elements vertically */
        align-items: flex-start; /* Align to the start */
        width: 100%; /* Ensure full width */
    }

    .pub-info {
        gap: 5px; /* Reduce gap between header elements */
    }

    .publication-content img {
        width: 120px; /* Shrink image */
    }

    .publication-content p {
        font-size: 0.8em; /* Shrink text */
    }
}


.about a {
    color: #6104b9;
    text-decoration: none;
}

.about a:hover {
    color: #c22ae0;
    text-decoration: none;
}


/* .contact-boxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

.contact-boxes a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    transition: 0.3s;
}

.contact-boxes a:hover {
    background-color: #333;
    color: #fff;
} */

.contact-icons a {
    text-decoration: none;
    padding: 20px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.contact-icons a img {
    width: 35px;
    height: auto;
    transition: transform 0.3s;
    margin-bottom: 10px;
}

.contact-icons a img:hover {
    transform: scale(1.1);
}

.associations {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.associations a img {
    width: 150px;
    height: auto;
    transition: transform 0.3s;
}

.associations a img:hover {
    transform: scale(1.1);
}


/*==================================
    TIMELINE
==================================*/
/*-- GENERAL STYLES
------------------------------*/
.timeline {
    line-height: 1.4em;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

.timeline h1, .timeline h2, .timeline h3, .timeline h4, .timeline h5, .timeline h6 {
    line-height: inherit;
  }
  
  /*----- TIMELINE ITEM -----*/
.timeline-item {
    padding-left: 40px;
    position: relative;
  }

.timeline-item:last-child {
    padding-bottom: 0;
  }

.timeline-item.period:first-of-type .timeline-marker:before {
border-top: none;
}

/*----- TIMELINE INFO -----*/
.timeline-info {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0 0 .5em 0;
    text-transform: uppercase;
    white-space: nowrap;
}
  
/*----- TIMELINE MARKER -----*/
.timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15px;
  }

  .timeline-marker:before {
    background: #e98441;
    border: 3px solid transparent;
    border-radius: 100%;
    content: "";
    display: block;
    height: 10px;
    position: absolute;
    top: 4px;
    left: 0;
    width: 10px;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out;
  }

  .timeline-marker:after {
    content: "";
    width: 3px;
    background: #CCD5DB;
    display: block;
    position: absolute;
    top: 24px;
    bottom: 0;
    left: 6px;
  }

  .timeline-item:last-child .timeline-marker:after {
    content: none;
  }
  
  .timeline-item:not(.period):hover .timeline-marker:before {
    background: transparent;
    border: 3px solid #e98441;
  }
  
  /*----- TIMELINE CONTENT -----*/
  .timeline-content {
    padding-bottom: 40px;
    text-align: justify;
  }

  .timeline-content h2 {
    color:#182633;
  }

  .timeline-content p:last-child {
    margin-bottom: 0;
  }
  
  /*----- TIMELINE PERIOD -----*/
  .period {
    padding: 0;
  }

  .period .timeline-info {
    display: none;
  }

  .period .timeline-marker:before {
    background: transparent;
    content: "";
    width: 15px;
    height: auto;
    border: none;
    border-radius: 0;
    top: 0;
    bottom: 30px;
    position: absolute;
    border-top: 3px solid #CCD5DB;
    border-bottom: 3px solid #CCD5DB;
  }

  .period .timeline-marker:after {
    content: "";
    height: 32px;
    top: auto;
  }

  .period .timeline-content {
    padding: 40px 0 70px;
  }

  .period .timeline-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: "bold";
  }

  .period .timeline-title a {
    margin: 0;
    font-size: 1rem;
    font-weight: "normal";
  }

  /*----------------------------------------------
      MOD: TIMELINE SPLIT
  ----------------------------------------------*/
  @media (min-width: 750px) {
    .timeline-split .timeline, .timeline-centered .timeline {
      display: table;
    }
    .timeline-split .timeline-item, .timeline-centered .timeline-item {
      display: table-row;
      padding: 0;
    }
    .timeline-split .timeline-info, .timeline-centered .timeline-info,
    .timeline-split .timeline-marker,
    .timeline-centered .timeline-marker,
    .timeline-split .timeline-content,
    .timeline-centered .timeline-content,
    .timeline-split .period .timeline-info,
    .timeline-centered .period .timeline-info {
      display: table-cell;
      vertical-align: top;
    }
    .timeline-split .timeline-marker, .timeline-centered .timeline-marker {
      position: relative;
    }
    .timeline-split .timeline-content, .timeline-centered .timeline-content {
      padding-left: 30px;
    }
    .timeline-split .timeline-info, .timeline-centered .timeline-info {
      padding-right: 30px;
    }
    .timeline-split .period .timeline-title, .timeline-centered .period .timeline-title {
      position: relative;
      left: -45px;
    }
  }





/* Existing styles... */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Adjust layout for larger screens */
  @media (min-width: 601px) {
    body {
      display: flex;
      flex-direction: row;
    }
  
    .sidebar {
      width: 170px; /* Fixed width for the sidebar */
      height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      padding: 30px;
      display: flex;
      flex-direction: column;
      background-color: #182633;
      color: #ffffff;
    }
  
    .sidebar a {
      font-size: 1.2rem;
      padding: 15px 0;
      color: #bbb;
      text-align: left;
    }
  
    .main-container {
      margin-left: 170px; /* Adjust margin for the sidebar */
      width: calc(100% - 170px);
      padding-top: 30px;
    }
  
    .title-card {
      padding: 100px 0; /* Adjust padding for the title card */
      text-align: center;
      padding-bottom: 50px;
    }
  
    .title-card h1 {
      font-size: 3.5rem;
      margin-bottom: 0;
    }
  
    .subtitle, .subtitle2 {
      font-size: 1.2rem;
      text-align: center;
    }
  
    .content {
      width: calc(100% - 230px); /* Adjust width for the content */
      max-width: 1000px;
      margin: auto;
      padding: 30px;
    }
  
    .about-content {
      flex-direction: row;
      align-items: flex-start;
    }
  
    .about-image {
      width: auto;
      max-width: 350px;
      margin-right: 40px;
    }
  
    .about-text {
      flex: 1;
      text-align: justify;
    }
  
    .publication-content {
      flex-direction: row;
      align-items: flex-start;
    }
  
    .publication-content img {
      width: 180px;
      margin-right: 15px;
    }
  }
  
  /* Adjust layout for smaller screens */
  @media (max-width: 1100px) {
    body {
      flex-direction: column;
      align-items: center;
      overflow-x: hidden; /* Prevent horizontal scrolling */
    }
  
    .sidebar {
      width: 100vw; /* Ensure the sidebar stretches the full width */
      height: auto;
      position: fixed; /* Fix the sidebar at the top */
      top: 0;
      left: 0;
      padding: 10px;
      display: flex;
      justify-content: space-around;
      flex-wrap: nowrap;
      flex-direction: row; /* Align items horizontally */
      background-color: #182633; /* Ensure background color covers full width */
      z-index: 1000; /* Ensure sidebar is on top */
    }
  
    .sidebar a {
      font-size: 0.9rem; /* Slightly larger font size for menu options */
      padding: 10px 0;
      flex: 1 1 auto;
      text-align: center;
      color: #bbb; /* Ensure text color is visible */
    }
  
    .main-container {
      margin-left: 0;
      width: 100%;
      padding-top: 60px; /* Add padding to avoid overlap with fixed sidebar */
    }
  
    .title-card {
      padding: 10px 20px; /* Adjust padding for the title card */
      text-align: center;
      padding-left: 0px;
      padding-top: 35px;
      padding-bottom: 0px
    }
  
    .title-card h1 {
      font-size: 2.5rem;
      margin-bottom: 10px; /* Reduce margin below the title */
    }
  
    .subtitle, .subtitle2 {
      margin-top: 5px; /* Reduce margin above subtitles */
      margin-bottom: 5px; /* Reduce margin below subtitles */
      text-align: center; /* Center align subtitles */
    }
  
    .content {
      width: 100%;
      padding: 10px;
    }
  
    .about-content {
      flex-direction: column;
      align-items: center;
    }
  
    .about-image {
      width: 100%;
      max-width: 300px;
      margin: auto; /* Center the image */
      display: flex;
      justify-content: center;
    }
  
    .about-text {
      width: 100%;
      text-align: justify;
    }
  
    .publication-content {
      flex-direction: column;
      align-items: center;
    }
  
    .publication-content img {
      width: 100%;
      max-width: 200px;
    }
  }
  
  /* Ensure no elements cause overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Ensure main container does not cause overflow */
  .main-container {
    overflow-y: auto; /* Allow vertical scrolling within the main container */
    height: calc(100vh - 60px); /* Adjust height to fit within the viewport */
  }
  
  /* Fix the weird space issue */
  body {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }


.recognition-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.recognition-item {
    border-left: 3px solid #e98441;
    padding-left: 14px;
}

.recognition-item strong {
    display: block;
    font-size: 1rem;
    color: #182633;
}

.recognition-item span {
    font-size: 0.9rem;
    color: #666;
}

.short { display: none; }
.full  { display: inline; }

@media (max-width: 1100px) {
    .short { display: inline; }
    .full  { display: none; }
}





