/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink: #FF7CA3;
  --pink-dark: #F0507F;
  --pink-light: #FBB8DC;
  --yellow: #FFD35C;
  --green: #A3DD6B;
  --teal: #5FD1C4;
  --purple: #C29AE0;
  --blue: #8FB0F0;
  --orange: #FFA467;
  --cream: #FFFBF4;
  --text: #3A3A3A;
  --text-soft: #767070;
  --radius: 24px;
  --shadow: 0 12px 30px rgba(60, 40, 40, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Jua", "Gowun Dodum", sans-serif;
  font-weight: 400;
  line-height: 1.35;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hl { color: var(--pink-dark); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 124, 163, 0.45);
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-ghost {
  background: #fff;
  color: var(--pink-dark);
  border: 2px solid var(--pink);
}

.btn-youtube {
  background: #fff;
  color: #E23B4E;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand img { height: 60px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a { color: var(--text); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--pink-dark); }

.nav-cta { padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
}
.blob-1 { width: 320px; height: 320px; background: var(--yellow); top: -80px; right: 8%; opacity: 0.35; }
.blob-2 { width: 260px; height: 260px; background: var(--teal); bottom: -60px; left: 4%; opacity: 0.3; }
.blob-3 { width: 180px; height: 180px; background: var(--pink-light); top: 40%; right: 30%; opacity: 0.3; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 1.1; }

.eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 30px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { flex: 1; display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 380px;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(255, 124, 163, 0.35);
  border: 8px solid #fff;
}

/* ===== Section common ===== */
section { padding: 90px 0; }

.section-eyebrow {
  text-align: center;
  color: var(--pink-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.about h2, .library h2, .program h2, .contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 18px;
}

.section-desc {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 50px;
  word-break: keep-all;
  text-wrap: balance;
}

/* ===== About ===== */
.about { background: #fff; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); }

.fc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.fc-pink .fc-icon { background: #FFE1EC; }
.fc-teal .fc-icon { background: #DBF7F2; }
.fc-yellow .fc-icon { background: #FFF3D6; }
.fc-purple .fc-icon { background: #F0E4FA; }
.fc-blue .fc-icon { background: #E3ECFB; }
.fc-orange .fc-icon { background: #FFE6D5; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 0.92rem; text-wrap: balance; }

/* ===== Mascot ===== */
.mascot { background: linear-gradient(180deg, #FFF6E9 0%, #FFFBF4 100%); }

.mascot-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.mascot-copy { flex: 1; }
.mascot-media { flex: 1.3; }

.mascot-media {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.mascot-media img {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 16px 24px rgba(60, 40, 40, 0.15));
}

.mascot-copy h2 { font-size: 2.2rem; margin-bottom: 20px; }
.mascot-copy p { color: var(--text-soft); margin-bottom: 24px; }

.speech-bubble {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  color: var(--pink-dark);
  box-shadow: var(--shadow);
  position: relative;
}

/* ===== Library ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  padding: 30px 20px 24px;
  text-align: center;
}
.story-card:hover { transform: translateY(-6px); }
.story-card:hover .disc-wrap img { transform: rotate(8deg); }

.disc-wrap {
  position: relative;
  width: 74%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.disc-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: #221f1d;
  border-radius: 50%;
  z-index: 0;
  box-shadow: 0 12px 22px rgba(0,0,0,0.25);
}

.disc-wrap::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255,255,255,0.07) 0px,
    rgba(255,255,255,0.07) 1px,
    transparent 1px,
    transparent 6px
  );
}

.disc-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.disc-hole {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 12%;
  height: 12%;
  background: var(--cream);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.6);
}

.story-info { margin-top: 20px; }
.story-info h3 { font-size: 1.05rem; }

/* ===== Program ===== */
.program { background: #fff; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.program-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}

.pi-num {
  display: inline-block;
  font-family: "Jua", sans-serif;
  font-size: 1.4rem;
  color: var(--pink-light);
  margin-bottom: 10px;
}

.program-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.program-item p { color: var(--text-soft); font-size: 0.9rem; text-wrap: balance; }

.program-cta {
  text-align: center;
}
.program-cta p { margin-bottom: 20px; color: var(--text-soft); font-weight: 700; }

/* ===== Youtube ===== */
.youtube {
  background: linear-gradient(135deg, #FF7CA3 0%, #FFA467 100%);
  text-align: center;
  color: #fff;
}
.youtube h2 { font-size: 2.1rem; margin-bottom: 16px; }
.youtube p { margin-bottom: 30px; opacity: 0.95; }

.yt-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
  background: #000;
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, #FFFBF4 0%, #FFF1F6 100%); }

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 32px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid #F1E9E9;
}
.contact-row:last-child { border-bottom: none; }

.contact-phone {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}
.contact-phone:hover { color: var(--pink-dark); }

.contact-email {
  font-size: 0.95rem;
  color: var(--text-soft);
}
.contact-email:hover { color: var(--pink-dark); }

/* ===== Footer ===== */
.site-footer { background: #fff; padding: 40px 0; border-top: 1px solid #F1E9E9; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 52px; }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--pink); }

.site-footer p { color: var(--text-soft); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner, .mascot-inner, .monthly-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-btns { justify-content: center; }
  .hero h1 { font-size: 2.1rem; }
  .br-pc { display: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .feature-grid, .program-grid, .story-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  gap: 18px;
}
