/* BASIC css start */
/* ======================================================= */
/* ▼▼▼▼▼▼▼▼▼▼ 자주 묻는 질문 (모바일용 - 다크 레드 테마) ▼▼▼▼▼▼▼▼▼▼ */
/* ======================================================= */

/* 전체 박스 디자인 */
.faq-box-mobile {
  margin: 20px 15px;
  border: 1px solid #A9A9A9;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  overflow: hidden;
}

/* 헤더 (제목) */
.faq-header-mobile {
  padding: 18px 20px;
  text-align: center;
  background: linear-gradient(to right, #A52A2A, #8B0000);
  border-bottom: 1px solid #6e0000;
  flex-shrink: 0;
}
.faq-header-mobile h3 {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}
.faq-header-mobile p {
  margin: 0;
  color: #f5f5f5;
  font-size: 12px;
}

/* 몸통 (질문 리스트 + 더보기 버튼) */
.faq-body-mobile {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  position: relative; /* [수정] 화살표 버튼 위치 기준점 */
}

/* ========================================= */
/* ▼▼▼▼▼▼▼▼▼▼ 캐러셀 관련 스타일 (추가) ▼▼▼▼▼▼▼▼▼▼ */
/* ========================================= */

/* 질문 목록을 감싸는 창 (보여지는 영역) */
.faq-carousel-window {
  width: 100%;
  overflow: hidden; /* 이 창을 벗어나는 내용은 숨김 */
}

/* 질문 목록 전체 (움직이는 대상) */
.faq-list-mobile {
  display: flex; /* 가로로 배치 */
  width: 300%; /* 페이지 개수(3개)만큼 너비 설정 */
  transition: transform 0.5s ease-in-out; /* 부드럽게 움직이는 효과 */
}

/* 질문 4개씩 묶는 페이지 */
.faq-page {
  width: 33.3333%; /* 전체 너비의 1/3 */
  flex-shrink: 0; /* 페이지 너비가 줄어들지 않도록 설정 */
  padding: 0 5px; /* 페이지 좌우 여백 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 캐러셀 화살표 버튼 공통 스타일 */
.faq-arrow {
  position: absolute;
  top: 40%; /* 수직 중앙 정렬 */
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: rgba(139, 0, 0, 0.7); /* 반투명 다크 레드 */
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-arrow:hover {
  background-color: rgba(139, 0, 0, 1); /* 호버 시 진하게 */
}
.faq-arrow:disabled {
  opacity: 0.3; /* 비활성화 시 투명도 */
  cursor: not-allowed;
}

/* 왼쪽/오른쪽 화살표 위치 */
.faq-arrow-left {
  left: 5px;
}
.faq-arrow-right {
  right: 5px;
}
/* ▲▲▲▲▲▲▲▲▲▲ 캐러셀 관련 스타일 끝 ▲▲▲▲▲▲▲▲▲▲ */


/* 질문 링크 하나하나 */
.faq-item-link-mobile {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
  background-color: #FFF8F8;
  border: 1px solid #FADCDC;
}
.faq-item-link-mobile:hover {
  background-color: #fbebeb;
  border-color: #F8BABA;
}
.faq-item-link-mobile .q-icon {
  font-weight: 700;
  color: #c0392b;
  margin-right: 10px;
  font-size: 14px;
}
.faq-item-link-mobile .question-text {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* '전체보기' 버튼 */
.faq-more-button-mobile {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  margin-top: 15px;
  text-align: center;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #A52A2A, #8B0000);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.faq-more-button-mobile:hover {
  background: linear-gradient(to right, #B22222, #A52A2A);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
/* BASIC css end */

