/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

html {
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 20px;
  }
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center !important;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #3f2988;
}

/* Sidebar nav items */
.sidebar-nav .sidebar-nav-item {
  color: white !important;
  text-decoration: none !important;
  transition: color .5s ease;
}

.sidebar-nav .sidebar-nav-item:hover {
  color: #a0a0a0 !important; /* darker gray */
  text-decoration: none !important;
}

/* Sidebar title link */
.sidebar-about h1 a {
  color: white !important;
  text-decoration: none !important;
  transition: color .5s ease;
}

.sidebar-about h1 a:hover {
  color: #a0a0a0 !important;
  text-decoration: none !important;
}

/* Main content links */
.content a {
  color: #0645ad; /* Use normal text color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.content a:hover {
  color: #4f49a2;
  text-decoration: none;
}


.profile-image {
    width: 250px;  /* Adjust as needed */
    height: 250px;  /* Adjust as needed */
    /* border-radius: 50%;  /* This makes the image circular */
    margin-bottom: 1rem;
    /* border: 3px solid #fff;  /* Optional: adds a white border around the image */
}

/* Sidebar on larger screens */
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: center;
  }
  .profile-image {
    display: inline-block;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 3rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 38rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}

/* Ensure numbering is applied properly */
.research-list {
  list-style-type: decimal !important;  /* Ensure numbers appear */
  padding-left: 2em; /* Slightly increase left padding for better alignment */
  margin-bottom: 1.5em;
  color: #333;
}

.research-list li {
  list-style-type: decimal !important;
  display: list-item !important;
}

.research-entry {
  margin-bottom: 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.research-entry p {
  margin: 0;
  flex: 1;
}

.entry-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.entry-wrapper p {
  margin: 0;
  flex: 1;
}

.pdf-button {
  white-space: nowrap;
  background-color: #4f49a2;
  color: white !important;
  border: none;
  padding: 0.35em 0.75em;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.pdf-button:hover {
  background-color: #6b65c5;
}

/* Sidebar on smaller screens */
@media (max-width: 48em) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 0.2rem 0;
    background-color: #4f49a2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .profile-image {
    width: 80px !important;    /* Shrink the profile picture */
    height: 80px !important;   /* Keep aspect ratio */
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important; /* Ensure it's cropped neatly */
    display: block !important;
    margin: 0 auto !important;
    border-radius: 50% !important;  /* Circle the profile picture */
  }

  .sidebar-about h1 {
    font-size: 1.5rem; /* Smaller name font */
    margin-bottom: 0.2rem;
    padding: 0.2rem;
  }

  .sidebar-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping to next line */
    margin-top: 0.2rem;
    padding: 0 1rem;
  }

  .sidebar-nav-item {
    width: 30%; /* Up to 3 items per row */
    text-align: center;
    margin-bottom: 0.2rem;
  }

  .sidebar p {
    margin-top: 0.2rem; /* Reduce space above copyright */
  }
}



