/* 시험 신청 페이지 전용 스타일 */

/* Page Header */
.page-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
}

.page-header .nav-tabs {
  border-bottom: none;
}

.page-header .nav-link {
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  background: none;
  border: none;
  color: #6c757d;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.page-header .nav-link:hover {
  color: #007bff;
}

.page-header .nav-link.active {
  color: #007bff;
  border-bottom: 2px solid #007bff !important;
}

/* 시험 신청 섹션 */
.exam-section {
  min-height: 60vh;
}

.exam-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 2rem;
  text-align: center;
}

.exam-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.exam-section .lead {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.6;
}

/* 콘텐츠 본문 스타일 */
.content-body {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2d3748;
  font-weight: 600;
}

.content-body h1 {
  font-size: 2rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

.content-body h2 {
  font-size: 1.5rem;
  color: #007bff;
}

.content-body h3 {
  font-size: 1.3rem;
}

.content-body p {
  margin-bottom: 1rem;
  text-align: justify;
}

.content-body img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-body ul,
.content-body ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body blockquote {
  border-left: 4px solid #007bff;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #6c757d;
  font-style: italic;
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

.content-body table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-body table th,
.content-body table td {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: top;
}

.content-body table th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  text-align: center;
}

.content-body table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.content-body table tr:hover {
  background-color: #e3f2fd;
}

/* 강조 박스 */
.content-body .highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.content-body .info-box {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.content-body .warning-box {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.content-body .success-box {
  background-color: #e8f5e8;
  border-left: 4px solid #4caf50;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* 버튼 스타일 */
.content-body .btn-exam {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: transform 0.3s ease;
}

.content-body .btn-exam:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* 단계별 안내 */
.content-body .step-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.content-body .step-item {
  flex: 1;
  min-width: 200px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.content-body .step-item:hover {
  border-color: #007bff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-body .step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  line-height: 40px;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .page-header .nav-link {
    padding: 0.5rem 0.75rem;
    margin-right: 0.5rem;
    font-size: 0.9rem;
  }

  .exam-section h1 {
    font-size: 2rem;
  }

  .exam-section h2 {
    font-size: 1.5rem;
  }

  .content-body h1 {
    font-size: 1.75rem;
  }

  .content-body h2 {
    font-size: 1.4rem;
  }

  .content-body .step-container {
    flex-direction: column;
  }

  .content-body .step-item {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .page-header .nav-tabs {
    flex-wrap: wrap;
  }

  .page-header .nav-link {
    padding: 0.5rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .exam-section h1 {
    font-size: 1.75rem;
  }

  .content-body {
    font-size: 0.95rem;
  }

  .content-body table {
    font-size: 0.8rem;
  }

  .content-body table th,
  .content-body table td {
    padding: 0.5rem;
  }
}

/* 로딩 애니메이션 */
.content-loading {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.content-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 접근성 개선 */
.content-body a {
  color: #007bff;
  text-decoration: underline;
}

.content-body a:hover {
  color: #0056b3;
}

.content-body a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.exam-content-section {
  scroll-margin-top: 75px;
}

.exam-content-section h1 {
  text-align: left;
}

/* 프린트 스타일 */
@media print {
  .page-header .nav-tabs {
    display: none;
  }

  .exam-content-section {
    display: block !important;
  }

  .content-body {
    color: black;
  }

  .content-body .highlight-box,
  .content-body .info-box,
  .content-body .warning-box,
  .content-body .success-box {
    background: none !important;
    border: 1px solid #ccc;
  }
}
