.about-page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  padding-top: 180px;
  padding-bottom: 150px;
}

.about-page-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  /* 20% extra height for parallax shifting */
  background: linear-gradient(rgba(10, 12, 16, 0.68), rgba(10, 12, 16, 0.68)), url('../assets/bgs/experimental/v1.jpeg') center center no-repeat;
  background-size: cover;
  z-index: -2;
  will-change: transform;
}

.about-page-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold-main);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.about-page-title span {
  display: block;
  font-size: 42px;
  color: #fff;
  margin-top: 10px;
  letter-spacing: 3px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.about-container {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 2rem;
}

.about-sidebar-wrapper {
  flex: 0 0 230px;
  position: sticky;
  top: 150px;
  align-self: flex-start;
  transition: all 0.4s ease;
  overflow: hidden;
}

.about-sidebar-wrapper.collapsed {
  flex: 0 0 60px;
  margin-right: 0px;
}

.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 35px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(193, 155, 96, 0.3);
  border-radius: 4px;
  color: var(--gold-main);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
  background: rgba(40, 32, 20, 0.9);
  color: #fff;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-tab {
  display: flex;
  align-items: center;
  width: 100%;
  height: 45px;
  background: url('../assets/about/button-dark.png') left center no-repeat;
  background-color: rgba(0, 0, 0, 0.9);
  background-size: 100% 100%;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 10px;
  text-decoration: none;
}

.about-tab:hover {
  filter: brightness(1.2);
  text-decoration: none;
}

.about-tab.active {
  background: url('../assets/about/button-white.png') left center no-repeat;
  background-color: rgba(255, 255, 255, 0.9);
  background-size: 100% 100%;
  border-radius: 50px;
}

.about-sidebar-wrapper.collapsed .about-tab {
  background: transparent;
  padding-left: 0;
  justify-content: center;
}

.about-sidebar-wrapper.collapsed .about-tab.active {
  background: transparent;
}

.tab-ellipse {
  width: 32px;
  height: 32px;
  background: url('../assets/about/elipse-dark.png') center center no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.about-tab.active .tab-ellipse {
  background: url('../assets/about/elipse-white.png') center center no-repeat;
  background-size: contain;
}

.about-sidebar-wrapper.collapsed .tab-ellipse {
  margin-right: 0;
}

.tab-num {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.about-tab.active .tab-num {
  color: #000;
}

.tab-text {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gray-light);
  letter-spacing: 1px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.about-sidebar-wrapper.collapsed .tab-text {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.about-tab.active .tab-text {
  color: #111;
  font-weight: 600;
}

.about-sections-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.about-section-block {
  position: relative;
}

.about-section-block.dl-gold-frame {
  padding: 3rem 4rem;
  background: transparent;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.about-content-inner {
  position: relative;
  z-index: 10;
  min-height: 200px;
}

.about-content-bg {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url('../assets/bgs/bg-about-framed-box.png') top center repeat-y;
  background-size: 100% auto;
  z-index: -1;
  opacity: 0.8;
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.about-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-content-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-subtitle {
  font-family: var(--font-news), sans-serif;
  font-size: 13px;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  color: #fff;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.about-separator {
  max-width: 300px;
  margin: 0 auto;
}

.about-image-right {
  float: right;
  width: 100%;
  max-width: 300px;
  margin: 0 0 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .about-page-wrapper {
    overflow-x: hidden;
  }

  .about-container {
    flex-direction: column;
    min-width: 0;
  }

  .about-sections-wrapper {
    min-width: 0;
  }

  .about-sidebar-wrapper {
    flex: none;
    position: relative;
    top: 0;
    overflow-x: auto;
    padding-bottom: 10px;
    width: 100% !important;
  }

  .about-sidebar-wrapper::-webkit-scrollbar {
    height: 4px;
  }

  .about-sidebar-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .about-sidebar-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold-main);
    border-radius: 4px;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  .about-sidebar-wrapper.collapsed .tab-text {
    opacity: 1 !important;
    position: static !important;
  }

  .about-sidebar-wrapper.collapsed .tab-ellipse {
    margin-right: 15px !important;
  }

  .about-sidebar-wrapper.collapsed .about-tab {
    padding-left: 20px !important;
    justify-content: flex-start !important;
    background: url('../assets/about/button-dark.png') left center no-repeat !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    background-size: 100% 100% !important;
    border-radius: 50px !important;
  }

  .about-sidebar-wrapper.collapsed .about-tab.active {
    background: url('../assets/about/button-white.png') left center no-repeat !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-size: 100% 100% !important;
    border-radius: 50px !important;
  }

  .about-sidebar {
    flex-direction: row;
    gap: 15px;
  }

  .about-tab {
    flex: 0 0 200px;
  }

  .about-image-right {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .about-section-block.dl-gold-frame {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 576px) {
  .about-section-block.dl-gold-frame {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   ABOUT SUBCATEGORIES (auto-generated from h2.about-title, see about-noscroll.html)
   ========================================================================== */
.about-subnav {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: relative;
  margin: -2px 0 6px 0;
  padding: 6px 0 4px 24px;
}

/* Scrollable list of sub-tabs: 10 items of 34px plus 9 gaps of 8px are visible,
   the rest scroll. JS (fitSubnavLists) lowers max-height on short viewports. */
.about-subnav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 412px;
  padding: 0 6px 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 179, 134, 0.6) rgba(255, 255, 255, 0.05);
}

.about-subnav-list::-webkit-scrollbar {
  width: 4px;
}

.about-subnav-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.about-subnav-list::-webkit-scrollbar-thumb {
  background: rgba(213, 179, 134, 0.6);
  border-radius: 4px;
}

/* Vertical connector dropping out of the parent tab's number ellipse. */
.about-subnav::before {
  content: '';
  position: absolute;
  left: 25px;
  top: -8px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(213, 179, 134, 0.7) 0%, rgba(213, 179, 134, 0.15) 100%);
}

.about-tab.active + .about-subnav {
  display: flex;
  animation: subnavIn 0.3s ease-out;
}

.about-sidebar-wrapper.collapsed .about-subnav {
  display: none;
}

@keyframes subnavIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-subtab {
  display: flex;
  align-items: center;
  position: relative;
  height: 34px;
  padding: 0 14px 0 0;
  border: 1px solid rgba(213, 179, 134, 0.25);
  border-radius: 34px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 16, 10, 0.75) 100%);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

/* Horizontal branch joining the connector line to the pill. */
.about-subtab::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(213, 179, 134, 0.5);
}

.about-subtab:hover {
  border-color: rgba(213, 179, 134, 0.6);
  background: linear-gradient(90deg, rgba(30, 24, 14, 0.95) 0%, rgba(40, 32, 20, 0.85) 100%);
  transform: translateX(3px);
  text-decoration: none;
}

.about-subtab.active {
  border-color: var(--gold-main);
  background: linear-gradient(90deg, rgba(60, 46, 26, 0.95) 0%, rgba(30, 24, 14, 0.9) 100%);
  box-shadow: 0 0 12px rgba(213, 179, 134, 0.25), inset 0 0 8px rgba(213, 179, 134, 0.1);
}

.subtab-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  /* Same outer size as the pill; -1px pulls it over the pill's border so the
     two circles share one edge on the left. */
  margin: 0 8px 0 -1px;
  border-radius: 50%;
  border: 1px solid rgba(213, 179, 134, 0.5);
  background: rgba(0, 0, 0, 0.6);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--gold-main);
  transition: all 0.25s ease;
}

.about-subtab.active .subtab-num {
  background: var(--gold-main);
  border-color: var(--gold-bright);
  color: #000;
}

.subtab-text {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gray-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.about-subtab:hover .subtab-text {
  color: #fff;
}

.about-subtab.active .subtab-text {
  color: var(--gold-bright);
  font-weight: 600;
}

@media (max-width: 992px) {
  /* The sidebar is a horizontal strip on mobile; nested lists do not fit there. */
  .about-subnav {
    display: none !important;
  }
}

/* ==========================================================================
   ABOUT SIDEBAR SCROLLING
   The sticky sidebar must never be taller than the viewport, otherwise its
   lower tabs only appear once the page is scrolled to the very bottom.
   ========================================================================== */
@media (min-width: 993px) {
  .about-sidebar-wrapper {
    max-height: calc(100vh - 150px - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Scrollable, but the bar itself stays hidden (sub-lists keep theirs). */
    scrollbar-width: none;
  }

  .about-sidebar-wrapper::-webkit-scrollbar {
    display: none;
  }
}
