/* === Schedule Public Page === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

/* Top Navigation */
.sp-topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.sp-topnav-logo img {
  height: 40px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sp-topnav-logo:hover img {
  opacity: 1;
}

.sp-topnav-back {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  transition: all 0.2s;
}

.sp-topnav-back:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.sp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Preview Banner */
.sp-preview-banner {
  background: #F39C12;
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Hero */
.sp-hero {
  position: relative;
  color: white;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.sp-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.sp-hero-badge {
  display: inline-block;
  padding: 0;
  border: none;
  margin-bottom: 1.5rem;
}

.sp-hero-badge-img {
  height: 400px;
  vertical-align: middle;
}

.sp-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sp-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.sp-hero-desc {
  font-size: 1rem;
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.sp-hero-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.sp-hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  min-width: 180px;
  flex: 1;
  max-width: 220px;
  text-align: center;
  border-top: 1.5px solid;
}

.sp-hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sp-hero-card-desc {
  font-size: 0.85rem;
  opacity: 0.75;
}

.sp-hero-highlights {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sp-hero-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.2rem;
  min-width: 180px;
  background: rgba(255,255,255,0.1);
  border: 1px solid;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Hero CTA Buttons */
.sp-hero-cta-wrap {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.sp-hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  min-width: 160px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.sp-hero-cta-primary {
  background: #fff;
  color: #133327;
}

.sp-hero-cta-primary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.sp-hero-cta-kakao {
  background: #FEE500;
  color: #191919;
}

.sp-hero-cta-kakao:hover {
  background: #f0d800;
  transform: translateY(-1px);
}

.sp-hero-cta-blog {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.sp-hero-cta-blog:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

/* Schedule CTA */
.sp-schedule-cta {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
}

.sp-schedule-cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: #133327;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(19,51,39,0.3);
}

.sp-schedule-cta-btn:hover {
  background: #0d2319;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19,51,39,0.4);
}

/* Sections */
.sp-section {
  padding: 3rem 0;
}

.sp-section-alt {
  background: #f8f9fa;
}

.sp-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* (sp-timetable-subtitle removed — title now integrated into timetable header bar) */

.sp-timetable-daterange {
  text-align: center;
}

/* Visual Timetable */
.sp-timetable-wrapper {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  background: white;
  overflow: hidden;
}

.sp-tt-title-bar {
  background: #f1f3f5;
  color: #495057;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #dee2e6;
}

.sp-timetable {
  display: grid;
  grid-template-columns: 52px repeat(auto-fit, minmax(0, 1fr));
}

.sp-tt-time-col {
  border-right: 1px solid #e9ecef;
}

.sp-tt-header-spacer {
  height: 44px;
  background: #f1f3f5;
  border-bottom: 2px solid #dee2e6;
}

.sp-tt-time-body {
  position: relative;
}

.sp-tt-time-label {
  position: absolute;
  width: 100%;
  text-align: right;
  padding-right: 8px;
  font-size: 0.7rem;
  color: #868e96;
  line-height: 1;
  transform: translateY(-0.35em);
}

.sp-tt-day-col {
  border-right: 1px solid #f1f3f5;
}

.sp-tt-day-col:last-child {
  border-right: none;
}

.sp-tt-day-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #495057;
  background: #f1f3f5;
  border-bottom: 2px solid #dee2e6;
}

.sp-tt-day-body {
  position: relative;
}

.sp-tt-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #f1f3f5;
}

.sp-tt-block {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 6px;
  padding: 4px 6px;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sp-tt-block-name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.sp-tt-block-time {
  font-size: 0.7rem;
  color: #868e96;
  text-align: center;
  margin-top: 1px;
}

.sp-tt-block-clickable {
  transition: transform 0.15s, box-shadow 0.15s;
}

.sp-tt-block-clickable:hover {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Syllabus */
.sp-syllabus-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sp-tab-break {
  flex-basis: 100%;
  height: 0;
}

.sp-tab-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 25px;
  background: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #495057;
}

.sp-tab-btn:hover {
  border-color: var(--accent, #e94560);
  color: var(--accent, #e94560);
}

.sp-tab-btn.active {
  background: var(--accent, #e94560);
  border-color: #fff;
  color: #fff;
}

/* When accent is light/white, ensure text remains readable */
.sp-tab-btn.active[style*="--accent: #133327"],
.sp-tab-btn.active[style*="--accent:#133327"] {
  color: #fff;
}

.sp-syllabus-panel {
  display: none;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sp-syllabus-panel.active {
  display: block;
}

.sp-syllabus-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.sp-syllabus-desc {
  color: #868e96;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.sp-syllabus-promo {
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  border-left: 3px solid #dee2e6;
}

.sp-syllabus-highlights {
  margin-bottom: 1.5rem;
}

.sp-syllabus-highlights h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #495057;
}

.sp-syllabus-highlights ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-syllabus-highlights li {
  padding: 0.35rem 0.85rem;
  background: #e9ecef;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.sp-syllabus-placement {
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Class Schedule inside syllabus */
.sp-class-schedule {
  margin-bottom: 1.5rem;
}

.sp-class-schedule h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #495057;
}

.sp-class-schedule-section {
  margin-bottom: 0.75rem;
}

.sp-class-schedule-section:last-child {
  margin-bottom: 0;
}

.sp-class-schedule-section-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
}

.sp-class-schedule-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-class-schedule-block {
  margin-bottom: 0.5rem;
}

.sp-class-schedule-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: #868e96;
  margin-bottom: 0.3rem;
}

.sp-class-schedule-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sp-class-schedule-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: #f8f9fa;
  border-left: 3px solid;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #495057;
}

.sp-class-schedule-slot strong {
  color: #333;
}

.sp-weekly-plan {
  margin-top: 1.5rem;
}

.sp-weekly-plan h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #495057;
}

.sp-weekly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.sp-weekly-item {
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid;
}

.sp-weekly-week {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.sp-weekly-topic {
  font-size: 0.9rem;
  color: #495057;
}

/* Footer */
.sp-footer {
  padding: 2rem 1.5rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.sp-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.sp-footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.sp-footer-copy {
  font-size: 0.8rem;
}

/* Syllabus language toggle (inside panel area) */
.sp-syl-lang-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

.sp-syl-lang-btn {
  padding: 0.3rem 0.7rem;
  border: none;
  background: #e9ecef;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: #495057;
  letter-spacing: 0.03em;
}

.sp-syl-lang-btn:first-child {
  border-right: 1px solid #dee2e6;
}

.sp-syl-lang-btn.active {
  background: #333;
  color: white;
}

.sp-syl-lang-btn:hover:not(.active) {
  background: #f1f3f5;
}

@media print {
  .sp-syl-lang-toggle {
    display: none;
  }
}

/* 404 */
.sp-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.sp-404 h1 {
  font-size: 5rem;
  color: #dee2e6;
  font-weight: 800;
}

.sp-404 p {
  color: #868e96;
  margin-bottom: 0.5rem;
}

.sp-404-link {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background: #133327;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.sp-404-link:hover {
  background: #0d2319;
}

/* Mobile schedule image */
.sp-timetable-mobile-img {
  display: none;
}
.sp-timetable-mobile-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .sp-timetable-mobile-img {
    display: block;
  }
  .sp-timetable-desktop {
    display: none;
  }
  .sp-hero {
    padding: 5.5rem 1rem 2rem;
  }

  .sp-hero-title {
    font-size: 0.95rem;
    word-break: keep-all;
  }

  .sp-hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sp-hero-card {
    min-width: 0;
    flex: 1 1 40%;
    padding: 0.75rem 1rem;
  }

  .sp-hero-card-title {
    font-size: 0.95rem;
  }

  .sp-hero-card-desc {
    font-size: 0.7rem;
    white-space: pre-line;
  }

  .sp-hero-badge-img {
    height: auto;
    width: 100%;
  }

  .sp-topnav-logo img {
    height: 28px;
  }

  .sp-topnav-back {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .sp-hero-badge {
    margin-bottom: 0.75rem;
  }

  .sp-hero-desc {
    font-size: 0.8rem;
  }

  .sp-hero-subtitle {
    font-size: 0.9rem;
  }

  .sp-section {
    padding: 2rem 0;
  }

  .sp-footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sp-weekly-grid {
    grid-template-columns: 1fr;
  }

  .sp-hero-cta-wrap {
    flex-direction: column;
    align-items: center;
  }

  .sp-hero-cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .sp-schedule-cta-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

