:root {
  --bg-medical: #eefafd;
  --text-medical: #2c5282;
  --border-medical: #bee3f8;

  --bg-it: #f7fafc;
  --text-it: #2d3748;
  --border-it: #e2e8f0;

  --bg-arts: #fff5f7;
  --text-arts: #702459;
  --border-arts: #fed7e2;

  --bg-edu: #fffaf0;
  --text-edu: #744210;
  --border-edu: #feebc8;

  --bg-biz: #f0fff4;
  --text-biz: #22543d;
  --border-biz: #c6f6d5;

  --bg-safety: #fff5f5;
  --text-safety: #742a2a;
  --border-safety: #fed7d7;

  --bg-science: #fafffa;
  --text-science: #234e52;
  --border-science: #b2f5ea;

  --bg-industry: #f7fafc;
  --text-industry: #2d3748;
  --border-industry: #cbd5e0;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  margin: 0;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
header {
  background-color: #2d3748;
  color: white;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
header p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}
.btn-inquiry {
  background-color: #4a5568;
  color: white;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-inquiry:hover {
  background-color: #2d3748;
  border-color: white;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.category-section {
  margin-bottom: 60px;
}
.category-title {
  padding-bottom: 10px;
  border-bottom: 2px solid #edf2f7;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: #1a202c;
  font-weight: 700;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Category Specific Styles */
.category-section:nth-of-type(1) .card { background-color: var(--bg-medical); border: 1px solid var(--border-medical); }
.category-section:nth-of-type(1) .card h2 { color: var(--text-medical); }

.category-section:nth-of-type(2) .card { background-color: var(--bg-it); border: 1px solid var(--border-it); }
.category-section:nth-of-type(2) .card h2 { color: var(--text-it); }

.category-section:nth-of-type(3) .card { background-color: var(--bg-arts); border: 1px solid var(--border-arts); }
.category-section:nth-of-type(3) .card h2 { color: var(--text-arts); }

.category-section:nth-of-type(4) .card { background-color: var(--bg-edu); border: 1px solid var(--border-edu); }
.category-section:nth-of-type(4) .card h2 { color: var(--text-edu); }

.category-section:nth-of-type(5) .card { background-color: var(--bg-biz); border: 1px solid var(--border-biz); }
.category-section:nth-of-type(5) .card h2 { color: var(--text-biz); }

.category-section:nth-of-type(6) .card { background-color: var(--bg-safety); border: 1px solid var(--border-safety); }
.category-section:nth-of-type(6) .card h2 { color: var(--text-safety); }

.category-section:nth-of-type(7) .card { background-color: var(--bg-science); border: 1px solid var(--border-science); }
.category-section:nth-of-type(7) .card h2 { color: var(--text-science); }

.category-section:nth-of-type(8) .card { background-color: var(--bg-industry); border: 1px solid var(--border-industry); }
.category-section:nth-of-type(8) .card h2 { color: var(--text-industry); }

.card {
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}
.card::after {
  content: '자세히 보기';
  position: absolute;
  bottom: -30px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
}
.card:hover::after {
  bottom: 20px;
  opacity: 0.7;
}

.card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card p {
  color: #4a5568;
  font-size: 0.95rem;
  margin: 8px 0;
}
.card strong {
  color: #2d3748;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: #a0aec0;
  cursor: pointer;
  transition: color 0.2s;
}
.close-modal:hover {
  color: #4a5568;
}
#modal-title {
  margin-top: 0;
  font-size: 2rem;
  color: #1a202c;
  border-bottom: 3px solid #edf2f7;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
#modal-body {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 40px;
  background: #2d3748;
  color: white;
  margin-top: 80px;
}

/* Form Styles */
.form-section {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.form-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #4a5568;
}
button[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #2d3748;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.2s;
}
button[type="submit"]:hover {
  background-color: #1a202c;
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .nav-area {
    margin-top: 20px;
  }
  .modal-content {
    padding: 30px;
  }
}
