/* Hero Section */
.hero {
  background-color: #1f1c37;
  color: #fff;
}
section.hero {
  padding: 0;
}

/* 히어로 컨테이너 스타일 */
.hero-container {
  width: 100%;
  background: linear-gradient(to bottom, #01224f, #01224f);
  overflow: hidden;
  position: relative;
}

/* 이미지 래퍼 스타일 */
.hero-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* 히어로 이미지 스타일 */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}
section {
  padding: 60px 0 20px 0;
}
/* 교육개요 섹션 스타일 */
.education-overview {
  padding: 40px 0 0 0;
  background-color: #fff;
}

.education-overview .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.education-overview h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #4a90a4;
}

.education-label {
  display: inline-block;
  background-color: #4a90a4;
  color: white;
  padding: 8px 20px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 0;
}

.education-content {
  font-size: 20px;
  color: #333;
  line-height: 1.6;
  margin-left: 0;
}
.intro-content {
  padding-left: 20px;
}
.intro-content p {
  word-break: keep-all;
}
.education-content .highlight {
  color: #4a90a4;
  font-weight: 600;
}

.education-content .note {
  font-size: 18px;
  color: #0033cc;
  font-weight: 600;
  margin-top: 5px;
  margin-left: 14px;
}

/* 신청안내, 지원사항 섹션 스타일 */
.education-section {
  padding: 40px 0 0 0;
}

.education-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.education-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #4a90a4;
}

/* 프로그램 섹션 특별 스타일 */
.education-program {
  padding: 40px 0 0 0;
  background-color: #fff;
}

.education-program .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.education-program h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #4a90a4;
}

.program-header {
  margin: 10px 0 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: column;
}

.program-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.program-type {
  background-color: #e2e8f0;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  text-align: center;
}

.program-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.program-table {
  margin-top: 20px;
  overflow-x: auto;
}

.program-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.program-table th {
  background-color: #7caab7;
  color: white;
  padding: 15px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.program-table td {
  padding: 15px 12px;
  border: 1px solid #ddd;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
  background-color: white;
}

.program-table .day-column {
  background-color: #f8f9fa;
  text-align: center;
  font-weight: 600;
  width: 220px;
  min-width: 200px;
  font-size: 18px;
  vertical-align: middle;
}
.program-table .txt-center {
  text-align: center;
  vertical-align: middle;
}
.program-table td:nth-child(3) {
  padding-left: 18px;
  background-color: #fff;
  vertical-align: middle;
}

.program-table td strong {
  color: #1f2937;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

/* 교육신청 섹션 */
.education-apply {
  padding: 40px 0 0 0;
}

.education-apply .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.education-apply h2 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #4a90a4;
}

.apply-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-left: 15px;
  position: relative;
}

.apply-info h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: #4a90a4;
  border-radius: 50%;
}

.apply-info p {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
  margin-left: 20px;
}

.apply-info a {
  color: #4a90a4;
  text-decoration: none;
}

.apply-info a:hover {
  text-decoration: underline;
}

/* 교육신청 폼 스타일 */
.registration-form {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
  border: 1px solid #e9ecef;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group label.required::after {
  content: ' *';
  color: #e74c3c;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #4a90a4;
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

.form-control.error {
  border-color: #e74c3c;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 0;
}

.radio-group input[type='radio'] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-container {
  margin: 30px 0;
  text-align: center;
}

.btn-primary {
  background-color: #4a90a4;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 200px;
}

.btn-primary:hover {
  background-color: #3a7a8a;
}

.btn-primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* 로딩 스피너 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 성공/에러 메시지 */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 16px;
  display: none;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Awards Section Styles */
.awards-section {
  position: relative;
  background: linear-gradient(135deg, #87ceeb 0%, #b0d8f0 100%);
  padding: 80px 0;
  overflow: hidden;
}

.awards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.awards-content {
  flex: 1;
  z-index: 2;
  max-width: 600px;
}

.awards-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.info-group {
  margin-bottom: 30px;
}

.info-group:last-child {
  margin-bottom: 0;
}

.info-group h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fff;
  display: inline-block;
}

.info-group p {
  font-size: 20px;
  color: #fff;
  line-height: 1.6;
}

.awards-trophy {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.awards-trophy img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Create trophy with CSS if image not available */
.awards-trophy::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 350px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ffd700 100%);
  clip-path: polygon(
    20% 0%,
    80% 0%,
    85% 15%,
    100% 20%,
    90% 35%,
    75% 40%,
    60% 100%,
    40% 100%,
    25% 40%,
    10% 35%,
    0% 20%,
    15% 15%
  );
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

/* Number 1 on trophy */
.awards-trophy::after {
  content: '1';
  position: absolute;
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .hero-wrapper {
    height: 30vh;
  }
  .education-content .note {
    font-size: 14px;
  }
  .education-overview h2,
  .education-section h2,
  .education-program h2,
  .education-apply h2 {
    font-size: 24px;
    padding-left: 12px;
  }

  .education-label {
    font-size: 14px;
    padding: 6px 15px;
  }

  .education-content {
    font-size: 16px;
  }

  .program-header {
    flex-direction: column;
    gap: 15px;
  }

  .program-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .program-type {
    font-size: 14px;
    padding: 8px 16px;
  }

  .program-title {
    font-size: 16px;
  }

  .program-table {
    font-size: 12px;
  }

  .program-table th,
  .program-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .program-table .day-column {
    width: 150px;
    min-width: 130px;
    font-size: 11px;
  }

  .program-table td:nth-child(2) {
    width: 100px;
    min-width: 90px;
    font-size: 11px;
  }

  .program-table td strong {
    font-size: 13px;
  }

  .apply-info h3 {
    font-size: 20px;
  }

  .apply-info p {
    font-size: 16px;
  }

  /* 모바일 폼 스타일 */
  .registration-form {
    padding: 20px;
    margin-top: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-control {
    font-size: 16px; /* iOS 줌 방지 */
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary {
    width: 100%;
    padding: 15px 20px;
  }

  /* Awards Section Mobile */
  .awards-section {
    padding: 60px 0;
  }

  .awards-container {
    flex-direction: column;
  }

  .awards-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .awards-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
  }

  .awards-info {
    padding: 25px;
  }

  .awards-trophy {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .awards-trophy::before {
    width: 200px;
    height: 230px;
  }

  .awards-trophy::after {
    font-size: 80px;
  }
}
