@import url("./color.css");

.faq_section {
  margin-top: 20px;
  margin-bottom: 25px;
}

.faq_section .heading {
  font-size: 1.8vw;
  font-weight: 600;
  color: var(--dark-light-green);
  text-align: left;
}

.faq_section .sub_heading {
  font-size: 2vw;
  font-weight: 400;
  color: var(--teal-dark);
  text-align: left;
  line-height: 40px;
}

.faq_section .chck_all_questions_btn {
  background-color: var(--purple-mid);
  width: fit-content;
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.faq_section .chck_all_questions_link {
  text-decoration: none;
  color: var(--white);
  font-size: 1.5vw;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.faq_section .chck_all_questions_btn i {
  margin-left: 8px;
  margin-right: 8px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 40px;
  background-color: var(--white);
  color: var(--purple-mid);
  border-radius: 34px;
}

.chck-all-questions-btn_div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.faq-section {
  max-width: 700px;
  margin: auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  margin-top: 10px;
  color: #444;
}

.faq_right_card_div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq_right_card_div .card {
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  padding: 20px;
  background-color: var(--green-pale);
  height: 500px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'><path stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.529 9.988a2.502 2.502 0 1 1 5 .191A2.441 2.441 0 0 1 12 12.582V14m-.01 3.008H12M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z'/></svg>");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 300px;
  background-blend-mode: overlay;
  position: relative;
  overflow: hidden;
}

.faq_right_card_div .card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.faq_right_card_div .card .card-body .heading {
  color: var(--black-deep);
  font-size: 2vw;
  font-weight: 700;
  line-height: 1.4;
}

.faq_right_card_div .headin_div {
  margin-bottom: 20px;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  .faq_section {
    margin-top: 15px;
  }

  .faq_section .heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .faq_section .sub_heading {
    font-size: 1.8rem;
    text-align: center;
    line-height: 30px;
  }

  .faq_section .chck_all_questions_btn {
    padding: 8px 15px;
    margin: 0 auto;
  }

  .faq_section .chck_all_questions_link {
    font-size: 1.2rem;
  }

  .faq_section .chck_all_questions_btn i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 32px;
  }

  .chck-all-questions-btn_div {
    justify-content: center;
    margin: 15px 0;
  }

  .faq-section {
    max-width: 100%;
    padding: 15px;
    border-radius: 10px;
  }

  .faq-item {
    padding: 12px 0;
  }

  .faq-question {
    font-size: 1rem;
    padding-right: 30px;
  }

  .faq-question::after {
    font-size: 20px;
  }

  .faq-answer {
    font-size: 0.9rem;
    margin-top: 8px;
  }

  .faq_right_card_div .card {
    border-radius: 20px;
    padding: 15px;
    height: auto;
    min-height: 300px;
    background-size: 200px;
    margin-bottom: 20px;
  }

  .faq_right_card_div .card .card-body .heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .faq_right_card_div .headin_div {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .faq_section {
    margin-top: 10px;
  }

  .faq_section .heading {
    font-size: 1.2rem;
  }

  .faq_section .sub_heading {
    font-size: 1.5rem;
    line-height: 26px;
  }

  .faq_section .chck_all_questions_btn {
    padding: 6px 12px;
  }

  .faq_section .chck_all_questions_link {
    font-size: 1rem;
  }

  .faq_section .chck_all_questions_btn i {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 28px;
    margin-left: 6px;
    margin-right: 6px;
  }

  .faq-section {
    padding: 12px;
    border-radius: 8px;
  }

  .faq-item {
    padding: 10px 0;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .faq-question::after {
    font-size: 18px;
  }

  .faq-answer {
    font-size: 0.85rem;
  }

  .faq_right_card_div .card {
    border-radius: 15px;
    padding: 12px;
    min-height: 250px;
    background-size: 150px;
  }

  .faq_right_card_div .card .card-body .heading {
    font-size: 1.3rem;
  }

  .faq_right_card_div .headin_div {
    margin-bottom: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .faq_section .heading {
    font-size: 1.6rem;
  }

  .faq_section .sub_heading {
    font-size: 2rem;
    line-height: 35px;
  }

  .faq_section .chck_all_questions_link {
    font-size: 1.3rem;
  }

  .faq_section .chck_all_questions_btn i {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 36px;
  }

  .faq-section {
    max-width: 650px;
    padding: 20px;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer {
    font-size: 1rem;
  }

  .faq_right_card_div .card {
    height: 450px;
    background-size: 250px;
  }

  .faq_right_card_div .card .card-body .heading {
    font-size: 1.8rem;
  }
}
