@charset "UTF-8";

/* CSS Variables */
:root {
  --primary-color: #0070C0;
  --primary-hover: #005a9e;
  --primary-light: #4aceee;
  --text-color: #333;
  --text-light: #555;
  --text-lighter: #666;
  --border-color: #ccc;
  --background-light: #f8f9fa;
  --background-white: #fff;
  --border-radius: 6px;
  --transition: all 0.3s ease;
}

/* Reset CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: auto;
  overflow-y: scroll;
}

html, body {
  height: 100%;
  font-family: 'Nanum Gothic', 'Malgun Gothic', 'Dotum', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

body {
  max-width: 730px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}
em {
  font-style: normal;
}
/* Links */
a {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-color);
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Buttons */
button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

/* Form elements */
input, textarea, select {
  font-size: 16px;
  color: var(--text-light);
  font-family: inherit;
}

/* Korean text handling */
:lang(ko) {
  word-break: keep-all;
}

/* Placeholder styling */
input::placeholder {
  opacity: 0.5;
  color: var(--text-lighter);
}

/* 탭 메뉴 스타일 - 웹표준 개선 */
.tab-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; 
  justify-content: flex-start;
  max-width: 730px;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tab-menu .tab-btn { 
  padding: 8px 12px; 
  background-color: #efefef;
  border: 0; 
  cursor: pointer; 
  font-size: 16px;
  white-space: normal;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  word-break: keep-all;
  line-height: 1.4;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tab-menu .tab-btn:hover,
.tab-menu .tab-btn:focus {
  background-color: #e0e0e0;
  outline: 2px solid #0070C0;
  outline-offset: 2px;
}

.tab-menu .tab-btn.active {
  border: 1px solid #135EAB; 
  border-bottom: 3px solid #135EAB; 
  color: #135EAB;
  background-color: #f0f8ff;
  font-weight: 800;
}



/* 탭 콘텐츠 영역 */

.tab-contents .tab-content { 
  display: none; 
  margin: 15px 0;
}

.tab-contents .tab-content.active { 
  display: block; 
}

/* FAQ 아코디언 전체 컨테이너 */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* FAQ 개별 아이템 */
.faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
  transition: all 0.3s ease;
  overflow: hidden;
}
.faq-item.active .faq-content {
  max-height: 2000px; /* 500px에서 2000px로 증가 */
  padding: 24px;
}
.faq-item:hover {
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  border-color: #0072c3;
}

/* FAQ 헤더 (질문 영역) */
.faq-header {
  padding: 10px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq-header:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

.faq-header:focus {
  /* outline: 2px solid #0072c3; */
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  outline-offset: -2px;
}

/* FAQ 질문 텍스트 */
.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: #161616;
  font-size: 16px;
  line-height: 1.4;
}

/* FAQ 아이콘 (Q, A) */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0072c3 0%, #005a9e 100%);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

/* FAQ 화살표 */
.faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: #525252;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* FAQ 콘텐츠 (답변 영역) */

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
  /* background: #fafafa; */
}

.faq-item.active .faq-content {
  max-height: 3000px; /* 500px에서 3000px로 대폭 증가 */
  padding: 24px;
}


/* FAQ 답변 래퍼 */
.faq-answer-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* FAQ 답변 텍스트 */
.faq-answer {
  color: #525252;
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.faq-answer br {
  margin-bottom: 8px;
}

/* 답변 아이콘 스타일 */
.answer-icon {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}


/* 페이징 - 웹표준 개선 */
.pagination { 
  display: flex; 
  justify-content: center; 
  gap: 5px; 
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0070C0;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a:focus {
  background-color: #0070C0;
  color: #fff;
  border-color: #0070C0;
  outline: none;
}

.pagination .active {
  background-color: #0070C0;
  color: #fff;
  border-color: #0070C0;
}

/* 아코디언 아이콘 스타일 - 중복 제거 및 웹표준 개선 */
.accordion.faq-wrap .ico-acco {
  flex-shrink: 0;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: auto;
  border-radius: 1.2rem;
  font-size: 0.875rem; /* var(--iw-fz-xsm) 대신 명시적 값 사용 */
  font-weight: 700;
  text-align: center;
  line-height: 1.5rem;
  transition: all 0.3s ease;
}

.accordion.faq-wrap .ico-acco.question {
  background-color: #0070C0; /* var(--iw-primary) 대신 명시적 색상 */
  color: #fff;
}

.accordion.faq-wrap .ico-acco.answer {
  background-color: #e6f3ff; /* var(--iw-primary-5) 대신 명시적 색상 */
  color: #0070C0; /* var(--iw-primary) 대신 명시적 색상 */
}

/* 스크린 리더 전용 텍스트 - 접근성 개선 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

legend {
  overflow: hidden;
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  margin: -0.1rem;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* 버튼 스타일 통일 - 웹표준 개선 */
button.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background-color: var(--text-lighter);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

button.back-btn:hover {
  background-color: #005a9e;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button.back-btn:focus-visible {
  outline: 3px solid #4aceee;
  outline-offset: 2px;
}

button.back-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 일반 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  min-height: 40px;
}

.btn:hover {
  background-color: #005a9e;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid #4aceee;
  outline-offset: 2px;
}

.btn.secondary {
  background-color: #6c757d;
}

.btn.secondary:hover {
  background-color: #5a6268;
}

.btn.danger {
  background-color: #dc3545;
}

.btn.danger:hover {
  background-color: #c82333;
}


  /*search검색*/


  .container {
    margin: 15px auto;
    padding: 0.5rem 2rem;
    border-radius: 1.2rem;
    background-color: #f8f9fa;
    max-width: 730px;
    width: 100%;
    box-sizing: border-box;
  }
  .search_box{
    background-color:#ffffff ;
    padding: 20px 10px 5px;
    /*margin:15px 0;*/
}

.count-area span {
  font-size: 15px;
  color: #505050;
  position: relative;
  padding-left: 15px;
  margin-left: 9px;
}
.count-area span em {
  color: #0070C0;
  font-weight: 500;
}

 .count-area span:first-child {
  padding-left: 0;
  margin-left: 0;
}
.count-area span:first-child:before {
  display: none;
}
.count-area span:before {
  position: absolute;
  left: 0;
  top: 2px;
  content: "/";
  font-weight: 400;
}

.srch-area {
  position: relative;
  width: 100%;
  max-width: 730px;
  margin: 0 auto;
  padding: 20px 0;
}

.search-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.search-container label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.search-input-group input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 8px 12px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  max-width: 500px;
}

.search-input-group input[type="text"]:focus {
  border-color: var(--primary-hover);
  /* box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1); */
}

.search-input-group button {
  height: 40px;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 60px;
}

.search-input-group button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.search-input-group button:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.search-input-group button:active {
  transform: translateY(0);
}