:root {
  /* 폰트 패밀리 */
  --font-family-base: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* 폰트 굵기 */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;

  /* 라인 높이 */
  --line-height-base: normal;

  /* 컬러 */
  --color-white: #ffffff;
  --color-gray1: #F8F9FA;
  --color-gray2: #E9E9E9;
  --color-gray3: #9E9E9E;
  --color-gray4: #4A4A4A;
  --color-gray5: #1C1C1C;
  --color-navy: #212631;
  --color-orange: #FF6A06;
  --color-purple: #6554EB;
  --color-pink: #FF4c61;
  --color-sub_green: #44DEBA;
  --color-sub_purple: #9D8EEC;
  --color-sub_orange: #FF8635;
  --color-sub2_orange: #FFE9DA;
  --color-navy2: #2A303D;
  --color-dash_background: #F7F7F7;
}

/* 버튼 밑줄 제거 */
a {
text-decoration: none;
}

body {
  font-family: var(--font-family-base) !important;
  scroll-padding-top: 80px;
  background: var(--color-gray1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: var(--font-family-base);
}

/* 상품페이지 스타일 */
.page-header {
  padding: 40px 0 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.breadcrumb {
  font-size: 14px;
  color: var(--color-gray3);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-gray3);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-orange);
}

.page-title {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray5);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--color-gray4);
  line-height: 1.6;
}

.filter-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-gray2);
  background: white;
}

.courses-listing {
  padding: 0 0 100px 0;
}

.filter-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-dropdown {
  display: flex;
  align-items: center;
}

.filter-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
}

.filter-tab {
  padding: 12px 24px;
  border: 1px solid var(--color-gray2);
  background: white;
  color: var(--color-gray4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
}

.filter-tab:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
  font-family: var(--font-family-base);
}

.filter-tab.active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: white;
  font-family: var(--font-family-base);
}

.filter-tab.primary {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: white;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
}

.filter-tab.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
  font-family: var(--font-family-base);
}

.courses-listing {
  padding: 0 0 100px 0;
}

.courses-listing .courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
  max-width: 1252px;
  margin-left: auto;
  margin-right: auto;
}

/* 모든 상품 페이지는 메인과 동일한 스타일 사용 */

/* Live 강의 상품 페이지 - 3개씩 표시 */
.courses-section#live .courses-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1252px;
  margin: 0 auto;
  padding: 0 0px;
}

/* VOD 강의 상품 페이지 - 3개씩 표시 */
.courses-section#vod .courses-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1252px;
  margin: 0 auto;
  padding: 0 0px;
}

/* 학습지 상품 페이지 - 4개씩 표시 */
.courses-section#workbook .courses-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1252px;
  margin: 0 auto;
  padding: 0 0px;
}

/* 상품 페이지는 메인 페이지의 기본 스타일을 사용 */

/* 상품 모달 스타일 */
#productModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* 모달이 열릴 때 스크롤바 사라짐으로 인한 레이아웃 시프트 방지 */
body.modal-open {
  overflow: hidden;
}

#productModal.show {
  opacity: 1;
  visibility: visible;
}

#modalContent {
  background: white;
  width: 375px;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

#productModal.show #modalContent {
  transform: translateX(0);
}

.modal-header {
  padding: 0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header-top {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
}

.modal-title {
  flex: 1;
  text-align: left;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray5);
  margin: 0;
  padding: 0 0 0 10px;
}

/* 장바구니 전용 모드 - 탭 숨기기 (모든 화면) */
#productModal.cart-only-mode .modal-tabs,
.product-modal.cart-only-mode .modal-tabs {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: #1C1C1C;
  margin: 0;
  line-height: 1.3;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn img {
  width: 24px;
  height: 24px;
}

.close-btn:hover {
  background-color: #FFF5F0;
}

.modal-tabs {
  display: flex;
  padding: 12px 20px 12px 20px;
  border-bottom: 1px solid #E0E0E0;
  justify-content: space-between;
  align-items: center;
}

.modal-tab {
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #9E9E9E;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: normal;
}

.modal-tab:first-child {
  text-align: left;
}

.modal-tab:last-child {
  text-align: right;
}

.modal-tab.active {
  color: var(--color-orange) !important;
  border-bottom: 2px solid transparent;
}

.modal-tab.active:hover {
  color: var(--color-orange) !important;
}

.modal-tab:hover {
  color: var(--color-orange);
}

.modal-body {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  background: white;
  overflow-x: visible;
}

.modal-content-section {
  padding: 0 20px 20px 20px;
  overflow: visible;
}

.modal-info-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E9E9E9;
}

.modal-info-label {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #1C1C1C;
  flex-shrink: 0;
  text-align: left;
  margin: 0;
  padding: 0;
  width: 80px;
  margin-right: 24px;
}

.modal-info-row:last-child {
  border-bottom: none;
}

.modal-info-label {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #1C1C1C;
  flex-shrink: 0;
  text-align: left;
  margin: 0;
  padding: 0;
}

.modal-info-value {
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: #1C1C1C;
  text-align: left;
  flex: 1;
  margin: 0;
  padding: 0;
}

.modal-info-value.purple {
  color: var(--color-purple);
  font-weight: var(--font-weight-bold);
}

.modal-info-value.pink {
  color: var(--color-pink);
  font-weight: var(--font-weight-bold);
}

.modal-button {
  width: 144px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--color-purple);
  border-radius: 6px;
  background: white;
  color: var(--color-purple);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-button:hover {
  background: var(--color-purple);
  color: white;
}

.modal-price-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-price-original {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #1C1C1C;
  text-decoration: line-through;
}

.modal-price-current {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #1C1C1C;
}

.modal-footer {
  padding: 0;
  background: white;
  position: sticky;
  bottom: 0;
  overflow: visible;
}

.modal-student-select {
  margin-bottom: 16px;
  padding: 0 20px;
}


.modal-student-button {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 2px solid var(--color-orange);
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-size: 16px;
  color: #1C1C1C;
  font-weight: 500;
}

.modal-student-button:hover {
  background: #FFF8F5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 106, 6, 0.2);
}

.modal-student-button:focus {
  outline: none;
  background: #FFF8F5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 106, 6, 0.2);
}

.modal-student-bottomsheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

.modal-student-bottomsheet-menu {
  background: #FFF;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 50vh;
  overflow-y: auto;
  padding: 20px 20px;
  will-change: transform;
  backface-visibility: hidden;
}

.modal-student-bottomsheet.show {
  display: block;
}

.modal-student-bottomsheet.show .modal-student-bottomsheet-menu {
  transform: translateY(0);
}

.modal-student-bottomsheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.modal-student-bottomsheet.show + .modal-student-bottomsheet-overlay {
  display: block;
}

.modal-student-bottomsheet-item {
  padding: 16px 0;
  font-size: 16px;
  color: #1C1C1C;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #E9E9E9;
  text-align: center;
}

.modal-student-bottomsheet-item:last-child {
  border-bottom: none;
}

.modal-student-bottomsheet-item:hover {
  background-color: #F8F9FA;
}

.modal-instructions {
  font-size: 16px;
  color: #1C1C1C;
  margin-bottom: 16px;
  padding-left: 20px;
}

.modal-instructions ul {
  margin: 0;
  padding-left: 24px;
}

.modal-instructions li {
  margin-bottom: 4px;
}

.modal-footer-buttons {
  display: flex;
  gap: 0;
  width: 100%;
}

.modal-footer-btn {
  flex: 1;
  height: 50px;
  border: none;
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-footer-btn:disabled {
  background-color: var(--color-gray2) !important;
  color: var(--color-gray3) !important;
  cursor: not-allowed;
}

.modal-footer-btn.cart {
  background: var(--color-purple);
  border-radius: 0;
}

.modal-footer-btn.payment {
  background: var(--color-orange);
  border-radius: 0;
}

.modal-footer-btn:hover {
  opacity: 0.9;
}

/* 모바일 반응형 제거 - 375px 고정 */

/* 준비 중 페이지 스타일 */
.roadmap-content,
.schedule-content {
  padding: 100px 0;
  text-align: center;
}

.coming-soon {
  background: var(--color-gray1);
  padding: 60px 40px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon h2 {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  color: var(--color-gray5);
  margin-bottom: 20px;
}

.coming-soon p {
  font-size: 18px;
  color: var(--color-gray4);
  line-height: 1.6;
}


/* 기본 스타일 리셋 */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: var(--color-white);
    border-bottom: 1px solid #E0E0E0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 모달이 열릴 때 스크롤바 사라짐으로 인한 레이아웃 시프트 방지 */
body.modal-open {
  overflow: hidden;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
     /* 중앙 고정 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-menu a {
    color: var(--color-gray4);
    font-family: var(--font-family-base);
    font-size: 16px;
    font-style: normal;
    font-weight: var(--font-weight-medium);
    line-height: normal;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-orange);
}

.nav-menu a.active {
    color: var(--color-orange);
    font-weight: var(--font-weight-bold);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 40px; /* 높이 고정으로 레이아웃 시프트 방지 */
}

/* 초기 로딩 시 헤더 전체를 투명하게 (레이아웃 시프트 방지) */
.header-right:not(.auth-loaded) {
    opacity: 0;
}

.header-right.auth-loaded {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.user-info {
    color: var(--color-gray4);
    font-size: 14px;
}

.dashboard-btn {
    background-color: var(--color-orange);
    color: var(--color-gray1);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-btn {
    background-color: var(--color-orange);
    color: var(--color-gray1);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* 로그인 페이지 스타일 */
.login-main {
    margin-top: 65px;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.login-logo {
    width: 335px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 334px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.form-label {
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    line-height: normal;
}

.form-input {
    width: 100%;
    height: 30px;
    border: none;
    border-bottom: 1px solid var(--color-gray3);
    background: transparent;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    padding: 0 0 10px 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    appearance: none;
}


.form-input:disabled,
.form-input:read-only {
    border-bottom-color: var(--color-gray3) !important;
    color: var(--color-gray3)!important;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--color-gray3);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
}

.form-input:focus {
    border-bottom-color: var(--color-gray5);
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.field-error {
    color: var(--color-pink);
    font-size: 14px;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    display: block;
    margin-top: 4px;
}

.agreement-section .field-error {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
}

.agreement-error {
    color: var(--color-pink);
    font-size: 14px;
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
    text-align: left;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    margin-bottom: 0;
}

.login-submit-btn {
    width: 100%;
    height: 50px;
    background-color: var(--color-orange);
    color: var(--color-gray1);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.login-submit-btn:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

.login-links {
    width: 334px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-link {
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--color-orange);
}

/* 회원가입 페이지 스타일 */
.signup-main {
    margin-top: 65px;
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px;
    padding: 40px 0 100px 0;
}

.signup-container {
    width: 100%;
    max-width: 1031px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn img {
    width: 100%;
    height: 100%;
}


.step-dots {
    display: flex;
    gap: 8px;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-gray3);
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: var(--color-purple);
}

.step-dot.completed {
    background-color: var(--color-gray3);
}

.step-dot.inactive {
    background-color: var(--color-gray3);
}

.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

.signup-step.active {
    display: block;
}

.step-header {
    margin-bottom: 40px;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

.step-title {
    font-family: var(--font-family-base);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    margin-bottom: 20px;
    line-height: normal;
    text-align: left;
}

.step-description {
    font-family: var(--font-family-base);
    font-size: 24px;
    font-weight: var(--font-weight-regular);
    color: var(--color-gray5);
    line-height: 1.4;
    margin-bottom: 40px;
    text-align: left;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 622px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.form-label {
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    line-height: normal;
}

.form-input {
    width: 100%;
    height: 30px;
    border: none;
    border-bottom: 1px solid var(--color-gray3);
    background: transparent;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    padding: 0 0 10px 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    appearance: none;
}


.form-input:disabled,
.form-input:read-only {
    border-bottom-color: #D0D0D0 !important;
    color: #D0D0D0 !important;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: var(--color-gray3);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
}

.form-input:focus {
    border-bottom-color: var(--color-gray5);
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.input-with-button {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    width: 100%;
}

.check-btn {
    width: 80px;
    height: 32px;
    background-color: var(--color-gray5);
    color: var(--color-gray1);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.check-btn:hover {
    background-color: var(--color-gray4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.check-btn:disabled {
    background-color: var(--color-gray2);
    color: var(--color-gray3);
    cursor: not-allowed;
}

/* 확인중 상태를 위한 특별 스타일 */
.check-btn[style*="background-color: var(--color-gray5)"] {
    background-color: var(--color-gray5) !important;
    color: var(--color-gray1) !important;
    opacity: 1 !important;
}

.check-btn:disabled:hover {
    background-color: var(--color-gray2);
}

.phone-options {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: #9E9E9E;
    transition: color 0.3s ease;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: var(--color-gray3);
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background-color: var(--color-orange);
}

.radio-option input[type="radio"]:checked ~ * {
    color: var(--color-gray5);
}

.phone-notice {
    margin-top: 0px;
    font-family: var(--font-family-base);
    font-size: 14px;
    color: var(--color-gray5);
    line-height: normal;
}

.phone-notice ol {
    margin: 0;
    padding-left: 20px;
}

.phone-notice ul {
    margin: 0px 0;
    padding-left: 20px;
}

.phone-notice .highlight {
    color: var(--color-purple);
    font-weight: var(--font-weight-bold);
}

.agreement-section {
    margin-top: 0;
    max-width: 622px;
    margin-left: 0;
    margin-right: auto;
    position: relative;
    padding-left: 0;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    background-color: var(--color-gray3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--color-orange);
}

.agreement-text {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    line-height: 1.4;
    word-break: keep-all;
    white-space: normal;
    text-align: left;
    flex: 1;
    margin-left: 0;
}

.agreement-link {
    color: var(--color-orange);
    text-decoration: underline;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    word-break: keep-all;
    white-space: normal;
    writing-mode: horizontal-tb;
}

.agreement-link:hover {
    color: var(--color-orange);
}

.next-btn {
    width: 405px;
    height: 50px;
    background-color: var(--color-orange);
    color: var(--color-gray1);
    border: none;
    border-radius: 50px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    margin-top: 40px;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.next-btn:hover {
    background-color: #e55a00;
}


.student-title {
    font-family: var(--font-family-base);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    margin-bottom: 20px;
    line-height: normal;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

.select-wrapper {
    position: relative;
    margin-left: auto;
}

.form-group:has(.form-select) {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group:has(.custom-dropdown) {
    display: flex;
    align-items: center;
    position: relative;
}

.form-group:has(.custom-dropdown) .form-label {
    margin-bottom: 0;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.custom-dropdown-wrapper {
    position: absolute;
    right: 0;
    margin-left: 0;
}

.form-select {
    width: 112px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid var(--color-orange);
    background: #FFF;
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    padding: 0 40px 0 12px;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* 드롭다운 옵션 스타일링 */
.form-select option {
    height: 28px;
    line-height: 28px;
    padding: 0 12px;
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    background: #FFF;
}

/* 드롭다운이 열렸을 때의 스타일 */
.form-select:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 1px var(--color-orange);
}

/* 드롭다운 리스트 스타일 */
.form-select option:hover {
    background-color: #f8f9fa;
}

.form-select option:checked {
    background-color: var(--color-orange);
    color: #FFF;
}

/* Custom Dropdown Styles - Figma Design Implementation */
.custom-dropdown-wrapper {
    position: relative;
    margin-left: auto;
}

.custom-dropdown {
    position: relative;
    width: 200px;
}

label.custom-dropdown {
    display: block;
    cursor: pointer;
}

.dropdown-trigger {
    width: 200px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid var(--color-orange);
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.custom-dropdown.open .dropdown-trigger {
    border-radius: 6px 6px 0 0;
    border: 2px solid var(--color-orange);
    border-bottom: none;
    box-shadow: none;
}

.dropdown-trigger:hover {
    border: 2px solid var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

.dropdown-trigger:focus {
    outline: none;
    border: 2px solid var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

.custom-dropdown.open .dropdown-trigger:hover {
    border: 2px solid var(--color-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}


.dropdown-text {
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF;
    border: 2px solid var(--color-orange);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 40px;
    margin-top: -2px;
    box-sizing: border-box;
}

.custom-dropdown.open .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: #FFF !important;
    border: 2px solid var(--color-orange) !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: none !important;
    margin-top: 0 !important;
}

/* 드롭다운이 열렸을 때 다른 요소들이 가려지지 않도록 보장 */
.custom-dropdown.open {
    position: relative;
    z-index: 1000;
}

/* 드롭다운 래퍼도 높은 z-index 설정 */
.custom-dropdown-wrapper {
    position: relative;
    z-index: 1000;
}

/* 드롭다운이 열렸을 때 래퍼의 z-index도 높게 설정 */
.custom-dropdown.open .custom-dropdown-wrapper {
    z-index: 1000;
}

/* products 페이지의 드롭다운이 푸터에 가려지지 않도록 */
body.products-page .custom-dropdown-wrapper {
    z-index: 1000;
}

body.products-page .custom-dropdown.open {
    z-index: 1000;
}

body.products-page .dropdown-menu {
    z-index: 1000 !important;
}

body.products-page .custom-dropdown.open .dropdown-menu {
    z-index: 1000 !important;
}

/* 동적 학생 섹션의 드롭다운 메뉴만 fixed로 설정하여 완전히 독립적인 레이어로 만들기 */
.student-section .dropdown-menu {
    position: fixed !important;
    z-index: 999 !important;
}

/* 동적 학생 섹션의 input-with-button과 check-btn은 정상적인 z-index로 설정 */
.student-section .input-with-button {
    z-index: 1;
}

.student-section .check-btn {
    z-index: 1;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    font-family: var(--font-family-base);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: flex !important;
    align-items: center;
    position: relative;
    background: #FFF !important;
    min-height: 40px;
    box-sizing: border-box;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #FFF;
    color: var(--color-gray5);
}

.dropdown-item:active {
    background-color: #e6e6e6;
}

.dropdown-item.selected {
    background-color: var(--color-orange) !important;
    color: #FFF !important;
    font-weight: var(--font-weight-bold) !important;
}

.dropdown-item.selected:hover {
    background-color: var(--color-orange) !important;
    color: #FFF !important;
}



.student-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    align-items: center;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

.parent-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    align-items: center;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

/* 학생 액션 버튼들 */
.student-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 20px;
    max-width: 622px;
    margin-left: auto;
    margin-right: auto;
}

/* 동적 학생 페이지 컨테이너 */
#additionalStudentPagesContainer {
    width: 100%;
}

/* 동적 학생 페이지 스타일 */
#additionalStudentPagesContainer .signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

#additionalStudentPagesContainer .signup-step.active {
    display: block;
}


.add-student-btn {
    width: 206px;
    height: 50px;
    background-color: var(--color-purple);
    color: var(--color-gray1);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-student-btn:hover {
    background-color: #6b46c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

/* 학생 섹션 내의 추가 버튼 스타일 */
.student-section .add-student-btn {
    width: 206px;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
}

.skip-btn {
    width: 206px;
    height: 50px;
    background-color: var(--color-gray4);
    color: var(--color-gray1);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    background-color: var(--color-gray5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.complete-btn {
    width: 206px;
    height: 50px;
    background-color: var(--color-orange);
    color: var(--color-gray1);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}


/* 메인 콘텐츠 */
.main-content {
    margin-top: 65px;
    flex: 1;
}

/* products 페이지에서는 flex 레이아웃 유지하여 푸터가 항상 하단에 고정되도록 */
body.products-page {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.products-page .main-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 상품이 없을 때 courses-section이 남은 공간을 차지하여 푸터를 하단으로 밀어냄 */
body.products-page .courses-section.empty {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 0 40px !important;
}

body.products-page .courses-grid.empty {
    flex: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.no-courses {
    text-align: left;
    padding: 0;
    color: var(--color-gray4);
    font-size: 18px;
}

/* 히어로 섹션 */
.hero-section {
    padding: 140px 0 140px;
    padding-top: 200px;
    text-align: center;
}

.hero-title {
    font-size: 70px;
    font-weight: var(--font-weight-extra-bold);
    margin-bottom: 20px;
    /* margin-top: 120px; */
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #FF6A06 30.865%, #6554eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--color-orange);
    font-weight: var(--font-weight-bold);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 22px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray5);
    margin-bottom: 20px;
}

.mobile-break,
.mobile-br,
.mobile-show {
    display: none;
}

.mobile-hide {
    display: inline;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: var(--font-weight-extra-bold);
    color: var(--color-gray4);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray4);
}

.stat-divider {
    width: 4px;
    height: 55px;
    background-color: var(--color-gray3);
}

.cta-button {
    background: linear-gradient(135deg, #FF6A06 0%, #FF8A3D 100%);
    color: var(--color-gray1);
    padding: 20px 40px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.cta-button:hover {
    background: linear-gradient(135deg, #E55A05 0%, #E57A35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

/* 영어 수업 시작하기 버튼 */
.start-lesson-btn {
    background: linear-gradient(270deg, #FF6A06 47.6%, #6554EB 100%); /* 좌우 반전된 그라데이션 */
    border-radius: 32px;
    width: 228px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.start-lesson-btn:hover {
    background: linear-gradient(270deg, #E55A05 47.6%, #5A4AD1 100%); /* 좌우 반전된 그라데이션 */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

/* 더 많은 수업 보기 버튼 */
.view-more-btn {
    background: var(--color-orange, #FF6A06);
    width: 217px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.view-more-btn:hover {
    background: #E55A05;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

/* 특징 섹션 */
.features-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px;
    justify-items: center;
    
}

.section-title2 {
    font-size: 40px;
    color: var(--color-gray5);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: 20px;
  }

.section-subtitle2 {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-gray4);
    text-align: center;
    margin-bottom: 40px;
}


.feature-item {
    text-align: center;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
}

.feature-description {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray4);
    white-space: nowrap; /* 한 줄로 표시 */
}

/* 카테고리 섹션 */
.category-section {
    background-color: var(--color-gray1);
    padding: 80px 0;
}

.section-title {
    font-size: 40px;
    color: var(--color-gray5);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: 0px;
}

.section-icon-line {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray4);
    text-align: center;
    margin-bottom: 40px;
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 80px;
}

.category-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    width: 400px;
    height: 433px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 400px;
}

.category-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-title {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

.category-description {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 30px;
    line-height: 1.4;
}

.category-features {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray4);
    line-height: 1.6;
}

/* 강의 섹션 */
.courses-section {
    padding: 40px 0 80px;
    background-color: #ffffff;
}

/* 메인 페이지의 Live, VOD, 학습지 섹션은 상단 패딩 80px */
body.index .courses-section#live,
body.index .courses-section#vod,
body.index .courses-section#workbook {
    padding: 80px 0 80px;
}

/* 상품 페이지의 Live, VOD, 학습지 섹션은 상단 패딩 40px */
body:not(.index) .courses-section#live,
body:not(.index) .courses-section#vod,
body:not(.index) .courses-section#workbook {
    padding: 40px 0 80px;
}

.courses-section .section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0px;
    color: #1c1c1c;
}

.courses-section .section-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 40px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 0px;
}

/* 학습지 챌린지 전용 그리드 */
.courses-section#workbook .courses-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 0px;
}

.course-card {
    background-color: var(--color-dash_background);
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-image {
    width: 100%;
    aspect-ratio: 16/9; /* 16:9 비율로 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.course-content {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 20px 20px;
}

.course-title {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
    color: var(--color-gray5);
    line-height: normal;
}

.course-meta {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 4px;
    line-height: normal;
}

.course-description {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 15px;
    line-height: normal;
    min-height: 32px;
}

.course-price {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    margin-bottom: 0px;
}

.course-capacity {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-pink);
}

.course-capacity.available {
    color: var(--color-gray5);
}

/* 가격과 정원을 같은 라인에 배치 */
.course-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* 푸터 */
.footer {
    background-color: var(--color-navy);
    color: var(--color-gray1);
    padding: 40px 0 40px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1252px;
    margin: 0 auto;
    padding: 0 0px;
}

.footer-top {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
}

.logo2{
    margin-bottom: 20px;
}

.footer-brand {
    font-size: 16px;
    line-height: 24px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 20px;
}

.footer-section ul li a {
    color: #f8f9fa;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 24px;
    height: 24px;
    /* background-color: #f8f9fa; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212631;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #D4D4D4;
    padding-top: 20px;
    text-align: center;
    font-size: 16px;
}

/* 구분선 */
.divider {
    height: 2px;
    width: 1252px;
    background: #D4D4D4;
    margin: 0 auto;   /* 상하는 0, 좌우는 auto */
    border-radius: 2px;
}

/* 1:1 문의 버튼 */
.inquiry-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 72px;
    height: 72px;
    background: var(--color-purple);
    border-radius: 10px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
}

.inquiry-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 반응형 제거 - 모바일은 별도 파일 사용 */

/* 애니메이션 제거됨 */

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6a06, #6554eb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e55a00, #5a4ad1);
}

/* 포커스 스타일 */
/* a:focus,
button:focus {
    outline: 2px solid #ff6a06;
    outline-offset: 2px;
} */

/* 선택 텍스트 스타일 */
::selection {
    background-color: var(--color-orange);
    color: white;
}

/* 학생 2 섹션 애니메이션 */
.student2-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray2);
}

.student2-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}




/* 학생 추가 버튼 비활성화 스타일 */
.add-student-btn.disabled {
    background-color: var(--color-gray2) !important;
    color: var(--color-gray3) !important;
    border-color: var(--color-gray2) !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease;
}

.add-student-btn.disabled:hover {
    background-color: var(--color-gray2) !important;
    color: var(--color-gray3) !important;
    border-color: var(--color-gray2) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 학생 제거 버튼 스타일 */
.remove-student-btn {
    width: 206px;
    height: 50px;
    background-color: var(--color-pink);
    color: white;
    border: 1px solid var(--color-pink);
    border-radius: 6px;
    font-family: var(--font-family-base);
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.remove-student-btn:hover {
    background-color: #e63e52;
    border-color: #e63e52;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 76, 97, 0.4);
}

/* 회원가입 완료 페이지 스타일 */
.completion-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 2rem 0;
}

/* 완료 페이지에서 백버튼 숨기기 */
#completionPage.active ~ .step-indicator .back-btn,
body:has(#completionPage.active) .back-btn {
    display: none !important;
}

/* 계정 정보 카드 */
.account-info-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.account-info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.account-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray2);
}


.account-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray5);
    margin: 0;
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.account-label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-gray4);
    min-width: 80px;
}

.account-value {
    font-size: 0.9rem;
    font-weight: var(--font-weight-regular);
    color: var(--color-gray5);
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* 완료 메시지 */
.completion-message {
    text-align: center;
    padding: 1.5rem;
    padding-bottom: 30px;
    background: var(--color-white);
    border: 1px solid var(--color-gray2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.completion-message:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 모바일 전용 줄바꿈 - 데스크톱에서는 숨김 */
.mobile-break {
    display: none;
}

.message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-icon img {
    width: 234.934px;
    height: 55px;
}

.message-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extra-bold);
    color: var(--color-gray5);
    margin: 0 0 1rem 0;
}

.message-description {
    font-size: 1rem;
    color: var(--color-gray4);
    line-height: 1.6;
    margin: 0;
}

/* 완료 액션 버튼들 */
.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 40px;
}

.completion-actions .login-btn {
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.completion-actions .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 6, 0.4);
}

.completion-actions .home-btn {
    background: var(--color-white);
    color: var(--color-gray4);
    border: 2px solid var(--color-gray2);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.completion-actions .home-btn:hover {
    background: var(--color-gray1);
    border-color: var(--color-gray3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* ===== 반응형 스타일 (1250px 이하) ===== */
/* legacy max-width 1250 styles removed; see responsive.css for mobile rules */
/* 기본 모바일 메뉴 버튼 숨김 */
.mobile-menu-btn {
    display: none;
}

/* 장바구니 모달 스타일 - Figma 디자인 기준 */
.modal-cart-content {
  padding: 0 0 120px 0;
  width: 100%;
  min-height: auto;
  background: white;
  font-family: 'Pretendard', sans-serif;
  position: relative;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 0 20px;
  margin-bottom: 12px;
}

.cart-title {
  color: var(--gray-5, #1C1C1C);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 20px 20px;
}

.cart-select-all {
  font-size: 16px;
  font-weight: 400;
  color: #1C1C1C;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cart-delete-selected {
  font-size: 16px;
  font-weight: 700;
  color: #FF6A06;
  line-height: 1.2;
  cursor: pointer;
}

.cart-items {
  padding: 0 20px;
  position: relative;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  padding: 0 0 20px 0;
  gap: 12px;
  position: relative;
}

.cart-item-checkbox {
  flex-shrink: 0;
  padding-top: 2px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: #9E9E9E;
  position: relative;
}

.checkbox.checked {
  background: #FF6A06;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-detail {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cart-item-detail span {
  font-weight: 400;
}

.cart-item-detail .discount-text {
  font-weight: 700;
}

.cart-item-detail:has(.original-price) {
  font-weight: 700;
}

/* 할인과 결제방법만 bold */
.cart-item-detail:nth-child(5),
.cart-item-detail:nth-child(6) {
  font-weight: 700;
}

.discount-text {
  color: #FF4C61;
  font-weight: 700;
}

.original-price {
  text-decoration: line-through;
}

.cart-item-delete {
  flex-shrink: 0;
  padding-top: 2px;
}

.delete-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: #1C1C1C;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 아이콘 스타일*/
.action-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.delete-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* 구분선 스타일*/
.cart-divider {
  background: #D9D9D9;
  width: 335px;
  height: 2px;
  margin: 0 auto;
}

/* 총 결제 금액 스타일*/
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.cart-total-label {
  color: var(--gray-5, #1C1C1C);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.cart-total-amount {
  color: var(--gray-5, #1C1C1C);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

/* 결제 방식 스타일*/
.cart-payment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.cart-payment-label {
  color: var(--gray-5, #1C1C1C);
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.cart-payment-placeholder {
  color: #9E9E9E;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

/* 장바구니 빈 상태 스타일*/
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.cart-empty p {
  font-size: 16px;
  margin: 0;
}

/* 로딩 표시 스타일*/
.modal-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-loading p {
  font-size: 16px;
  margin: 0;
}

/* 로딩 에러 스타일*/
.modal-error {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
}

.modal-error p {
  font-size: 16px;
  margin: 0 0 10px 0;
}

.error-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px !important;
}

.retry-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.retry-button:hover {
  background-color: #c82333;
}

/* 하단 결제 영역 스타일*/
.cart-footer {
  padding: 20px 0 0 0;
  background: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.cart-agreement {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.cart-checkbox {
  flex-shrink: 0;
  padding-top: 2px;
}

.cart-agreement .agreement-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cart-agreement-text {
  color: #1C1C1C;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  flex: 1;
}

.agreement-link {
  color: #FF6A06;
  text-decoration: underline;
  cursor: pointer;
}

.cart-payment-btn {
  width: 100%;
  height: 50px;
  background: #FF6A06;
  border: none;
  border-radius: 0;
  color: white;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-payment-btn:hover {
  background: #E55A00;
}

.cart-payment-btn:disabled {
  background-color: var(--color-gray2);
  color: var(--color-gray3);
  cursor: not-allowed;
}

.cart-count {
  font-size: 14px;
  font-weight: 500;
  color: #4A4A4A;
  line-height: 1.2;
  margin: 0;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F8F9FA;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.cart-item-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-meta {
  font-size: 12px;
  font-weight: 500;
  color: #4A4A4A;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1.2;
}

.cart-item-actions {
  flex-shrink: 0;
  padding-top: 2px;
}

.cart-remove-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: #F8F9FA;
  border-radius: 50%;
  color: #4A4A4A;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.cart-remove-btn:hover {
  background: #FF4C61;
  color: white;
}

.cart-summary {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 16px;
  margin: 0 20px 24px 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cart-summary-row:last-child {
  margin-bottom: 0;
}

.cart-summary-row.total {
  padding-top: 8px;
  border-top: 1px solid #E9E9E9;
  margin-top: 8px;
}

.cart-summary-label {
  font-size: 14px;
  font-weight: 500;
  color: #4A4A4A;
  line-height: 1.2;
}

.cart-summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #1C1C1C;
  line-height: 1.2;
}

.cart-summary-value.discount {
  color: #FF4C61;
}

.cart-summary-row.total .cart-summary-label {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
}

.cart-summary-row.total .cart-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1C;
}

.payment-method {
  margin-bottom: 20px;
  padding: 0 20px;
}

.payment-method-title {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1C;
  margin-bottom: 12px;
  line-height: 1.2;
}

.payment-method-placeholder {
  background: #F8F9FA;
  border: 1px solid #E9E9E9;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method-placeholder span {
  font-size: 14px;
  font-weight: 500;
  color: #9E9E9E;
  line-height: 1.2;
}
