.research_container {
    scroll-margin-top: 40px;
    border: 1px solid rgb(199, 209, 253);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 0px;
    border-width: 2px;
}

.research_title {
    font-size: 30px;
    text-align: center;
    color: black;
    margin-bottom: 20px;
}

.research_block {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
  }
  
.research_image {
    height: auto;
}
  
.research_text {
    flex: 1;
    margin-left: 20px;
}

.research_text li {
    font-size: 18px;
    margin-left: 10px;
    list-style-type: disc;
 }
  
.dropdown_button {
    background-color: rgb(199, 209, 253);
    color: white;
    padding: 10px 0px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.dropdown_button i {
    font-size: 20px;
}

.dropdown_button:hover {
    background-color: rgb(163, 177, 238);
}
  
.dropdown_content {
    display: block;
    margin-top: 10px;
}

.publication_block {
    text-align: left;
    border-left:3px solid #dbdbdb;
    font-size:16px;
    padding-left: 10px;
  }
  
  .publication_block a {
    position:relative;
    font-size:20px;
  }
  
  .publication_block a:hover {
    color:#086ada;;
  }
  
  .publication_block a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0087ca;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }
  
  .publication_block a:hover::after{ 
    transform: scaleX(1);
    transform-origin: bottom left;
  }

  .research_menu {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: -10px;
    width: 50%;
    text-align: center;
    font-family: "EB Garamond", serif;
    font-size: 28px;
    font-weight: 300;
    font-style: normal;
    align-items: center;
    justify-content: space-evenly;
  }
  
  .research_menu a {
    display: inline-flex;
    position: relative;
    color: #000000;
    transition: background-color 0.25s ease-out;
    border-radius: 8px;
    overflow: hidden; /* Ensures the pseudo-element stays within the link */
    z-index: 1;
    border: 3px solid rgb(199, 209, 253); /* Added border */
    padding-left: 5px;
    padding-right: 5px;
  }

  .research_menu a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Start from the right */
    width: 100%; /* Initially covers the entire width */
    height: 100%;
    background-color: rgb(199, 209, 253); /* Background color for hover effect */
    transform: scaleX(0); /* Initially hidden */
    transform-origin: bottom right; /* Start the animation from the right */
    transition: transform 0.35s ease-out;
    z-index: -1; /* Ensure it appears behind the text */
  }

  .research_menu a:hover::before {
    transform: scaleX(1); /* Expands the background color from right to left */
    transform-origin: bottom left; /* Ends the animation on the left */
  }

  /* Responsive: On mobile, switch to one column */
@media (max-width: 768px) {
  .research_menu {
      flex-direction: column;
      align-items: center;
      width: 100%;
  }
  .research_menu a{
    margin-bottom: 5px;
}

  .research_block{
      flex-direction: column;
      align-items: center;
      width: 100%;
  }

  .research_text {
      flex: none;
      width: 90%; /* Make them take most of the width */
  }

  .research_image {
      width: 100%;
      height: auto;
      display: block;
      margin: auto;
  }
}