/* Reset */
body, .jump-links-sticky-container {
  overflow-x: hidden;
}

/* Main Container */
.jump-links-sticky-container {
  overflow-x: hidden;
}

/* --- MODIFIED SECTION --- */
/* Apply centering styles ONLY when the wrapper is NOT sticky */
.jump-links-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5.6rem 1.6rem 1.6rem;
  transition: top 0.2s ease;
  /* These styles will now only apply in the original position */
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
}

/* Styles for the wrapper when it IS sticky */
.jump-links-wrapper.sticky-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  /* Explicitly remove max-width when sticky to ensure it's full-width */
  max-width: none;
}
/* --- END MODIFIED SECTION --- */


/* Remove .container padding inside jump-links-wrapper */
.jump-links-wrapper .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Row Wrapper */
.jump-links-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 24px;
}

/* Label */
.author-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.author-label h5 {
  font-family: "ITCAvantGardeGothic", Arial, Sans-Serif;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.49rem;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
  text-align: left;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  padding-bottom: 1px;
}
.author-label h5:focus,
.author-label h5:focus-visible {
  outline: none;
  border-color: #fabc2f;
}

/* Carousel Container */
.author-carousel {
  flex-grow: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Owl Carousel */
.owl-carousel,
.owl-stage-outer {
  overflow: hidden;
}
.owl-stage {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  
}
.owl-carousel .item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.author-slider {
  display: inline-flex !important;
  align-items: center;
  scroll-snap-type: x mandatory;
  min-height: 35px;
}
.author-slider .item {
  scroll-snap-align: start;
}
.author-slider .item .author-list {
  color: #000;
  font-size: 1.4rem;
  line-height: 1.49;
  font-family: "ITCAvantGardeGothic", Arial, Sans-Serif;
  font-weight: 600;
  letter-spacing: 0.22rem;
  border: 2px solid transparent;
  border-bottom: 0.4rem solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.author-slider .item a:hover .author-list {
  border-bottom-color: #fabc2f;
  color: #666;
}
.author-slider .item a:focus-visible .author-list,
.author-slider .item a:focus .author-list {
  outline: none;
  border-color: #fabc2f;
  color: #666;
}

/* Carousel Nav */
.author-slider .owl-nav {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #fff;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}
.author-slider .owl-nav .owl-prev {
  display: none !important;
}
.author-slider .owl-nav .owl-next {
  display: inline-block;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  border: 2px solid transparent;
}
.author-slider .owl-nav .owl-next:focus,
.author-slider .owl-nav .owl-next:focus-visible {
  outline: none;
  border-color: #fabc2f;
}

/* Editor View */
.editor-styles-wrapper .owl-carousel {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}
.editor-styles-wrapper .owl-carousel .item {
  flex: 0 0 auto;
  min-width: 80px;
}
@media (min-width: 992px) {
  .sticky-active .author-carousel {
    overflow: visible;;
  }
  .sticky-active .jump-links {
    justify-self: center;
    width: auto !important;
  }
  
  .sticky-active .header-scrolled {
    display: none !important;
  }
  .sticky-active .author-slider .owl-nav .owl-next {
    display: none !important;
  }
}
/* Mobile Tweaks */
@media (max-width: 576px) {
  .author-label h5 {
    letter-spacing: 0.2rem;
  }
  .jump-links-wrapper {
    padding: 5.6rem 0.8rem 1.6rem;
  }
  .jump-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Placeholder */
.jump-links-placeholder {
  display: none;
  width: 100%;
  height: 0;
}
.jump-links-wrapper .text-wrap{
  width: 100%;
}
.hide-header {
  display: none !important;
}