body {
  font-family: "Pretendard-Regular", sans-serif;
  margin: 0;
  width: 100%;
}

#header {
  position: fixed;
  top: 0;
  z-index: 2;
  width: 100%;
}

main {
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
  color: #444;
}

main h1 {
  font-size: 32px;
  font-weight: bold;
  color: #39a1db;
  margin-bottom: 24px;
}

main p {
  font-size: 18px;
  margin-bottom: 16px;
}

main img {
  max-width: 100%;
  border-radius: 8px;
}

.cert-desc .item > div:last-child {
  word-break: break-word !important;
  overflow-wrap: anywhere !important; /* ✅ 이게 핵심 */
}

/* 카드 */
.cert-ultra {
  padding: 150px 5vw;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f7faff, #eef4ff);
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  max-width: 100%;
  margin: auto;
}

.cert-ultra-heading {
  text-align: center;
  margin-bottom: 60px;
}

.cert-ultra-heading h2 {
  font-size: 36px;
  font-weight: 900;
  color: #012a88;
  margin-bottom: 0px;
}

.cert-ultra-heading p {
  font-size: 16px;
  color: #475569;
  margin-top: 6px;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: break-word;
}

.cert-ultra-block {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
  border-left: 6px solid #0e4fe3;
  border-right: 6px solid #0e4fe3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cert-ultra-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.cert-ultra-block-title {
  display: flex;
  flex-direction: column;
}

.cert-title-box {
  display: flex;
  align-items: center;
}

.cert-title {
  font-size: 20px;
  font-weight: 800;
  color: #0e3b8f;
  margin: 0;
  display: inline-block;
  margin-right: 15px;
}

.cert-subtitle {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  display: inline-block;
  margin: 0;
}

.cert-desc {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
  word-break: keep-all;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.cert-ultra-block-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cert-icon {
  font-size: 24px;
  margin-top: -2px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.notice-icon {
  font-size: 18px;
  margin-right: 12px;
}

.notice-text {
  margin: 0;
  word-break: keep-all;
}

.notice-strong {
  display: flex;
  align-items: center;
  background: #e0f2ff;
  border: 2px solid #1d4ed8;
  color: #1e3a8a;
  border-radius: 20px;
  padding: 16px 20px;
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.notice-strong-icon {
  margin-right: 12px;
  font-size: 20px;
  color: #dc2626;
}

.notice-strong p {
  margin: 0;
  word-break: keep-all;
  flex: 1;
}

.cert-with-image {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cert-with-image .text-part {
  flex: 1 1 60%;
  min-width: 280px;
}

.cert-with-image .image-part {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cert-with-image img {
  max-width: 160px;
  border-radius: 4px;
}

.subpage-links {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.subpage-links a {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subpage-links a:hover {
  background: #dbeafe;
}


.submenu {
  position: relative;
}

.sub-menu-item {
  position: relative;
}

.sub-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  display: none;
  background: white;
  padding: 10px 0;
  border: 1px solid #ddd;
  z-index: 10;
  min-width: 180px;
}

.sub-menu-item:hover .sub-submenu {
  display: block;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.card-box {
  flex: 1 1 300px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 16px;
}

.card-title {
  background: #1e40af;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.card-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  padding: 0 10px;
}

.cert-ultra .cert-desc ul {
  list-style: none;
  padding-left: 0;
}

.medical-purpose-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* ✅ 가운데 정렬 */
  gap: 24px;
  margin-top: 24px;
}

.medical-purpose-list .item {
  width: calc((100% - 72px) / 4);
  /* ✅ 정확한 4등분 (gap 고려) */
  min-width: 180px;
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}

.medical-purpose-list .num {
  font-weight: bold;
  color: #fff;
  background: #facc15;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.medical-purpose-list .txt {
  font-size: 15px;
  color: #333;
}


/* === 의료기기 등급 박스 === */
.medical-grade-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* ✅ 가운데 정렬 */
  gap: 24px;
  margin: 32px 0;
}

.medical-grade-boxes .grade {
  width: calc((100% - 72px) / 4);
  /* ✅ 정확한 4등분 (gap 고려) */
  min-width: 180px;
  text-align: center;
  background: #f1f5f9;
  padding: 16px;
  border-radius: 6px;
  box-sizing: border-box;
}

.medical-grade-boxes .grade .title {
  font-weight: bold;
  font-size: 16px;
  padding: 8px 0;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 6px;
}

.grade.g1 .title {
  background: #22c55e;
}

.grade.g2 .title {
  background: #eab308;
}

.grade.g3 .title {
  background: #f97316;
}

.grade.g4 .title {
  background: #dc2626;
}

.medical-grade-boxes .desc {
  font-size: 14px;
  color: #333;
}


/* === 판단 기준 박스 === */
.medical-criteria-box {
  background: #f3f4f6;
  padding: 24px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.medical-criteria-box strong {
  font-weight: 600;
  color: #1e3a8a;
  display: block;
  margin-bottom: 12px;
}

.medical-criteria-box ul {
  margin: 0;
  padding-left: 18px;
}

/* 🔷 공통 강조 배지 소제목 */
.subtitle-badge {
  display: inline-block;
  text-align: center;
  font-weight: bold;
  font-size: 17px;
  border-radius: 20px;
  padding: 10px 24px;
  margin: 24px auto 16px;
}

.subtitle-badge.blue {
  background: #1e3a8a;
  color: #fff;
}

.subtitle-badge.yellow {
  background: #facc15;
  color: #000;
}

/* 🔶 리스트 정렬: 번호 + 텍스트 (파란색, 노란색 공통) */
.number-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: center;
  gap: 16px 32px;
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.number-list-grid .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #1f2937;
}

.number-list-grid .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
}

.number-list-grid.blue .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: #0033cc;
  color: white;
}

.number-list-grid.yellow .num {
  background-color: #facc15;
  color: #000;
}

/* ⚪️ 회색 버튼 스타일 리스트 */
.cert-button-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cert-button-box .gray-box {
  background: #e5e7eb;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #111827;
}

.mas-process-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: center;
  margin-top: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mas-process-list .item {
  flex: 1 1 260px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #1f2937;
}

.mas-process-list .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  background-color: #1e3a8a;
  color: #fff;
  flex-shrink: 0;
}

.subpage-links.ce-buttons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  min-width: 140px;
}

.subpage-links.ce-buttons .title {
  font-weight: 600;
  font-size: 15px;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.subpage-links.ce-buttons .desc {
  font-size: 13px;
  color: #1e40af;
  opacity: 0.85;
  line-height: 1.3;
  text-align: center;
}

.country-search-container {
  margin: 40px auto;
  text-align: center;
}

.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.country-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 200px;
  padding: 15px;
  transition: 0.2s;
  text-align: left;
}

.country-card:hover {
  background: #f0f0f0;
}

.filter-wrap {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px auto;
  max-width: 800px;
}

#continentFilter {
  padding: 12px 16px;
  font-size: 16px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  min-width: 160px;
}

#countrySearch {
  padding: 0 16px;
  font-size: 16px;
  flex: 1;
  min-width: 320px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* ✅ RoHS 규제 기준 표 스타일 */
.rohs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  border: 1px solid #d1d5db;
  margin-top: 12px;
}

.rohs-table thead tr {
  background-color: #00558c;
  color: #ffffff;
}

.rohs-table th,
.rohs-table td {
  padding: 12px 10px;
  font-size: 14px;
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  font-weight: 600;
}

.rohs-table td:last-child,
.rohs-table th:last-child {
  border-right: none;
}

.rohs-table tbody tr {
  background-color: #f9fafb;
}

/* ✅ 프탈레이트 4종 pill 스타일 */
.phthalate-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 12px;
  align-items: center;
}

.phthalate-pill {
  background: #2b2b2b;
  color: white;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 9999px;
  font-weight: 500;
}

.phthalate-separator {
  font-size: 18px;
  color: #888;
}

.cert-info-box {
  background: #f8f9fa;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.faq-list {
  max-width: 900px;
  /* ✅ 폭 제한 */
  margin: 0 auto;
  /* ✅ 중앙 정렬 */
  padding: 20px 24px;
  /* ✅ 적당한 내부 여백 */
  background: #fff;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 25px;
  display: block;
  color: #003366;
  transition: all 0.2s ease;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: #888;
  transition: transform 0.2s ease;
}

.faq-item input:checked+.faq-question::after {
  content: '-';
  transform: rotate(180deg);
  color: #0058d4;
}

.faq-answer {
  display: none;
  padding: 10px 0 0 0;
  color: #444;
  line-height: 1.6;
}

.faq-item input:checked+.faq-question+.faq-answer {
  display: block;
}

form {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: #003366;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background-color: #0058d4;
}

#inquiryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

#inquiryOverlay .inquirySpinner {
  width: 60px;
  height: 60px;
  border: 6px solid #fff;
  border-top-color: #888;
  border-radius: 50%;
  animation: inquirySpin 1s linear infinite;
}

@keyframes inquirySpin {
  to {
    transform: rotate(360deg);
  }
}

#inquiryModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  text-align: center;
}

#inquiryModal button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #4CAF50;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.contact-page .cert-ultra-block {
  padding: 40px 40px;
  border-left: 4px solid #0e4fe3;
  border-right: 4px solid #0e4fe3;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page input[type="file"],
.contact-page textarea {
  transition: border 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  appearance: none;
}

.contact-page input:focus,
.contact-page textarea:focus {
  border-color: #0e4fe3;
  box-shadow: 0 0 0 3px rgba(14, 79, 227, 0.2);
  outline: none;
}

.contact-page button[type="submit"] {
  background-color: #003366;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-page button[type="submit"]:hover {
  background-color: #0e4fe3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(14, 79, 227, 0.25);
}

.contact-page .cert-ultra-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
  border-left: 4px solid #0e4fe3;
  border-right: 4px solid #0e4fe3;
  border-radius: 16px;
}

.contact-page input[type="file"] {
  max-width: 100%;
  box-sizing: border-box;
}

.contact-page .form-group {
  overflow-x: hidden;
}

.contact-page textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-page input:focus,
.contact-page textarea:focus {
  border-color: #0e4fe3;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(14, 79, 227, 0.15);
  outline: none;
}

.contact-page .form-group {
  margin-bottom: 20px;
}

.contact-page label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.contact-page label .required {
  color: #d10000;
  margin-left: 4px;
  font-weight: bold;
}

.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: white;
  margin-bottom: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.notice-item:hover {
  color: #0e4fe3;
}

.notice-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.notice-date {
  font-size: 14px;
  color: #777;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-number {
  font-size: 14px;
  color: #888;
  min-width: 30px;
  text-align: left;
}

.notice-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-description {
  margin: 0;
}

.notice-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 15px;
}

.notice-nav a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.notice-nav a:hover {
  text-decoration: underline;
}

/* 🔧 이전글만 있을 때 → 왼쪽 정렬 */
.notice-nav.only-prev {
  justify-content: flex-start;
}

/* 🔧 다음글만 있을 때 → 오른쪽 정렬 */
.notice-nav.only-next {
  justify-content: flex-end;
}

.grant-item {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  background-color: #fff;
}

.grant-item h3 {
  margin-top: 0;
}

.grant-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.grant-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.grant-link {
  display: inline-block;
  margin-top: 5px;
  color: #007bff;
  font-weight: 500;
}

.grant-link:hover {
  text-decoration: underline;
}

.grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.grant-meta strong {
  color: #888;
  margin-right: 4px;
  font-weight: 700;
}

.grant-meta a {
  color: #007bff;
  font-weight: 600;
}

.grant-meta div {
  min-width: 230px;
  line-height: 1.6;
}

.grant-radio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.grant-radio-filter button {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.grant-radio-filter button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.grant-filters select,
.grant-filters input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.grant-filters button {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.grant-filters button:hover {
  background: #0056b3;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
}

.pagination button {
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

.pagination button.active {
  background-color: #00b894;
  color: #fff;
  border-color: #00b894;
  font-weight: bold;
}

.grant-summary {
  text-align: right;
  font-size: 14px;
  color: #555;
}

.grant-attachment {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
  /* 이 줄이 항상 한 줄 아래에 오게 해줌 */
  color: #888;
}

.grant-attachment a {
  color: #007bff;
  text-decoration: underline;
}

/* 기본 버튼형 보이기 */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 드롭다운 감춤 */
.responsive-select {
  display: none;
}

.result-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin-top: 16px;
  justify-self: center;
  table-layout: fixed;
  word-break: break-word;
}

.result-table th,
.result-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  word-break: break-word;
  white-space: normal;
  font-size: 15px;
}

.result-table th {
  background-color: #f0f0f0;
  width: 30%;
}

#result-container {
  text-align: center;
  margin-top: 30px;
}

.search-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  max-width: 720px;
  margin: 0 auto;
}

.search-form-inline .input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-form-inline label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.search-form-inline input[type="text"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background: #f9f9f9;
}

#searchBtn {
  height: 47px;
  padding: 0 20px;
  font-size: 15px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.kc-result-table {
  width: 100%;
  max-width: 780px;
  border-collapse: collapse;
  margin-top: 16px;
  table-layout: fixed;
  word-break: break-word;
}

.kc-result-table th,
.kc-result-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  font-size: 15px;
}

.kc-result-table th:nth-child(1),
.kc-result-table td:nth-child(1) {
  width: 5%;
}

.kc-result-table th:nth-child(2),
.kc-result-table td:nth-child(2) {
  width: 20%;
}

.kc-result-table th:nth-child(3),
.kc-result-table td:nth-child(3) {
  width: 46%;
}

.kc-result-table th:nth-child(4),
.kc-result-table td:nth-child(4) {
  width: 9%;
}

.kc-result-table th:nth-child(5),
.kc-result-table td:nth-child(5) {
  width: 20%;
}

.kc-result-table th {
  background-color: #f0f0f0;
}

#kc-result-container {
  justify-items: center;
  text-align: center;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar select,
.search-bar input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  flex: 1;
}

.search-bar select {
  max-width: 120px;
}

.search-bar input {
  flex: 2;
}

.search-bar button {
  padding: 10px 20px;
  background-color: #043f75;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background-color: #022e59;
}

#searchValue {
  max-width: 400px;
}

#modal-content ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0 0 10px;
}

/* 🧱 모달 외관 */
#detail-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 30px;
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
}

/* 🧾 정보 항목들 */
#modal-content p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

#modal-content p strong {
  color: #0066cc;
  display: inline-block;
  width: 140px;
}

/* 🔹 그룹 헤더 */
#modal-content h2,
#modal-content h3 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

/* 🖼 이미지 스타일 */
#modal-content img {
  border-radius: 6px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

#modal-content img:hover {
  transform: scale(1.05);
}

/* ❌ 닫기 버튼 */
#detail-modal button {
  background-color: #ff5c5c;
  color: white;
  border: none;
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  float: right;
}

#detail-modal .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 18px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

#detail-modal .close-btn:hover {
  color: #000;
}

@media (max-width: 600px) {
  .search-form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  #searchBtn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cert-ultra {
    padding: 20px 24px;
    padding-top: 150px;
  }

  .cert-ultra-heading h2 {
    font-size: 28px;
  }

  .cert-ultra-block {
    padding: 28px 20px;
  }

  .cert-title {
    font-size: 18px;
  }

  .cert-title-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-title {
    margin-right: 0;
    margin-bottom: 4px;
  }

  .cert-icon {
    display: none;
  }

  .cert-subtitle {
    font-size: 13px;
  }

  .cert-desc {
    font-size: 14px;
  }

  .notice-emphasis {
    font-size: 14px;
    padding: 10px 16px;
  }

  .notice-icon {
    font-size: 16px;
  }

  .notice-text {
    font-size: 14px;
  }

  .cert-with-image {
    flex-direction: column;
    align-items: center;
  }

  .cert-with-image .image-part {
    justify-content: center;
  }

  .cert-desc h4 {
    font-size: 15px !important;
  }

  .cert-desc p {
    font-size: 14px !important;
  }

  .cert-desc .card-title {
    font-size: 15px;
  }

  .cert-desc .card-text {
    font-size: 14px;
  }

  .contact-page .cert-ultra-block {
    padding: 28px 16px;
  }

  .contact-page .cert-ultra-block {
    padding: 28px 16px;
  }

  .contact-page form {
    padding: 0 8px;
  }

  .contact-page input[type="text"],
  .contact-page input[type="email"],
  .contact-page input[type="tel"],
  .contact-page input[type="file"],
  .contact-page textarea {
    font-size: 16px;
    padding: 11px;
  }

  .contact-page .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .contact-page .form-row .form-group {
    width: 100%;
  }

  .contact-page .cert-title {
    font-size: 20px;
  }

  .contact-page .cert-subtitle {
    font-size: 13px;
  }

  .contact-page .cert-ultra-block {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-page form {
    width: 100%;
    box-sizing: border-box;
  }

  .button-group {
    display: none;
  }

  .responsive-select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {

  .medical-purpose-list .item,
  .medical-grade-boxes .grade {
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {

  .medical-purpose-list .item,
  .medical-grade-boxes .grade {
    width: 100%;
  }
}