/* tab */
.faq_tab_nav {
  padding:70px 0;
  margin:auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.faq_tab_nav::-webkit-scrollbar {
  display: none;
}
.faq_tab_nav ul {
  display:flex;
  gap:62px;
  justify-content: center;
  align-items: center;
  min-width: max-content;
  padding: 0 20px;
}
.faq_tab_nav button {
  background-color: transparent;
  outline:none;
  border:none;
  white-space: nowrap;
  flex-shrink: 0;
}
.faq_tab_nav button a {
  font-size:36px;
  font-weight: 700;
  color:var(--color-cc);
  transition:.3s;
}
.faq_tab_nav button.choice a {
  color:var(--color-11);
}
.faq_tab_nav button:hover {
  cursor: pointer;
}
.faq_tab_nav button:not(.choice):hover a {
  color:var(--color-b8);
}


/* search */
.faq_search {
  width:100%;
  display:flex;
  justify-content: center;
}
.faq_searchBox {
  width:70%;
  height:70px;
  background-color:white;
  border-radius: 20px;
  border:solid 1px var(--color-b8);
  padding:0 42px;

  display:flex;
  justify-content: space-between;
  align-items: center;
}
.faq_searchBox input {
  width:80%;
  height:100%;
  outline:none;
  border:none;
  font-size:18px;
  font-weight: 500;
}
.faq_searchBox input::placeholder {
  font-family: "Pretendard";
  font-size:18px;
  font-weight: 500;
  line-height: 1.2;
}
.faq_searchBox img {
  width:30px;
  height:30px;
}
.faq_searchBox img:hover {
  cursor: pointer;
}



/* FAQ */
.faq_container {
  width:100%;
  margin-top:9%;
}

.faq_total {
  width:100%;
  text-align:right;
  margin-bottom:42px;
}

.faq_list {
  width:100%;
}
.faq_list > li {
  width:100%;
}
.faq_list > li:first-child {
  border-top:solid 1px var(--color-e8);
}
.faq_list > li {
  border-bottom:solid 1px var(--color-e8);
}
.faq_list > li .wrap {
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding:32px 30px;
  cursor: pointer;
}
.faq_list > li .one {
  display:flex;
  justify-content:flex-start;
  align-items: center;
  gap:42px;
}
.faq_list .q {
  width:30px;
  height:30px;
  border-radius: 100%;
  background-color: var(--color-e9);
  color:var(--color-76);

  display: flex;
  justify-content: center;
  align-items: center;
}
.faq_list .q p {
  font-weight: 500;
  font-size: 20px;
}
.faq_list .title {
  font-size:20px;
  font-weight: 500;
}

.faq_list .arrowImg {
  transition:.3s;
  cursor: pointer;
}
.faq_list .arrowImg img {
  transition:.3s;
}
.faq_list .arrowImg.choice img {
  transform:rotate(180deg);
}

.faqA {
  width:100%;
  max-height:0;
  overflow:hidden;
  transition:max-height .3s;
  padding:0 32px;
  background-color: var(--color-f9);

  display: flex;
  justify-content: flex-start;
  gap:42px;
}
.faqA .q {
  width:30px;
  height:30px;
  border-radius: 100%;
  background-color: var(--color-main);
  color:white;

  display: flex;
  justify-content: center;
  align-items: center;
}
.faqA .q p {
  font-weight: 500;
  font-size: 18px;
}
.faqA .faq_contents {
  line-height: 1.7;
  font-size:18px;
}


.faqwrap {
  display:flex;
  align-items:flex-start; 
  gap:42px;
  padding:32px 0;
}

/* ===== 반응형 디자인 ===== */

/* 전체 페이지 가로 스크롤만 방지하되, 탭 네비게이션은 스크롤 허용 */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  
  .w1440 {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  /* 탭 네비게이션 스크롤 허용 */
  .faq_tab_nav {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* 태블릿 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .faq_tab_nav {
    padding: 50px 0 !important;
  }
  
  .faq_tab_nav ul {
    gap: 40px !important;
  }
  
  .faq_tab_nav button a {
    font-size: 32px !important;
  }
  
  .faq_searchBox {
    width: 85% !important;
    height: 60px !important;
    padding: 0 30px !important;
  }
  
  .faq_searchBox input {
    font-size: 16px !important;
  }
  
  .faq_searchBox input::placeholder {
    font-size: 16px !important;
  }
  
  .faq_searchBox img {
    width: 25px !important;
    height: 25px !important;
  }
  
  .faq_container {
    margin-top: 7% !important;
  }
  
  .faq_total {
    margin-bottom: 30px !important;
  }
  
  .faq_list > li .wrap {
    padding: 25px 20px !important;
  }
  
  .faq_list > li .one {
    gap: 30px !important;
  }
  
  .faq_list .q {
    width: 28px !important;
    height: 28px !important;
  }
  
  .faq_list .q p {
    font-size: 18px !important;
  }
  
  .faq_list .title {
    font-size: 18px !important;
  }
  
  .faqA {
    padding: 0 25px !important;
    gap: 30px !important;
  }
  
  .faqA .q {
    width: 28px !important;
    height: 28px !important;
  }
  
  .faqA .q p {
    font-size: 16px !important;
  }
  
  .faqA .faq_contents {
    font-size: 16px !important;
  }
  
  .faqwrap {
    gap: 30px !important;
    padding: 25px 0 !important;
  }
}

/* 모바일 (768px 이하) */
@media screen and (max-width: 768px) {
  .faq_tab_nav {
    padding: 40px 0 !important;
    position: relative !important;
  }
  
  .faq_tab_nav ul {
    flex-wrap: nowrap !important;
    gap: 30px !important;
    padding: 0 20px !important;
    min-width: max-content !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    margin: 0 !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar-track {
    display: none !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar-thumb {
    display: none !important;
  }
  
  .faq_tab_nav button {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  
  .faq_tab_nav button a {
    font-size: 24px !important;
  }
  
  .faq_searchBox {
    width: 90% !important;
    height: 50px !important;
    padding: 0 20px !important;
    border-radius: 15px !important;
  }
  
  .faq_searchBox input {
    font-size: 14px !important;
  }
  
  .faq_searchBox input::placeholder {
    font-size: 14px !important;
  }
  
  .faq_searchBox img {
    width: 20px !important;
    height: 20px !important;
  }
  
  .faq_container {
    margin-top: 5% !important;
    padding: 0 20px !important;
  }
  
  .faq_total {
    margin-bottom: 25px !important;
    text-align: center !important;
  }
  
  .faq_list > li .wrap {
    padding: 20px 15px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  
  .faq_list > li .one {
    gap: 15px !important;
    width: 100% !important;
  }
  
  .faq_list .q {
    width: 25px !important;
    height: 25px !important;
    flex-shrink: 0 !important;
  }
  
  .faq_list .q p {
    font-size: 16px !important;
  }
  
  .faq_list .title {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  
  .faq_list .arrowImg {
    align-self: flex-end !important;
  }
  
  .faq_list .arrowImg img {
    width: 20px !important;
    height: 20px !important;
  }
  
  .faqA {
    padding: 0 20px !important;
    gap: 15px !important;
  }
  
  .faqA .q {
    width: 25px !important;
    height: 25px !important;
    flex-shrink: 0 !important;
  }
  
  .faqA .q p {
    font-size: 14px !important;
  }
  
  .faqA .faq_contents {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  .faqwrap {
    gap: 15px !important;
    padding: 20px 0 !important;
  }
}

/* 작은 모바일 (375px 이하) */
@media screen and (max-width: 375px) {
  .faq_tab_nav {
    padding: 30px 0 !important;
    position: relative !important;
  }
  
  .faq_tab_nav ul {
    flex-wrap: nowrap !important;
    gap: 20px !important;
    padding: 0 15px !important;
    min-width: max-content !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-behavior: smooth !important;
    margin: 0 !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar-track {
    display: none !important;
  }
  
  .faq_tab_nav ul::-webkit-scrollbar-thumb {
    display: none !important;
  }
  
  .faq_tab_nav button {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  
  .faq_tab_nav button a {
    font-size: 20px !important;
  }
  
  .faq_searchBox {
    width: 95% !important;
    height: 45px !important;
    padding: 0 15px !important;
    border-radius: 12px !important;
  }
  
  .faq_searchBox input {
    font-size: 13px !important;
  }
  
  .faq_searchBox input::placeholder {
    font-size: 13px !important;
  }
  
  .faq_searchBox img {
    width: 18px !important;
    height: 18px !important;
  }
  
  .faq_container {
    margin-top: 4% !important;
    padding: 0 15px !important;
  }
  
  .faq_total {
    margin-bottom: 20px !important;
  }
  
  .faq_list > li .wrap {
    padding: 15px 10px !important;
    gap: 10px !important;
  }
  
  .faq_list > li .one {
    gap: 10px !important;
  }
  
  .faq_list .q {
    width: 22px !important;
    height: 22px !important;
  }
  
  .faq_list .q p {
    font-size: 14px !important;
  }
  
  .faq_list .title {
    font-size: 14px !important;
  }
  
  .faq_list .arrowImg img {
    width: 18px !important;
    height: 18px !important;
  }
  
  .faqA {
    padding: 0 15px !important;
    gap: 10px !important;
  }
  
  .faqA .q {
    width: 22px !important;
    height: 22px !important;
  }
  
  .faqA .q p {
    font-size: 12px !important;
  }
  
  .faqA .faq_contents {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  
  .faqwrap {
    gap: 10px !important;
    padding: 15px 0 !important;
  }
}