.navigation-primary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-y: auto;
}


/* Fixed Header Styles */
.header-ebook__navigation--fixed{
  /*   display: none; */
}

.header-ebook{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  z-index: 99999;
  display: none;
}

.header-ebook.fixed{
  position: fixed;
  background: #8C0C0E;
  display: block;
}

.header-ebook .header-ebook__navigation--fixed{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, 100%);
  padding: 10px clamp(10px, 1.25vw, 20px);
  margin: auto;
}

.header-ebook .header-ebook__navigation--fixed .header-ebook__navigation--toggle{
  position: relative;
  left: unset;
  right: unset;
  bottom: unset;
  top: unset;
}

.header-ebook__navigation--fixed .header-ebook__logo img{
  width: 250px !important;
}

.header-ebook .header-ebook__navigation--fixed .chapters{
  display: none; 
}

.header-ebook.fixed .header-ebook__navigation--fixed .chapters{
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-ebook .header-ebook__navigation--fixed .chapters *{
  color: #fff; 
}

.header-ebook .header-ebook__navigation--fixed .chapters a{
  display: flex; 
  position: relative;
  text-decoration: unset;
  border: 0px;
}

.header-ebook .header-ebook__navigation--fixed .chapters a:after{
  content: '';
  height: 15px;
  width: 15px;
  background-repeat: no-repeat;
  background-size: contain;
}

.header-ebook .header-ebook__navigation--fixed .chapters a.next:after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15.802' height='14.74' viewBox='0 0 15.802 14.74'%3E%3Cg id='Right_Arrow' data-name='Right Arrow' transform='translate(-9 -10.001)'%3E%3Cpath id='Path_282' data-name='Path 282' d='M18.213,24.426l6.265-6.318a1,1,0,0,0,0-1.474l-6.265-6.318a1.106,1.106,0,0,0-1.421-.105,1,1,0,0,0-.105,1.579l4.528,4.528H10.053a1.053,1.053,0,0,0,0,2.106H21.214l-4.528,4.528a1,1,0,0,0,.105,1.579,1.106,1.106,0,0,0,1.421-.105Z' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E%0A");
  margin-left: 20px;
}

.header-ebook .header-ebook__navigation--fixed .chapters a.previous:after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15.802' height='14.74' viewBox='0 0 15.802 14.74'%3E%3Cg id='Left_Arrow' data-name='Left Arrow' transform='translate(24.802 24.741) rotate(180)'%3E%3Cpath id='Path_282' data-name='Path 282' d='M18.213,24.426l6.265-6.318a1,1,0,0,0,0-1.474l-6.265-6.318a1.106,1.106,0,0,0-1.421-.105,1,1,0,0,0-.105,1.579l4.528,4.528H10.053a1.053,1.053,0,0,0,0,2.106H21.214l-4.528,4.528a1,1,0,0,0,.105,1.579,1.106,1.106,0,0,0,1.421-.105Z' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E%0A");
  margin-right: 20px;
}

.header-ebook .header-ebook__navigation--fixed .chapters .inactive{
  opacity: 0.5; 
  cursor: not-allowed;	
}

.header-ebook .header-ebook__navigation--fixed .chapters .chapter__active{
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0px;
}

.header-ebook .header-ebook__navigation--fixed .chapters .anchor{
  display: none; 
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  font-weight: 400;
}

.header-ebook .header-ebook__navigation--fixed .chapters .anchor.active{
  display: inline-block;
}

.header-ebook.fixed .header-ebook__global--buttons,
.header-ebook.fixed .header-ebook__navigation--toggle{
  display: none;
}

.header-ebook.hide-fixed .header-ebook__global--buttons,
.header-ebook.hide-fixed .header-ebook__navigation--toggle{
  display: flex;
}

.header-ebook.fixed .header-ebook__navigation--toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header-ebook.fixed .header-ebook__navigation--toggle .hamburger {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 40px;
  justify-content: center;
  transition: all .4s ease;
  width: 40px;
}

.header-ebook__navigation--toggle .hamburger span {
  background: #fff;
  display: block;
  height: 2px;
  left: 0;
  position: relative;
  transition: all .4s ease;
  width: 20px;
}

.header-ebook__navigation--toggle .hamburger span:first-child {
  top: 0;
  transform: rotate(0deg);
}

.header-ebook__navigation--toggle .hamburger span:nth-child(3) {
  bottom: 0;
  transform: rotate(0deg);
}

.header-ebook__navigation--toggle .hamburger span:nth-child(2) {
  margin: 5px 0;
}

/* .header-ebook .header-ebook__navigation--popup{
  display: none;
}

.header-ebook .header-ebook__navigation--popup.active{
  display: block;
}


.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__overlay{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #272727E6;
  background-color: #272727E6
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner{
  padding: clamp(60px, 7vw, 112px) clamp(30px, 3.75vw, 60px) clamp(30px, 3.75vw, 60px) clamp(30px, 3.75vw, 60px); 
  position: relative;
  z-index: 99;
  background: #1C1C1CF2;
  background-color: #1C1C1CF2;
  height: 100vh;
  width: min(580px, 100%);
  max-width: 32vw;
  position: fixed;
  right: 0;
  top: 0;
  overflow: auto;
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner .header-ebook__navigation--popup__inner-content{
  position: relative;
  z-index: 99;
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner p.actions{
  padding-bottom: 20px;
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner p.actions a:first-child{
  margin-right: 20px; 
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner p.home{
  display: inline-flex;
  align-items: center;
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner p.home a{
  display: block;
  text-decoration: unset;
  font-weight: 400;
  font-size: clamp(18px, 1.25vw, 20px);
  color: #fff;
  text-decoration: underline!important;
  text-decoration-color: #fff !important;
  text-underline-offset: 5px;
  border: 0px;
  line-height: 1.5;
} */

.header-ebook p.home > a{
  color: #fff; 
}

/* .header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner h3{
  color: #E0D5C0;
  font-weight: 100;
  font-size: clamp(28px, 2.625vw, 42px);
  font-weight: 400;
}

.header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner .ebook-menu{
  /*   padding-top: 20px; */
} */

.navigation-primary .ebook-menu__nav ul.level-1{
  counter-reset: counter; 
  margin: clamp(10px, 1.25vw, 20px) 0px clamp(10px, 1.25vw, 20px) -40px;
  list-style-type: none;
}

.navigation-primary .ebook-menu__nav .hide-toc{
  /*  display: none;  */
}

/* .navigation-primary .ebook-menu__nav ul.level-1 > li{
counter-increment: counter;
margin: 20px 0px;
padding: 0px;
border: 0px;
font-size: clamp(20px, 1.75vw, 28px) !important;
line-height: 1.2;
} */

.navigation-primary .ebook-menu__nav ul.level-1 > li {
  display: inline-flex;
  align-items: flex-start;
}

.navigation-primary .ebook-menu__nav ul.level-1 > li > a{
  display: block;
  text-decoration: unset;
  font-weight: 400;
  font-size: clamp(18px, 1.25vw, 20px);
  color: #fff;
  text-decoration: underline!important;
  text-decoration-color: #D8AB4C!important;
  text-underline-offset: 5px;
  border: 0px;
  padding: 0px !important;
  line-height: 1.5;
}

.navigation-primary .ebook-menu__nav ul.level-1 > li > span{
  display: block;
  text-decoration: unset;
  font-weight: 400;
  font-size: clamp(18px, 1.25vw, 20px);
  color: #fff;
  border: 0px;
  line-height: 1.5;
  width: 20px;
}


/* .navigation-primary .ebook-menu__nav ul.level-1 > li:before {
content: "Chapter " counter(counter); 
display: block;
margin: 0px;
width: fit-content;
font-weight: normal;
color: #222222;
margin-bottom: 5px;
} */

.navigation-primary .ebook-menu__nav ul.level-1 > li:last-child{
  margin-bottom: 0px;
}

.navigation-primary .ebook-menu__nav ul.level-2,
.navigation-primary .ebook-menu__nav .hs-menu-depth-2{
  display: none; 
}



.header-ebook__toc::-webkit-scrollbar {
  width: 10px;
}

.header-ebook__toc::-webkit-scrollbar-track {
  box-shadow: unset;
}

.header-ebook__toc::-webkit-scrollbar-thumb {
  background-color: #fff;
  border-radius: 10px;
}

@media (max-width: 1000px) {
  .header-ebook__navigation--fixed{
    flex-wrap: wrap; 
    justify-content: center !important;
  }
  .header-ebook__navigation--fixed .header-ebook__logo{
    order: 1;
    margin-bottom: 10px;
  }

  .header-ebook__navigation--fixed .header-ebook__menu-column{
    order: 2;
    margin-bottom: 10px;
  } 

  .header-ebook__navigation--fixed .header-ebook__navigation--wrapper{
    flex-basis: 100%;
    order: 3;
    padding-top: 10px;
  }

  .header-ebook .header-ebook__navigation--popup .header-ebook__navigation--popup__inner{
    width: 90vw;
    max-width: 100%;
  }
  .actions [class*='btn']{
    display: inline-block;
  }

  .header-ebook .header-ebook__menu-item:not(:first-child){
    display: none; 
  }

  .header-ebook__navigation--fixed .header-ebook__logo img{
/*     width: 150px !important; */
  }

}


.header-ebook__menu-column{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-ebook__menu-column .header-ebook__menu-item{
  color: #fff;
  border: 0px; 
  margin: auto;
}

.header-ebook__menu-column .header-ebook__menu-item a,
.header-ebook__menu-column .header-ebook__menu-item span{
  font-size: clamp(13px, 1vw, 16px); 
  cursor: pointer;
}

.header-ebook__menu-column .header-ebook__menu-item:first-child){
  margin-left: 20px;
}

.header-ebook__menu-column .header-ebook__menu-item a{
  border: 0px; 
}

.header-ebook__menu-column .header-ebook__menu-item .toc-trigger{
  display: flex;
  margin-bottom: 0px;
  cursor: pointer;
}

.header-ebook__menu-column .header-ebook__menu-item .toc-trigger img{
  margin-right: 10px; 
}

.header-ebook.fixed .header-ebook__menu-item:not(:first-child){
  display: none; 
}





/* TOC */
.header-ebook__toc{
  display: none;
  position: fixed;
  height: 0px;
  overflow: auto;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0px;
  width: 100%;
  background: rgba(51, 51, 51, 0.95);
  padding: clamp(20px, 7.5vw, 120px);
  transition: 0.2s all ease;
  z-index: 9999999;
}

.header-ebook__toc .hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left: unset;
  opacity: 1;
  position: relative;
}

.header-ebook__toc .hs-menu-wrapper ul:first-child{
  margin-right: clamp(20px, 5vw, 80px); 
}

.header-ebook__toc .hs-menu-wrapper ul{
  display: block; 
}
.header-ebook__toc .hs-menu-wrapper ul li{
  padding: unset;
  /*   margin: 20px 0px; */
}

.header-ebook__toc .hs-menu-wrapper ul li::before{
  content: '';
  display: none;
}


.header-ebook__toc .hs-menu-wrapper ul li a{
  line-height: 1.2; 
  text-decoration: unset;
}

.header-ebook__toc .hs-menu-wrapper li.hs-menu-depth-1{
  margin: clamp(20px, 5vw, 80px) 0px; 
}

.header-ebook__toc .hs-menu-wrapper li.hs-menu-depth-1 > a{
  font-size: clamp(40px, 3.75vw, 60px);
  font-weight: 600 !important;
  color: #fff;
  border: 0px;
  margin-bottom: clamp(20px, 5vw, 80px);

}

.header-ebook__toc .home,
.header-ebook__toc .hs-menu-wrapper li.hs-menu-depth-2 > a{
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 400;
  color: #fff;
  margin: 10px 0px;
  white-space: normal;
  display: block;
}

.header-ebook__toc .hs-menu-wrapper li.hs-menu-depth-2 > a{
  border: 0px;
  /*   text-decoration: underline !important;
  text-decoration-color: #D8AB4C !important; 
  text-underline-offset: 7.5px !important;
  text-decoration-thickness: 2px !important; */
  transition: 0.2s ease all;
  line-height: 1.4;
}

.header-ebook__toc .hs-menu-wrapper li.hs-menu-depth-2 > a:hover{
  padding-bottom: 0px;
  text-decoration-color: #D8AB4C50 !important; 
  text-underline-offset: 10px !important;
}

.header-ebook__toc .home{
  display: block;
  margin-top: clamp(10px, 2.5vw, 40px);
  color: #fff;
}

.header-ebook__toc.active{
  display: block;
  top: 0;
  height: 100vh;
  z-index: 999999;
}

/* Close */

.header-ebook__toc-close{
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.header-ebook__toc-close .close{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  padding: 10px;
  height: 40px;
  width:  40px;
  border-radius:  40px;
  background: #fff;
  margin-left: 10px;
  top: unset;
  right: unset;
}

.header-ebook__toc-close .close:before, .header-ebook__toc-close .close:after {
  position: absolute;
  left: 50%;
  content: ' ';
  height: 17.5px;
  width: 1px;
  background-color: #1c1c1c;
}
.header-ebook__toc-close .close:before {
  transform: translateX(-50%) rotate(45deg);
}
.header-ebook__toc-close .close:after {
  transform: translateX(-50%) rotate(-45deg);
}


/* Close */

.header-ebook__toc-logo{
  display: flex;
  align-items: center;
  position: absolute;
  top: 20px;
  left: 40px;
  width: 400px;
  max-width: 100%;
}

.header-ebook__toc-logo img{
  width: 250px !important; 
}

@media screen and (max-width: 1024px){
  .header-ebook__menu-column{
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px;
  }
  .header-ebook__container .header-ebook__menu-column .header-ebook__menu-item{
    display: none; 
    margin-left: unset !important;
  }
  .header-ebook__container .header-ebook__menu-column .header-ebook__menu-item-toc{
    display: block; 
    margin: 20px auto;
  }
  .header-ebook__toc-logo{
    display: none; 
  }
}
