@media screen and (min-width: 961px) {
  .masthead {
    position: sticky;
    top: 0;
    min-height: 10vh;
    margin-top: 5px; /* Increased to 120px for more top margin */
    /* margin-bottom: 10px; */
    /* border-right: 3px solid #ddd; */
    /* background: #fafafa; */
    /* width: 300px; */
    padding: 2em 1em;
  }
.main {
    margin-left: auto; /* Center align */
    margin-right: auto; /* Center align */
    max-width: 95%; /* Increase max width */
    width: 95%; /* Expand the text area */
}
}

/* Reduce top margin for the landing page */
@media screen and (min-width: 961px) {
  body.home .main {
      padding-top: 0 !important; /* No top padding */
  }
  
  /* Reduce margin for the first heading and paragraph */
  body.home .main h1:first-child,
  body.home .main h2:first-child,
  body.home .main h3:first-child,
  body.home .main p:first-child {
      margin-top: 0 !important;
  }
}

/* Remove underlines from all hyperlinks */
a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Ensure hover states also don't show underlines */
a:hover, a:focus, a:active {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* More specific selectors to override any theme styling */
.main a, .article-content a, .masthead a, body a {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.main a:hover, .main a:focus, .main a:active,
.article-content a:hover, .article-content a:focus, .article-content a:active,
.masthead a:hover, .masthead a:focus, .masthead a:active,
body a:hover, body a:focus, body a:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

body {
  width: 100%;
  max-width: 2000px;
  padding: 10px 180px; /* Increased left and right padding to 80px */
  margin: auto;
}


body.publications .masthead {
  width: 180px !important; /* or try 160px, 140px, etc. */
  padding: 1em 0.5em;
}

body.publications .main {
  margin-left: 200px; /* should match or slightly exceed masthead width */
}


/*
.main {
  padding: 2em 40px;
  hyphens: auto;
  border-left: none;
}
.menu li:not([class]) a, a:hover, .copyright a {
  border-bottom: none;
}
.menu-extra {
  list-style: circle;
}
.article-content a {
  text-decoration: none;
  color: inherit;
  border-bottom: 0px solid #cbf8df;
  box-shadow: inset 0 -3px 0 #cbf8df;
  background: transparent;
  transition: 300ms background ease;
  padding-bottom: 2px;
}
.article-content a:hover,
.article-content a:focus {
  background: #cbf8df;
}

.en .main header ~ p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: .05em;
  font-size: 1.1em;
}
.en .main header ~ p:first-of-type::first-letter {
  font-size: 3em;
  padding: .1em .1em 0 0;
  float: left;
  line-height: 1em;
}
code {
  hyphens: none;
}
.post-meta {
  color: #828282;
}
iframe, twitterwidget, video {
  max-width: 100%;
  display: block;
  margin: auto;
}
#TableOfContents {
  background-color: #f8f8f8;
  padding: .5em;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}
.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -o-transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

pre .nohighlight {
  background-color: transparent;
}
.hljs-comment {
  font-style: inherit;
}
.hljs {
  padding: 1em;
}
.home hr {
  margin: 2em auto 1em;
}
.masthead img {
  max-width: 80px;
}
img[src$="#border"] {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
}
.cn del {
  background-color: #444;
}
.cn del:hover {
  background-color: inherit;
  text-decoration: inherit;
}
.home blockquote, .cn blockquote:not(:hover) {
  border-left-color: transparent;
}
.anchor {
  display: none;
}
:hover > .anchor {
  display: inline;
}
#disqus_thread a {
  color: steelblue;
}

*/

/* @media screen and (max-width: 960px) {
  h1, h2, h3, h4, h5, h6 {
    margin: 2em auto 1.5em auto;
  }
  .title h2, .title h3 {
    margin: 1.5em auto;
  }
  .main .title h1 {
    margin: 1em auto 0 auto;
  }
  .title hr {
    margin: 2em auto;
  }
  .masthead {
    padding: 1em;
  }
  .masthead .menu {
    max-width: inherit;
  }
  .masthead h1 {
    margin-bottom: 10px;
    font-size: 28px;
  }
  .masthead .menu ul {
    text-align: center;
  }
  .masthead .menu a {
    display: inline-block;
    padding: 25px 10px;
    background: #444;
    color: #fff;
    border-radius: 5px;
  }
  .masthead .menu .active a {
    background: none;
    border: 21px solid #444;
    color: #000;
  }
  .masthead .menu li, .masthead .menu li:first-child {
    border: none;
    display: inline-block;
    margin-top: 5px;
  }
  .masthead .menu .menu-extra {
    display: none;
  }
} */

/*

@media print {
  del, footer, .masthead {
    display: none;
  }
  body {
    max-width: 700px;
  }
  .main {
    margin-left: 0;
    border-left: none;
    padding-left: 10px;
  }
} */
