/* Reset & Base Styles */
body {
  background-color: #121212;
  color: #f8f9fa;
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding-top: 80px;
  line-height: 1.6;
}

/* Responsive Navigation Bar */
.navbar {
  background-color: #1f1f1f;
  justify-content: center; /* 가운데 정렬 */
  padding: 10px 16px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: center; /* 내부 링크들도 가운데 정렬 */
}

.nav-logo {
  color: #66b2ff;
  font-weight: bold;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: #66b2ff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #333;
  color: #fff;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: #66b2ff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #1f1f1f;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    border-top: 1px solid #333;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    border-bottom: 1px solid #333;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    word-break: keep-all;
    white-space: normal;
  }

  .hero-content p,
  .typing-container {
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    padding: 0 10px;
  }  

}

/* Section Styles */
.section {
  background-color: #181818;
  padding: 80px 20px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.section h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
  padding-bottom: 4px;
}

.section p.lead {
  color: #adb5bd;
  max-width: 800px;
  margin: 0 auto 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: #f8f9fa;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #0d6efd;
}

.card h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.card h3 {
  font-size: 1.1rem;
  margin: 8px 0;
  font-weight: 600;
  color: #f1f3f5;
}

.card p {
  font-size: 0.95rem;
  color: #ced4da;
  text-align: center;
}

.inputs table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 0px;
  color: #f8f9fa;
}

.inputs th {
  white-space: nowrap;
  width: 180px;
  text-align: right;
  padding-right: 12px;
  vertical-align: middle;
}

.inputs td {
  text-align: left;
  vertical-align: middle;
}

.inputs input {
  width: 100px;
  padding: 8px;
  background-color: #2a2a2a;
  color: #f8f9fa;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 0.95rem;
}

.inputs td input[type="number"],
.inputs td input[type="text"] {
  text-align: center;
}

button {
  background-color: #444;
  color: #f8f9fa;
  border: 1px solid #666;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

button:hover {
  background-color: #555;
  transform: translateY(-1px);
}

input, textarea {
  background-color: #2a2a2a;
  color: #f8f9fa;
  border: 1px solid #444;
  width: 100%;
  padding: 10px;
  margin-top: 4px;
}

footer {
  background-color: #1a1a1a;
  color: #868e96;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

footer a {
  color: #66b2ff;
}

.hero {
  height: 100vh;
  background: url('main2.png') center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  transform: translateY(-30%);
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-content a.button {
  padding: 10px 24px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.hero-content a.button:hover {
  background: #fff;
  color: #000;
}

.note {
  font-size: 0.85rem;
  color: #adb5bd;
}

.chart-wrapper {
  position: relative;
  height: 400px;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.chart-wrapper canvas {
  display: block;
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  margin: 0 auto;
}

section table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.9rem;
}

section table thead {
  background-color: #212529;
  color: #ffffff;
}

section table td, section table th {
  padding: 10px;
  border: 1px solid #444;
  text-align: center;
}

.inputs td label {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  margin-right: 0px;
  font-size: 0.95rem;
  color: #f8f9fa;
  cursor: pointer;
  justify-content:flex-start;
}

.inputs td input[type="radio"] {
  width: 16px;                /* 원하는 크기 */
  height: 16px;
  margin-right: 8px;
  padding: 0;                 /* 안전하게 여백 제거 */
  vertical-align: middle;     /* 텍스트와 정렬 */
  accent-color: #0d6efd;      /* 파란색 강조 */
}
.summary-box {
  margin-top: 30px;
  background: #f0f4f8;
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.card img.card-image {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
