:root {
  --ink: #17211d;
  --cream: #f4f1e9;
  --coral: #f26d4f;
  --lime: #c7d84e;
  --blue: #3f78d4;
  --line: rgba(23, 33, 29, .18);
  --grotesk: 'Space Grotesk', sans-serif;
  --sans: 'DM Sans', sans-serif
}

/* =========================================
   STUDENT GUIDES PAGE
========================================= */

.guides-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 6%, rgba(151, 111, 244, 0.16), transparent 25%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 42%);
}

.guides-intro {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 140px) 0 68px;
}

.guides-kicker {
  margin: 0 0 22px;
  color: #6f45da;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.guides-intro h1 {
  max-width: 980px;
  margin: 0;
  color: #171b25;
  font: 700 clamp(3.4rem, 7.5vw, 7.2rem)/0.9 var(--grotesk);
  letter-spacing: -0.065em;
}

.guides-intro h1 span {
  color: #693fe0;
}

.guides-intro-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: #6e6975;
  font-size: 1rem;
  line-height: 1.7;
}

.guides-grid {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 27, 37, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(56, 43, 86, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 63, 224, 0.34);
  box-shadow: 0 24px 64px rgba(56, 43, 86, 0.12);
}

.guide-card-number {
  margin: 0 0 36px;
  color: #8b63e8;
  font: 700 0.7rem var(--grotesk);
  letter-spacing: 0.16em;
}

.guide-card h2 {
  margin: 0;
  color: #1c2029;
  font: 650 clamp(2rem, 3.5vw, 3.5rem)/1 var(--grotesk);
  letter-spacing: -0.045em;
}

.guide-language-label {
  margin: 10px 0 0;
  color: #8d8793;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-open {
  margin-top: auto;
  padding-top: 44px;
  color: #693fe0;
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-card[dir="rtl"] {
  text-align: right;
}

/* Individual long-form guide pages */

.guide-reader-page {
  min-height: 100vh;
  background: #fbfaff;
}

.guide-reader {
  width: min(920px, calc(100% - 80px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 58px;
  color: #6f45da;
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-reader-header {
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(23, 27, 37, 0.12);
}

.guide-reader-header h1 {
  margin: 0;
  color: #171b25;
  font: 700 clamp(3.2rem, 7vw, 6.6rem)/0.92 var(--grotesk);
  letter-spacing: -0.06em;
}

.guide-reader-header p {
  margin: 18px 0 0;
  color: #817b87;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-content-placeholder,
.guide-content {
  margin-top: 48px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 22px;
}

.guide-content-placeholder {
  min-height: 680px;
  display: flex;
  align-items: flex-start;
  border: 1px dashed #c9c4cf;
  background: #f1eff3;
  color: #aaa6af;
  font-size: 1rem;
  line-height: 1.7;
}

.guide-content {
  border: 1px solid rgba(23, 27, 37, 0.08);
  background: #fff;
  color: #393640;
  font-family: 'Noto Sans KR', var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  box-shadow: 0 24px 70px rgba(56, 43, 86, 0.07);
}

.guide-content p { margin: 0 0 18px; }
.guide-content strong { color: #211d2a; font-weight: 700; }
.guide-content ul, .guide-content ol { margin: 16px 0 0; padding-left: 1.35rem; }
.guide-content li { margin: 8px 0; padding-left: 5px; }

.guide-overline,
.guide-section-heading p {
  margin: 0 0 10px !important;
  color: #7650dc;
  font: 700 0.72rem var(--grotesk);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guide-introduction h2,
.guide-section-heading h2 {
  margin: 0;
  color: #171b25;
  font: 700 clamp(2rem, 4.5vw, 3.6rem)/1.06 var(--grotesk);
  letter-spacing: -.045em;
}

.guide-introduction > p:nth-of-type(2) { margin-top: 30px; }

.guide-callout {
  margin-top: 30px;
  padding: 24px 26px;
  display: grid;
  gap: 3px;
  border-left: 5px solid #7650dc;
  border-radius: 0 14px 14px 0;
  background: #f4f0ff;
}

.guide-callout span { color: #6e6876; }

.guide-toc {
  margin: 42px 0 0;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  border-radius: 18px;
  background: #191622;
  color: #fff;
}

.guide-toc p { grid-column: 1 / -1; margin: 0 0 8px; color: #bda9f3; font-weight: 700; }
.guide-toc a { color: #fff; font-size: .9rem; font-weight: 600; opacity: .82; }
.guide-toc a:hover { opacity: 1; color: #cbb8ff; }

.guide-section { margin-top: 82px; scroll-margin-top: 30px; }
.guide-section-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 34px; }
.guide-section-heading > span {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7650dc;
  color: #fff;
  font: 700 .9rem var(--grotesk);
}

.guide-section-lead { margin: -6px 0 28px !important; color: #5f5968; font-size: 1.06rem; font-weight: 600; }

.guide-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid #ece8f0;
}

.guide-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d8cdef;
  border-radius: 12px;
  color: #7650dc;
  font-weight: 800;
}

.guide-content h3 { margin: 0 0 12px; color: #211d2a; font-size: 1.18rem; line-height: 1.4; }
.guide-content h4 { margin: 0 0 12px; color: #211d2a; font-size: 1rem; }

.guide-subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 20px 66px; }
.guide-subject-card { padding: 24px; border-radius: 16px; }
.guide-subject-card.science { background: #eff5ff; border: 1px solid #d4e2ff; }
.guide-subject-card.social { background: #fff6ed; border: 1px solid #ffe0c3; }
.guide-subject-card span { display: block; margin-bottom: 10px; color: #7650dc; font: 700 .68rem var(--grotesk); letter-spacing: .12em; }
.guide-subject-card h3 { font-size: 1rem; }
.guide-subject-card p { margin: 0; color: #655f6c; font-size: .9rem; line-height: 1.6; }

.guide-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.guide-keywords span { padding: 7px 12px; border-radius: 999px; background: #f0ecf9; color: #5d3db7; font: 600 .82rem var(--sans); }

.guide-tip-box,
.guide-question-box { margin: 26px 0; padding: 24px 26px; border-radius: 16px; background: #f7f5f9; border: 1px solid #e7e1ed; }
.guide-tip-box ul, .guide-question-box ul { margin-bottom: 0; }
.guide-example { padding: 18px 20px; border-radius: 12px; background: #fff9e8; }
.guide-example mark { padding: 2px 5px; border-radius: 4px; background: #f5df92; }

.guide-section-science { padding: 42px; border-radius: 24px; background: #f4f8ff; }
.guide-section-social { padding: 42px; border-radius: 24px; background: #fff8f1; }
.guide-section-science .guide-section-heading > span { background: #3f78d4; }
.guide-section-social .guide-section-heading > span { background: #e37542; }

.guide-numbered-list > section { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-top: 1px solid rgba(63, 120, 212, .14); }
.guide-numbered-list > section > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dce9ff; color: #285cae; font-weight: 800; }
.guide-important { margin: 18px 0; padding: 20px; border-radius: 14px; background: #dfeaff; border: 1px solid #bfd3fb; }
.guide-important p { margin: 4px 0 0; }

.guide-path { margin-top: 18px; padding: 26px; border-radius: 18px; }
.guide-path.science { background: #eff5ff; }
.guide-path.social { background: #fff3e8; }
.guide-path ol { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; counter-reset: guide-path; }
.guide-path li { counter-increment: guide-path; margin: 0; padding: 8px 12px; border-radius: 999px; background: #fff; font-size: .84rem; font-weight: 600; }
.guide-path li::before { content: counter(guide-path) '. '; color: #7650dc; }
.guide-note { margin-top: 24px !important; color: #6f6877; font-weight: 600; }

.guide-situation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-situation-grid section { padding: 26px; border: 1px solid #e7e1ed; border-radius: 18px; background: #fcfbfd; }
.guide-situation-grid span { display: block; margin-bottom: 12px; color: #7650dc; font: 700 .68rem var(--grotesk); letter-spacing: .12em; }
.guide-situation-grid p:last-child { margin-bottom: 0; }

.guide-skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 24px 28px 24px 48px !important; border-radius: 18px; background: #f7f5f9; }
.guide-content blockquote { margin: 44px 0 0; padding: 34px; border-radius: 20px; background: #191622; color: #fff; }
.guide-content blockquote p { margin: 0 0 8px; color: #c8b9ed; font-size: .9rem; }
.guide-content blockquote strong { display: block; color: #fff; font-size: 1.2rem; line-height: 1.55; }
.guide-content blockquote span { display: block; margin-top: 12px; color: #bdb5c7; }

.guide-reader[dir="rtl"] {
  text-align: right;
}

@media (max-width: 800px) {
  .guides-intro,
  .guides-grid {
    width: calc(100% - 40px);
  }

  .guides-intro {
    padding: 64px 0 50px;
  }

  .guides-grid {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }

  .guide-card {
    min-height: 260px;
  }

  .guide-reader {
    width: calc(100% - 40px);
    padding: 48px 0 80px;
  }

  .guide-back {
    margin-bottom: 42px;
  }

  .guide-content-placeholder {
    min-height: 520px;
  }

  .guide-content { padding: 28px 22px; font-size: .95rem; line-height: 1.78; }
  .guide-toc { grid-template-columns: 1fr; }
  .guide-toc p { grid-column: auto; }
  .guide-section { margin-top: 62px; }
  .guide-section-heading { gap: 14px; }
  .guide-section-heading > span { flex-basis: 44px; height: 44px; }
  .guide-step { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .guide-step-number { width: 36px; height: 36px; }
  .guide-subject-grid { grid-template-columns: 1fr; margin-left: 0; }
  .guide-section-science, .guide-section-social { padding: 28px 22px; margin-left: -10px; margin-right: -10px; }
  .guide-numbered-list > section { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .guide-numbered-list > section > span { width: 30px; height: 30px; }
  .guide-situation-grid, .guide-skill-list { grid-template-columns: 1fr; }
  .guide-path ol { display: grid; }
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: auto
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans)
}

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

.page-shell {
  max-width: 1440px;
  margin: auto;
  overflow: hidden
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5.5%;
  border-bottom: 1px solid var(--line)
}

.brand {
  align-items: center;
  display: flex;
  font: 700 19px var(--grotesk);
  letter-spacing: .04em;
  gap: 10px
}

.brand em {
  font-style: normal;
  color: var(--coral)
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
  transform: rotate(12deg)
}

.brand-mark i {
  display: block;
  border-radius: 1px
}

.brand-mark i:nth-child(1) {
  background: var(--coral)
}

.brand-mark i:nth-child(2) {
  background: var(--blue)
}

.brand-mark i:nth-child(3) {
  background: var(--lime)
}

.brand-mark i:nth-child(4) {
  background: var(--ink)
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 14px
}

.desktop-nav a {
  opacity: .58
}

.desktop-nav a.active,
.desktop-nav a:hover {
  opacity: 1
}

.menu-button {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 100px;
  padding: 9px 13px 9px 16px;
  font: 600 12px var(--sans);
  display: none
}

.menu-button span {
  font-size: 16px;
  margin-left: 8px
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 48% 52%;
  padding: 80px 8% 70px;
  position: relative
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 20px
}

.eyebrow-dot {
  background: var(--coral);
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin: 0 7px 1px 0;
  width: 7px
}

.hero h1,
h2 {
  font: 600 clamp(65px, 8.5vw, 122px)/.86 var(--grotesk);
  letter-spacing: -.055em;
  margin: 0
}

.hero h1 span,
h2 i {
  color: var(--coral);
  font-style: normal
}

.hero-description {
  font-size: 17px;
  line-height: 1.55;
  max-width: 410px;
  margin: 32px 0
}

.hero-actions {
  align-items: center;
  display: flex;
  gap: 28px
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 13px
}

.button-primary {
  background: var(--coral);
  color: #fff
}

.button-dark {
  background: var(--ink);
  color: var(--cream)
}

.button span {
  font-size: 18px
}

/* ==================================================
   STUDENT GUIDES BANNER
================================================== */

.student-guides-banner {
  width: min(1280px, calc(100% - 80px));
  margin: 72px auto 10px;
  padding: clamp(38px, 5vw, 68px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;

  border: 1px solid rgba(105, 63, 224, 0.14);
  border-radius: 32px;

  background:
    radial-gradient(circle at 88% 18%, rgba(151, 111, 244, 0.22), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(105, 63, 224, 0.10), transparent 30%),
    #faf8ff;

  box-shadow: 0 24px 70px rgba(76, 50, 132, 0.08);
}

.student-guides-copy {
  min-width: 0;
}

.student-guides-kicker {
  margin: 0 0 18px;
  color: #6f45da;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.student-guides-banner h2 {
  margin: 0;
  color: #171b25;
  font: 700 clamp(2.5rem, 4.6vw, 5.4rem)/0.96 var(--grotesk);
  letter-spacing: -0.055em;
}

.student-guides-banner h2 span {
  color: #693fe0;
}

.student-guides-copy > p:not(.student-guides-kicker) {
  max-width: 690px;
  margin: 26px 0 0;
  color: #66616f;
  font-size: 1rem;
  line-height: 1.65;
}

.student-guide-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.student-guide-languages span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;

  border: 1px solid rgba(105, 63, 224, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);

  color: #342b49;
  font-size: 0.8rem;
  font-weight: 700;
}

.student-guide-languages .student-guide-more {
  color: #797280;
  font-weight: 600;
}

.student-guides-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  min-width: 220px;
  padding: 19px 24px;

  border-radius: 16px;
  background: linear-gradient(135deg, #693fe0, #8b42ef);
  color: #ffffff;

  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;

  box-shadow: 0 14px 30px rgba(105, 63, 224, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-guides-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(105, 63, 224, 0.27);
}

.student-guides-button span {
  font-size: 1.2rem;
}

@media (max-width: 800px) {
  .student-guides-banner {
    width: calc(100% - 40px);
    margin-top: 48px;
    padding: 38px 24px 24px;

    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 30px;

    border-radius: 24px;
  }

  .student-guides-banner h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .student-guides-copy > p:not(.student-guides-kicker) {
    font-size: 0.95rem;
  }

  .student-guides-button {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

.text-link {
  font-size: 13px;
  font-weight: 700
}

.text-link span {
  margin-left: 7px
}

.hero-art {
  height: 500px;
  position: relative
}

.orbit {
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: absolute
}

.orbit-one {
  width: 480px;
  height: 230px;
  top: 110px;
  left: 2%;
  transform: rotate(-26deg)
}

.orbit-two {
  width: 420px;
  height: 170px;
  top: 138px;
  left: 8%;
  transform: rotate(49deg);
  border-color: var(--coral)
}

.tile {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  box-shadow: 8px 10px 0 var(--ink);
  font: 600 18px var(--grotesk)
}

.tile-a {
  background: var(--lime);
  height: 116px;
  left: 10%;
  top: 85px;
  transform: rotate(-9deg);
  width: 116px
}

.tile-b {
  background: var(--coral);
  color: var(--ink);
  height: 180px;
  left: 38%;
  padding: 15px;
  top: 138px;
  transform: rotate(8deg);
  width: 180px;
  font-size: 22px;
  line-height: 1.18
}

.tile-b strong {
  font-size: 30px
}

.tile-c {
  background: var(--blue);
  color: #fff;
  height: 100px;
  left: 67%;
  top: 69px;
  transform: rotate(13deg);
  width: 100px
}

.tile-c span {
  font-size: 30px
}

.tile-d {
  background: var(--ink);
  color: var(--lime);
  height: 107px;
  left: 70%;
  top: 285px;
  transform: rotate(-12deg);
  width: 107px;
  line-height: 1.1;
  text-align: center
}

.tile-e {
  background: #ece8dc;
  border: 1px solid var(--ink);
  height: 125px;
  left: 26%;
  top: 322px;
  transform: rotate(7deg);
  width: 125px
}

.art-caption {
  font: 500 13px/1.25 var(--grotesk);
  left: 4%;
  position: absolute;
  top: 398px;
  transform: rotate(-7deg)
}

.marquee {
  background: var(--ink);
  color: var(--lime);
  font: 600 12px var(--grotesk);
  letter-spacing: .1em;
  overflow: hidden;
  padding: 16px;
  white-space: nowrap
}

.marquee div {
  word-spacing: 25px;
  text-align: center
}

.marquee span {
  color: var(--coral);
  font-size: 18px
}

.section {
  padding: 115px 8%
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px
}

.section-heading h2,
.story-section h2,
.contributors-section h2 {
  font-size: clamp(48px, 6vw, 83px)
}

.section-note {
  font-size: 14px;
  line-height: 1.5;
  max-width: 210px;
  margin: 0 4% 7px 0
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.course-card {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 17px;
  transition: transform .2s ease;
  display: block
}

.course-card:hover {
  transform: translateY(-7px)
}

.course-card.society {
  background: var(--blue);
  color: #fff
}

.course-card.vocab {
  background: var(--lime)
}

.card-top,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 33, 29, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.card-footer>span:last-child {
  white-space: nowrap;
}

#biology-view-count,
#cosmology-view-count {
  color: #6f3fd6;
  font-weight: 800;
}

.course-number,
.card-footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em
}

.arrow {
  font-size: 20px
}

.course-visual {
  height: 245px;
  margin: 18px 0;
  overflow: hidden;
  position: relative
}

.science .course-visual {
  background: var(--lime)
}

.society .course-visual {
  background: var(--coral)
}

.vocab .course-visual {
  background: #f3eadb;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  font: 700 25px var(--grotesk);
  line-height: .95
}

.vocab-visual strong {
  color: var(--coral);
  font-size: 36px
}

.cell {
  border-radius: 50%;
  position: absolute
}

.cell-one {
  background: var(--coral);
  width: 185px;
  height: 185px;
  left: 28px;
  top: 25px
}

.cell-two {
  background: var(--blue);
  width: 126px;
  height: 126px;
  left: 135px;
  top: 84px
}

.cell-three {
  background: var(--ink);
  width: 74px;
  height: 74px;
  left: 82px;
  top: 140px
}

.cell-label,
.map-label {
  font: 700 23px/.92 var(--grotesk);
  position: absolute;
  right: 18px;
  top: 26px
}

.cell-label small,
.map-label small {
  font: 500 11px/1.2 var(--sans);
  display: block;
  margin-top: 9px
}

.map-line {
  border: 2px solid var(--ink);
  border-radius: 50%;
  height: 190px;
  position: absolute;
  width: 320px
}

.line-one {
  left: -75px;
  top: 45px;
  transform: rotate(29deg)
}

.line-two {
  left: 68px;
  top: 79px;
  transform: rotate(-34deg)
}

.map-pin {
  font-size: 35px;
  left: 46%;
  position: absolute;
  top: 43%
}

.map-label {
  left: 18px;
  right: auto;
  top: 27px
}

.course-card h3 {
  font: 600 27px/.98 var(--grotesk);
  letter-spacing: -.04em;
  margin: 0 0 29px
}

.card-footer {
  border-top: 1px solid currentColor;
  padding-top: 11px;
  opacity: .7
}

.check-section {
  background: var(--coral);
  display: grid;
  grid-template-columns: 40% 60%;
  padding: 90px 12%
}

.check-section h2 {
  color: var(--ink)
}

.check-section>div>p:last-child {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 28px;
  max-width: 250px
}

.eyebrow.light {
  color: var(--ink)
}

.quiz-box {
  background: var(--cream);
  padding: 25px 28px;
  max-width: 490px;
  justify-self: end;
  width: 100%
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em
}

.quiz-question {
  font: 600 25px/1.1 var(--grotesk);
  max-width: 370px;
  margin: 40px 0 25px
}

.quiz-options {
  display: grid;
  gap: 8px
}

.quiz-options button {
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
  padding: 13px;
  text-align: left;
  font: 500 13px var(--sans)
}

.quiz-options button:hover {
  background: var(--lime)
}

.quiz-options button.correct {
  background: var(--lime);
  border-color: var(--lime)
}

.quiz-options button.wrong {
  opacity: .5
}

.quiz-result {
  font-size: 13px;
  font-weight: 700;
  min-height: 18px
}

.story-section {
  display: grid;
  grid-template-columns: 13% 48% 39%;
  padding: 125px 12%;
  align-items: end
}

.story-number {
  font: 700 12px var(--grotesk);
  color: var(--coral)
}

.story-copy {
  font-size: 15px;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 0 5px 20%
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5.5%;
  font-size: 11px
}

.site-footer .brand {
  font-size: 16px
}

.site-footer>a:last-child {
  color: var(--lime)
}

@media(max-width:800px) {
  .site-header {
    padding: 20px 6%
  }

  .desktop-nav {
    display: none
  }

  .menu-button {
    display: block
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 70px 8% 20px
  }

  .hero h1 {
    font-size: 17vw
  }

  .hero-art {
    height: 410px;
    margin-top: 35px;
    transform: scale(.9);
    transform-origin: left top
  }

  .hero-description {
    font-size: 15px
  }

  .section {
    padding: 80px 8%
  }

  .section-heading {
    display: block
  }

  .section-note {
    margin-top: 25px
  }

  .course-grid {
    grid-template-columns: 1fr
  }

  .course-visual {
    height: 225px
  }

  .check-section {
    display: block;
    padding: 75px 8%
  }

  .quiz-box {
    margin-top: 45px
  }

  .story-section {
    display: block;
    padding: 85px 8%
  }

  .story-number {
    margin-bottom: 45px
  }

  .story-copy {
    margin: 35px 0 0;
    max-width: 400px
  }

  .contributors-section {
    padding: 100px 8%;
    background: #f3effc;
  }

  .contributors-heading {
    margin: 0 0 40px 8%;
  }

  .contributors-heading .eyebrow {
    margin-bottom: 18px;
  }

  .contributors-heading h2 {
    margin: 0;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #17211d;
  }

  .contributor-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 42px;
    align-items: start;

    padding: 48px 0;
    border-top: 1px solid rgba(23, 33, 29, 0.18);
  }

  .contributor-row:last-child {
    border-bottom: 1px solid rgba(23, 33, 29, 0.18);
  }

  .contributor-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    display: block;
  }

  .contributor-copy {
    max-width: 780px;
  }

  .contributor-copy h3 {
    margin: 0 0 22px;
    font-size: 26px;
    line-height: 1.2;
    color: #17211d;
  }

  .contributor-copy h3 span {
    font-weight: 500;
  }

  .contributor-copy p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #17211d;
  }

  .contribution-label {
    margin-top: 28px !important;
    margin-bottom: 10px !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .contributor-copy ul {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.8;
  }

  .contributor-copy li {
    margin-bottom: 4px;
  }

  @media (max-width: 800px) {
    .contributors-section {
      padding: 70px 8%;
    }

    .contributor-row {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 36px 0;
    }

    .contributor-photo {
      width: 170px;
      height: 220px;
    }

    .contributor-copy h3 {
      font-size: 22px;
    }

    .contributor-copy p {
      font-size: 15px;
    }
  }

  .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px
  }

  .site-footer>span {
    order: 3;
    width: 100%
  }
}

.brand-logo {
  height: 70px !important;
  width: auto !important;
  display: block !important;
}

.biology-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  margin: 18px 0 22px;
}

.hero-logo-art {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-logo-art img {
  width: min(520px, 100%);
  height: auto;
  display: block;
}

.courses-title i {
  color: #6f3fd6 !important;
  font-style: normal;
}

.science-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.science-links a {
  text-decoration: none;
  color: #17211d;
  font-size: 20px;
  font-weight: 700;
}

.science-links a:hover {
  color: #6f3fd6;
}

.cosmology {
  background: #6f3fd6;
  color: #ffffff;
}

.cosmology-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  margin: 18px 0 22px;
}

.cosmology .card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.cosmology .course-number,
.cosmology .arrow,
.cosmology h3,
.cosmology .card-footer {
  color: #ffffff;
}

.downloads-section {
  padding: 80px 0;
  border-top: 1px solid rgba(23, 33, 29, 0.18);
}

.downloads-section h2 {
  margin-bottom: 32px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.download-card {
  border: 1px solid #17211d;
  padding: 24px;
  text-decoration: none;
  color: #17211d;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}

.download-topic {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.download-card strong {
  font-size: 22px;
}

.download-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
}

#downloads {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: auto;
}

@media (max-width: 800px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.course-grid>a[href="cosmology.html"] {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;

  grid-column: auto !important;
  grid-row: auto !important;

  background: #ffffff !important;
  color: #17211d !important;
  border: 1px solid #17211d !important;
  padding: 17px !important;

  text-decoration: none !important;
}

.course-grid>a[href="cosmology.html"]>* {
  position: static !important;
  float: none !important;
  width: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.course-grid>a[href="cosmology.html"] .biology-card-image {
  display: block !important;
  width: 100% !important;
  height: 320px !important;
  object-fit: cover !important;
  margin: 18px 0 22px !important;
}

.course-grid>a[href="cosmology.html"] .card-top,
.course-grid>a[href="cosmology.html"] .card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.course-grid>a[href="cosmology.html"] h3 {
  display: block !important;
  margin: 0 0 24px !important;
}

.contributor-row {
  grid-template-columns: 150px 1fr !important;
  gap: 32px !important;
}

.contributor-photo {
  width: 150px !important;
  height: 190px !important;
  max-width: 150px !important;
  object-fit: cover !important;
  display: block !important;
}

.contributor-row {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: 100% !important;
}

.contributor-photo {
  width: 150px !important;
  height: 190px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

.contributor-copy {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 !important;
}

.contributor-copy h3 {
  margin-top: 0 !important;
}

.contributors-section {
  background: #f3effc !important;
}

.contributors-heading {
  margin-bottom: 100px !important;
}

.contributor-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 36px;
  align-items: start;

  width: 100%;
  padding: 32px 36px;
  margin-top: 30px;

  background: transparent;
  border: none;
}

.contributor-photo {
  margin-left: 12px !important;
}

.contributor-copy {
  width: 100%;
  max-width: 780px;
  margin: 0;
  padding: 28px 32px;

  background: #ffffff;
  border: 1px solid rgba(23, 33, 29, 0.18);
}

.hero-copy {
  margin-top: 70px;
}

.hero-copy h1 {
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.95;
}

.site-view-small {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(23, 33, 29, 0.55);
  text-align: right;
}

#site-view-count {
  font-weight: 700;
}

.social-visual {
  background: #f26d4b;
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-visual-text {
  color: white;
}

.social-kicker {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.social-visual-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  max-width: 260px;
  font-weight: 600;
}

.social-grade-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-grade-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid #111;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.subject-page {
  width: min(1100px, calc(100% - 40px));
  margin: 70px auto;
}

.subject-page-header {
  margin-bottom: 48px;
}

.subject-page-kicker {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.subject-page h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 0 0 18px;
}

.subject-page-header p {
  font-size: 1.15rem;
  margin: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.subject-card {
  border: 1.5px solid #111;
  padding: 28px;
  min-height: 240px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

a.subject-card:hover {
  transform: translateY(-4px);
}

.subject-number {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.subject-card h2 {
  font-size: 2.2rem;
  margin: 40px 0 10px;
}

.subject-card p {
  line-height: 1.5;
  margin: 0;
  max-width: 360px;
}

.subject-open {
  margin-top: auto;
  padding-top: 30px;
  font-weight: 700;
}

.subject-card-coming {
  opacity: 0.5;
}

@media (max-width: 700px) {
  .subject-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SCIENCE HUB CARD ===== */

.course-card.science-hub {
  width: 100%;
  box-sizing: border-box;
}

.science-hub-visual {
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  padding: 28px;
  background: #c8df45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.science-hub-text {
  color: #111;
}

.science-hub-title {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 14px;
}

.science-hub-text p {
  margin: 0;
  max-width: 290px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.science-hub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.science-hub-topics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid #111;
  border-radius: 999px;
  font-weight: 700;
  color: #111;
}

/* ===== FINAL COURSES SECTION LAYOUT ===== */

#courses {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 50px !important;
  align-items: start;
}

/* LEFT SIDE */

#courses-title {
  font-size: clamp(3.2rem, 4.3vw, 5rem);
  line-height: 0.9;
}

/* RIGHT SIDE */
#courses .course-cards-grid {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 32px !important;

  width: 100% !important;
  min-width: 0;
}

/* SAME SIZE CARDS */
#courses .course-cards-grid .course-card {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

/* SAME SIZE VISUAL AREAS */
#courses .science-hub-visual,
#courses .social-visual {
  height: 340px;
  min-height: 340px;
  box-sizing: border-box;
}

/* Prevent Social Studies content from overflowing */
#courses .social-kicker {
  font-size: 2.6rem;
}

#courses .social-grade-grid {
  gap: 10px;
}

#courses .social-grade-grid span {
  padding: 10px 15px;
}

/* MOBILE */
@media (max-width: 900px) {
  #courses {
    grid-template-columns: 1fr;
  }

  #courses .section-heading,
  #courses .section-note,
  #courses .course-cards-grid {
    grid-column: 1;
    grid-row: auto;
  }

  #courses .course-cards-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

/* LEFT SIDE OF COURSES */

#courses .courses-left {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

#courses .courses-left .section-heading {
  display: block;
  margin: 0;
}

#courses .courses-left .section-note {
  margin: 28px 0 0;
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.55;
}

#courses .courses-left .site-view-small {
  margin-top: 18px;
  max-width: 320px;
  text-align: left;
  font-size: 12px;
  color: rgba(23, 33, 29, 0.55);
}

.hub-image-wrap {
  width: 100%;
  height: 340px;
  margin: 18px 0;
  overflow: hidden;
  padding: 0;
}

.hub-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-card.science-hub {
  background: #4B7BD8;
  color: #FFFFFF;
}

.course-card.society {
  background: #5A3423;
  color: #F8F2EA;
}

/* ===== MOBILE COURSES FIX ===== */
@media (max-width: 900px) {

  #courses {
    display: block !important;
    width: 100% !important;
    padding: 70px 6% !important;
  }

  #courses .courses-left {
    width: 100% !important;
    margin-bottom: 40px;
  }

  #courses .course-cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 24px !important;
    margin-top: 0 !important;
  }

  #courses .course-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  #courses .hub-image-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  #courses .hub-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }

  #courses-title {
    font-size: clamp(3.2rem, 15vw, 5rem) !important;
    line-height: 0.9;
  }

  #courses .section-note {
    max-width: 100%;
  }
}

.about-cta {
  width: calc(100% - 32px);
  padding: 30px 24px;

  grid-template-columns: 1fr;
  gap: 24px;
}

.about-cta-button {
  width: 100%;
  text-align: center;
}

/* ==================================================
   MOSAIC NEW HERO
================================================== */

.mosaic-hero {
  min-height: 85vh;
  width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;

  gap: clamp(40px, 6vw, 110px);

  padding:

    clamp(45px, 5vh, 70px) clamp(40px, 6vw, 110px) clamp(70px, 8vh, 110px);

  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 78% 43%,
      rgba(119, 76, 240, 0.10),
      transparent 29%),
    radial-gradient(circle at 70% 65%,
      rgba(193, 154, 255, 0.08),
      transparent 24%),
    #fbfaf8;

  box-sizing: border-box;
}


/* ===== LEFT ===== */

.mosaic-hero-left {
  position: relative;
  z-index: 4;
  min-width: 0;
}


.mosaic-eyebrow {
  margin: 0 0 32px;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;

  color: #6e7180;
}


.mosaic-hero-title {
  margin: 0;

  display: flex;
  flex-direction: column;

  font-size: clamp(3.8rem, 5.3vw, 6.7rem);
  font-weight: 750;
  line-height: 0.94;
  letter-spacing: -0.055em;

  color: #171b25;
}


.mosaic-hero-title span {
  display: block;
}


.mosaic-hero-title .purple-title {
  margin-top: 8px;

  color: #693fe0;

  background: linear-gradient(90deg,
      #5731d4 0%,
      #9a72ed 47%,
      #5532d5 100%);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
}


/* ==================================================
   SEARCH
================================================== */

.mosaic-search-area {
  width: min(720px, 100%);
  margin-top: 48px;

  position: relative;
}


.mosaic-search-box {
  width: 100%;
  height: 68px;

  display: flex;
  align-items: center;

  gap: 16px;

  padding: 0 24px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.90);

  border: 1px solid rgba(20, 20, 25, 0.07);
  border-radius: 999px;

  box-shadow:
    0 20px 50px rgba(74, 50, 130, 0.09),
    0 4px 14px rgba(0, 0, 0, 0.03);

  backdrop-filter: blur(12px);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


.mosaic-search-box:focus-within {
  transform: translateY(-2px);

  border-color: rgba(105, 63, 224, 0.35);

  box-shadow:
    0 22px 55px rgba(91, 55, 185, 0.14),
    0 0 0 4px rgba(105, 63, 224, 0.06);
}


.mosaic-search-icon {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: #171b25;
  stroke-width: 1.8;
  stroke-linecap: round;

  flex-shrink: 0;
}


#mosaic-search-input {
  width: 100%;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;

  font: inherit;

  font-size: 1rem;
  font-weight: 500;

  color: #171b25;
}


#mosaic-search-input::placeholder {
  color: #9697a0;
}


/* ===== RESULTS ===== */

.mosaic-search-results {
  display: none;

  position: absolute;

  left: 0;
  right: 0;
  top: calc(100% + 12px);

  z-index: 20;

  padding: 10px;

  background: rgba(255, 255, 255, 0.97);

  border: 1px solid rgba(20, 20, 25, 0.08);
  border-radius: 22px;

  box-shadow:
    0 24px 70px rgba(36, 24, 71, 0.16);

  backdrop-filter: blur(18px);
}


.mosaic-search-results.active {
  display: block;
}


.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 17px;

  border-radius: 15px;

  color: #171b25;
  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}


.search-result-item:hover {
  background: #f2eefc;
  transform: translateX(3px);
}


.search-result-text {
  min-width: 0;
}


.search-result-title {
  display: block;

  font-size: 0.98rem;
  font-weight: 700;

  margin-bottom: 4px;
}


.search-result-meta {
  display: block;

  font-size: 0.78rem;
  color: #888993;
}


.search-result-arrow {
  font-size: 1.2rem;
  flex-shrink: 0;
}


.search-no-result {
  padding: 18px;

  font-size: 0.9rem;
  color: #83848d;
}


/* ==================================================
   POPULAR TOPICS
================================================== */

.popular-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  margin-top: 20px;
}


.popular-label {
  margin-right: 5px;

  font-size: 0.82rem;
  color: #81828b;
}


.popular-topics button {
  border: 0;

  padding: 9px 15px;

  border-radius: 999px;

  background: #f1eff4;

  color: #34333a;

  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.popular-topics button:hover {
  color: white;
  background: #693fe0;

  transform: translateY(-2px);
}


/* ==================================================
   RIGHT LOGO
================================================== */

.mosaic-hero-art {
  height: min(690px, 70vh);
  min-height: 480px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  --m-x: 0px;
  --m-y: 0px;
  --m-rotate-x: 0deg;
  --m-rotate-y: 0deg;

  perspective: 1000px;
}


.floating-m-logo {
  width: min(78%, 560px);
  max-height: 76%;

  object-fit: contain;

  position: relative;
  z-index: 4;

  transform:
    translate3d(var(--m-x), var(--m-y), 0) rotateX(var(--m-rotate-x)) rotateY(var(--m-rotate-y));

  filter:
    drop-shadow(0 35px 30px rgba(91, 49, 190, 0.18));

  transition:
    transform 0.14s ease-out;

  will-change: transform;

  animation:
    mosaicFloat 5s ease-in-out infinite;
}


@keyframes mosaicFloat {

  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -15px;
  }
}


/* ===== PURPLE GLOW ===== */

.mosaic-glow {
  position: absolute;

  width: 70%;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(140, 94, 238, 0.20),
      rgba(167, 128, 247, 0.08) 38%,
      transparent 70%);

  filter: blur(18px);

  z-index: 1;

  pointer-events: none;
}


/* ===== ORBITS ===== */

.mosaic-orbit {
  position: absolute;

  width: 92%;
  height: 47%;

  border: 1.5px solid rgba(122, 77, 220, 0.16);
  border-radius: 50%;

  z-index: 3;

  pointer-events: none;
}


.orbit-one {
  transform: rotate(-27deg);
}


.orbit-two {
  width: 78%;
  height: 39%;

  opacity: 0.45;

  transform: rotate(24deg);
}


.orbit-dot {
  position: absolute;

  width: 16px;
  height: 16px;

  right: 9%;
  top: 26%;

  border-radius: 50%;

  background: linear-gradient(135deg,
      #bb94ff,
      #6538db);

  box-shadow:
    0 0 18px rgba(107, 61, 224, 0.65);

  z-index: 5;

  animation:
    orbitDotFloat 3.5s ease-in-out infinite;
}


@keyframes orbitDotFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 900px) {

  .mosaic-hero {
    min-height: auto;

    display: flex;
    flex-direction: column;

    padding:
      50px 7% 75px;

    gap: 45px;
  }


  .mosaic-hero-left {
    width: 100%;
  }


  .mosaic-eyebrow {
    margin-bottom: 22px;

    font-size: 0.68rem;
    line-height: 1.5;
  }


  .mosaic-hero-title {
    font-size: clamp(3.2rem, 14vw, 5rem);
    line-height: 0.92;
  }


  .mosaic-search-area {
    margin-top: 35px;
  }


  .mosaic-search-box {
    height: 60px;

    padding: 0 20px;
  }


  .popular-topics {
    gap: 7px;
  }


  .popular-label {
    width: 100%;
    margin-bottom: 4px;
  }


  .mosaic-hero-art {
    width: 100%;

    height: 370px;
    min-height: 0;

    order: 2;
  }


  .floating-m-logo {
    width: min(78vw, 390px);

    transition: none;

    transform: none !important;
  }


  .mosaic-orbit {
    width: min(92vw, 470px);
  }

}


/* SMALL PHONE */

@media (max-width: 520px) {

  .mosaic-hero {
    padding-left: 22px;
    padding-right: 22px;
  }


  .mosaic-hero-title {
    font-size: clamp(3rem, 15.5vw, 4.2rem);
  }


  .mosaic-search-box {
    height: 58px;
  }


  #mosaic-search-input {
    font-size: 0.9rem;
  }


  .mosaic-hero-art {
    height: 310px;
  }

}

.floating-m-logo {
  width: min(85%, 620px);
}

/* ===== CLEAN MARQUEE ===== */

.marquee {
  background: #fbfaf8 !important;
  border-top: 1px solid rgba(105, 63, 224, 0.10);
  border-bottom: 1px solid rgba(105, 63, 224, 0.10);

  overflow: hidden;
  padding: 18px 0 !important;

  color: #6f6a7d !important;
}

.marquee>div {
  display: flex;
  align-items: center;
  gap: 34px;

  white-space: nowrap;

  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em;

  color: #6f6a7d !important;
}

.marquee span {
  color: #7447df !important;

  font-size: 0.8rem;
  opacity: 0.7;
}

.search-highlight {
  background: transparent;
  color: #693fe0;
  font-weight: 800;
}

/* ===== SEARCH RESULTS ABOVE MARQUEE ===== */

.mosaic-hero {
  position: relative;
  overflow: visible !important;
  z-index: 2;
}

.mosaic-hero-left {
  position: relative;
  z-index: 10;
}

.mosaic-search-area {
  position: relative;
  z-index: 100;
}

.mosaic-search-results {
  z-index: 9999 !important;
}

.marquee {
  position: relative;
  z-index: 1;
}

/* ===== SEARCH RESULTS PUSH CONTENT DOWN ===== */

.mosaic-search-results {
  position: static !important;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.mosaic-search-results.active {
  display: block;
}

.mosaic-search-area {
  position: relative;
  z-index: 100;
}

.mosaic-hero {
  height: auto !important;
  overflow: visible !important;
}

/* ===== CONTRIBUTORS MOBILE FIX ===== */

@media (max-width: 700px) {

  .contributors-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .contributors-heading {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contributor-row {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 24px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .contributor-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    aspect-ratio: 4 / 3;
    object-fit: cover;

    display: block;
  }

  .contributor-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;
  }

  .contributor-copy h3 {
    width: 100% !important;
    max-width: 100% !important;

    font-size: 1.7rem !important;
    line-height: 1.15 !important;

    margin-bottom: 18px !important;
  }

  .contributor-copy p,
  .contributor-copy li {
    width: 100% !important;
    max-width: 100% !important;

    font-size: 1rem !important;
    line-height: 1.6 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .contributor-copy ul {
    width: 100% !important;

    padding-left: 20px !important;
    margin-top: 10px !important;
  }

}

.marquee {
  overflow: hidden;
}

.marquee>div {
  display: flex;
  justify-content: center !important;
  align-items: center;
  gap: 34px;

  width: 100% !important;

  transform: none !important;
  animation: none !important;
}

.page-search-highlight {
  background: #e9ddff !important;
  color: #5f36d8 !important;
  padding: 1px 3px;
  border-radius: 4px;
}

.page-search-highlight.current-search-match {
  background: #693fe0 !important;
  color: #ffffff !important;
}

#page-search-navigator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(105, 63, 224, 0.18);
  border-radius: 999px;

  box-shadow:
    0 12px 35px rgba(50, 35, 90, 0.16);
}

#page-search-navigator button {
  border: 0;
  background: transparent;

  font-size: 1.15rem;
  cursor: pointer;

  color: #693fe0;
}

#search-match-counter {
  min-width: 48px;
  text-align: center;

  font-size: 0.82rem;
  font-weight: 700;

  color: #494653;
}

.top-search-section {
  width: min(1380px, calc(100% - 80px));
  margin: 40px auto 0;
}

.top-search-section .mosaic-search-area {
  width: 100%;
  margin: 0 auto;
}

.top-search-section {
  width: min(1400px, calc(100% - 80px));
  margin: 36px auto 0;
}

@media (max-width: 900px) {
  .top-search-section {
    width: calc(100% - 32px);
    margin: 24px auto 0;
  }
}

.contributors-heading h2 {
  padding-left: 20vw !important;
  padding-bottom: var(--blue);
  box-sizing: border-box;
}

/* ==================================================
   MOSAIC ABOUT US
================================================== */

.about-mosaic {
  width: 100%;
  background: #ffffff;
  color: #17211d;
}


/* ---------- INTRO ---------- */

.about-intro {
  width: min(1400px, calc(100% - 120px));
  margin: 0 auto;

  min-height: 680px;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(50px, 7vw, 120px);

  padding: 110px 0;
}

.about-kicker {
  margin: 0 0 22px;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.about-intro-title {
  margin: 0;

  font-size: clamp(3.4rem, 5.3vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;

  color: #17211d;
}

.about-intro-title span {
  color: #7c3aed;
}

.about-intro-text {
  max-width: 610px;

  margin: 38px 0 0;

  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;

  color: #65636d;
}


/* ---------- Intro visual ---------- */

.about-intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual-card {
  width: min(560px, 100%);
  min-height: 390px;

  border-radius: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;

  padding: 60px;

  background:
    radial-gradient(circle at 75% 25%,
      rgba(124, 58, 237, 0.18),
      transparent 35%),
    radial-gradient(circle at 20% 80%,
      rgba(188, 149, 255, 0.18),
      transparent 35%),
    #faf8ff;
}

.about-visual-mosaic {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(8rem, 13vw, 13rem);
  font-weight: 800;

  line-height: 1;

  background: linear-gradient(135deg,
      #4f22c7,
      #7c3aed,
      #b68cff);

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-visual-card p {
  margin: 0;

  font-size: 1rem;
  line-height: 1.8;
  font-weight: 600;

  color: #5d5768;
}


/* ==================================================
   ABOUT BLOCK
================================================== */

.about-block {
  width: min(1400px, calc(100% - 120px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(70px, 9vw, 150px);

  padding: 120px 0;
}

.about-section-label {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 40px;

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.about-number {
  color: #7c3aed;

  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.about-line {
  width: 55px;
  height: 1px;

  background: rgba(124, 58, 237, 0.4);
}


.about-big-title {
  margin: 0;

  font-size: clamp(4rem, 6vw, 7.5rem);
  line-height: 0.91;
  letter-spacing: -0.065em;

  color: #17211d;
}

.about-big-title span {
  color: #7c3aed;
}


/* ---------- Text ---------- */

.about-block-right {
  align-self: center;
}

.about-block-right>p {
  max-width: 620px;

  margin: 0 0 28px;

  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.65;

  color: #33313a;
}


/* ---------- Small message ---------- */

.about-message-card {
  max-width: 520px;

  margin-top: 42px;

  display: flex;
  align-items: center;
  gap: 22px;

  padding: 24px 28px;

  border-radius: 22px;

  background:
    linear-gradient(135deg,
      rgba(124, 58, 237, 0.08),
      rgba(197, 166, 255, 0.12));
}

.about-message-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  color: #7c3aed;
  font-size: 1.6rem;
  font-weight: 800;
}

.about-message-card p {
  margin: 0;

  line-height: 1.5;
  font-weight: 600;
}


/* ==================================================
   HOW TO USE
================================================== */

.about-how {
  width: 100%;
  max-width: none;

  padding-left: max(60px, calc((100vw - 1400px) / 2));
  padding-right: max(60px, calc((100vw - 1400px) / 2));

  background:
    radial-gradient(circle at 20% 20%,
      rgba(124, 58, 237, 0.08),
      transparent 30%),
    radial-gradient(circle at 80% 70%,
      rgba(178, 139, 255, 0.08),
      transparent 32%),
    #fbf9ff;
}

.about-how-title span {
  color: #7c3aed;
}

.about-how-description {
  max-width: 570px;

  margin: 40px 0 0;

  font-size: 1.08rem;
  line-height: 1.65;

  color: #66616f;
}


/* ---------- Steps ---------- */

.about-steps {
  align-self: center;

  display: flex;
  flex-direction: column;
  gap: 42px;
}

.about-step {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 28px;

  align-items: center;
}

.about-step-icon {
  width: 82px;
  height: 82px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eee7ff;

  font-size: 2rem;
  color: #693fe0;
}

.about-step:nth-child(2) .about-step-icon {
  background: #f3e9ff;
}

.about-step:nth-child(3) .about-step-icon {
  background: #e9f4ee;
}

.about-step h3 {
  margin: 0 0 8px;

  font-size: 1.35rem;
  font-weight: 800;
}

.about-step h3 span {
  color: #7c3aed;
}

.about-step p {
  max-width: 470px;

  margin: 0;

  font-size: 1rem;
  line-height: 1.55;

  color: #68636f;
}


/* ==================================================
   ABOUT CTA
================================================== */

.about-cta {
  width: min(1400px, calc(100% - 120px));

  margin: 70px auto 120px;

  padding: 26px 34px;

  border: 1px solid rgba(105, 63, 224, 0.12);
  border-radius: 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;

  background: #ffffff;

  box-shadow:
    0 20px 60px rgba(78, 54, 120, 0.07);
}

.about-cta {
  width: min(1400px, calc(100% - 80px));
  margin: 70px auto 120px;
  padding: 42px 48px;

  border: 1px solid rgba(105, 63, 224, 0.12);
  border-radius: 28px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #ffffff;

  box-shadow:
    0 20px 60px rgba(78, 54, 120, 0.07);

  box-sizing: border-box;
}

.about-cta-button {
  flex-shrink: 0;

  padding: 20px 34px;

  border-radius: 16px;

  text-decoration: none;

  background:
    linear-gradient(135deg,
      #693fe0,
      #8b42ef);

  color: #ffffff;

  font-weight: 700;

  white-space: nowrap;
}

.about-cta-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(105, 63, 224, 0.22);
}


/* ==================================================
   ABOUT — MOBILE
================================================== */

@media (max-width: 900px) {

  .about-intro,
  .about-block {
    width: calc(100% - 40px);

    grid-template-columns: 1fr;

    gap: 55px;

    padding: 75px 0;
  }

  .about-intro {
    min-height: auto;
  }

  .about-intro-title {
    font-size: clamp(3.1rem, 13vw, 5rem);
  }

  .about-visual-card {
    min-height: 300px;

    padding: 35px;

    flex-direction: column;

    text-align: center;
  }

  .about-big-title {
    font-size: clamp(3.4rem, 14vw, 5.5rem);
  }

  .about-how {
    width: 100%;

    padding-left: 20px;
    padding-right: 20px;
  }

  .about-step {
    grid-template-columns: 64px 1fr;
    gap: 20px;
  }

  .about-step-icon {
    width: 64px;
    height: 64px;

    font-size: 1.5rem;
  }

  .about-cta {
    width: calc(100% - 40px);

    margin-bottom: 80px;

    flex-direction: column;
    align-items: flex-start;
  }

  .about-cta p {
    margin: 0;

    max-width: 620px;

    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 600;
  }

  .about-cta-button {
    width: 100%;

    text-align: center;
  }

}

.about-student-illustration {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  object-fit: contain;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  gap: 64px;
  align-items: center;

  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
  padding: 100px 0;
}

.about-intro-copy {
  min-width: 0;
}

.about-intro-visual {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.about-student-illustration {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================================
   ABOUT HORIZONTAL SLIDER
========================================= */

.about-slider {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  gap: 28px;

  padding: 0 6% 30px;

  box-sizing: border-box;

  -webkit-overflow-scrolling: touch;
}


/* each page */

.about-slide {
  flex: 0 0 calc(100vw - 12%);
  width: calc(100vw - 12%);
  max-width: none;

  scroll-snap-align: start;

  box-sizing: border-box;

  border-radius: 28px;
}


/* Fix existing about block sizing */

.about-slider .about-block {
  margin: 0;
}


/* WHY page */

.about-slider .about-why {
  background: #ffffff;
}


/* HOW page */

.about-slider .about-how {
  padding-left: clamp(45px, 6vw, 100px);
  padding-right: clamp(45px, 6vw, 100px);

  background:
    radial-gradient(circle at 20% 20%,
      rgba(124, 58, 237, 0.08),
      transparent 30%),
    radial-gradient(circle at 80% 70%,
      rgba(178, 139, 255, 0.08),
      transparent 32%),
    #fbf9ff;
}


/* prettier scrollbar */

.about-slider::-webkit-scrollbar {
  height: 8px;
}

.about-slider::-webkit-scrollbar-track {
  background: #eee9f7;
  border-radius: 999px;
}

.about-slider::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 999px;
}

.about-slider::-webkit-scrollbar-thumb:hover {
  background: #693fe0;
}


/* Firefox */

.about-slider {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #eee9f7;
}

.about-slider {
  overflow-x: scroll;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: auto;
  scrollbar-color: #8b5cf6 #eee9f7;
}


/* Chrome / Safari */
.about-slider::-webkit-scrollbar {
  height: 12px;
}

.about-slider::-webkit-scrollbar-track {
  background: #eee9f7;
  border-radius: 999px;
}

.about-slider::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 999px;
  border: 3px solid #eee9f7;
}

.about-slider::-webkit-scrollbar-thumb:hover {
  background: #693fe0;
}

.about-slide-hint {
  display: block !important;

  margin: 14px 0 0 !important;
  padding: 0 !important;

  width: auto !important;

  text-align: left !important;

  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;

  color: rgba(23, 33, 29, 0.32) !important;

  transform: none !important;
  position: static !important;
}

/* =========================================
   ABOUT MOBILE FINAL FIX
========================================= */

@media (max-width: 768px) {

  /* ---------- INTRO ---------- */

  .about-intro {
    width: calc(100% - 40px);
    margin: 0 auto;

    grid-template-columns: 1fr;
    gap: 32px;

    padding: 64px 0;
    min-height: auto;
  }

  .about-intro-copy,
  .about-intro-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .about-intro-visual {
    justify-self: stretch;
  }

  .about-student-illustration {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }


  /* ---------- HORIZONTAL ABOUT SLIDER ---------- */

  .about-slider {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: row;

    gap: 0;

    padding: 0;
    margin: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding: 0;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .about-slider::-webkit-scrollbar {
    display: none;
  }


  /* Each About page = exactly one mobile screen width */

  .about-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;

    margin: 0;

    box-sizing: border-box;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    transform: none;
    left: auto;
    right: auto;
  }


  /* WHY / HOW content inside each slide */

  .about-slider .about-block {
    width: 100%;
    max-width: 100%;

    margin: 0;

    padding: 60px 24px;

    grid-template-columns: 1fr;
    gap: 42px;

    box-sizing: border-box;

    transform: none;
  }

  .about-block-left,
  .about-block-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;

    box-sizing: border-box;

    transform: none;
    left: auto;
    right: auto;
  }

  .about-big-title {
    font-size: clamp(3.3rem, 14vw, 5rem);
    line-height: 0.92;
  }

  .about-block-right > p {
    width: 100%;
    max-width: 100%;

    font-size: 1rem;
    line-height: 1.6;
  }


  /* ---------- HOW TO USE ---------- */

  .about-slider .about-how {
    padding: 60px 24px;
  }

  .about-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }

  .about-step-icon {
    width: 56px;
    height: 56px;
  }


  /* ---------- CTA ---------- */

  .about-cta {
    width: calc(100% - 40px);
    max-width: none;

    margin: 48px auto 80px;
    padding: 24px;

    display: block;

    box-sizing: border-box;
  }

  .about-cta-button {
    display: flex;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    justify-content: center;
    align-items: center;

    margin: 0;

    padding: 18px 20px;

    box-sizing: border-box;

    white-space: normal;
    text-align: center;

    position: static;
    transform: none;
    left: auto;
    right: auto;
  }

}

/* =========================================
   GUIDE TITLE SIZE FIX
========================================= */

/* 페이지 맨 위: 한국어 안내서 */
.guide-reader-header h1 {
  font-size: 48px !important;
  line-height: 1.1 !important;
}

/* MOSAIC으로 공부를 시작해 보세요 */
.guide-introduction h2 {
  font-size: 36px !important;
  line-height: 1.25 !important;
}

/* MOSAIC 사용 방법, Science Quiz 사용 방법 등 */
.guide-section-heading h2 {
  font-size: 30px !important;
  line-height: 1.25 !important;
}

/* 학년과 과목 선택하기 등의 소제목 */
.guide-content h3 {
  font-size: 19px !important;
  line-height: 1.45 !important;
}

/* 작은 박스 제목 */
.guide-content h4 {
  font-size: 16px !important;
  line-height: 1.45 !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .guide-reader-header h1 {
    font-size: 36px !important;
  }

  .guide-introduction h2 {
    font-size: 28px !important;
  }

  .guide-section-heading h2 {
    font-size: 24px !important;
  }

  .guide-content h3 {
    font-size: 18px !important;
  }
}

.contributor-school {
  font-size: 13px;
  font-weight: 400;
  color: #888;
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Contributor name */
.contributor-copy h3 {
  margin-bottom: 0 !important;
}

/* Contributor school */
.contributor-copy .contributor-school {
  font-size: 13px !important;
  font-weight: 400;
  color: #888;
  margin-top: 5px !important;
  margin-bottom: 0;
  line-height: 1.4;
}