/* navbar.css - 리뉴얼 네비바, 드롭다운, 모바일 메뉴, 카카오톡 말풍선 */
/* Main Styles */
@import url('https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');


body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;

  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

.text-crew-100 {
  color: rgba(178, 0, 136, 0.1);
}

.text-crew-200 {
  color: rgba(178, 0, 136, 0.2);
}

.text-crew-300 {
  color: rgba(178, 0, 136, 0.3);
}

.text-crew-400 {
  color: rgba(178, 0, 136, 0.4);
}

.text-crew-500 {
  color: rgba(178, 0, 136, 0.5);
}

.text-crew-600 {
  color: rgba(178, 0, 136, 0.6);
}

.text-crew-700 {
  color: rgba(178, 0, 136, 1.0);
}

.text-crew-900 {
  color: #aa0077;
}

.text-crew-900 {
  color: #750058;
}

.bg-crew-100 {
  color: rgba(178, 0, 136, 0.1);
}

.bg-crew-200 {
  color: rgba(178, 0, 136, 0.2);
}

.bg-crew-300 {
  color: rgba(178, 0, 136, 0.3);
}

.bg-crew-400 {
  color: rgba(178, 0, 136, 0.4);
}

.bg-crew-500 {
  color: rgba(178, 0, 136, 0.5);
}

.bg-crew-600 {
  color: rgba(178, 0, 136, 0.6);
}

.bg-crew-700 {
  color: rgba(178, 0, 136, 1.0);
}

.bg-crew-900 {
  color: #aa0077;
}

.bg-crew-900 {
  color: #750058;
}



/* Navbar */
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Course Card */
.course-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Testimonial Card */
.testimonial-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.testimonial-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-question {
  cursor: pointer;
  padding: 1rem;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1rem;
  max-height: 1000px;
  border-top: 1px solid #e5e7eb;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.active {
  transform: rotate(180deg);
}

/* Category buttons */
.category-btn.active {
  background-color: #b20088;
  color: white;
}

.mobile-menu-open {
  display: none;
}

#sidebar {
  max-width: 350px;
}

.left-menu-width {
  width: 100%;
}

/* Mobile menu */
@media (max-width: 768px) {
  .mobile-menu-open {
    display: block !important;
  }

  #sidebar {
    max-width: unset;
  }

  .left-menu-width {
    width: calc(100% - 50px);
  }
}



/* Navbar.css */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css');

/* Base styles */
:root {
  --primary-color: #b20088;
  --primary-dark: #aa0077;
  --primary-light: #D6BCFA;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #f0f0f0;
  --background-white: #ffffff;
  --new-badge-color: #db00aa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
}

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

/* Navbar container */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--background-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Desktop Menu */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

.menu-items {
  display: flex;
}

.menu-item {
  position: relative;
  margin-right: calc(0.5rem + 8px);
}

.menu-button {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.menu-button:hover {
  color: var(--primary-color);
}

/* Dropdown menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
  z-index: 100;
}


.dropdown-menu ul {
  width: 100%;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li.dropdown-item {
  cursor: pointer;
}

.dropdown-menu li a {
  padding-left: 0px;
}

.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 13.5px;
  color: #4b5563;
  transition: all 0.15s ease;
  border-radius: 8px;
  margin: 2px 0;
  font-weight: 500;
}

.dropdown-item.on {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 600;
}

.dropdown-item:hover {
  background-color: #f9fafb;
  color: #111827;
  transform: translateX(2px);
}

.dropdown-item.highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.dropdown-point {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #888;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-point .pt-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #b20088;
  border-radius: 4px;
  margin-right: 6px;
}

.new-badge {
  font-size: 0;
  margin-left: 4px;
  vertical-align: middle;
}

.new-badge::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\4e";
  font-size: 0.65rem;
  color: var(--new-badge-color);
}

.new-badge-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  font-size: 0.6rem;
  font-weight: bold;
  background-color: var(--new-badge-color);
  color: white;
  border-radius: 5px;
  margin-left: 0.5rem;
  padding: 0 4px;
  padding-top: 0.7px;
  vertical-align: middle;
}


/* 수강중 아이콘 스타일 - 최우선 적용 */
span.new-badge-study,
.new-badge-study,
span.new-badge.new-badge-study,
.new-badge.new-badge-study,
#left-wrap .new-badge-study,
#left-wrap span.new-badge-study,
.sub-list .new-badge-study,
.sub-list span.new-badge-study,
.dropdown-item .new-badge-study,
.dropdown-item span.new-badge-study,
.menu-item .new-badge-study,
.menu-item span.new-badge-study,
.mobile-menu-item .new-badge-study,
.mobile-menu-item span.new-badge-study,
.mobile-submenu .new-badge-study,
.mobile-submenu span.new-badge-study {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 18px !important;
  font-size: 0.6rem !important;
  font-weight: bold !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #b20088 !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #b20088 !important;
  color: #b20088 !important;
  border-radius: 5px !important;
  margin-left: 0.5rem !important;
  padding: 0 4px !important;
  padding-top: 0.7px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}



.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  margin: 0 !important;
  height: auto;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #3730a3;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
}

.label--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.user-menu>.flex {
  align-items: center;
  gap: 8px;
}

/* alert_wrap이 pc-icon-btn/mobile-icon-btn으로 통일됨 */

/* Navbar controls (search and login) */
.navbar-controls {
  display: flex;
  align-items: center;
}

/* Search box */
.search-box {
  position: relative;
  margin-right: 1rem;
}

.search-input {
  width: 200px;
  height: 36px;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(155, 135, 245, 0.1);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.search-icon {
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
}

/* User menu */
.user-menu {
  position: relative;
}

.login-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
}

.login-button:hover {
  color: var(--primary-color);
}

.user-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
  background-size: contain;
  vertical-align: middle;
}

.mobile-controls .user-icon {
  width: 20px;
  height: 20px;
  margin-right: 0px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 150px;
  background: var(--background-white);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 5px 6px;
  display: none;

  z-index: 100;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* PC 아이콘 테이블 레이아웃 */
.pc-icon-table {
  display: table;
  border-spacing: 4px 0;
}

.pc-icon-cell {
  display: table-cell;
  vertical-align: middle;
}

/* PC 아이콘 버튼 통일 스타일: button > span 구조 */
.pc-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* 알림 버튼 높이 고정: 내부 dl 등 여분 요소로 높이 늘어남 방지 */
.pc-icon-btn.alert_wrap,
.mobile-icon-btn.alert_wrap {
  height: 32px;
  overflow: visible;
}

.pc-icon-btn.alert_wrap .alert,
.mobile-icon-btn.alert_wrap .alert {
  display: inline-flex;
  align-items: center;
}

/* 네비 SVG 아이콘 통일 스타일 */
.nav-icon {
  width: 20px;
  height: 20px;
  fill: #000;
  stroke: #000;
  stroke-width: 8px;
  display: block;
}

/* 벨 아이콘: 크기/두께/색상 통합 관리 */
.bell-wrap .nav-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1px;
  margin-left: 3px;
  fill: #000;
  color: #000;
}

/* 모바일 아이콘 테이블 레이아웃 */
.mobile-icon-table {
  display: table;
  border-spacing: 4px 0;
  height: 100%;
}

.mobile-icon-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* 모바일 아이콘 버튼 통일 스타일: button > span 구조 */
.mobile-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  min-width: 32px;
  min-height: 32px;
}
/* Mobile menu toggle */
.mobile-controls {
  display: none;
  align-items: center;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
}

.user-button-mobile {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
    margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* Mobile menu */
.mobile-menu {
  display: block !important;
  /* jQuery slideToggle 잔재 제거 */
  position: fixed;
  top: 0;
  right: -100%;
  /* 처음에는 화면 오른쪽 밖에 숨김 */
  width: 80%;
  /* 메뉴 너비 (화면의 80%) */
  max-width: 360px;
  height: 100vh;
  /* 전체 높이 */
  background: #ffffff;
  z-index: 9999;
  /* 최상위 레이어 */
  transition: right 0.3s ease-in-out;
  /* 부드러운 슬라이딩 효과 */
  overflow-y: auto;
  /* 내용이 길면 스크롤 */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  /* 그림자 효과 */
}

.mobile-menu.active {
  right: 0;
  /* 화면 안으로 이동 */
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  /* 메뉴 바로 아래 */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  z-index: 10000;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-container {
  padding: 12px 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.mobile-menu-item {
  margin-bottom: 0;
  margin-top: 12px;
}

.mobile-menu-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: #f9fafb;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 모바일 대메뉴 토글 화살표 제거 */

.mobile-submenu {
  display: none;
  padding: 4px 0 8px 12px;
  border-left: none;
  margin: 0 0 12px 0;
  background: #fff;
  border-radius: 6px;
}

.mobile-submenu.active {
  display: block;
}

.mobile-submenu-item {
  display: block;
  padding: 0.6rem 0;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}

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

.mobile-submenu-item.highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.mobile-submenu .dropdown-item {
  padding: 7px 12px;
  font-size: 13px;
  color: #374151;
  border-radius: 6px;
  margin: 1px 0;
}

.mobile-submenu .dropdown-item:hover {
  background-color: #f9fafb;
}

.mobile-submenu .dropdown-item.on {
  background: #f3f4f6;
  color: #111827;
  font-weight: 500;
}

/* 2026-03-09 관리자 메뉴 전용 색상 */
.admin-menu,
.dropdown-item.admin-menu,
.mobile-submenu .dropdown-item.admin-menu,
#mega-menu .mega-link.admin-menu,
#mega-menu .mega-col-title.admin-menu {
  color: #a472ef;
}

.admin-menu.on,
.dropdown-item.admin-menu.on,
#mega-menu .mega-link.admin-menu.on {
  color: #b20088;
  font-weight: 600;
}

.admin-menu:hover,
.dropdown-item.admin-menu:hover,
#mega-menu .mega-link.admin-menu:hover {
  color: #7c5ab8;
}
.mobile-search {
  position: relative;
  margin: 1rem 0;
}

.mobile-search-input {
  width: 100%;
  height: 40px;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.95rem;
}

.mobile-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-auth-buttons {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.mobile-login-button,
.mobile-signup-button {
  flex: 1;
  padding: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}

.mobile-login-button {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.mobile-login-button:hover {
  background: #f9fafb;
}

.mobile-signup-button {
  background-color: #111827;
  border: 1px solid #111827;
  color: white;
}

.mobile-signup-button:hover {
  background-color: #1f2937;
}

/* Responsive breakpoints */


@media (max-width: 1023px) {
  .desktop-menu {
    display: none;
  }

  .mobile-controls {
    display: flex;
  }

  .navbar-wrapper {
    padding: 0;
    height: 45px;
  }

  .navbar-logo h1 {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* 카카오톡 말풍선 */
.message-container {
  margin-bottom: 20px;
}

/* 기본 메시지 (왼쪽) */
.kakao-message {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0 auto 20px;
}

/* 기본 말풍선 (왼쪽) */
.kakao-bubble {
  background-color: #ffeb33;
  /* 카카오톡 노란색 */
  padding: 12px 15px;
  border-radius: 4px 15px 15px 15px;
  /* 카카오톡 특유의 말풍선 모양 */
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #2a2a2a;
}

/* 왼쪽 말풍선 꼬리 */
.kakao-bubble:before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 16px;
  background-color: #ffeb33;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

/* 오른쪽 정렬된 메시지 */
.message-right {
  align-items: flex-end;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* 오른쪽 말풍선 */
.bubble-right {
  background-color: #eee;
  border-radius: 15px 4px 15px 15px;
  border: none;
}

/* 오른쪽 말풍선은 왼쪽 꼬리 제거 */
.bubble-right:before {
  display: none;
}

/* 오른쪽 말풍선 꼬리 */
.bubble-right:after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 16px;
  background-color: #eee;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border: none;
}

#shop-info {
  width: 1200px;
  margin: 0px auto;
}

/*미디어*/
@media (max-width: 1024px) {
  #doc-main-tab .sub {
    width: 100%;
    margin: 0px;
  }

  #doc-main-tab .tab_wrap {
    width: 100%;
    justify-content: flex-start
  }

  #doc-main-tab .sub .tab_wrap a {
    margin: 0px 10px;
  }

  #shop-info {
    width: 100%;
    margin: 0px auto;
  }

  .reviewList {
    width: 100%;
  }

  .tab_con {
    padding: 20px;
  }
}

#hh {
  width: 100%;
  height: calc(100vh - 64px)
}

.close_wrap {
  width: 40px;
  height: 40px;
  top: 0px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}