.faq-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  /* padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem); */
  /* margin-bottom: 120px; */
  padding-bottom: clamp(3.125rem, 1.3352rem + 7.9545vw, 7.5rem);
  background-color: #f0eadc;
}
.tab-faq-section{
    overflow: hidden;
}

@media (max-width: 767.98px) {
  .faq-container {
    max-width: 95%;
  }
}

/* Tab FAQ Section */

.faq-tabs {
  border: none !important;
  margin: 0;
  padding-top: 40px;
  align-items: flex-end;
}

.faq-tabs .nav-item {
  list-style: none !important;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.faq-tabs .nav-link {
  color: #8e8c84 !important;
  text-align: right;
  background: none !important;
  border: none !important;
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.faq-tabs .nav-link:hover {
  color: #2c2d2d !important;
}

.faq-tabs .nav-link .arrow {
  opacity: 0;
  color: #e85d3b;
  margin-left: 15px;
  font-size: 0.7em;
  transition: opacity 0.3s ease;
  position: absolute;
  right: -14%;
}

.faq-tabs .nav-link.active {
  color: #2c2d2d !important;
  font-weight: 600;
}

.faq-tabs .nav-link.active .arrow {
  opacity: 1;
}

.faq-tab-content-wrapper {
  background-color: #ffffff;
  border-radius: 0;
  padding: 50px 80px 70px 45px;
  position: relative;
  left: 2%;
  height: 750px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  /* margin-top: 60px; */
  margin-top: clamp(0rem, -1.5341rem + 6.8182vw, 3.75rem);
}

.faq-tab-content-wrapper .tab-content {
  position: relative;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.faq-tab-content-wrapper .tab-pane.fade {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.faq-tab-content-wrapper .tab-pane.fade.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.faq-tab-content-wrapper .tab-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-header {
  display: flex;
  align-items: center;
  color: #2c2d2d;
  margin-bottom: 10px;
}

.faq-number {
  font-family: var(--font-clash-display);
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.5rem);
  font-weight: 500;
  color: #e85d3b;
  margin-right: 25px;
  line-height: 1;
}

.faq-body {
  color: #666666;
}

.faq-bullet {
  margin-right: 25px;
  /* height: 20px;
  width: 20px; */
  height: clamp(0.625rem, 0.3693rem + 1.1364vw, 1.25rem);
  width: clamp(0.625rem, 0.3693rem + 1.1364vw, 1.25rem);
  background: var(--color-4);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
}

/* Nav Controls */
.faq-nav-controls {
  position: absolute;
  bottom: 40px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.faq-nav-btn {
  background: none;
  border: 1px solid #d1cfc7;
  color: #8e8c84;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.faq-nav-btn:hover {
  border-color: #e85d3b;
  color: #e85d3b;
}

.faq-nav-btn svg {
  width: 18px;
  height: 18px;
}

.picture-container {
  max-width: 80%;
  width: 100%;
  height: auto;
  position: relative;
}

@media (min-width: 768px) {
  .single-faq-category .picture-container,
  .col-md-5.align-self-md-start .picture-container {
    margin-top: clamp(0rem, -1.5341rem + 6.8182vw, 3.75rem);
  }
}

.picture-bar {
  width: 30px;
  height: 113px;
  position: absolute;
  background-color: var(--color-3);
  left: -20%;
  top: 50%;
}

/* Mobile responsive styles for FAQ */
@media (max-width: 991px) {
  .faq-tabs {
    padding-top: 0;
    align-items: center;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
  }
  .faq-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .faq-tabs .nav-item {
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto !important;
    margin-bottom: 0 !important;
    margin-right: 25px;
  }

  .faq-tabs .nav-link {
    text-align: left;
    justify-content: flex-start;
    white-space: nowrap;
    padding: 10px;
    border-radius: 40px;
  }
  
  .faq-tabs .nav-link.active {
      border: 1px solid #DC6128 !important;
  }

  .faq-tabs .nav-link .arrow {
    display: none !important;
  }

  .faq-tab-content-wrapper {
    padding: 30px 70px 80px 20px;
    height: auto !important;
    left: 0;
  }

  .faq-tab-content-wrapper .tab-content {
    height: auto !important;
    overflow-y: visible !important;
  }

  .faq-item {
    padding: 16px 0 !important;
  }

  .faq-number {
    margin-right: 15px;
  }

  .faq-nav-controls {
    bottom: 25px;
    right: 25px;
  }

  .picture-container {
    max-width: 100%;
    padding-bottom: 20px;
    left: -5%;
  }
  .picture-bar {
    display: none;
  }

  .faq-img {
    height: 200px;
    width: auto;
  }

  .faq-img img {
    height: 200px;
    width: auto;
  }
}
