/* CSS Variables */
:root {
  --section-1: #ff6b6b;
  --section-2: #4ecdc4;
  --section-3: #45b7d1;
  --section-4: #96ceb4;
  --section-5: #ffeaa7;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow: hidden;
}

/* Snap Container */
.snap-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

/* Section Base */
.section {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Section Backgrounds */
.section--1 {
  background: #1a1a1a url("./assets/bg_1.png") center / cover no-repeat;
  overflow: hidden;
}

.section--2,
.section--3 {
  position: relative;
  overflow: hidden;
}

.section--2::before,
.section--3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/bg_2.jpg") center / cover no-repeat;
  transform: scale(1);
  transition: transform 3s ease-out;
  z-index: -1;
}

.section--2.zoom-in::before,
.section--3.zoom-in::before {
  transform: scale(1.1);
}

.section--3b {
  position: relative;
  overflow: hidden;
}

.section--3b::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/bg_5.jpg") center bottom / cover no-repeat;
  filter: grayscale(1);
  z-index: -1;
}

.section--6, .section--9 {
  height: auto;
}

.finale {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 32px;
  text-align: center;
}

.finale__text {
  font-family: "Noh Optique Text", serif;
  font-size: 36px;
  line-height: 64px;
  color: #ffffff;
}

.finale__highlight {
  font-family: "Noh Optique Text", serif;
  font-size: 80px;
  line-height: 1.2;
  background: linear-gradient(180deg, #f98f1c 0%, #f98f1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section--4 {
  background-color: var(--section-4);
}
.section--5 {
  background: linear-gradient(to bottom, #000000 70%, #311a01);
}

.section--6a.section--tab {
  background-color: #ffffff;
}

.section--6a .tab-content {
  padding-top: 40px;
  padding-bottom: 20px;
}

/* 성적향상 증명 - 첫번째 페이지 */
.grade-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.grade-proof__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #000;
  text-align: center;
}

.grade-proof__subtitle {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #9da7ae;
  text-align: center;
}

.grade-proof__content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grade-proof__nav {
  display: flex;
  align-items: center;
  width: 736px;
  height: 48px;
  background-color: rgba(231, 234, 235, 0.4);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.grade-proof__nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: none;
  background: none;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(129, 137, 143, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.grade-proof__nav-item:first-child {
  border-radius: 12px 0 0 0;
}

.grade-proof__nav-item:last-child {
  border-radius: 0 12px 0 0;
}

.grade-proof__nav-item.active {
  background-color: #e7eaeb;
  color: #f98f1c;
  font-weight: 700;
}

.grade-proof__nav-item:first-child.active {
  border-radius: 12px 0 0 0;
}

.grade-proof__nav-item:last-child.active {
  border-radius: 0 12px 0 0;
}

.grade-proof__images {
  width: 100%;
  display: flex;
  justify-content: center;
}

.grade-proof__image {
  width: 736px;
  height: auto;
  display: none;
}

.grade-proof__image--desktop.active {
  display: block;
  margin: 0 auto;
}

.grade-proof__image--mobile {
  display: none;
}

.grade-proof__button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
  width: 224px;
  height: 54px;
  background-color: #f98f1c;
  border-radius: 8px;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.grade-proof__button:hover {
  background-color: #e07d10;
}

.grade-proof__button:active {
  background-color: #d06c08;
}

.section--6b.section--tab {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.section--6b.section--tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/bg_6.png") center / cover no-repeat;
  transform: rotate(180deg);
  z-index: 0;
}

.section--6b.section--tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 10%,
    rgba(255, 255, 255, 0.7) 30%,
    transparent 80%
  );
  z-index: 1;
}

/* 성적향상 증명 - 솔루션 섹션 */
.section--6b .tab-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
  text-align: center;
}

.grade-improvement {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* 데스크탑 트랙 - 무한 스크롤 */
.grade-improvement__track--desktop {
  display: flex;
  gap: 14px;
  width: max-content;
}
 /* 상단 트랙: 왼쪽으로 스크롤 */
  .grade-improvement__track--desktop-top {
    animation: scrollLeft 120s linear infinite;
  }

  /* 하단 트랙: 오른쪽으로 스크롤 */
  .grade-improvement__track--desktop-bottom {
    animation: scrollRight 120s linear infinite;
  }

/* 모바일 트랙 - 기본적으로 숨김 */
.grade-improvement__track--mobile-top,
.grade-improvement__track--mobile-bottom {
  display: none;
}

.grade-improvement__img {
  height: 180px;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

/* 데스크탑 무한 스크롤 애니메이션 */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 38개 이미지 * (이미지 너비 약 165px + gap 14px) = 약 6800px */
    transform: translateX(calc(-165px * 38 - 14px * 38));
  }
}
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
    /* 38개 이미지 * (이미지 너비 약 165px + gap 14px) = 약 6800px */
    transform: translateX(calc(-165px * 38 - 14px * 38));
    }
  }

  @keyframes scrollRight {
    0% {
    /* 38개 이미지 * (이미지 너비 약 165px + gap 14px) = 약 6800px */
    transform: translateX(calc(-165px * 38 - 14px * 38));
    }
    100% {
      transform: translateX(0);
    }
  }

.grade-solution__title {
  font-family: "Pretendard", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
  color: #000;
}

.grade-solution__title--orange {
  color: #f98f1c;
}

.grade-solution__image {
  max-width: 900px;
  width: 100%;
  margin: 2rem 0;
}

.grade-solution__slogan {
  font-family: "Noto Serif KR", serif;
  font-size: 28px;
  font-weight: 700;
  color: #81898f;
  margin-bottom: 12px;
}

.grade-solution__message {
  font-family: "Noto Serif KR", serif;
  font-size: 28px;
  font-weight: 700;
  color: #000;
}

.section--7.section--tab {
  background: url("./assets/bg_3.jpg") center / cover no-repeat;
  position: relative;
}

.section--7.section--tab::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000000;
  mix-blend-mode: multiply;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.section--7 .tab-content {
  overflow: visible;
}

/* 커리큘럼 - 첫번째 페이지 */
.section--8a.section--tab {
  background-color: #ffffff;
}

.curriculum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 3rem 0;
}

.curriculum__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #000;
  text-align: center;
}

.curriculum__subtitle {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #9da7ae;
  text-align: center;
}

.curriculum__container {
  max-width: 900px;
  width: 100%;
  height: 510px;
  background-color: #e7eaeb;
  border-radius: 16px;
  overflow: hidden;
}

.curriculum__nav {
  display: flex;
  width: 100%;
}

.curriculum__nav-item {
  flex: 1;
  height: 43px;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #9da7ae;
  cursor: pointer;
  transition: all 0.3s ease;
}

.curriculum__nav-item.active {
  background-color: #e7eaeb;
  color: #f98f1c;
}

.curriculum__content {
  width: 100%;
}

.curriculum__panel {
  display: none;
  min-height: 400px;
  align-items: center;
  justify-content: center;
}

.curriculum__panel.active {
  display: flex;
}

.curriculum__coming-soon {
  max-width: 300px;
}

/* 커리큘럼 - 두번째 페이지 */
.section--8b.section--tab {
  overflow: hidden;
  background-image: url("./assets/bg_7.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.section--8b .tab-content {
  position: relative;
  align-items: flex-start;
  padding-left: 0;
  padding-right: 0;
}

.curriculum-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.curriculum-detail__intro,
.curriculum-detail__quote,
.curriculum-detail__desc,
.curriculum-detail__closing,
.curriculum-detail__sign {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.curriculum-detail__intro.visible,
.curriculum-detail__quote.visible,
.curriculum-detail__desc.visible,
.curriculum-detail__closing.visible,
.curriculum-detail__sign.visible {
  opacity: 1;
  transform: translateY(0);
}

.curriculum-detail__intro {
  font-family: "Noto Serif KR", serif;
  font-size: 24px;
  color: #ffffff;
}

.curriculum-detail__quote {
  font-family: "Noto Serif KR", serif;
  font-size: 26px;
  color: #f98f1c;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.curriculum-detail__desc {
  font-family: "Noto Serif KR", serif;
  font-size: 24px;
  line-height: 44px;
  color: #ffffff;
}

.curriculum-detail__closing {
  font-family: "Noh Optique Text", serif;
  font-size: 26px;
  color: #ffffff;
}

.curriculum-detail__sign {
  width: 160px;
  height: auto;
}

.curriculum-detail__teacher {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 80%;
  width: auto;
  object-fit: contain;
}

.section--8b picture {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.curriculum-detail__image {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--9.section--tab {
  background-color: #fff9f5;
}

.section7__teacher {
  position: absolute;
  right: 15%;
  bottom: 0;
  height: 90%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(1);
}

/* Section 1 - Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 5%;
}


.hero__text,
.hero__teacher {
  opacity: 1; /* 항상 보이게 한 후 애니메이션 */
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  animation: slideFromLeft 1s ease-out forwards;
  position: relative;
  left: 12vw;
}

.hero__text-wrapper {
  height: 12vh;
}

.hero__text-wrapper--1 {
  margin-left: 4vw;
  position: relative;
  z-index: 3;
}

.hero__text-wrapper--2 {
  margin-left: 8vw;
  position: relative;
  z-index: 0;
}

.hero__text-wrapper--3 {
  margin-left: 0;
  position: relative;
  z-index: 3;
}

.hero__text-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hero__teacher {
  position: relative;
  z-index: 2;
  animation: slideFromRight 1s ease-out forwards;
}

.hero__shadow {
  position: absolute;
  top: 50%;
  left: 64%;
  transform: translate(-50%, -50%);
  z-index: 0;
  height: 95vh;
  width: auto;
}

.hero__image {
  position: relative;
  z-index: 1;
  height: 95vh;
  width: auto;
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Animations */
@keyframes slideFromLeft {
  from { 
    transform: translateX(-100px);
  }
  to { 
    transform: translateX(0); 
  }
}
@keyframes slideFromRight {
  from { transform: translateX(100px); }
  to   { transform: translateX(0); }
}

@keyframes slideFromTop {
  from {
    transform: translateY(-50px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideFromBottom {
  from {
    transform: translateY(50px);
  }
  to {
    transform: translateY(0);
  }
}

/* Section 2 - Quotes */
.quotes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 8vh;
  padding: 0 5%;
}

.quotes__line {
  font-family: "Noto Serif KR", serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 48px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: color 0.5s ease;
}

.quotes__line.active {
  color: #ffffff;
}

.quotes__line:last-child.active {
  color: #f98f1c;
}

.mobile-br {
  display: none;
}

.desktop-br {
  display: inline;
}

/* Section 3 - Statement */
.statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 48px;
  padding: 0 5%;
}

.statement__line {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 64px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: color 0.5s ease;
}

.statement__line--title {
  font-size: 64px;
  margin-bottom: 16px;
}

.statement__line--highlight {
  font-size: 36px;
  letter-spacing: 0.64em;
  opacity: 0;
  transform: scale(0.3);
}

.statement__line.active {
  color: #ffffff;
}

.statement__line--highlight.active {
  color: #f98f1c;
  opacity: 1;
  transform: scale(1);
  animation: popBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section 4-9 - 하단 sticky */
.bottom-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 72px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.bottom-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.bottom-banner__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  width: 820px;
  height: 100%;
  text-align: left;
  border-radius: 5px;
  background-color: #F7D6AF;
  cursor: pointer;
  text-decoration: none !important;
}
.bottom-banner__item a {
  text-decoration: none !important;
}
.bottom-banner__item p {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bottom-banner__item span {
  color: #F98F1C;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.bottom-banner__item b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444444;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

/* Section 4-9 - Tab Sections */
.tab-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  height: 50px;
  background-color: rgba(20, 22, 23, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  scrollbar-gutter: stable;
}

.tab-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  padding: 0 5%;
}

.tab-nav.visible {
  opacity: 1;
  visibility: visible;
}

.section--tab {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #000000;
}

.tab-nav__item {
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #81898f;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.tab-nav__item:hover {
  color: #a0a8ae;
}

.tab-nav__item.active {
  color: #f98f1c;
}

.tab-nav__text--short {
  display: none;
}

.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 84px 20px;
}

.section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Section 4 - Highscore */
.highscore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.highscore__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #ffffff;
  text-align: center;
}

.highscore__menu {
  display: flex;
  gap: 1.5rem;
}

.highscore__menu-item {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #7d7d7d;
  background-color: #272727;
  border: none;
  border-radius: 100px;
  width: 120px;
  height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.highscore__menu-item:hover {
  color: #a0a8ae;
}

.highscore__menu-item.active {
  background-color: #ffffff;
  color: #000000;
}

.highscore__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
}

.highscore__block {
  flex-shrink: 0;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.highscore__card {
  flex: 1;
  max-width: 798px;
  overflow: hidden;
}

.highscore__slider {
  display: flex;
  width: 300%;
  transition: transform 0.3s ease;
}

.highscore__slide {
  flex: 0 0 33.333%;
  width: 33.333%;
  height: auto;
  object-fit: contain;
}

.highscore__slider--mobile {
  display: none;
}

/* Section 5 - Highlight */
.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.highlight__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #ffffff;
  text-align: center;
}

.highlight__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 54px;
  background-color: #ffffff;
  border-radius: 8px;
}

.highlight__caption-accent {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #f98f1c;
}

.highlight__caption-text {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #141617;
}

.highlight__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
}

.highlight__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.highlight__link {
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #81898f;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.highlight__link:hover {
  color: #f98f1c;
}

/* Section 7 - Game Changer */
.gamechanger {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.gamechanger__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.gamechanger__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
}

.gamechanger__title-top {
  color: #ffffff;
}

.gamechanger__title-bottom {
  color: #f98f1c;
}

.gamechanger__subtitle {
  font-family: "Pretendard", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  opacity: 0.7;
}

.gamechanger__level {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.gamechanger__level-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #353535;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #949494;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamechanger__level-item.active {
  background-color: #f98f1c;
  color: #ffffff;
}

.gamechanger__level-line {
  width: 78px;
  height: 1px;
  background-color: #353535;
}

.gamechanger__content {
  position: relative;
  text-align: center;
}

.gamechanger__text {
  display: none;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 30px;
  color: #ffffff;
  text-align: center;
}

.gamechanger__text.active {
  display: block;
}

.gamechanger__panel {
  width: 100%;
  height: 440px;
  position: relative;
}

.gamechanger__panel-item {
  display: none;
  width: 100%;
  height: 100%;
}

.gamechanger__panel-item.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gamechanger__board {
  position: relative;
  display: inline-block;
}

.gamechanger__board-mobile {
  display: none;
}

.gamechanger__board-img {
  height: 340px;
  width: auto;
  object-fit: contain;
}

.gamechanger__bubble {
  position: absolute;
  height: auto;
}

.gamechanger__bubble--1 {
  left: 0px;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  animation: float-1 3s ease-in-out infinite;
}

.gamechanger__bubble--2 {
  top: 0px;
  right: -100px;
  animation: float-2 3.2s ease-in-out infinite 0.5s;
}

.gamechanger__bubble--3 {
  right: 0px;
  bottom: 60px;
  transform: translateX(50%);
  animation: float-3 2.8s ease-in-out infinite 1s;
}

.gamechanger__bubble--4 {
  left: 0px;
  bottom: 20px;
  transform: translateX(-30%);
  animation: float-4 3.4s ease-in-out infinite 0.3s;
}

.gamechanger__bubble--5 {
  right: 0px;
  bottom: 0%;
  transform: translateY(50%) translateX(30%);
  animation: float-5 3s ease-in-out infinite 0.8s;
}

.gamechanger__bubble--6 {
  left: -88px;
  bottom: -80px;
  animation: float-6 3.1s ease-in-out infinite 0.6s;
}

@keyframes float-1 {
  0%,
  100% {
    transform: translateY(-50%) translateX(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 10px)) translateX(-50%);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-3 {
  0%,
  100% {
    transform: translateX(50%);
  }
  50% {
    transform: translateX(50%) translateY(-10px);
  }
}

@keyframes float-4 {
  0%,
  100% {
    transform: translateX(-30%);
  }
  50% {
    transform: translateX(-30%) translateY(-10px);
  }
}

@keyframes float-5 {
  0%,
  100% {
    transform: translateY(50%) translateX(30%);
  }
  50% {
    transform: translateY(calc(50% - 10px)) translateX(30%);
  }
}

@keyframes float-6 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Level 2 Panel */
.gamechanger__panel-item[data-level="2"] {
  padding: 0 32px;
}

.gamechanger__level2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gamechanger__algo-btn {
  width: 100%;
  height: 68px;
  background: linear-gradient(
      106.59deg,
      rgba(249, 143, 28, 0.4) 50.31%,
      rgba(255, 255, 255, 0.28) 59.99%,
      rgba(249, 143, 28, 0.4) 79.18%
    ),
    #f98f1c;
  border: none;
  border-radius: 12px;
  cursor: default;
  font-family: "Pretendard", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #010101;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamechanger__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 32px;
}

.gamechanger__step-box {
  width: 156px;
  height: 200px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  flex-shrink: 0;
}

.gamechanger__step-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(
    102.64deg,
    #f98f1c 4.08%,
    #ffd9b0 35.79%,
    #f98f1c 98.3%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gamechanger__step-text {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #f98f1c;
}

.gamechanger__step-arrow {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #f98f1c;
}

.gamechanger__step-list {
  list-style: none;
  margin-top: 6px;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile - Game Changer Header */
@media (max-width: 768px) {
  .gamechanger__title {
    font-size: 22px;
    line-height: 30px;
  }

  .gamechanger__title-top,
  .gamechanger__title-bottom {
    font-size: 22px;
    line-height: 30px;
  }

  .gamechanger__subtitle {
    font-size: 15px;
    line-height: 22px;
    text-align: center;
  }

  .gamechanger__level {
    width: 100%;
  }

  .gamechanger__level-item {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .gamechanger__level-line {
    flex: 1;
  }

  .gamechanger__text {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 24px;
  }

  .gamechanger__panel {
    height: 600px;
  }

  .gamechanger__panel-item.active {
    align-items: flex-start;
  }

  /* Level 1 - 모바일 전용 */
  .gamechanger__board {
    display: none;
  }

  .gamechanger__board-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
  }

  .gamechanger__board-mobile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, #1a1a1a 100%);
    pointer-events: none;
  }

  .gamechanger__board-mobile-img {
    width: 100%;
    height: auto;
  }

  .gamechanger__bubble-text {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: "Pretendard", sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    color: #000000;
  }

  /* Level 2 Steps */
  .gamechanger__panel-item[data-level="2"] {
    padding: 0;
  }

  .gamechanger__steps {
    flex-wrap: wrap;
    max-width: 340px;
  }

  .gamechanger__step-arrow {
    display: none;
  }

  .gamechanger__step-box {
    width: calc(50% - 5px);
    height: 150px;
  }
}

/* Level 3 - 적중문항 */
.gamechanger__panel-item[data-level="3"] {
  padding: 20px;
}

.gamechanger__matching {
  position: relative;
  width: 100%;
  height: 100%;
}

.gamechanger__matching-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gamechanger__matching-slide.active {
  opacity: 1;
}

.gamechanger__matching-img {
  position: absolute;
  height: 260px;
  width: auto;
  border-radius: 8px;
}

.gamechanger__matching-img--1 {
  top: 0;
  left: 0;
  z-index: 1;
}

.gamechanger__matching-img--2 {
  bottom: 0;
  right: 0;
  z-index: 2;
}

/* Mobile - Level 3 적중문항 */
@media (max-width: 768px) {
  .gamechanger__panel-item[data-level="3"] {
    padding: 0;
  }

  .gamechanger__matching-slide {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .gamechanger__matching-slide.active {
    display: flex;
  }

  .gamechanger__matching-img {
    position: static;
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

/* Level 4 - 강사 이력 */
.gamechanger__credentials {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gamechanger__credential-img {
  height: 254px;
  width: auto;
  border-radius: 8px;
}

/* 레벨 4 카드 애니메이션 (데스크탑 전용) */
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gamechanger__credentials > .gamechanger__credential-img,
.gamechanger__credentials > .gamechanger__credential-wrapper {
  opacity: 0;
}

.gamechanger__panel-item[data-level="4"].active
  .gamechanger__credentials
  > .gamechanger__credential-img:nth-child(1) {
  animation: dropIn 0.5s ease-out forwards;
  animation-delay: 0s;
}

.gamechanger__panel-item[data-level="4"].active
  .gamechanger__credentials
  > .gamechanger__credential-wrapper:nth-child(2) {
  animation: dropIn 0.5s ease-out forwards;
  animation-delay: 0.15s;
}

.gamechanger__panel-item[data-level="4"].active
  .gamechanger__credentials
  > .gamechanger__credential-img:nth-child(3) {
  animation: dropIn 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

.gamechanger__panel-item[data-level="4"].active
  .gamechanger__credentials
  > .gamechanger__credential-img:nth-child(4) {
  animation: dropIn 0.5s ease-out forwards;
  animation-delay: 0.45s;
}

.gamechanger__credential-wrapper {
  position: relative;
}

.gamechanger__badge {
  position: absolute;
  top: -47px;
  left: -37px;
  height: 95px;
  width: auto;
  z-index: 2;
}

/* Mobile - Level 4 */
@media (max-width: 768px) {
  .bottom-banner__item {
    padding: 0 12px 0;
    width: 100%;
    border-radius: 0;
  }
  .bottom-banner__item span {
    font-size: 13px;
  }
  .bottom-banner__item b {
    font-size: 13px;
  }

  .gamechanger__credentials {
    flex-wrap: wrap;
    gap: 12px;
  }

  .gamechanger__credential-img {
    height: auto;
    width: calc(50% - 6px);
  }

  .gamechanger__credential-wrapper {
    width: calc(50% - 6px);
  }

  .gamechanger__credential-wrapper .gamechanger__credential-img {
    width: 100%;
  }

  .gamechanger__badge {
    top: -25px;
    left: -20px;
    height: 60px;
  }

  /* 모바일에서는 애니메이션 비활성화 */
  .gamechanger__credentials > .gamechanger__credential-img,
  .gamechanger__credentials > .gamechanger__credential-wrapper,
  .gamechanger__panel-item[data-level="4"].active
    .gamechanger__credentials
    > .gamechanger__credential-img,
  .gamechanger__panel-item[data-level="4"].active
    .gamechanger__credentials
    > .gamechanger__credential-wrapper {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* Level 5 - 멘토링 */
.gamechanger__mentoring {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gamechanger__mentoring-img {
  height: 362px;
  width: auto;
  border-radius: 8px;
}

/* Mobile - Level 5 */
@media (max-width: 768px) {
  .gamechanger__mentoring {
    flex-wrap: wrap;
    gap: 12px;
  }

  .gamechanger__mentoring-img {
    height: 248px;
    width: calc(50% - 6px);
    object-fit: cover;
  }
}

/* Section 9 - Event */
.event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.event__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.event__label {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #9F2CD0;
}

.event__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #141617;
}

.event__content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.event__wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 80px 32px 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event__file {
  position: absolute;
  top: -87px;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 260px;
  object-fit: contain;
}

.event__method {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 12px;
  background-color: #FBF2FF;
}
.event__method-label {
  color: #9F2CD0;
  font-size: 15px;
  font-weight: 700;
}
.event__method-order {
  padding-left: 18px;
  color: #141617;
  font-size: 18px;
  font-weight: 700;
}
.event__method-order li {
  list-style: decimal;
}
.event__method-image {
  display: flex;
  gap: 8px;
}
.event__method-image img {
  width: calc(50% - 8px)
}
.event__method-notice {
  color: #141617;
  font-size: 14px;
}
.event__method-notice b {
  font-weight: 700;
}
.event__method-notice p {
  font-weight: 400;
}

/* Section 9 - Bonus */
.bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 60px;
  width: 100%;
  height: 100%;
  justify-content: center;
}
.bonus__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.bonus__label {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #FF6200;
}

.bonus__title {
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: #141617;
}

.bonus__content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

.bonus__wrapper {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 140px 32px 35px;
  width: 100%;
}
.bonus__gift {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 243px;
  object-fit: contain;
}


.bonus__method {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 12px;
  background-color: #FFF3EA;
}
.bonus__method-label {
  color: #F98F1C;
  font-size: 15px;
  font-weight: 700;
}
.bonus__method-order {
  padding-left: 18px;
  color: #141617;
  font-size: 18px;
  font-weight: 700;
}
.bonus__method-order li {
  list-style: decimal;
}
.bonus__method-notice {
  color: #141617;
  font-size: 14px;
}
.bonus__method-notice b {
  font-weight: 700;
}
.bonus__method-notice p {
  font-weight: 400;
}

/* Tablet and below */
@media (max-width: 1024px) {
  .snap-container {
    scroll-snap-type: none;
  }

  .section {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5vh;
  }

  .hero__text {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-right: 0;
    left: 0;
    animation: slideFromTop 1s ease-out forwards;
    z-index: 3;
  }

  .hero__text-wrapper {
    height: 6vh;
  }

  .hero__text-wrapper--1 {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: center;
  }

  .hero__text-wrapper--2,
  .hero__text-wrapper--3 {
    margin-left: 0;
    z-index: 3;
  }

  .hero__teacher {
    animation: slideFromBottom 1s ease-out forwards;
  }

  .hero__image,
  .hero__shadow {
    height: 75vh;
  }

  .section--1 {
    background-position: center top;
  }

  .mobile-br {
    display: block;
  }

  .desktop-br {
    display: none;
  }

  .quotes__line {
    font-size: 20px;
    line-height: 28px;
  }

  /* Section 3 - Statement Mobile */
  .statement__line {
    font-size: 20px;
    line-height: 32px;
  }

  .statement__line--title {
    font-size: 32px;
  }

  .statement__line--highlight {
    font-size: 22px;
  }

  /* Section 3b - Finale Mobile */
  .section--3b {
    min-height: 50vh;
    min-height: 50dvh;
  }

  .section--3b .section-content {
    min-height: 50vh;
    min-height: 50dvh;
  }

  .finale {
    gap: 16px;
  }

  .finale__text {
    font-size: 20px;
    line-height: 32px;
  }

  .finale__highlight {
    font-size: 44px;
    line-height: 52px;
  }

  /* Tab Navigation - 2 rows */
  .tab-nav {
    height: auto;
  }

  .tab-nav__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 1rem 5%;
    gap: 0.75rem 1rem;
  }

  .section--tab::before {
    height: auto;
    min-height: 90px;
  }

  .tab-nav__text--full {
    display: none;
  }

  .tab-nav__text--short {
    display: inline;
  }

  /* Section 4 - Highscore Mobile */
  .section--4 {
    height: auto;
    min-height: auto;
  }

  .section--4 .tab-content {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  /* Section 5 - Highscore Mobile */
  .section--5 {
    height: auto;
    min-height: auto;
  }

  .section--5 .tab-content {
    padding-top: 120px;
    padding-bottom: 240px;
  }

  .highscore__title {
    font-size: 22px;
    line-height: 30px;
  }

  .highscore__menu {
    gap: 0.5rem;
  }

  .highscore__menu-item {
    width: 90px;
    height: 36px;
    font-size: 14px;
  }

  .highscore__block {
    display: none;
  }

  .highscore__card {
    max-width: 100%;
  }

  .highscore__slider {
    display: none;
  }

  .highscore__slider--mobile {
    display: flex;
    width: 300%;
    transition: transform 0.3s ease;
  }

  /* Section 5 - Highlight Mobile */
  .highlight__title {
    font-size: 22px;
    line-height: 30px;
  }

  .highlight__caption {
    height: 44px;
    gap: 0.25rem;
  }

  .highlight__caption-accent,
  .highlight__caption-text {
    font-size: 13px;
  }

  .section7__teacher {
    display: none;
  }

  /* Section 7 - Game Changer Mobile */

  /* Section 9 - Event Mobile */
  .event__title {
    font-size: 22px;
    line-height: 30px;
  }

  .event__content {
    gap: 46px;
  }
  .event__wrapper {
    padding: 20px;
    margin: 0;
    gap: 16px;
  }

  .event__file {
    width: 274px;
    height: 182px;
  }

  .event__method {
    padding: 20px;
  }
  .event__method-order {
    padding-left: 18px;
    color: #141617;
    font-size: 15px;
    font-weight: 700;
  }
  .event__method-image {
    flex-direction: column;
  }
  .event__method-image img {
    width: 100%;
  }

  .bonus {
    margin-top: 46px;
  }
  .bonus__header {
    gap: 12px;
  }
  .bonus__title {
    font-size: 22px;
    line-height: 30px;
  }

.bonus__wrapper {
  border-radius: 12px;
  padding: 104px 20px 20px;
}
.bonus__gift {
  width: 162px;
  height: 179px;
}


.bonus__method {
  padding: 20px;
  border-radius: 12px;
}
.bonus__method-order { 
  font-size: 15px;
}

  /* Section 6a - Grade Proof Mobile */
  .grade-proof__title {
    font-size: 22px;
    line-height: 30px;
  }

  .grade-proof__subtitle {
    font-size: 13px;
    margin-top: -0.5rem;
  }

  .grade-proof__nav {
    width: 100%;
    height: 45px;
    border-radius: 8px 8px 0 0;
  }

  .grade-proof__nav-item {
    font-size: 11px;
    padding: 0 4px;
  }

  .grade-proof__nav-item:first-child {
    border-radius: 8px 0 0 0;
  }

  .grade-proof__nav-item:last-child {
    border-radius: 0 8px 0 0;
  }

  .grade-proof__nav-item:first-child.active {
    border-radius: 8px 0 0 0;
  }

  .grade-proof__nav-item:last-child.active {
    border-radius: 0 8px 0 0;
  }

  .grade-proof__image--desktop.active {
    display: none;
  }

  .grade-proof__image--mobile.active {
    display: block;
    width: 100%;
    height: auto;
  }

  .grade-proof__button {
    height: 48px;
    font-size: 15px;
  }

  /* 모바일: 데스크탑 트랙 숨김 */
  .grade-improvement__track--desktop {
    display: none;
  }

  /* 모바일: 두 줄 트랙 표시 */
  .grade-improvement__track--mobile-top,
  .grade-improvement__track--mobile-bottom {
    display: flex;
    gap: 8px;
    width: max-content;
  }

  /* 상단 트랙: 왼쪽으로 스크롤 */
  .grade-improvement__track--mobile-top {
    animation: scrollLeftMobile 80s linear infinite;
  }

  /* 하단 트랙: 오른쪽으로 스크롤 */
  .grade-improvement__track--mobile-bottom {
    animation: scrollRightMobile 80s linear infinite;
  }

  .grade-improvement__img {
    width: auto;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
  }

  /* 모바일 무한 스크롤 애니메이션 */
  @keyframes scrollLeftMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      /* 19개 이미지 * (이미지 너비 약 75px + gap 8px) */
      transform: translateX(calc(-75px * 19 - 8px * 19));
    }
  }

  @keyframes scrollRightMobile {
    0% {
      /* 19개 이미지 * (이미지 너비 약 75px + gap 8px) */
      transform: translateX(calc(-75px * 19 - 8px * 19));
    }
    100% {
      transform: translateX(0);
    }
  }

  .grade-proof__button--mobile-only {
    display: flex;
    margin: 24px 0;
  }

  /* Section 6b - Grade Solution Mobile */
  .grade-solution__title {
    font-size: 16px;
    line-height: 24px;
  }

  .grade-solution__slogan,
  .grade-solution__message {
    font-size: 16px;
  }

  .section--6b .tab-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Section 7 - Game Changer Mobile */
  .section--7 .tab-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  /* Section 8a - Curriculum Mobile */
  .curriculum__title {
    font-size: 22px;
    line-height: 30px;
  }

  .curriculum__subtitle {
    font-size: 13px;
    margin-top: -0.5rem;
  }

  .section--8a .tab-content {
    padding-left: 0;
    padding-right: 0;
  }

  .curriculum__container {
    border-radius: 8px;
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .curriculum__nav-item {
    font-size: 13px;
  }

  .curriculum__coming-soon {
    max-width: 200px;
  }

  /* Section 8b - Curriculum Detail Mobile */
  .section--8b .tab-content {
    justify-content: flex-start;
    padding-top: 100px;
  }

  .curriculum-detail {
    gap: 12px;
    padding-left: 32px;
  }

  .curriculum-detail__intro {
    font-size: 16px;
  }

  .curriculum-detail__quote {
    font-size: 16px;
  }

  .curriculum-detail__desc {
    font-size: 16px;
    line-height: 28px;
  }

  .curriculum-detail__closing {
    font-size: 18px;
  }

  .curriculum-detail__sign {
    width: 80px;
  }

  .curriculum-detail__teacher {
    width: 340px;
    height: auto;
  }

  .section--8b.section--tab {
    background-position: 80% bottom;
  }
}

