/* ============================================================
   CSS Custom Properties — shared spacing & layout tokens
   ============================================================ */
:root {
  --content-max-width: 1290px;
  --section-gap: 24px; /* vertical space between sections */
  --heading-gap: 10px; /* space below section headings */
  --gutter: 0px; /* horizontal page padding (desktop) */
  --gutter-tablet: 24px; /* horizontal page padding (tablet) */
  --gutter-mobile: 16px; /* horizontal page padding (mobile) */
}

/* ============================================================
   Projects container styling
   ============================================================ */
.project_container {
  width: 100%;
  max-width: var(--content-max-width);
  padding: 10px var(--gutter);
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ============================================================
   Header styling (DIR page header loaded via #includeHtml)
   ============================================================ */
header {
  width: 100%;
  max-width: var(--content-max-width);
  padding: 0 var(--gutter);
  background-color: #ffffff;
  border: none;
  box-shadow: none;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}

/* ============================================================
   NVIDIA nav bar — responsive adjustments
   ============================================================ */
#main-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Desktop: ensure nav content fits within max width */
#main-header .nav-header-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Tablet + Mobile: fix NVIDIA logo inside mobile nav bar.
   NVIDIA switches from desktop-nav to mobile-nav around 1024px,
   so all mobile nav fixes must start here. */
@media screen and (max-width: 1024px) {
  #main-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
  }

  #main-header .nav-header-container {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }

  /* Slightly reduce desktop nav link font size (if still visible) */
  #main-header .menu-button-link.menu-level-1 {
    font-size: 13px;
  }

  /* Make the mobile nav-header-list a flex row so all items sit in one line */
  #main-header .mobile-nav .nav-header-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 var(--gutter-tablet) !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }

  /* The <div class="searchoverlay"> is a stray child of <ul> that breaks
     flex layout — collapse it completely */
  #main-header .mobile-nav .searchoverlay {
    display: none !important;
  }

  /* Every nav-header-item must be a single-line flex child */
  #main-header .mobile-nav .nav-header-item {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    flex-shrink: 0 !important;
  }

  /* Force NVIDIA logo OUT of absolute positioning and INTO the flex flow */
  #main-header .mobile-nav .brand-container {
    position: static !important;
    transform: none !important;
    flex: 1 !important;
    justify-content: center !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  /* Hamburger stays first */
  #main-header .mobile-nav .mobile-menu-button-item {
    order: -2 !important;
  }

  /* Search icon inline after hamburger */
  #main-header .mobile-nav .search-item {
    order: -1 !important;
  }

  /* The search-main-section contains the full expanded search form.
     It must NOT affect the flex item's size — take it out of flow. */
  #main-header .mobile-nav .search-main-section {
    position: absolute !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
  }

  /* Hide the search-abort container (only needed when search is active) */
  #main-header .mobile-nav .search-abort-container {
    display: none !important;
  }

  /* Normalize all clickable elements inside nav items:
     same size, padding, and alignment so icons sit on the same line */
  #main-header .mobile-nav .nav-header-item a,
  #main-header .mobile-nav .nav-header-item button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
  }

  /* Hard alignment fix (tablet + phone):
     force both burger and search glyphs to the same optical baseline. */
  #main-header .mobile-nav .mega-nav-open-menu-icon,
  #main-header .mobile-nav .nav-search-icon {
    position: relative !important;
    top: -3px !important;
    transform: none !important;
  }

  /* Ensure all SVG icons in the nav bar are the same size */
  #main-header .mobile-nav .nav-header-item .n24-icon {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
  }

  /* Profile/user icon sits at the far right */
  #main-header .mobile-nav .profile-item {
    order: 2 !important;
    margin-left: auto !important;
  }

  /* Hide items marked as hidden (cart etc.) */
  #main-header .mobile-nav .nav-header-item.hide {
    display: none !important;
  }

  /* Scale the logo SVG to fit the nav bar */
  #main-header .mobile-nav .brand-container svg {
    width: 90px;
    height: 20px;
  }
}

/* Mobile: tighten padding */
@media screen and (max-width: 768px) {
  #main-header .nav-header-container {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }

  #main-header .mobile-nav .nav-header-list {
    padding: 0 var(--gutter-mobile) !important;
  }

  /* Extra phone adjustment: search icon renders optically lower on some devices */
  #main-header .mobile-nav .nav-search-icon {
    top: -4px !important;
  }
}

/* Small mobile: tighten further */
@media screen and (max-width: 480px) {
  #main-header .nav-header-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #main-header .mobile-nav .nav-header-list {
    padding: 0 12px !important;
  }

  #main-header .mobile-nav .brand-container svg {
    width: 75px;
    height: 18px;
  }
}

/* ============================================================
   Logo-only top bar mode (user requirement)
   Keep only NVIDIA logo above content; remove all other nav controls.
   Applies to desktop, tablet, and phone.
   ============================================================ */
#main-header {
  position: relative !important;
  top: auto !important;
  z-index: 1000 !important;
  background: #fff !important;
}

/* Hide all non-logo controls in desktop nav */
#main-header .desktop-nav .navoverlay,
#main-header .desktop-nav .nv-container,
#main-header .desktop-nav .nav-tools-container,
#main-header .desktop-nav input.main-menu,
#main-header .desktop-nav .skip-main {
  display: none !important;
}

/* Hide all non-logo controls in mobile nav */
#main-header .mobile-nav .mobile-menu-button-item,
#main-header .mobile-nav .search-item,
#main-header .mobile-nav .profile-item,
#main-header .mobile-nav .searchoverlay,
#main-header .mobile-nav .skip-main,
#main-header .mobile-nav .nav-header-item.hide {
  display: none !important;
}

/* Desktop logo centering */
#main-header .desktop-nav .nav-header-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 0 !important;
}

#main-header .desktop-nav .brand-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}

#main-header .desktop-nav .brand-container .nvidia-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

/* Mobile/tablet logo centering */
#main-header .mobile-nav .nav-header-container {
  padding: 0 !important;
}

#main-header .mobile-nav .nav-header-list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#main-header .mobile-nav .brand-container {
  display: flex !important;
  position: static !important;
  transform: none !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

#main-header .mobile-nav .brand-container .nvidia-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Keep logo scale balanced across breakpoints */
@media screen and (max-width: 1024px) {
  #main-header .desktop-nav .brand-container .nvidia-logo svg,
  #main-header .mobile-nav .brand-container svg {
    width: 90px !important;
    height: 20px !important;
  }
}

@media screen and (max-width: 480px) {
  #main-header .desktop-nav .brand-container .nvidia-logo svg,
  #main-header .mobile-nav .brand-container svg {
    width: 75px !important;
    height: 18px !important;
  }
}

#page-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF !important;
}

/* Override NVIDIA responsive padding-top utility classes */
#page-content
  .content_par
  > .textcomponentenhanced:first-child
  .general-container-text {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background-color: #FFFFFF !important;
}

#includeHtml {
  background-color: #FFFFFF !important;
}

#includeHtml header {
  margin-top: 68px;
  padding-top: 10px;
  padding-bottom: 0;
  margin-bottom: var(--section-gap);
}

#includeHtml header h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* ============================================================
   Intro hero: Style 2 — Soft Spotlight Background
   ============================================================ */
#includeHtml header {
  position: relative;
  box-sizing: border-box;
  transition: all 0.25s ease;
  background: #FFFFFF !important;
  border: none;
  border-radius: 0;
  padding: 20px 22px 16px;
  margin-bottom: calc(var(--section-gap) + 8px);
  box-shadow: none;
  text-align: left;
}

#includeHtml header h1 {
  font-weight: 700;
  letter-spacing: 0.2px;
}

#includeHtml .header-content {
  display: block;
  max-width: 1020px;
  text-align: left;
}

/* Collapse any gap left by the hidden .sub-brand-nav */
.sub-brand-nav + * {
  margin-top: 0 !important;
}

/* Flexible Layout for Header Content */
.header-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.4em;
}

.header-content p {
  margin: 0 0 0.75em;
}

.header-content p:last-of-type {
  margin-bottom: 0;
}

.research-agenda-intro {
  margin: 0.6em 0 0.25em;
  font-weight: 600;
}

.research-agenda-list {
  margin: 0 0 0 1.25em;
  padding: 0;
  list-style: disc;
}

.research-agenda-list li {
  margin-bottom: 0.2em;
}

#includeHtml .research-agenda-list li::marker {
  color: #5ba809;
}

.jobs {
  margin: auto;
}

h2 {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* ============================================================
   Products & Press Releases Section
   ============================================================ */
.products-section {
  position: relative;
  padding: 0 var(--gutter);
  width: 100%;
  max-width: var(--content-max-width);
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: var(--section-gap);
  text-align: left;
  box-sizing: border-box;
}

.products-section h2 {
  margin: 0 0 var(--heading-gap) 0;
  padding: 0;
}

.products-slider {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-padding: 0 20%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

/* Customize scrollbar appearance */
.products-slider::-webkit-scrollbar {
  height: 4px;
}

.products-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.products-slider::-webkit-scrollbar-thumb {
  background: #76b900;
  border-radius: none;
}

.product {
  height: auto;
  min-height: 300px;
  flex: calc(33.3333% - 20px);
  width: calc(100% / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
  padding-right: 0px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
}

.product img,
.product video {
  height: 200px;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0 !important;
}

.product p {
  width: 100%;
  font-size: 16px;
  color: #76b900;
  margin: 10px 0;
  line-height: 1.4;
  flex-grow: 1;
  overflow: visible;
}

.product p a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.product p a:hover {
  text-decoration: underline;
}

/* Project Title Styling */
.project-title {
  position: relative;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  margin-bottom: var(--heading-gap);
  text-align: left;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.project-title h2 {
  margin: 0;
  padding: 0 10px 0 0;
  font-size: 20px;
}

.view-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.view-toggle button {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
  padding: 4px 8px;
  cursor: pointer;
  margin-left: 4px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
}

/* Hover state for non-active buttons */
.view-toggle button:hover:not(.active) {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

/* Icon color for non-active hovered buttons */
.view-toggle button:hover:not(.active) svg rect {
  fill: #76b900; /* Black icon */
}

/* Active button style */
.view-toggle button.active {
  background: #76b900;
  border-color: #76b900;
}

.view-toggle button svg {
  display: block;
}

/* Icon color for active buttons */
.view-toggle button.active svg rect {
  fill: #fff !important;
}

/* Default icon color for non-active, non-hovered buttons */
.view-toggle button:not(.active):not(:hover) svg rect {
  fill: #000;
}

/* Article Styling */
article {
  flex-basis: calc(33.3333% - 20px);
  margin: 10px;
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 !important;
}

.article_text {
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  padding: 0rem 1rem 0rem 1rem;
  min-height: 100px;
}

article img,
article video {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: white;
  margin-bottom: 0px;
  border-radius: 0 !important;
}

article h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

article p {
  font-size: 16px;
  color: #666;
  margin-bottom: 0px;
}

article ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-bottom: 15px;
}

article ul li {
  font-size: 14px;
  color: #888;
}

article a {
  font-size: 16px;
  color: #76b900;
  text-decoration: none;
  margin-left: 5px;
  margin-right: 5px;
  padding-bottom: 2px;
}

article a:hover {
  text-decoration: underline;
}

article p sup {
  font-size: 10px;
}

/* Article Text Specific Styling */
.article_text h4 {
  min-height: 7.7em;
  font-size: 1.1rem;
}

.article_text p:first-of-type {
  font-size: 0.9rem;
  color: #666;
}

.article_text p:last-of-type {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

.article_links {
  padding: 0.7rem;
  margin-top: auto;
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
}

.article_links a {
  color: #76b900;
  text-decoration: none;
}

.article_links a:hover {
  text-decoration: underline;
}

/* Pagination Styling */
.pagination-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  padding: 5px;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pagination a {
  color: #666;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  margin: 0 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 0 !important;
}

.pagination a.active {
  background-color: #76b900;
  color: white;
  border: 1px solid #76b900;
}

.pagination a:hover:not(.active) {
  background-color: #f5f5f5;
  border-color: #76b900;
  color: #76b900;
}

.pagination a.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Products - Load More Styling */
.products-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  position: relative;
}

.product {
  flex: 0 0 300px;
  display: none;
  position: relative;
}

.product.visible {
  display: flex;
  flex-direction: column;
}

.product p {
  margin-top: 5px;
  margin-bottom: 0px;
  margin-block-end: 0px;
  /* Match with load-more-wrapper margin */
}

.load-more-link {
  color: #76b900;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 260px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  border-radius: 4px;
  z-index: 10;
  transition: all 0.3s ease;
}

.load-more-link:hover {
  text-decoration: underline;
  background-color: rgba(255, 255, 255, 1);
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media screen and (max-width: 1024px) {
  :root {
    --gutter: var(--gutter-tablet);
    --section-gap: 20px;
  }

  header,
  .products-section,
  .project-title,
  .project_container,
  .publication_list_container {
    padding-left: var(--gutter-tablet);
    padding-right: var(--gutter-tablet);
  }

  #includeHtml header {
    margin-top: 40px;
  }

  article {
    flex-basis: calc(50% - 20px);
  }

  .article_text h4 {
    min-height: 5em;
  }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  :root {
    --gutter: var(--gutter-mobile);
    --section-gap: 16px;
    --heading-gap: 8px;
  }

  header,
  .products-section,
  .project-title,
  .project_container,
  .publication_list_container {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }

  /* DIR header */
  #includeHtml header {
    margin-top: 30px;
  }

  #includeHtml header h1 {
    font-size: 1.5rem;
  }

  #includeHtml header {
    padding: 14px 14px 10px;
    border-radius: 0;
  }

  .header-content {
    font-size: 0.95rem;
    line-height: 1.5em;
  }

  /* Products section */
  .products-slider {
    flex-direction: column;
    padding: 0;
    overflow-y: hidden;
    max-height: 1600px;
    transition: max-height 0.5s ease;
    gap: 16px;
  }

  .products-slider.expanded {
    max-height: 5000px;
    overflow-y: visible;
  }

  .product {
    flex: none;
    width: 100%;
    min-height: auto;
    margin-bottom: 0;
    display: none;
    position: relative;
  }

  .product.visible {
    display: block;
  }

  .product img,
  .product video {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .product p {
    text-align: start;
    max-width: 100%;
    margin-bottom: 0;
  }

  .load-more-link {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 3px 6px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    margin-top: 0;
  }

  /* Projects section */
  .project-title {
    flex-direction: row;
    align-items: center;
  }

  .project-title h2 {
    font-size: 18px;
    margin: 0;
    padding: 0 10px 0 0;
  }

  .project_container {
    flex-direction: column;
  }

  article {
    flex-basis: 100%;
    margin: 8px 0;
  }

  .article_text {
    padding: 0 12px;
  }

  .article_text h4 {
    min-height: auto;
    font-size: 1rem;
  }

  article img,
  article video {
    height: 180px;
  }

  article h2 {
    font-size: 18px;
  }

  article p,
  article a {
    font-size: 14px;
  }

  article ul li {
    font-size: 12px;
  }

  /* Pagination */
  .pagination {
    padding: 3px;
  }

  .pagination a {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
    margin: 0 2px;
  }

  .view-toggle {
    margin-left: auto;
  }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media screen and (max-width: 480px) {
  :root {
    --gutter: 12px;
    --section-gap: 12px;
  }

  header,
  .products-section,
  .project-title,
  .project_container,
  .publication_list_container {
    padding-left: 12px;
    padding-right: 12px;
  }

  #includeHtml header {
    margin-top: 24px;
  }

  #includeHtml header h1 {
    font-size: 1.25rem;
  }

  #includeHtml header {
    padding: 12px 10px 8px;
    border-radius: 0;
  }

  .header-content {
    font-size: 0.9rem;
  }

  .products-section h2,
  .project-title h2 {
    font-size: 16px;
  }

  article {
    margin: 6px 0;
    padding: 8px;
  }

  .article_text {
    padding: 0 8px;
  }

  article img,
  article video {
    height: 150px;
  }
}

/* Prevent text selection during scroll on touch devices */
@media (hover: none) {
  .products-slider {
    user-select: none;
  }
}

.project_container.list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  background-color: #f5f5f5;
  padding: 0;
}

.project_container.list-view article {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  padding: 24px 0 24px 0;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  min-height: 120px;
}

.project_container.list-view article:last-child {
  border-bottom: none;
}

.project_container.list-view article img,
.project_container.list-view article video {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin: 0 32px 0 0;
  background: #fafafa;
  border-radius: 0;
  box-shadow: none;
}

.project_container.list-view .article_text {
  flex: 1;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project_container.list-view .article_text h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
  margin: 0 0 6px 0;
  min-height: unset;
  line-height: 1.3;
}

.project_container.list-view .article_text p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 2px 0;
  line-height: 1.4;
}

.project_container.list-view .article_links {
  margin-top: 8px;
  padding: 0;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project_container.list-view .article_links a {
  color: #76b900;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
  padding: 0 4px;
}

.project_container.list-view .article_links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .project_container.list-view {
    max-width: 100%;
  }
  .project_container.list-view article {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  .project_container.list-view article img,
  .project_container.list-view article video {
    margin: 0 0 12px 0;
    width: 100%;
    height: 120px;
  }
}

/* Publication List View Styling */
.publication_list_container {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  /* Set height to match grid view (adjust as needed) */
  height: 1200px;
  overflow-y: auto;
  border: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}

.publication-list-header {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
  letter-spacing: -1px;
}

.publication-list-desc {
  text-align: center;
  color: #666;
  font-size: 1.25rem;
  margin-bottom: 32px;
  margin-top: 8px;
}

.publication-list-count {
  text-align: left;
  color: #888;
  font-size: 1rem;
  margin: 0 0 24px 0;
  padding-left: 2px;
}

.publication-list-scroll {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.publication-list-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding: 24px 0 24px 0;
  min-height: 60px;
  font-size: 1rem;
  background: #fff;
}

.publication-list-item:last-child {
  border-bottom: none;
}

.pub-date {
  width: 120px;
  color: #888;
  font-size: 1rem;
  flex-shrink: 0;
  padding-left: 2px;
  padding-top: 2px;
}

.pub-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
}

.pub-title {
  font-weight: 500;
  color: #222;
  font-size: 1.08rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.pub-authors {
  color: #666;
  font-size: 0.98rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.pub-venue {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.pub-link {
  min-width: 90px;
  text-align: right;
  align-self: flex-start;
  padding-right: 8px;
  padding-top: 2px;
}

.pub-link a {
  color: #76b900;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.pub-link a:hover {
  text-decoration: underline;
}

/* Scrollbar styling for publication list */
.publication_list_container::-webkit-scrollbar {
  width: 8px;
}
.publication_list_container::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 4px;
}
.publication_list_container::-webkit-scrollbar-track {
  background: #fafafa;
}

/* Responsive for publication list */
@media (max-width: 1024px) {
  .publication_list_container {
    max-width: 100%;
    height: 80vh;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .publication-list-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  .pub-date,
  .pub-link {
    width: 100%;
    text-align: left;
    padding: 0;
  }
  .pub-link {
    margin-top: 6px;
  }
  .publication-list-header {
    font-size: 1.75rem;
  }
  .publication-list-desc {
    font-size: 1rem;
  }
}
