/* Minimal Academic Website CSS - Inspired by Shikhar Murty's design */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inconsolata", "Monaco", "Consolas", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  background: #faf9f7;
  margin: 0;
  padding: 0;
}



/* Container and layout */
.outercontainer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 100%;
}

/* Zen highlight */
.zen-highlight {
  color: rgb(204, 101, 0);
  font-weight: 600;
  background-color: rgba(204, 101, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #e5e5e5;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer a {
  color: #666;
  text-decoration: none;
}

.footer a:hover {
  color: rgb(204, 101, 0);
}

/* Main content */
.body {
  margin-top: 0;
  padding: 40px 0;
}

.content {
  margin-bottom: 40px;
}

/* Profile section */
.heading {
  margin-bottom: 60px;
  text-align: left;
}

/* Header section with profile pic and name/links */
.header-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-pic {
  flex-shrink: 0;
}

.profile-pic img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.header-text {
  flex: 1;
}

/* Intro section */
.intro-section {
  margin-bottom: 30px;
}

.heading .img {
  display: none; /* Hide image for now to match Aryaman's layout */
}

.heading .img img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.heading .text {
  width: 100%;
}

.heading h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.heading h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.chinese_name {
  width: 80px;
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
}

/* Audio button */
#playButton {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 5px;
  padding: 2px;
  border-radius: 4px;
  transition: background-color 0.2s;
  vertical-align: middle;
}

#playButton:hover {
  background-color: #f5f5f5;
}

.material-icons {
  font-size: 18px;
  color: #666;
}

/* Text styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

h4 {
  font-size: 24px;
  margin-bottom: 30px;
}

p {
  margin-bottom: 15px;
  color: #666;
}

/* Links */
a {
  color: rgb(204, 101, 0);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Bio section advisor links */
.heading p a:not(.nav-links a) {
  background-color: rgba(204, 101, 0, 0.08);
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Navigation links */
.heading p {
  margin-bottom: 20px;
}

.heading p a {
  color: rgb(204, 101, 0);
  margin-right: 2px;
  margin-left: 2px;
}

/* Navigation links with individual highlights */
.nav-links {
  margin-bottom: 25px !important;
}

.nav-links a {
  color: rgb(204, 101, 0);
  font-weight: 500;
  background-color: rgba(204, 101, 0, 0.08);
  padding: 1px 3px;
  border-radius: 2px;
  margin-right: 2px;
  margin-left: 2px;
  display: inline-block;
}

.nav-links a:first-child {
  margin-left: 0;
}

/* Tag styling */
.tag {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Publications section */
h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000;
}

.equal-note {
  font-size: 14px;
  font-weight: 400;
  color: #666;
}

/* Venue and year styling */
.venue-year {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
  font-weight: 400;
}

/* Links styling */
.links {
  font-size: 14px;
  margin-top: 5px;
}

.links a {
  color: rgb(204, 101, 0);
  background-color: rgba(204, 101, 0, 0.08);
  padding: 1px 3px;
  border-radius: 2px;
  margin-right: 2px;
  margin-left: 2px;
  display: inline-block;
}

.links a:first-child {
  margin-left: 0;
}

/* Chinese font styling */
.chinese {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

.publication {
  margin-bottom: 25px;
}

.publication .img {
  display: none; /* Hide venue badges for cleaner look */
}

.publication .text {
  width: 100%;
}

.publication .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.publication .title a {
  color: #000;
}

.publication .title a:hover {
  color: rgb(204, 101, 0);
}

.publication .authors {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  line-height: 1.4;
}

.publication .authors strong {
  color: rgb(204, 101, 0);
  font-weight: 600;
  background-color: rgba(204, 101, 0, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.equalcontribution {
  color: #666;
  font-weight: 600;
}

.venue {
  font-size: 14px;
  margin-right: 10px;
}

.venue a {
  color: rgb(204, 101, 0);
}

/* Responsive design */
@media (max-width: 768px) {
  .outercontainer {
    padding: 0 15px;
  }
  
  .header {
    padding: 0 15px;
  }
  
  .heading h1,
  .heading h3 {
    font-size: 28px;
  }
  
  .header-section {
    gap: 15px;
  }

  .profile-pic img {
    width: 70px;
    height: 70px;
  }
  
  .publication {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .header-section {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }
  
  .profile-pic img {
    width: 60px;
    height: 60px;
  }
  
  .heading h1,
  .heading h3 {
    font-size: 24px;
  }
  
  .heading p a {
    display: inline-block;
    margin-bottom: 5px;
  }
}

/* Hide elements that are not needed in minimal design */
.anchor {
  padding-top: 20px;
  margin-top: -20px;
}

/* Ensure proper spacing */
.content.heading.anchor {
  margin-bottom: 0;
}

.content.anchor {
  margin-top: 0;
}