@import "../accordion/accordion.css";

.shade-box {
  background-color: var(--spectrum-gray-100);
  border-radius: 7px;
  min-width: 707px;
  max-width: 707px;
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.custom-accordion-wrapper {
  margin-top: 0 !important;
}

.accordion-group>.accordion details div {
  font-size: var(--exlm-font-size-content);
  line-height: var(--exlm-line-height-h4);
}

.accordion-group>.accordion details summary {
  font-size: var(--spectrum-font-size-200);
  line-height: var(--exlm-line-height-h4);
}

.accordion-group-container {
  display: flex;
  gap: 146px;
  flex-direction: row-reverse;
  padding: 50px 24px !important;
  background-color: rgba(252, 236, 228, 1);
}

/* Stakeholder policies accordian start */
.accordion-group .accordion:first-of-type {
  display: none;
}

.tab-container {
  display: grid;
  gap: 10px;
  margin-bottom: 1em;
}

.tab-button {
  padding: 0.5em 1em;
  cursor: pointer;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
}

.tab-button.active {
  background: #0073e6;
  color: white;
}

.faq-accordion.open .faq-icon {
  transform: rotate(180deg);
}


.faq-accordion {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-accordion:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-accordion.open {
  border-color: rgba(151, 41, 30, 1);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
}

.faq-accordion.open .faq-title {
  color: rgba(151, 41, 30, 1);
  font-family: var(--body-font-family-bold);
  font-size: 16px;
  font-weight: 700;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  background: white;
  transition: background-color 0.3s ease;
  gap: 14px;
  border: none;
  width: 100%;
  font-size: 14px;
  text-align: left;
  position: relative;
  font-family: var(--body-font-family-bold);
}

.faq-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(151, 41, 30, 1);
  min-width: 32px;
  text-align: center;
}

.faq-toggle {
  font-size: 1.2rem;
  color: rgba(151, 41, 30, 1);
  font-weight: 600;
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.faq-icon {
  margin-left: auto;
  /* height: 9px; */
  /* max-width: 12px; */
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}


.faq-icon-path {
  stroke: #111111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.faq-answer {
  padding: 0 24px 24px 72px;
  background: white;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.faq-accordion.open .faq-answer {
  max-height: 500px;
  /* big enough for your content */
  opacity: 1;
  overflow-y: auto;
}

.faq-answer p {
  /* font-size: 1rem; */
  color: #555;
  /* line-height: 1.6; */
  margin: 0;
  font-weight: 400;
}

.faq-answer p a {
  color: #e5461c;
}

.faq-icon.open-icon {
  filter: brightness(0);
}


@media(max-width: 1024px) {
  .shade-box {
    min-width: 600px;
    max-width: 600px;
  }

  .accordion-group-container {
    gap: 50px;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 767px) {
  .accordion-group-container {
    flex-direction: column-reverse;
    gap: 30px;
    padding: 50px 16px !important;
  }

  .accordion-group-container .custom-accordion-wrapper {
    padding: 0;
    width: 100%;
  }

  .shade-box {
    min-width: 100%;
    max-width: 100%;
  }

  .faqsection__left {
    width: unset;
  }

  .faqsection__left .faq-card {
    display: block;
  }

  .faqsection {
    padding: 0 16px;
  }

  .faq-heading p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 150%;
  }

  .faqsection__container {
    grid-template-columns: 1fr;
  }

  .tab-list {
    gap: 10px;
  }

  .faqsection__left h2 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .faq-card-container .not-find-text {
    font-weight: 400;
    font-size: 1rem;
    line-height: 120%;
    margin: 15px 0;
  }

  .faq-card-container .faq-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .faq-card__icon {
    width: 40px;
    height: 40px;
  }

  .faq-card__icon img {
    width: 20px;
    height: 20px;
  }

  .faq-card__title {
    font-size: 1rem;
  }

  .faq-card__desc {
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 15px;
    gap: 12px;
  }

  .faq-number {
    font-size: 1.1rem;
    min-width: 28px;
  }

  .faq-title {
    font-size: 1rem;
    font-weight: 700;
    /* line-height: 120%; */
  }

  .faq-answer {
    padding: 0 20px 20px 55px;
  }

  .faq-answer p {
    /* font-size: 0.9rem; */
    font-weight: 400;
    line-height: 150%;
  }

  .faqsection__right {
    margin-bottom: 25px;
  }
}

/* Smooth fade */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}