/* ══════════════════════════════════════════
   표쌤코딩 스토리 페이지
   ══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background: #fffbf5;
  color: #0f172a;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 5% 0%, rgba(245,158,11,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 95% 0%, rgba(236,72,153,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 105%, rgba(245,158,11,0.06) 0%, transparent 55%);
}

.page-wrap { position: relative; z-index: 1; min-height: 100vh; }

/* ── 네비게이션 (메인과 동일) ── */
.navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(calc(100% - 40px), 960px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px; border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(200,215,255,0.6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(99,120,220,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3); flex-shrink: 0;
}
.nav-title strong { display: block; font-size: 0.95rem; font-weight: 800; color: #1e293b; letter-spacing: -0.02em; }
.nav-title small { display: block; font-size: 0.72rem; color: #94a3b8; margin-top: 1px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #64748b;
  text-decoration: none; border: 1px solid rgba(200,215,255,0.7);
  background: rgba(240,245,255,0.6); transition: all 180ms ease;
}
.nav-pill:hover { background: rgba(255,255,255,0.9); color: #2563eb; border-color: rgba(99,130,246,0.3); }
.nav-pill.active { background: rgba(37,99,235,0.08); color: #2563eb; border-color: rgba(37,99,235,0.2); }
.tab-bar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 20px 0;
  position: relative;
  z-index: 1;
}
.tab-bar {
  display: flex; gap: 6px; margin-bottom: 24px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(210,225,255,0.8);
  border-radius: 16px; padding: 5px;
  width: fit-content;
  backdrop-filter: blur(12px);
}
.tab-btn {
  padding: 9px 22px; border-radius: 12px; font-size: 0.85rem;
  font-weight: 700; border: none; background: transparent;
  color: #94a3b8; cursor: pointer; transition: all 200ms ease;
  letter-spacing: -0.01em; white-space: nowrap;
  font-family: "Noto Sans KR", sans-serif;
}
.tab-btn:hover {
  background: rgba(37,99,235,0.07); color: #2563eb;
}
.tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; box-shadow: 0 3px 12px rgba(37,99,235,0.28);
  pointer-events: none;
}

/* ── 레이아웃 ── */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 60px;
  gap: 32px;
  min-height: 100vh;
}

/* ── 사이드바 ── */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
}

.sidebar-btn:hover {
  background: rgba(245,158,11,0.06);
  color: #d97706;
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(236,72,153,0.08));
  border-color: rgba(245,158,11,0.2);
  color: #d97706;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(245,158,11,0.08);
}

.sidebar-btn .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}


/* 모바일 하단 통합 내비 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(215,228,255,0.5);
  box-shadow: 0 -4px 24px rgba(99,120,220,0.08);
  font-family: "Noto Sans KR", sans-serif;
}
/* 페이지 탭 행 */
.mobile-bottom-nav .page-tabs {
  display: flex;
  border-bottom: 1px solid rgba(215,228,255,0.4);
  padding: 6px 8px;
  gap: 2px;
  overflow-x: auto;
}
.mobile-bottom-nav .page-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.mobile-bottom-nav .page-tab .tab-icon { font-size: 1.15rem; line-height: 1; }
.mobile-bottom-nav .page-tab.active {
  color: #2563eb;
  font-weight: 700;
  background: rgba(37,99,235,0.06);
}
.mobile-bottom-nav .page-tab:not(.active):active {
  background: rgba(37,99,235,0.05);
}
/* 섹션 전환 행 */
.mobile-bottom-nav .section-tabs {
  display: flex;
  padding: 6px 8px 8px;
  gap: 4px;
  overflow-x: auto;
}
.mobile-bottom-nav .section-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(241,245,249,0.8);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Noto Sans KR", sans-serif;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-bottom-nav .section-tab.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.mobile-bottom-nav .section-tab:not(.active):active {
  background: rgba(226,232,240,0.9);
}

/* ── 메인 콘텐츠 ── */
.main-content {
  flex: 1;
  min-width: 0;
}

/* 섹션 기본 */
.content-section {
  display: none;
  animation: fadeIn 400ms ease;
}
.content-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 히어로 배너 ── */
.hero-banner {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-radius: 24px;
  padding: 48px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-banner .company-name {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.hero-banner .slogan {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ── 공통 카드 ── */
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,225,190,0.9);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 16px rgba(245,158,11,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,158,11,0.12); }

/* ── 섹션 타이틀 ── */
.section-header {
  margin-bottom: 24px;
}
.section-header .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 6px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* ── 갤러리 필터 ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 200ms ease;
}
.filter-btn:hover {
  background: rgba(245,158,11,0.06);
  color: #d97706;
  border-color: rgba(245,158,11,0.3);
}
.filter-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(245,158,11,0.25);
}

/* ── 갤러리 그리드 ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.gallery-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,225,190,0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(245,158,11,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,158,11,0.12); }
.gallery-card.hidden { display: none; }

.gallery-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(236,72,153,0.06));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb iframe { width: 100%; height: 100%; border: none; }
.gallery-thumb svg { opacity: 0.5; }
.gallery-thumb span { font-size: 0.75rem; opacity: 0.7; }
.gallery-thumb .video-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}
.gallery-thumb .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); opacity: 0;
  transition: opacity 200ms ease; cursor: pointer;
}
.gallery-card:hover .play-overlay { opacity: 1; }
.play-overlay svg { width: 48px; height: 48px; fill: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }

.gallery-info {
  padding: 16px 18px;
}
.gallery-info h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.gallery-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.gallery-date {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}
.gallery-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(236,72,153,0.08));
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.15);
}

/* ── 수업 후기 ── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.review-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,225,190,0.9);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 2px 16px rgba(245,158,11,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.review-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,0.1); }

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.85;
  margin: 0 0 16px;
  position: relative;
  padding-left: 20px;
}
.review-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #ec4899);
}

.review-author {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}
.review-author strong {
  color: #64748b;
  font-weight: 700;
}

/* ── 운영 학교 ── */
.stats-banner {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-radius: 20px; padding: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 1.8rem; font-weight: 900; }
.stat-label { font-size: 0.78rem; opacity: 0.85; margin-top: 4px; font-weight: 600; }

.placeholder-area {
  background: rgba(255,255,255,0.7);
  border: 2px dashed rgba(148,163,184,0.3);
  border-radius: 16px; padding: 40px;
  text-align: center; color: #94a3b8;
  font-size: 0.85rem; margin-bottom: 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,225,190,0.9);
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  box-shadow: 0 2px 8px rgba(245,158,11,0.06);
}
.badge-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(236,72,153,0.08));
}

/* ── 공지사항 ── */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,225,190,0.9);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(245,158,11,0.06);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.notice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,0.1); }

.notice-date-badge {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(236,72,153,0.08));
}
.notice-date-badge .month {
  font-size: 0.68rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
}
.notice-date-badge .day {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.notice-body { flex: 1; min-width: 0; }
.notice-body h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.notice-body p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.6;
}

.notice-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.notice-tag.notice { background: rgba(245,158,11,0.1); color: #d97706; }
.notice-tag.recruit { background: rgba(236,72,153,0.1); color: #db2777; }
.notice-tag.new { background: rgba(16,185,129,0.1); color: #059669; }
.notice-tag.info { background: rgba(99,102,241,0.1); color: #4f46e5; }

/* ── 푸터 ── */
.site-footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,225,190,0.6);
  text-align: center;
}
.footer-info {
  font-size: 0.75rem; color: #94a3b8; line-height: 1.9;
}
.footer-info strong { color: #64748b; font-weight: 700; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-banner { grid-template-columns: 1fr 1fr 1fr; }
  .badge-row { justify-content: center; }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 16px 16px 40px;
    gap: 0;
  }
  .sidebar { display: none !important; }
  .tab-bar-wrap { display: none; }
  .nav-title { display: none; }
  .mobile-bottom-nav { display: block; }
  .main-content { padding-bottom: 120px; }
  .hero-banner { padding: 32px 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: 1fr; }
  .notice-card { flex-direction: column; gap: 12px; }
  .notice-date-badge { width: auto; display: inline-flex; gap: 6px; padding: 6px 14px; }
  .notice-date-badge .day { font-size: 0.9rem; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.74rem; }
}
