/* assets/css/curriculum.css */
/* 커리큘럼 상세 페이지 스타일 */

/* ========== 페이지 레이아웃 ========== */
.curriculum-main {
  padding: 0;
  background: #ffffff;
  min-height: calc(100vh - 140px);
}

/* ========== 페이지 타이틀 ========== */
.page-title {
  padding: 80px 0 100px;
  background: #f8f9fc;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.title-label {
  font-size: 14px;
  font-weight: 600;
  color: #5061fc;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.page-title .title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1f36;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-title .subtitle {
  font-size: 18px;
  color: #68768a;
  font-weight: 400;
  line-height: 1.8;
}

/* ========== 커리큘럼 개요 ========== */
.curriculum-overview {
  padding: 80px 20px;
  background: #ffffff;
  margin-top: -40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.overview-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.level-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: #5061fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 10px 30px rgba(80, 97, 252, 0.25);
  transition: all 0.3s ease;
}

.level-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(80, 97, 252, 0.35);
}

.stage-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 40px;
}

.stage {
  padding: 8px 18px;
  background: #f0f2ff;
  border: 2px solid #e0e5ff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 15px;
  color: #5061fc;
  white-space: nowrap;
}

.arrow {
  color: #c1c9d2;
  font-size: 18px;
  flex-shrink: 0;
}

.level-desc {
  font-size: 15px;
  color: #68768a;
  line-height: 1.5;
}

/* ========== 커리큘럼 섹션 ========== */
.curriculum-section {
  padding: 60px 0;
  background: #ffffff;
}

.curriculum-section.alt-bg {
  background: #f8f9fa;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1f36;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #5061fc;
  border-radius: 2px;
}

/* ========== 코스 리스트 ========== */
.course-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 32px;
  transition: all 0.3s ease;
}

.alt-bg .course-item {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.course-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ========== 코스 헤더 ========== */
.course-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.course-code {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.course-code.elementary {
  background: #3498db;
}

.course-code.middle {
  background: #e74c3c;
}

.course-code.high {
  background: #27ae60;
}

.course-duration {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.course-optional {
  font-size: 13px;
  color: #f39c12;
  font-weight: 600;
  padding: 4px 10px;
  background: #fff3cd;
  border-radius: 12px;
  margin-left: auto;
}

/* ========== 코스 내용 ========== */
.course-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  margin-bottom: 20px;
}

.course-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.content-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  min-width: 80px;
  flex-shrink: 0;
}

.content-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* 모바일 전용 텍스트 (기본적으로 숨김) */
.content-text-mobile {
  display: none;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* ========== 대상 학년 배지 ========== */
.target-grade {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.grade-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.grade-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.grade-badge {
  padding: 4px 12px;
  background: #f0f2ff;
  color: #5061fc;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e0e5ff;
}

/* ========== 특별 강조 요소 ========== */
.content-highlight {
  margin: 12px 0;
  padding: 8px 16px;
  background: #fff3cd;
  color: #856404;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #ffeaa7;
}

/* ========== 콘텐츠 그룹 ========== */
.content-group {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.content-special {
  font-size: 14px;
  color: #5061fc;
  font-weight: 600;
  line-height: 1.6;
}

/* ========== 수리탐구 강조 ========== */
.suritamgu-highlight {
  margin: 12px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #5061fc 0%, #6b7cff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(80, 97, 252, 0.2);
}

.suritamgu-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  opacity: 0.9;
  flex-shrink: 0;
}

.suritamgu-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* ========== 문의 섹션 ========== */
.contact-section {
  padding: 60px 0;
  background: #1a1f36;
  color: white;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-desc {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.contact-number {
  font-size: 24px;
  font-weight: 700;
}

.contact-time {
  font-size: 16px;
  opacity: 0.8;
}

/* ========== 푸터 (메인페이지와 동일) ========== */
.footer {
  background: #2c3e50;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-text {
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* ========== 반응형 ========== */
/* 태블릿 */
@media (max-width: 768px) {
  .curriculum-overview {
    padding: 60px 20px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 400px;
  }

  .level-circle {
    width: 100px;
    height: 100px;
    font-size: 18px;
  }

  .stage-flow {
    gap: 10px;
  }

  .stage {
    padding: 6px 16px;
    font-size: 14px;
  }

  .arrow {
    font-size: 16px;
  }
}

/* 모바일 */
@media (max-width: 640px) {
  .page-title {
    padding: 50px 20px 70px;
  }

  .page-title .title {
    font-size: 28px;
    line-height: 1.3;
  }

  .page-title .subtitle {
    font-size: 15px;
    line-height: 1.6;
  }

  .curriculum-overview {
    padding: 50px 20px;
    margin-top: -30px;
  }

  .overview-grid {
    gap: 40px;
  }

  .level-circle {
    width: 90px;
    height: 90px;
    font-size: 16px;
  }

  .stage-flow {
    gap: 8px;
  }

  .stage {
    padding: 5px 14px;
    font-size: 13px;
  }

  .level-desc {
    font-size: 14px;
  }

  .curriculum-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .course-item {
    padding: 20px;
  }

  .course-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .course-optional {
    margin-left: 0;
  }

  .contact-info {
    flex-direction: column;
    gap: 16px;
  }

  /* 모바일 전용 콘텐츠 표시 */
  .content-row {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
  }

  .content-label {
    min-width: auto;
    font-size: 13px;
    margin-bottom: 2px;
  }

  .content-text {
    display: none;
  }

  .content-text-mobile {
    display: block;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
  }

  .content-special {
    font-size: 13px;
    margin-top: 4px;
  }

  .target-grade {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grade-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .grade-badge {
    font-size: 12px;
    padding: 3px 10px;
  }
}

/* 작은 모바일 */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .page-title {
    padding: 40px 16px 60px;
  }

  .page-title .title {
    font-size: 24px;
  }

  .title-label {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .page-title .subtitle {
    font-size: 14px;
  }

  .curriculum-overview {
    padding: 40px 16px;
  }

  .overview-grid {
    gap: 35px;
  }

  .level-circle {
    width: 80px;
    height: 80px;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(80, 97, 252, 0.2);
  }

  .stage-flow {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .stage {
    padding: 4px 12px;
    font-size: 12px;
    border-width: 1.5px;
  }

  .arrow {
    font-size: 14px;
  }

  .level-desc {
    font-size: 13px;
  }

  .course-item {
    padding: 18px;
  }

  .course-title {
    font-size: 17px;
  }

  .content-group {
    padding: 14px;
  }

  .suritamgu-highlight {
    margin: 10px 0;
    padding: 10px 14px;
    gap: 10px;
  }

  .suritamgu-label {
    font-size: 12px;
  }

  .suritamgu-text {
    font-size: 13px;
  }

  .target-grade {
    margin-top: 10px;
    padding-top: 10px;
  }

  .grade-label {
    font-size: 12px;
  }

  .contact-section {
    padding: 40px 0;
  }

  .contact-title {
    font-size: 22px;
  }

  .contact-number {
    font-size: 18px;
  }
}

/* 아주 작은 화면 */
@media (max-width: 360px) {
  .level-circle {
    width: 70px;
    height: 70px;
    font-size: 14px;
  }

  .stage-flow {
    gap: 4px;
  }

  .stage {
    padding: 3px 10px;
    font-size: 11px;
  }

  .arrow {
    font-size: 12px;
  }
}
