/* mandatory-fee.css */

/* 섹션 공통 스타일 */
.section-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
}
.intro-title {
  margin-bottom: 60px; /* 20px에서 60px로 증가 */
}

/* h2 스타일 제거 - layout.css의 .tab-content h2 사용 */

/* 프로세스 섹션 */
.setup-process-section {
  background: #fff;
  margin-bottom: 40px;
}

.process-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.process-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 자금 사용 섹션 */
.fund-usage {
  margin-bottom: 40px;
}

.usage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-item {
  display: flex;
  align-items: center;
  background-color: #f8f9ff;
  padding: 15px;
  border-radius: 4px;
}

.usage-item .number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #4b7bec;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}

.usage-item p {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  word-break: keep-all;
}

/* 카드 그리드 스타일 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.exp-card {
  background-color: #f8f9ff;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.exp-card:hover {
  transform: translateY(-5px);
}

.exp-card h3 {
  font-family: "One-Mobile-Regular", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.exp-card p {
  word-break: keep-all;
}

.card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-icon {
  width: 80px;
  height: 80px;
  background-color: #4b7bec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 24px;
  height: 24px;
  color: white;
}

@media screen and (max-width: 768px) {
  .exp-card h3 {
    font-size: 18px;
  }
  .exp-card p {
    font-size: 14px;
  }
  .card-icon {
    width: 60px;
    height: 60px;
  }
}

/* 케이스 스터디 스타일 */
.case-study {
  margin-bottom: 30px;
}

.item-header {
  margin-bottom: 20px;
}

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

.header-icon {
  width: 50px;
  height: 50px;
  background-color: #d3e8f4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sub-title {
  color: #666;
  font-size: 14px;
}

.content-card {
  background: #f0f7fb;
  border-radius: 8px;
  padding: 24px;
}

/* 정보 테이블 스타일 */
.info-table {
  background: #f0f7fb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.table-row {
  display: flex;
  border-bottom: 1px solid #d3e8f4;
}

.table-row:last-child {
  border-bottom: none;
}

.label {
  width: 100px;
  padding: 16px;
  background: #d3e8f4;
  font-weight: 500;
  flex-shrink: 0;
}

.content {
  padding: 16px;
  flex-grow: 1;
}

/* 이미지 갤러리 스타일 */
.image-gallery {
  margin-top: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* comparison-table 스타일 */
.comparison-container {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-top: 2px solid #333;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  border: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}

.comparison-table thead th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  text-align: center;
}

.comparison-table tbody th {
  position: relative;
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  padding: 20px;
  vertical-align: top;
}

.sub-items {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-item {
  background: #e8f4ef;
  padding: 12px 15px;
  border-radius: 4px;
  font-weight: normal;
  font-size: 14px;
  color: #333;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table colgroup col:first-child {
  width: 25% !important;
}

.section-content {
  margin-bottom: 25px;
}

.section-content:last-child {
  margin-bottom: 0;
}

.section-item {
  font-weight: 500;
  color: #333;
  margin: 20px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.section-item:first-child {
  margin-top: 0;
}

.comparison-table td ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: none;
}

.comparison-table td li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  line-height: 1.5;
  color: #666;
}

.comparison-table td li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #666;
}

.comparison-table td li:last-child {
  margin-bottom: 0;
}

.comparison-table td:nth-child(2) {
  background: #fcfdff;
}

.comparison-table td:nth-child(3) {
  background: #fffcfa;
}

.comparison-table tbody tr:nth-child(7) ~ tr th {
  background: #f4f6f8;
}

.comparison-table tbody tr:nth-child(8) th,
.comparison-table tbody tr:nth-child(9) th {
  background: #f4f6f8;
}

.section-divider {
  margin: 20px 0;
  border-bottom: 1px dashed #ddd;
}

.section-divider:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* layout.css의 반응형 breakpoint에 맞춘 미디어 쿼리 */
@media screen and (max-width: 1919px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .table-row {
    flex-direction: column;
  }

  .label {
    width: 100%;
    padding: 12px 16px;
  }

  .content {
    padding: 12px 16px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
    font-size: 14px;
  }

  .sub-items {
    font-size: 12px;
  }

  .comparison-table td ul {
    padding-left: 15px;
  }

  .section-item {
    font-size: 14px;
  }

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

/* 검색 영역 스타일 */
.board-header {
  display: flex;
  justify-content: flex-end; /* 오른쪽 정렬로 변경 */
  margin-bottom: 30px;
}

.search-area {
  display: flex;
  gap: 10px;
  width: 500px; /* 너비 증가 */
}

.search-select {
  min-width: 120px; /* 셀렉트 박스 너비 증가 */
  padding: 12px 15px; /* 패딩 증가 */
  border: 1px solid #e9e9e9;
  border-radius: 15px; /* border-radius 15px로 설정 */
  font-size: 14px;
  color: #808080;
  background-color: #e9e9e9;
}

.search-input-wrapper {
  display: flex;
  flex-grow: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 15px; /* 패딩 증가 */
  border: 1px solid #e9e9e9;
  border-radius: 15px; /* border-radius 15px로 설정 */
  font-size: 14px;
  color: #808080;
  background-color: #e9e9e9;
}

.search-input::placeholder {
  color: #808080;
}

.search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: url("../img/search-icon.png") no-repeat center;
  width: 24px;
  height: 24px;
  border: none;
  cursor: pointer;
  opacity: 0.6; /* 아이콘 색상 조정을 위한 투명도 */
}

/* 페이지네이션 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 40px;
}

.pages {
  display: flex;
  gap: 5px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  color: #666;
}

.pagination .prev,
.pagination .next {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.pagination .prev {
  background-image: url("../img/main/footer/next_arrow.png");
  transform: rotate(180deg); /* prev는 왼쪽을 향하도록 회전 */
}

.pagination .next {
  background-image: url("../img/main/footer/next_arrow.png");
}

.pagination a.active {
  color: #4169e1;
  font-weight: bold;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
  .search-area {
    max-width: 100%;
  }

  .search-select {
    min-width: 80px;
  }
}

.process-flow {
  background-color: #f8f8f8;
  padding: 40px;
  margin: 30px 0;
}

.process-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.process-row.last-row {
  margin-bottom: 0;
}

.process-item {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  /* 포커스 표시를 위한 아웃라인 스타일 */
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.process-item:focus {
  outline-color: #000;
}

.process-item p {
  color: #ffffff; /* 모든 텍스트는 흰색으로 통일 */
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: 500; /* 가독성을 위해 약간 두껍게 */
}

.process-arrow {
  font-size: 24px;
  color: #333; /* 화살표 색상을 더 진하게 (7:1 이상의 대비) */
}

/* 접근성이 개선된 색상 스타일 */
.blue-light {
  background-color: #3174ad; /* 더 진한 파란색으로 변경 */
}

.blue {
  background-color: #1b4b78; /* 진한 네이비 */
}

.purple {
  background-color: #5e3a98; /* 진한 보라색 */
}

.green {
  background-color: #2d7a4d; /* 진한 녹색 */
}

.orange {
  background-color: #c15611; /* 진한 주황색 */
}

.brown {
  background-color: #5c4023; /* 진한 갈색 */
}

.gold {
  background-color: #8b6b1f; /* 진한 골드 */
}

/* 스크린리더를 위한 보조 텍스트 */
.process-arrow .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 호버 및 포커스 상태 */
.process-item:hover,
.process-item:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* 반응형 */
@media (max-width: 768px) {
  .process-row {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .process-item {
    width: 160px;
    height: 160px;
  }

  .process-item p {
    font-size: 14px; /* 모바일에서 텍스트 크기 조정 */
  }
}

/* 하이콘트라스트 모드 대응 */
@media (forced-colors: active) {
  .process-item {
    border: 2px solid currentColor;
  }

  .process-arrow {
    color: currentColor;
  }
}

.process-table {
  display: grid;
  grid-template-columns: 100px repeat(3, 1fr);
  max-width: 1200px;
  margin: 20px auto;
  border: 1px solid #ddd;
}

/* 사이드바 스타일 */
.sidebar {
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
}

.sidebar-item {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #333;
}

.sidebar-item:first-child {
  height: 60px; /* 첫 번째 빈칸의 높이 조정 */
  border-bottom: 1px solid #ddd;
}

.sidebar-item:not(:first-child) {
  border-bottom: 1px solid #ddd;
}

.sidebar-item:last-child {
  border-bottom: none;
}

/* 메인 섹션 스타일 */
.section {
  padding: 20px;
  border-right: 1px solid #ddd;
}

.section:last-child {
  border-right: none;
}

/* 섹션 헤더 스타일 */
.section-header {
  background-color: #4a6b8a;
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  margin: -20px -20px 20px -20px;
}

/* 리스트 스타일 */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.5;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background-color: #4a6b8a;
  border-radius: 50%;
}

/* 비디오 리스트 스타일 */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.video-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  background-color: #f8f9fa;
}

.video-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 157px; /* 16:9 비율 유지 */
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.video-info {
  flex: 1;
}

.video-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.video-date {
  font-size: 14px;
  color: #666;
}

/* 검색 영역 스타일 업데이트 */
.board-header {
  margin: 40px 0;
}

.search-area {
  width: 400px;
}

.tg {
  border-collapse: separate; /* collapse에서 separate로 변경 */
  border-spacing: 10px; /* 셀 간격 추가 */
  width: 100%;
  min-width: 600px;
  margin: 0 auto;
  background-color: #fff; /* 간격 사이 배경색 지정 */
}

/* 테이블의 네 모서리만 둥글게 처리 */
.tg tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.tg tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.tg td {
  border-color: black;
  border-style: hidden;
  border-width: 0;
  font-family: "ONE-Mobile-Regular", sans-serif;
  font-size: 16px;
  overflow: hidden;
  padding: 20px 25px; /* 좌우 패딩 증가 */
  word-break: normal;
  line-height: 1.6;
}

.tg th {
  border-color: black;
  border-style: hidden;
  border-width: 0;
  font-family: "ONE-Mobile-Regular", sans-serif;
  font-size: 16px;
  font-weight: normal;
  overflow: hidden;
  padding: 20px 25px; /* 좌우 패딩 증가 */
  word-break: normal;
}

/* 각 열의 최소 너비 조정 */
.tg td:first-child {
  min-width: 15%;
}

.tg td:nth-child(2) {
  min-width: 15%; /* 두 번째 열 최소 너비 설정 */
}

.tg td:nth-child(3),
.tg td:nth-child(4) {
  min-width: 35%; /* 세 번째, 네 번째 열 최소 너비 증가 */
}

/* 나머지 클래스들은 동일하게 유지 */
.tg .tg-2vuh {
  background-color: #faf5e6;
  text-align: left;
  vertical-align: top;
}

.tg .tg-tw0m {
  color: #4b826c;
  background-color: #daf3e9;
  text-align: left;
  vertical-align: top;
}

.tg .tg-kftd {
  background-color: #efefef;
  text-align: left;
  vertical-align: top;
}

.tg .tg-y698 {
  color: #848484;
  background-color: #efefef;
  border-color: inherit;
  text-align: left;
  vertical-align: top;
}

.tg .tg-f1ko {
  color: #0d3147;
  background-color: #f0f7fb;
  border-color: inherit;
  text-align: left;
  vertical-align: top;
}

.tg .tg-drro {
  color: #553b10;
  background-color: #faf5e6;
  border-color: inherit;
  text-align: left;
  vertical-align: top;
}

.tg .tg-7aar {
  background-color: #f0f7fb;
  text-align: left;
  vertical-align: top;
}

.org-tbl {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  max-width: 1400px; /* 최대 너비 설정 */
  margin: 0 auto; /* 중앙 정렬 */
}

.org-tbl td {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  font-family: "ONE-Mobile-Regular", sans-serif; /* 폰트 변경 */
  font-size: 16px; /* 글자 크기 증가 */
  overflow: hidden;
  padding: 20px 25px; /* 여백 증가 */
  word-break: normal;
  line-height: 1.6; /* 줄간격 추가 */
}

.org-tbl th {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  font-family: "ONE-Mobile-Regular", sans-serif; /* 폰트 변경 */
  font-size: 16px; /* 글자 크기 증가 */
  font-weight: 500; /* 약간 더 굵게 */
  overflow: hidden;
  padding: 20px 25px; /* 여백 증가 */
  word-break: normal;
  position: relative;
}

/* 각 열의 최소 너비 설정 */
.org-tbl td:first-child {
  min-width: 120px;
}

.org-tbl td:not(:first-child) {
  min-width: 300px;
}

@media screen and (max-width: 768px) {
  .org-tbl td:not(:first-child) {
    min-width: 200px; /* 모바일에서 최소 너비 축소 */
  }
}

/* 기존 배경색 클래스 유지 */
.org-tbl .org-gray {
  background-color: #718297;
  text-align: left;
  vertical-align: top;
}

.org-tbl .org-border {
  border-color: #000000;
  text-align: left;
  vertical-align: top;
}

.org-tbl .org-light {
  background-color: #9aa7b1;
  border-color: #333333;
  text-align: left;
  vertical-align: top;
}

.org-tbl .org-blue {
  background-color: #48648a;
  text-align: left;
  vertical-align: top;
}

.org-tbl .org-basic {
  text-align: left;
  vertical-align: top;
}

.step {
  padding: 30px;
  background: #efefef;
  border-radius: 20px;
}

.step .org-tbl {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  max-width: 1400px; /* 최대 너비 설정 */
  margin: 0 auto; /* 중앙 정렬 */
}

.step .org-tbl td {
  border-color: black;
  border-style: hidden;
  border-width: 0;
  font-family: "ONE-Mobile-Regular", sans-serif; /* 폰트 변경 */
  font-size: 16px; /* 글자 크기 증가 */
  overflow: hidden;
  padding: 20px 25px; /* 여백 증가 */
  word-break: normal;
  line-height: 1.6; /* 줄간격 추가 */
}

.step .org-tbl th {
  border-color: black;
  border-style: hidden;
  border-width: 0;
  font-family: "ONE-Mobile-Regular", sans-serif; /* 폰트 변경 */
  font-size: 16px; /* 글자 크기 증가 */
  font-weight: 500; /* 약간 더 굵게 */
  overflow: hidden;
  padding: 20px 25px; /* 여백 증가 */
  word-break: normal;
  position: relative;
}

.step .org-tbl .org-basic {
  background: #ffffff;
}

/* 화살표 이미지를 위한 새로운 스타일 */
.cell-arrow {
  position: absolute;
  right: -15px; /* 오른쪽 보더 위에 위치 */
  top: 50%; /* 세로 중앙 정렬 */
  transform: translateY(-50%);
  width: 30px; /* 이미지 크기 조정 */
  height: 30px;
  z-index: 9999; /* z-index 값 증가 */
}

.expenditure-section {
  margin-top: 150px;
}
