.faq {
  position: relative;
  width: 100%;
  padding-bottom: 60px;
}

.faq-page .faq {
    padding: 60px 0;
}

.faq .sec-title h2 {
  color: var(--secondary-color);
  margin-bottom: 60px;
}
body.page-frequently-asked-questions-about-dental-health .faq h2{
  margin-top: 3rem;
}

.faq .row {
  display: flex;
  justify-content: space-between;
  gap: 100px;
  flex-wrap: wrap;
}

.faq .left-section {
  flex: 2;
}

.faq .right-section {
  flex: 1;
}

.faq-item {
  margin-bottom: 40px;
  padding-bottom: 10px;
  cursor: pointer;
}

.faq-item .question {
  font-weight: 500;
  font-size: 22px;
  line-height: 22px;
  color: var(--secondary-color);
  font-family: "Outfit", sans-serif;
  position: relative;
}

.faq-item .answer {
  display: none;
  font-size: 16px;
  color: var(--secondary-color);
  margin-top: 20px;
  line-height: 31px;
  letter-spacing: -2%;
  font-weight: 400;
  font-family: "Urbanist", sans-serif;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-tabs {
  list-style: none;
  padding: 20px;
  background: #484443;
  border-radius: 10px;
  color: white;
}

.faq-tabs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-color);
  cursor: pointer;
  transition: background 0.3s;
}

.faq-tabs li span {
  display: flex;
  width: 100%;
  align-items: center;
}

.faq-tabs li svg {
  display: none;
}

.faq-tabs li:last-child {
  border: 0;
}

.faq-tabs li.active {
  color: #ffffff;
  font-weight: bold;
}
.faq-tabs li .fa-chevron-down{
  margin-left: 10px;
}

.question::after {
  content: "+";
  float: right;
  color: #484443;
  font-size: 35px;
  font-weight: 200;
  position: absolute;
  right: 0;
  top: 0;
}

.question.active::after {
  color: #484443;
  content: "–";
  font-size: 35px;
  font-weight: 200;
}

.faq-group.active .faq-item:first-child .answer {
  display: block;
}

.faq-tabs > li > ul {
  display: none;
}

.faq-select-container {
  display: none;
}

@media (max-width: 992px) {
  .faq-select-container {
    display: block;
  }

  .faq-tabs {
    display: none;
  }

  .faq .left-section,
  .faq .right-section {
    flex: unset;
    max-width: 100%;
    width: 100%;
  }

  .faq .left-section {
    order: 2;
  }

  .faq .row {
    gap: 40px;
  }

  .faq-item {
    border: 1px solid #cfcfcf;
    padding: 20px;
    margin-bottom: 20px;
  }

  .faq-item .question {
    font-size: 18px;
    padding-right: 20px;
  }

  .faq-tabs li svg {
    display: inline-block;
  }

  .faq-tabs > li {
    display: none;
    border: 0;
    padding: 0;
  }

  .faq-tabs li.active {
    display: flex;
    flex-direction: column;
  }

  .faq-tabs li span svg {
    margin-left: auto;
    display: block;
  }

  .faq-tabs > li > ul > li {
    padding: 5px 0;
    color: var(--primary-color);
  }

  .faq-tabs > li > ul {
    margin-top: 10px;
  }

  .faq-tabs li.active.dropdown-open > span > svg {
    transform: rotate(180deg);
  }

  .faq-select-container {
    position: relative;
    margin: 0 auto;
  }

  .faq-select {
    width: 100%;
    background: #4a4a4a;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .faq-select:hover {
    background: #555;
  }

  .faq-select.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .faq-select-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    user-select: none;
  }

  .faq-select-text {
    font-weight: 400;
    color: #ffffff;
    font-size: 13px;
    font-family: "Outfit", sans-serif;
  }

  .faq-select-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    color: #ffffff;
    opacity: 0.8;
  }

  .faq-select.open .faq-select-icon {
    transform: rotate(180deg);
  }

  .faq-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4a4a4a;
    border: 1px solid #4a4a4a;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .faq-select.open .faq-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .faq-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
    color: #ffffff;
    border-bottom: 1px solid #555;
    letter-spacing: 0.5px;
  }

  .faq-option:last-child {
    border-bottom: none;
  }

  .faq-option:hover {
    background-color: #555;
  }

  .faq-option.hidden {
    display: none;
  }

  .selected-info {
    text-align: center;
    color: #666;
    font-size: 16px;
  }

  .selected-value {
    color: #007bff;
    font-weight: bold;
  }

  .faq .sec-title {
    text-align: left;
}
}

@media (max-width: 768px) {
  .faq .sec-title h2 {
    font-size: 29px;
    line-height: 37px;
    text-align: left;
    margin-bottom: 30px;
  }

  .faq-page .faq {
    padding: 30px 0;
}
}
