/* Reset & Base */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  line-height: 1.6;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.layout {
  flex-direction: column;
}

/* Profile Layout */
.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-photo {
  width: 200px;
  height: auto;   
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  border: 2px solid #ccc;
}

.profile-text {
  flex: 1;
  min-width: 280px;
}

.profile-text h4 {
  margin-top: 15px;
  margin-bottom: 8px;
}

.profile-text ul {
  list-style: none;
   padding-left: 20px;  
  margin-left: 0;
}

.profile-text ul a {
  text-decoration: none;
  color: #003366;
}

.profile-text ul a:hover {
  text-decoration: underline;
}

.profile-text li {
  margin-bottom: 6px;
}

.profile-links {
  margin: 10px 0 20px;
  font-size: 15px;
}

.profile-links {
  margin: 15px 0 25px;
  text-align: left;
}

.profile-links a {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  margin-right: 12px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.profile-links a:hover {
  background-color: #005288; /* lighter navy on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



.profile-email {
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.profile-email a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.profile-email a:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background-color: #002244;
  color: white;
  padding: 30px 20px;
  overflow-y: auto;
}
.sidebar .nav-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin-bottom: 20px;
}
.sidebar a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}
.sidebar a.active,
.sidebar a:hover {
  color: white;
  border-left: 4px solid #fff;
  padding-left: 8px;
}

/* Main Content */
.content {
  margin-left: 220px;
  padding: 40px 30px;
  max-width: calc(100vw - 220px);
  box-sizing: border-box;
}

h2 {
  font-size: 26px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Banner Images */
.section-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0px;
  margin-bottom: 25px;
}

/* Banner Container */
.section-banner-container {
  position: relative;
  margin-left: 220px;
  width: calc(100% - 220px);  /* Use 100% of body minus sidebar width */
  max-width: none;
  padding: 0;
}

/* Banner Image */
.full-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #ccc;
  margin: 0;
}

 

/* Filter Bar */
.filter-sort-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

#topicSelect, #coauthorSelect {
  flex: 1;
  padding: 10px;
  font-size: 15px;
}

/* Paper Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 25px;
}

#papers.section-inner {
  margin-bottom: 60px;  
}


.paper-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  gap: 15px;
  max-width: 100%;
}

.paper-card img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.paper-details {
  flex: 1;
}
.paper-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}
.paper-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}
.paper-meta span {
  display: inline-block;
  margin-right: 8px;
}
.paper-buttons {
  margin-top: 5px;
}
.paper-buttons button {
  padding: 4px 8px;
  margin-right: 6px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  background-color: #003366;
  color: white;
  cursor: pointer;
}
.paper-buttons button:hover {
  background-color: #005288;
}

/* Abstract and BibTeX Display */
.abstract-text,
.bibtex-text {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  background: #f2f2f2;
  padding: 10px;
  border-left: 3px solid #003366;
  white-space: pre-wrap;
}

/* Awards and Teaching */
#awards-list {
    list-style: none;
  padding-left: 20px;
}
#awards-list li {
  margin-bottom: 8px;
}
#teaching-content h3 {
  margin-top: 20px;
}
#teaching-content p {
  margin-bottom: 8px;
}

/* Media   */

.media-category {
  margin-bottom: 30px;
}

.media-category h3 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #003366;
}

.media-list {
  list-style: none;
  padding-left: 20px;
}

.media-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

.media-list a {
  color: #003366;
  text-decoration: none;
}

.media-list a:hover {
  text-decoration: underline;
}

.media-list .media-outlet {
  color: #555;
  font-style: italic;
}

/*teaching*/

#teaching-content h3 {
  margin-top: 20px;
  color: #003366;
}
#teaching-content p {
  margin: 5px 0 15px 0;
}


.course-links a.course-link {
  text-decoration: none;
  font-weight: bold;
  color: #003366;
  font-size: 15px;
}

.course-links a.course-link:hover {
  text-decoration: underline;
}

.course-links {
  margin-top: 10px;
  margin-bottom: 20px;
}

/*  Code  */

.code-project {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.code-project h3 {
  margin-top: 0;
  color: #003366;
}
.code-project ul {
  padding-left: 20px;
}
.code-project p {
  margin: 5px 0;
}

/* Footer */
footer {
  margin-top: 60px;
  border-top: 1px solid #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #666;
}


/* flex for smaller screens */ 

 

@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  

.profile-links a {
  display: block;
  margin: 10px auto;
  width: 80%;
  text-align: center;
}
  
.section-banner-container {
  width: 100%;
  margin: 0;
  padding: 0;
}
  
.full-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: cover;
}
  
  .profile-links a {
  display: inline-block;
  margin: 5px 10px;
}

  .profile-left {
    margin-right: 0;
  }

  .profile-photo {
    width: 140px; /* slightly smaller for phones */
  }

  .profile-text {
    text-align: left;
    padding-left: 0;
    margin-top: 10px;
  }
  
  .profile-text {
    text-align: left;
  }

  .profile-text ul {
    text-align: left;
    padding-left: 0;
  }

  .profile-text ul li {
    margin-left: 0;
  }
  
  .paper-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.paper-card img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.course-links a.course-link {
  display: block;
  margin-bottom: 8px;
}

.filter-sort-bar {
  flex-direction: column;
  gap: 10px;
}

.content {
    margin-left: 0;
    padding: 20px;
    max-width: 100vw;
  }

  .sidebar {
    display: none;
 
  }
  
   .papers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  .paper-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

 
}
