.faq_container {
  width: 80%;
  margin: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 10rem;
}

.faq_header {
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq_header h1 {
  font-weight: 600;
  color: #0c081d;
}
.faq_header p {
  font-weight: 400;
  color: #4a436b;
  font-size: 14px;
}

.faq_tags_wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.faq_tags_wrapper button {
  padding: 10px 26px;
  border: 1.13px solid #170d45;
  border-radius: 40px;
  color: #150e32;
}
.active_tag {
  background-color: #170d45;
  color: white !important;
}

.faq-wrapper {
  width: 100%;
  max-width: 750px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.016);
}

.faq-item {
  border-bottom: 1px solid #eaeaea;
  padding: 18px 10px;
  cursor: pointer;
}

.faq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.faq-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4ff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-icon img {
  width: 22px;
  height: 22px;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: #001f3f;
}

.arrow {
  font-size: 20px;
  transition: 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 48px;
  padding-right: 30px;
  color: #4e5c6e;
  font-size: 14px;
  line-height: 1.6;
}

/* DEFAULT OPEN STATE FOR THE FIRST ITEM */
.faq-item.open .faq-content {
  max-height: 500px; /* large enough to show full text */
  margin-top: 10px;
}
.faq-item.open .arrow {
  transform: rotate(180deg);
}


@media (max-width: 770px) {
  .faq_container{
    width: 90%;
  }

  .faq-wrapper{
  }
}

@media (max-width: 680px) {
  
  .faq_tags_wrapper{
    grid-template-columns: repeat(2, 1fr);
  }
  .faq_tags_wrapper button{
    padding: 6px 18px;
  }
}

@media (max-width: 560px) {
  .faq_header h1 {
    font-size: 25px;
}
.faq_header p {
  font-size: 12px;
}
}

@media (max-width: 420px) {
  .faq_header h1 {
    font-size: 20px;
}
.faq_header p {
  font-size: 10px;
}
}