html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #eef4f8;
  margin: 0; padding: 0;
  color: #222;
}

.container {
  max-width: 760px;
  margin: 100px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h1 {
  font-size: 28px;
  text-align: center;
  color: #0a4d74;
  margin-bottom: 30px;
}

.toc {
  background: #f4f7fb;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toc li a {
  display: block;
  background: white;
  color: #0a4d74;
  font-weight: 500;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid #d0e4f5;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.toc li a:hover {
  background: #e1f0ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card {
  background: #fdfdfd;
  border: 1px solid #d6e4f0;
  border-left: 5px solid #2196f3;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.card h2 {
  margin-top: 0;
  color: #1b5e20;
}
.card ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.7;
}

/* 폼 */
.form-section {
  margin-bottom: 16px;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
select, input[type="number"] {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* 결과 박스 */
.result-box {
  background: #fffbe6;
  border-left: 5px solid #ff9800;
  padding: 16px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 12px;
}

/* 신청 버튼 */
.apply-button {
  background: #ff9800;
  color: white;
  font-size: 20px;
  padding: 18px 32px;
  border: none;
  border-radius: 12px;
  animation: floatUpDown 2s infinite ease-in-out, blink 1.5s infinite;
  display: block;
  margin: 24px auto 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.apply-button:hover {
  transform: translateY(-6px);
  background: #ffb300;
}
.apply-button.no-underline {
  text-decoration: none !important;
}

/* 링크 버튼 */
.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #43a047;
  margin: 60px 0 20px;
}
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 60px;
}
.link-btn {
  display: block;
  width: 320px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a80, #ffe5e5);
  color: #b71c1c;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border: 2px solid #ffcdd2;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.link-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #ff5252, #ffe5e5);
  color: #880e4f;
}
.link-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-30deg);
  animation: shineLink 3s infinite;
}

.link-btn-light {
  display: block;
  width: 280px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2ff, #cfe8ff);
  color: #004d99;
  text-decoration: none;
  border: 2px solid #90caf9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}
.link-btn-light:hover {
  background: linear-gradient(135deg, #bbdefb, #e3f2fd);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* 홈 버튼 */
.home-button {
  position: fixed;
  top: 12px;
  left: 0; right: 0;
  margin: auto;
  width: fit-content;
  padding: 14px 24px;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.3em;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  z-index: 999;
}
.home-button:hover {
  background-color: #004999;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.home-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-30deg);
  animation: shineHome 3s infinite;
}

/* 애니메이션 */
@keyframes shineHome {
  0% { left: -75%; }
  50% { left: 130%; }
  100% { left: -75%; }
}
@keyframes shineLink {
  0% { left: -80%; }
  50% { left: 130%; }
  100% { left: -80%; }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 60px 0 30px;
}
