body {
    font-family: "Computer Modern Sans", sans-serif;
    /*font-family: "Spectral", sans-serif;*/
  }
  
  
  @media screen and (min-width: 801px) {
      /*Hidden stuff*/
      h1#mobiletop {font-size: 0; border: 0; width: 0%;}
      h1#mobiletop2 {font-size: 0; border: 0; width: 0%;}
      img#mobilephoto {border: 0; width: 0%;}
      .mobileleft {width: 0; font-size: 0; border: 0; padding: 0; border: 0; width: 0%;}
      .mobileleft-essays {width: 0; font-size: 0; border: 0; padding: 0; border: 0; width: 0%;}
      ul#mobilenav {list-style: none; font-size: 0; padding-left: 0;}
      ul#mobileessayssubnav {list-style: none; font-size: 0; padding-left: 0;}
      img#mobilesocial {width: 0; border: none;}
      hr.mobilehr {border-top: none; border: none;}
  
  
      /*Normal stuff*/
      img#desktopphoto {
          border: 0pt;
          width: 90%;
      }
  
      h1#desktoptop {
      }
  
      .desktopleft {
          float: left;
          width: 200pt;
          max-width: 20%;
  
          margin-top: 0.5%;
          margin-left: 5%;

          
  
          font-size: 13pt;
  
          position: fixed;
          clear: both;
      }
  
      .right {
          float: right;
          display: inline-block;
  
          font-size: 13pt;
  
          margin-right: 20%;
          margin-left: 25%;
  
          position: absolute;
          clear: both;
          max-width: 800px;
      }
  
      .right-research {
          font-size: 13pt;
          float: left;
      }
  
      .right-cv {
          font-size: 13pt;
          float: left;
          margin-right: 16%;
          max-width: 750px;
      }
  
      ul#desktopnav {
          list-style: none;
          padding-left: 15pt;
          font-size: 15pt;
      }
      ul#desktopnav li a {
          text-decoration: none;
          color: blues
      }
      ul#desktopnav li a.active {
          font-weight: bold;
          color: black;
      }
  
      ul#desktopessayssubnav {
          list-style: circle;
          font-size: 10pt;
          padding-left: 15pt;
      }
      ul#desktopessayssubnav li a {
          text-decoration: none;
          color: blues;
      }
      ul#desktopessayssubnav li a.active {
          font-weight: bold;
          color: black;
      }
  
  
      ul#desktopcontact {
          list-style: none;
          padding-left: 15pt;
          font-size: 13pt;
      }
  
      ul#cv {
          list-style: none;
      }
  
      ul#cvab {
          list-style: none;
      }
  
      img#desktopsocial {
          width: 5%;
      }
  
      img#dataimg {
          width: 60%;
      }
  
      .media-link {
        text-decoration: none;
        color: inherit;
      }
      .media-link:hover {
        text-decoration: underline;q
        color: blue;
      }
  
      .coauthor-link {
        text-decoration: none;
        color: inherit;
      }
      .coauthor-link:hover {
        text-decoration: underline;
        color: blue;
      }
  
  }
  
  
  
  
  @media screen and (max-width: 800px) { 
      /*Hidden stuff*/
      h1#desktoptop {font-size: 0;}
      img#desktopphoto {border: 0pt; width: 0%;}
      .desktopleft {font-size: 0pt; display: none;}
      ul#desktopnav {list-style: none; font-size: 0;}
      ul#desktopessayssubnav {list-style: none; font-size: 0; padding-left: 0; border: none; width: 0%; height: 0%;}
      img#desktopsocial {width: 0; border: none;}
  
  
      /*Normal stuff*/
      img#mobilephoto {
          padding-left: 10pt;
          float: left;
  
          max-height: 300px;
          max-width: 40%;
          height: auto;
          width: auto;
      }
  
      h1#mobiletop {
          padding-left: 10pt;
          border: 0pt;
          margin-top: 0;
      }
  
      h1#mobiletop2 {
          padding-left: 0pt;
          border: 0pt;
          margin-top: 0;
      }
  
      .mobileleft {
          float: left;
          max-width: 50%;
          font-size: 13pt;
      }
  
      .mobileleft-essays {
          float: left;
          min-width: 100%;
          font-size: 13pt;
      }
  
      hr.mobilehr {
          border: 0;
          border-top: 1px solid #eeeeee;
          margin-top: 20px;
      }
  
      .right {
          float: left;
          display: inline-block;
  
          font-size: 12pt;
  
          padding-left: 10pt;
          padding-right: 15pt;
          padding-bottom: 30pt;
      }
  
      .right-research {
          font-size: 13pt;
          float: left;
      }
  
      .right-cv {
          font-size: 13pt;
          float: left;
      }
  
      ul#mobilenav {
          list-style: none;
          font-size: 12pt;
          padding-left: 18pt; /* HMM compare to 15 below for mobilecontact shrug*/
          margin-top: 0;
      }
  
      ul#mobilenav li a {
          text-decoration: none;
          color: blues;
      }
      ul#mobilenav li a.active {
          font-weight: bold;
          color: black;
      }
  
      ul#mobileessayssubnav {
          list-style: circle;
          font-size: 10pt;
          padding-left: 15pt;
      }
      ul#mobileessayssubnav li a {
          text-decoration: none;
          color: blues;
      }
      ul#mobileessayssubnav li a.active {
          font-weight: bold;
          color: black;
      }
  
      ul#mobilecontact {
          list-style: none;
          padding-left: 15pt;
          font-size: 10pt; /*13pt;*/
      }
  
      ul#cv {
          list-style: none;
      }
  
      ul#cvab {
          list-style: none;
          padding: 0 0 0 0;
          border: 0 0 0 0;
      }
  
      img#mobilesocial {
          width: 8%;
          border: none;
      }
  
      img#dataimg {
          width: 100%;
      }
  
      .media-link {
        text-decoration: none;
        color: inherit;
      }
      .media-link:hover {
        text-decoration: underline;
        color: blue;
      }
  
      .coauthor-link {
        text-decoration: none;
        color: inherit;
      }
      .coauthor-link:hover {
        text-decoration: underline;
        color: blue;
      }
  
  }
  
  .naked {
      color: black;
      text-decoration: none;
  }

  p{
    padding: 0;
    margin: 0;
  }

  a{
    color: blue;
  }

  .list-article{
    margin-bottom: 40px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
  }
  
  
  
  /* OUTLINE DIVS IN RED BOXES FOR EASY VISUALIZATION:
  div { outline: 1px solid gray !important; } */
  
  
  
  /* Make Twitter embeds responsive */
  .twitter-tweet {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .twitter-tweet iframe {
    max-width: 100% !important;
  }

  h3{
    margin: 0;
    font-size: 14px;
    
  }

  h3 a{
    color: #000;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
  }


  .list-article table tr td{
    vertical-align: top;
  }

  /* Style for link boxes */
a.link-box {
    background-color: #f0f0f0; /* Light gray background */
    padding: 2px 5px; /* Adjust padding as needed */
    border: 1px solid #ccc; /* Optional: Add a border */
    text-decoration: none; /* Remove underline */
    color: black; /* Set text color */
    border-radius: 3px; /* Optional: Rounded corners */
  }
  
  a.link-box:hover {
    background-color: #e0e0e0; /* Darker gray on hover */
  }

  /* Adjust profile photo to better fill space */
img#desktopphoto {
    width: 100%;
    max-width: 220px;
    margin-bottom: 15px; /* Reduce space below photo */
}

/* Adjust sidebar height and overflow */
.desktopleft {
    width: 180px; /* Keep the adjusted width */
    max-width: 18%; /* Maintain reduced width */
    height: 100vh; /* Make sidebar fill the entire viewport height */
    overflow-y: auto; /* Enable scrolling if content exceeds viewport height */
    padding-top: 15px; /* Add some spacing at the top */
}

/* Ensure contact information fits properly */
ul#desktopcontact {
    font-size: 11pt; /* Reduce font size slightly */
    padding-left: 5pt;
    line-height: 1.4;
    margin-bottom: 15px; /* Add spacing at the bottom */
}

/* Adjust icons for better alignment */
.contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Teaching Page Specific Styles */
.course-dropdown {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.course-title {
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 1.1em;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.course-title:hover {
    background: #f1f3f5;
}

.course-title::after {
    content: '▼';
    font-size: 0.8em;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.course-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.course-content img {
    width: 100%;
    max-width: 600px;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Active state for dropdown */
.course-dropdown.active .course-title::after {
    transform: rotate(180deg);
}

/* Research Page Specific Styles */
.paper-dropdown {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.paper-title {
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 1.1em;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.paper-title:hover {
    background: #f1f3f5;
}

.paper-title::after {
    content: '▼';
    font-size: 0.8em;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.paper-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.paper-image {
    width: 100%;
    max-width: 800px;
    margin: 15px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paper-buttons {
    margin-top: 15px;
}

.paper-buttons a {
    margin-right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.pdf-button {
    background-color: #0073e6;
    color: white;
}

.ssrn-button {
    background-color: #666;
    color: white;
}

.paper-summary {
    font-size: 0.9em;
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

@media screen and (max-width: 800px) {
    .paper-image {
        display: none;
    }
    .paper-content .paper-image {
        display: block;
        width: 100%;
    }
}

.paper-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.paper-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    flex-grow: 1;
}

.paper-status {
    color: #0073e6;
    font-size: 0.95em;
    margin: 5px 0 10px 0;
}

.paper-authors {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.paper-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.paper-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.paper-details p {
    margin: 10px 0;
}

/* Remove any existing ::after for paper titles */
.paper-title::after {
    content: none !important;
}

/* Keep arrows only for theme titles */
.theme-title::after {
    content: '▼';
    font-size: 0.8em;
    color: #7f8c8d;
    transition: transform 0.3s ease;
}


.desktop-news {
    font-size: 14px;
}

.desktop-news .date {
    font-size: 16px; /* Increase date font size */
    padding-right: 10px; /* Add space between date and text */
}

.desktop-news .news-text {
    padding-left: 5px; /* Optional: Add some padding to the text */
}
