.contract-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; /* gap 살짝 줄이면 더 넓어 보임 */
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 40px auto;
  padding: 0 20px; /* 좌우 여백도 추가 */
}

.contract-box {
  display: flex;
  flex-direction: column; /* 세로 정렬 */
  align-items: center;
  justify-content: center; /* 수직 가운데 정렬 */
  text-align: center; /* 텍스트 수평 정렬 */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-decoration: none;
  background-color: #f9f9f9;
  color: #333;
  font-size: 14px;
  height: 50px;
  transition: 0.3s ease;
}

.external-icon {
  font-size: 12px;
  margin-top: 4px;
}

.contract-box:hover {
  background-color: #eef4ff;
}

.contract-box.active {
  background-color: #005eb8;
  color: #fff;
  border-color: #004b94;
  font-weight: bold;
}

/* ========================================= 소개 =====================*/
.contract-intro-wrap {
  background-color: #f9f9f9;
  padding: 30px 20px 50px 20px;
  margin-top: 20px;
}

.contract-info-boxes {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-box {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  background: #f2f5f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 160px;
}

.info-box h4 {
  font-weight: bold;
  color: #004b94;
  margin-bottom: 10px;
}

.info-box p.phone {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
}

.section-title-icon {
  width: 16px;
  height: 16px;
  margin-bottom: 16px;
  display: block;
}

.info-btn {
  display: inline-block;
  background-color: #005eb8;
  color: white;
  padding: 8px 20px; /* ✅ 패딩 살짝 늘림 */
  font-size: 13px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
  width: auto; /* ✅ fit-content처럼 자동 너비 */
  min-width: 120px; /* ✅ 최소 너비 확보 */
  text-align: center;
  margin: 0 auto; /* ✅ 가운데 정렬 핵심 */
}

.contract-caution {
  background-color: #fff;
  border-left: 4px solid #005eb8;
  padding: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.contract-caution .highlight {
  color: #005eb8;
  font-weight: bold;
}

.contract-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.contract-header-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* ========================================= 소개 =====================*/

/*======================계약의 법률 문제===================*/
.legal-topic-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.legal-item {
  margin-bottom: 10px;
}

.toggle-btn {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn .arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.legal-detail {
  display: none;
  margin-top: 5px;
  padding-left: 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.legal-detail.open {
  display: block;
}

/*======================계약의 법률 문제===================*/

.legal-topic-list {
  list-style: none;
  padding-left: 0;
}

.legal-item {
  margin-bottom: 1rem;
  border-left: 3px solid #0074d9;
  padding-left: 1rem;
}

.toggle-btn {
  font-weight: bold;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.toggle-btn .arrow {
  margin-left: 8px;
  font-size: 18px;
}

.legal-detail {
  display: none;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  color: #333;
  font-size: 15px;
}

.legal-detail.open {
  display: block;
}

/*20250710 정보광장 농업인계약서, 생활속의 세무 모바일 */
@media screen and (max-width: 768px) {
  .contract-grid {
    grid-template-columns: repeat(2, 1fr); /* 모바일은 2열로 */
    gap: 10px;
  }

  .contract-box {
    font-size: 13px; /* 글씨 살짝 줄이고 */
    height: auto; /* 높이 고정 해제 */
    padding: 16px 10px; /* 패딩 조정 */
    word-break: keep-all; /* 단어는 줄 단위로 끊기 */
    white-space: nowrap; /* 줄바꿈 허용 */
    line-height: 1.3; /* 줄 간격 살짝 줄임 */
    min-height: 60px; /* 최소 높이 확보 */
    flex-direction: row; /* 가로 배치 */
  }

  .box-text {
    display: block;
    width: 100%;
  }

  .external-icon {
    display: none;
  }

  .contract-info-boxes {
    flex-direction: column;
  }

  .info-box {
    width: 100%;
  }
}
/*20250710 정보광장 농업인계약서, 생활속의 세무 모바일 */

/* 고장시 응급처치 표 스타일 */
.common-table.list {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  background: #fff;
  font-size: 14px;
}
.common-table.list th,
.common-table.list td {
  border: 1px solid #b5c7de;
  padding: 8px 12px;
  vertical-align: top;
  background: #f7fbff;
}
.common-table.list th {
  background: #e6f0fa;
  color: #2471c8;
  font-weight: bold;
  text-align: center;
}
.common-table.list caption {
  text-align: left;
  font-weight: bold;
  color: #ff9b06;
  background: none;
  padding: 0 0 4px 0;
  caption-side: top;
}
.common-table.list ul.ulDash {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}
.common-table.list td {
  background: #fff;
  color: #222;
}
