.faq-groups-wrapper{
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-gap: 64px;
  position: relative;
}


.group-sidebar-wrapper{
  position: static;
  left: auto;
  height: auto;
  width: auto;
  top: 0px;
  background: rgb(255, 255, 255);
  z-index: 100;
  transition: left 0.3s ease-out;
}

.group-sidebar{
  position: static;
  top: auto;
  bottom: auto;
  width: auto;
  gap: 32;
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar-element-wrapper.section-links{
  max-height: 66vh;
  overflow: auto;
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.sidebar-element-wrapper.section-links h4{
  margin-bottom: 0;
  font-style: normal;
  font-weight: 400;
  line-height: 1.3em;
  font-size: 24px;
}

.section-links .faq-group{
  border: 1px solid #CBD2DA;
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 500;
  color: #00007b;
  background: #fff;
  transition: 0.2s ease;
  cursor: pointer;
  gap: 24px;
}

.section-links .faq-group.active{
  background: #0000FF;
  color: #fff;
  border-color: #0000FF;
}
.faq-groups .faq-group h3, .section-links .faq-group h3{
  margin-bottom:24px;
}
.section-links .faq-group h3{
  font-style: normal;
  font-weight: 400;
  line-height: 1.3em;
  font-size: 32px;
}

.faq-groups .faq-group h3{
  font-style: normal;
  font-weight: 400;
  line-height: 1.3em;
  font-size: 32px;
}

.section-links .faq-group p{
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 500;
}

.faq-groups-wrapper .faq-wrapper{
  border: 1px solid #CBD2DA;
  border-radius: 16px;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}



.faq-title h5{
  margin-bottom: 0;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4em;

}

.faq-answer{
  height: 0px;
  visibility: hidden;
  overflow: hidden;
  transition: height 0.3s ease-out, visibility 0.3s ease-out;
  margin;top: 8px;
}

.faq-answer div{
  margin-bottom: 0;
  font-size:18px;
}

.faq-answer ul{
  margin-top: 20px;
  padding-left: 40px;
}

.faq-answer ul li{
  margin: 0px;
}


.visible {
  visibility: visible;
  height: 108px;
}



.faq-groups{
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.faq-list{
  display: flex;
  flex-direction: column;
  gap: 12px;

}

group-sidebar.web{
  display: block;
}


.group-sidebar.sticky {
  position: fixed;
  top: 90px;
  bottom: auto;
  width: 320px;
}

.group-sidebar.stop {
  position: absolute;
  bottom: 0;   /* stick to bottom of faq-groups */
  top: auto;
}

.highlighted-faq {
  /*     background-color: #f6fa7d !important;
  transition: all 0.3s ease !important; */
  background-color: #f6fa7d;
  animation: fadeBg 4s ease forwards; /* fade duration */
}


@keyframes fadeBg {
  0% {
    background-color: #f6fa7d;
  }
  100% {
    background-color: transparent; /* start color */
  }
}

.mobile-group-sidebar{
  display: none;
  position: fixed;
  left: 0px;
  height: 100vh;
  width: 360px;
  top: 0px;
  background: rgb(255, 255, 255);
  z-index: 9999;
  transition: left 0.3s ease-out;
  border-right: 2px solid #0000ff;
}

@media (max-width: 1780px) {
  

  .sidebar-element-wrapper.section-links h4{
    font-size:20px;
  }
  .faq-groups .faq-group h3, .section-links .faq-group h3{
  margin-bottom:16px;
}
  .faq-groups .faq-group h3{
    font-size:24px;
  }
  .faq-title h5{
    font-size:18px;
  }
  .section-links .faq-group{
    padding: 12px 16px;
  }
  .faq-groups-wrapper .faq-wrapper{
    padding: 16px 20px;
  }
  .sidebar-element-wrapper.section-links{
    gap:8px;
  }

}

@media screen and (max-width: 899px) {
  .group-sidebar.web{
    display: none;
  }

  .mobile-group-sidebar{
    display: none;
    width: 0;
  }

  .faq-groups-wrapper{
    display: block;
  }

  .mobile-group-sidebar .sidebar-element-wrapper.section-links{
    padding: 20px;
    min-height: -webkit-fill-available;
  }

}

.mobileSidebarBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0000ff;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
}

.mobileSidebarBtn:hover {
  background: #0000E8;
  transform: translateY(-2px);
}

.mobileSidebarBtn.active {
  background: #0000FF;
}

.mobileSidebarBtn.active:hover {
  background: #0000E8;
}

/* Mobile sidebar styles */
.mobile-group-sidebar {
  display: block;
  position: fixed;
  top: 0;
  left: -320px;
  height: 100vh;
  width: 320px;
  background: white;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-out;
}

.mobile-group-sidebar.active {
  left: 0;
}

.mobile-group-sidebar .sidebar-element-wrapper {
  padding: 20px;
}

/* Mobile responsive */
@media (max-width: 899px) {
  .mobileSidebarBtn {
    display: block;
  }

  .group-sidebar.web {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-group-sidebar {
    display: none !important;
  }
  
}

