@charset "UTF-8";
:root {
  /* Color variables */
  --blk: #202124;
  --gray-l-100: #6e6e73;
  --gray-l-200: #9c9ca4;
  --gray-l-300: #d0d0dd;
  --clr-main-l: #ffae82;
  --clr-sub: #3bcfbe;
  --clr-line: #eceef2;
  --clr-line-l: #dfe2e8; 
  --clr-line-d: #E1E6F0;  
  --clr-main: #fb7126;
  --clr-best: #8a38f5;
  --bg-light-gray: #f1f3f9;
  --bg-light-blue: #e5f4ff; 
  
  /* Typography variables */
  --font-size: 16px;
  --text-h1: 56px;
  --text-h2: 48px;
  --text-h3: 18px;
  --text-h4: 16px;
  --text-p: 16px;
  --text-label: 13px;
  --text-tag: 11px;
  --text-nav: 15px;
  --text-input: 16px;
  
  /* Font weights */
  --font-bold: 700;
  --font-medium: 500;
  --font-normal: 400;
  --font-semibold: 600;
  
  /* Border radius */
  --radius: 8px;
  --radius-card: 12px;
  --radius-tag: 4px;
  
  /* Shadow */
  --elevation-sm: 0px -4px 8.1px 0px rgba(0, 0, 0, 0.08);
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  background: #fff;
  color: var(--blk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: none;
}
button {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
legend {
    padding: 0;
}
ul, ol {
    list-style: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}
:focus-visible {
    outline: 2px dashed rgba(0,0,0,0.9);
    outline-offset: 2px;
}
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button,
input::-webkit-credentials-auto-fill {
    display: none !important;
}
input::-ms-clear,
input::-ms-reveal,
input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
    display: none;
}
textarea {
    resize: vertical;
}
[hidden] {
    display: none !important;
}


/* common */
html {
  font-size: var(--font-size);
}
body {
  padding-top:143px;
}
h1 {
  font-size: var(--text-h1);
  font-weight: var(--font-bold);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
h2 {
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
h3 {
  font-size: var(--text-h3);
  font-weight: var(--font-bold);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
h4 {
  font-size: var(--text-h4);
  font-weight: var(--font-bold);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
p {
  font-size: var(--text-p);
  font-weight: var(--font-medium);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
label {
  font-size: var(--text-label);
  font-weight: var(--font-medium);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
button {
  font-size: var(--text-p);
  font-weight: var(--font-medium);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
input {
  font-size: var(--text-input);
  font-weight: var(--font-normal);
  line-height: 1.5;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
nav {
  font-size: var(--text-nav);
  font-weight: var(--font-medium);
  line-height: 1.5;
}
.tag {
  font-size: var(--text-tag);
  font-weight: var(--font-bold);
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */

.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션 내부 요소들에 순차적 애니메이션 */
.scroll-animate.animate-in .section-title,
.scroll-animate.animate-in .section-header {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.scroll-animate.animate-in .tab-list {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.scroll-animate.animate-in .course-grid,
.scroll-animate.animate-in .swiper-container,
.scroll-animate.animate-in .swiper {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   LAYOUT & GLOBAL
   ================================ */

.container {
  width: 1220px;
  margin: 0 auto;
  padding: 0;
}

.container-swiper {
  width: calc(1220px + ((100% - 1220px) / 2));
  margin: 0 0 0 calc((100% - 1220px) / 2);
}


/* ================================
   HEADER SECTION
   ================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-line);
}

/* LNB - Local Navigation Bar */
.lnb {
  background: var(--bg-light-gray);
  padding: 10px 0;
}

.lnb .container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lnb-item {
  padding: 0 8px 0 0;
  border-right: 1px solid var(--clr-line-l);
  color: var(--gray-l-100);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.lnb-item:last-child {
  border-right: none;
}

.lnb-item.active {
  color: var(--blk);
  font-weight: var(--font-bold);
}

.lnb-item:hover {
  color: var(--blk);
}

/* TNB - Top Navigation Bar */
.tnb {
  background: #fff;
  padding: 16px 0 4px;
}

.tnb .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.tnb .logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  height: 30px;
  width: auto;
}

.tnb .logo-text {
  padding-bottom: 3px;
  font-size: 18px;
  font-weight: var(--font-medium);
  color: var(--blk);
  line-height: 18px;
  letter-spacing: -0.78px;
}

.search-box {
  flex: 1;
  max-width: 314px;
  position: relative;
  display: flex;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--blk);
  border-radius: 0;
  padding: 6px 0;
  gap: 10px;
}

.search-box button {
  align-items: center;
  height: 100%;
  display: flex;
  flex-shrink: 0;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--blk);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--blk);
}

.search-box input::placeholder {
  color: var(--gray-l-200);
}

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

.menu-item {
  padding: 0 8px 0 0;
  border-right: 1px solid var(--clr-line);
  font-size: var(--text-label);
  font-weight: var(--font-medium);
  transition: color 0.2s;
}

.menu-item:last-child {
  display: flex;
  border-right: none;
}

.menu-item:hover {
  color: var(--clr-main);
}

/* GNB - Global Navigation Bar */
.gnb {
  background: #fff;
  padding: 16px 0;
}

.gnb .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  /* padding: 5px 3px; */
  font-weight: var(--font-bold);
  font-size: var(--text-nav);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--blk);
  transition: color 0.2s;
}

.category-btn:hover {
  color: var(--clr-main);
}

.category-btn:hover .hamburger-icon,
.category-btn:hover .chevron-down {
  color: var(--clr-main);
}

.category-btn svg {
}

.hamburger-icon {
  width: 16px;
  transition: color 0.2s;
}

.chevron-down {
  width: 14px;
  transition: color 0.2s, transform 0.3s;
}

.categories {
  display: flex;
  gap: 16px;
  font-size: var(--text-nav);
  font-weight: var(--font-medium);
}

.categories a {
  transition: color 0.2s;
}

.categories a:hover,
.categories a.active {
  color: var(--clr-main);
}

/* GNB Submenu */
.gnb-submenu {
  background: var(--bg-light-gray);
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-top: 1px solid var(--gray-l-300);
  border-bottom: 1px solid var(--gray-l-300);
}

.gnb-submenu.show {
  opacity: 1;
  visibility: visible;
}

.gnb-submenu .container {
  padding: 20px 0;
}

.submenu-grid {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.submenu-grid.active {
  display: grid;
}

.submenu-column {
  position: relative;
}

.submenu-column::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--clr-line-l);
}

.submenu-column:last-child::after {
  display: none;
}

.submenu-category {
  font-size: 14px;
  color: var(--gray-l-100);
  margin-bottom: 10px;
}

.submenu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.submenu-links a {
  font-size: 15px;
  color: var(--blk);
  line-height: 34px;
  transition: color 0.2s;
}

.submenu-links a:hover {
  color: var(--clr-main);
}


/* ================================
   CATEGORY MEGA MENU
   ================================ */

.category-mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: var(--bg-light-gray);
  border-top: 1px solid var(--gray-l-300);
  border-bottom: 1px solid var(--gray-l-300);
}

.category-mega-menu.show {
  opacity: 1;
  visibility: visible;
}

.category-mega-menu-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
}

/* Left Tab Panel */
.category-tabs-panel {
  width: 146px;
  background: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--text-nav);
  font-weight: var(--font-weight-medium);
  color: var(--gray-l-200);
  transition: color 0.2s;
  line-height: 15px;
}

.category-tab:hover {
  color: var(--blk);
}

.category-tab.active {
  font-weight: var(--font-bold);
  color: var(--blk);
}

.category-tab.active::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="%23000000" viewBox="0 0 256 256"><path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"></path></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Right Content Panel */
.category-content-panel {
  flex: 1;
  background: var(--bg-light-gray);
  border-top: 1px solid var(--clr-line);
  padding: 20px 30px;
}

.category-content {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.category-content.active {
  display: grid;
}

