@import url("./common.css");

#main {
  flex: 1;
  min-width: 280px;
}

.section {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section .container {
  margin: 0 auto;
  position: relative;
  width: auto;
  max-width: var(--container-max);
  padding: 0 30px;
}

@media screen and (max-width: 768px) {
  .section .container {
    padding: 0 20px;
  }
}

section#section-slider {
  padding-bottom: 50px;
}

#section-slider .swiper {
  width: 100%;
  height: 400px;
}

/** Header START **/
section.chaeum-topbar {
  display: flex;
  height: 40px;
  min-width: 280px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color-light);
}

section.chaeum-topbar .topbar-layer {
  height: 40px;
  max-width: var(--container-max);
  width: 100%;
}

section.chaeum-topbar .topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
}

section.chaeum-topbar .topbar-container .topbar-left {
  display: flex;
}

section.chaeum-topbar .topbar-container li {
  cursor: pointer;
  display: flex;
  align-items: center;
}

section.chaeum-topbar .topbar-container li:not(:last-child):after {
  content: "";
  display: block;
  margin: 0 12px;
  width: 1.5px;
  height: 14px;
  background: var(--border-color);
}

/** 로그인 모달 START **/
#login-modal .modal-layout {
  height: 100%;
  margin: 0 auto;
  width: calc(100vw - 20px);
  max-width: 400px;
  min-width: 280px;
}

#login-modal .login-close {
  padding: 15px;
  border-bottom: 0;
}

#login-modal .modal-logo {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

#login-modal .login-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

#login-modal .login-form .margin {
  margin: 10px 0;
}

#login-modal .login-form .input-block {
  display: flex;
  justify-content: center;
}

#login-modal .login-action {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: var(--fs-sm);
  word-break: keep-all;
}

#login-modal .login-action a {
  cursor: pointer;
}

#login-modal .login-action .action-lot {
  margin: 0 10px;
}

#login-modal .social-login {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

#login-modal .login-req {
  margin-top: 3rem;
  font-size: var(--fs-sm);
}

@media screen and (max-width: 768px) {
  #login-modal .login-form input,
  #login-modal .login-form input::placeholder {
    font-size: var(--fs-xs);
  }

  #login-modal .login-form {
    padding: 1rem 0;
  }

  #login-modal .login-action {
    font-size: var(--fs-xs);
  }

  #login-modal .login-action .action-lot {
    margin: 0 8px;
  }
}

/** 로그인 모달 END **/

/** 모바일 사이드 메뉴 **/
#mobile-sidemenu .sidemenu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 25px 10px;
  margin: 10px 0;
  background-color: var(--bg-muted);
  border-radius: 30px;
}

#mobile-sidemenu .sideheader a {
  display: flex;
  align-items: center;
}

#mobile-sidemenu .sideheader .header-name {
  font-weight: var(--fw-bold);
  margin-right: 7px;
  word-break: break-all;
}

#mobile-sidemenu .sideheader-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

#mobile-sidemenu .sideheader-sub .sideheader-btn {
  width: 50%;
  text-align: center;
}

#mobile-sidemenu .sideheader-sub .sideheader-btn button {
  font-size: var(--fs-xs);
  padding: 0.325rem 0.875rem;
}

#mobile-sidemenu.menu-active {
  right: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

#mobile-sidemenu.menu-active,
#mobile-sidemenu .sidemenu-layout {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  height: 100%;
}

#mobile-sidemenu .sidemenu-layout {
  display: flex;
  flex-direction: column;
  left: -300px;
  width: 100%;
  max-width: 300px;
  padding: 15px;
  transition: var(--transition-slow);
  background-color: var(--bg-white);
  overflow: auto;
}

#mobile-sidemenu .sidemenu-layout.menu-active {
  transform: translateX(300px);
  -webkit-transform: translateX(300px);
}

#mobile-sidemenu .sidemenu-layout .menu-close {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-lg);
}

/** 모바일 사이드 메뉴 END **/

/* 메인 사이드 시작 */

.cuflex-side-list {
  background-color: var(--bg-white);
  width: 100%;
}

.cuflex-side-list li {
  list-style: none;
  padding: 0;
}

.cuflex-side-list .main-item > a {
  width: 100%;
  padding: 20px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  background-color: var(--bg-white);
}

.cuflex-side-list .dropdown-btn.active {
  color: var(--text-white);
  background-color: var(--color-primary-light);
}

.cuflex-side-list .dropdown-btn.active:hover {
  color: var(--text-white);
}

.cuflex-side-list .dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.cuflex-side-list .dropdown-btn:hover {
  color: var(--color-primary);
}

.cuflex-side-list .sub-list {
  display: none;
  padding: 10px 20px;
  background-color: var(--bg-muted);
}

.cuflex-side-list .sub-list li {
  padding: 5px 10px;
}

.cuflex-side-list .sub-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--fs-sm);
}

.cuflex-side-list .sub-list a:hover {
  color: var(--color-primary);
}

.cuflex-side-list .is-sub .dropdown-btn::after {
  content: "\25B6";
  font-size: 14px;
}

.cuflex-side-list .is-sub .rotate::after {
  content: "\25BC";
}

/* 메인 사이드 끝 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Header
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#header {
  position: -webkit-sticky;
  position: sticky;
  min-width: 280px;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  z-index: 50;
}

#header .nav {
  position: relative;
  align-items: stretch;
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

#header .nav .nav-container {
  margin: 0 auto;
  height: 100%;
  max-width: var(--container-max);
  flex-grow: 1;
}

#header .nav .nav-container .content {
  display: flex;
  height: 100%;
  padding: 0 30px;
}

@media screen and (max-width: 1024px) {
  #header .nav .nav-container .content {
    padding: 0 32px;
  }

  #header.fixed {
    position: fixed;
    background-color: var(--bg-white);
  }

  #main.fixed {
    margin-top: 20px;
  }
}

@media screen and (max-width: 768px) {
  #header .nav {
    height: var(--header-height-mobile);
  }

  #header .nav .nav-container .content {
    padding: 0 18px;
  }
}

#header .nav .mobile-container {
  display: none;
}

@media screen and (max-width: 1024px) {
  #header .nav .mobile-container {
    display: block;
  }

  #header .nav .mobile-container .content .mobile-right .login {
    margin: 0;
  }
}

@media screen and (max-width: 438px) {
  #header .nav .mobile-container .content .mobile-right .login {
    font-size: var(--fs-2xs);
  }
}

/* Mobile Header */

#header .nav .mobile-container .mobile-left {
  flex: 1;
  display: flex;
  align-items: center;
}

#header .nav .mobile-container .mobile-left .mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
}

#header .nav .mobile-container .mobile-left > span {
  width: 34px;
  height: 100%;
  justify-content: flex-start;
}

#header .nav .mobile-container .mobile-left .icon {
  width: 24px;
  height: 24px;
  font-size: 20px;
  color: var(--text-primary);
}

#header .nav .mobile-container .logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .nav .mobile-container .logo > a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
}

#header .nav .mobile-container .mobile-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#header .nav .pc-container {
  display: block;
  padding: 0 32px;
}

@media screen and (max-width: 1024px) {
  #header .nav .pc-container {
    display: none;
  }
}

/* PC Header */
#header .nav .pc-container .logo {
  width: 100px;
  display: flex;
  cursor: pointer;
  align-items: center;
  margin-right: 40px;
}

#header .nav .pc-container .nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
}

#header .nav .pc-container .nav-menu .nav-left {
  display: flex;
  align-items: center;
  height: 100%;
}

#header .nav .pc-container .nav-menu .nav-right {
  display: flex;
  height: 100%;
}

#header .nav .pc-container .nav-menu .nav-right .myinfo {
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
}

#header .nav .pc-container .nav-menu .nav-right .myinfo i {
  font-size: 1.75em;
  margin-right: 10px;
}

#header .nav .pc-container .nav-menu .nav-item {
  display: flex;
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  padding: 0 0.5rem;
  height: 100%;
}

#header .nav .pc-container .nav-menu .nav-item .item {
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#header .nav .pc-container .nav-menu .nav-item.buttons {
  padding-right: 0;
  gap: 5px;
}

#header .nav .pc-container .nav-dropdown {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  list-style: none;
  font-size: var(--fs-sm);
  padding: 13px 23px;
  margin: 0;
  top: 90%;
  min-width: 13rem;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

#header .nav .pc-container .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -22px;
  border: 11px solid transparent;
  border-bottom-color: var(--border-color);
}

#header .nav .pc-container .nav-dropdown::after {
  content: "";
  position: absolute;
  top: -21px;
  border: 11px solid transparent;
  border-bottom-color: var(--bg-white);
}

#header .nav .pc-container .nav-dropdown li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color-light);
  text-align: left;
}

#header .nav .pc-container .nav-dropdown li:last-child {
  border-bottom: none;
}

#header .nav .pc-container .nav-item:hover .nav-dropdown {
  display: block;
}

#header .nav .pc-container .right-dropdown {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  margin: 0;
  top: calc(100% - 4px);
  padding-top: 4px;
  right: 0;
  width: 16rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1;
  overflow: hidden;
}

#header .nav .pc-container .nav-item:hover .right-dropdown {
  display: block;
}

#header .right-dropdown .my-menu-profile {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#header .right-dropdown .my-menu-profile .menu-info {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color-light);
}

#header .right-dropdown .my-menu-profile .menu-info a {
  display: flex;
  align-items: center;
  width: 100%;
}

#header .right-dropdown .my-menu-profile .menu-info .card-icon {
  font-size: var(--fs-lg);
  color: var(--color-primary);
}

#header .right-dropdown .my-menu-profile .menu-info .user-name {
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-all;
  margin: 0 10px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

#header .right-dropdown .my-menu-profile .menu-info a:hover .user-name {
  color: var(--color-primary);
}

#header .right-dropdown .my-menu-profile .menu-info .info-set {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  transition: color var(--transition-fast);
}

#header .right-dropdown .my-menu-profile .menu-info a:hover .info-set {
  color: var(--text-secondary);
}

#header .right-dropdown .my-menu-profile .menu-list {
  padding: 8px;
}

#header .right-dropdown .my-menu-profile .menu-list li {
  border-bottom: none;
}

#header .right-dropdown .my-menu-profile .menu-list li a {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

#header .right-dropdown .my-menu-profile .menu-list li a:hover {
  background: var(--bg-hover);
  color: var(--text-dark);
}

#header .right-dropdown .my-menu-profile .menu-list li i {
  margin-right: 10px;
  width: 18px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-primary);
}

#header .right-dropdown .my-menu-profile .menu-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border-color-light);
}

#header .right-dropdown .my-menu-profile .menu-footer button {
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--text-primary);
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family);
  transition: color var(--transition-fast);
}

#header .right-dropdown .my-menu-profile .menu-footer button:hover {
  color: var(--color-danger);
}

/** Header END **/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Footer
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#footer {
  min-width: 280px;
  width: 100%;
  background: var(--bg-dark);
}

#footer .wrap {
  display: flex;
  max-width: 1140px;
  margin: 0 auto;
  flex-direction: column;
}

#footer .footer-top {
  display: flex;
  max-width: 1140px;
  padding: 30px 20px;
  border-bottom: 1px solid #717174;
}

#footer .footer-top .footer-link {
  display: block;
}

#footer .footer-top .footer-link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#footer .footer-top .footer-link .footer-link-item {
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-link .footer-link-item a {
  color: #eee;
  cursor: pointer;
  font-size: var(--fs-sm);
}

#footer .footer-top .footer-link-list li:not(:last-child):after {
  content: "";
  display: block;
  margin: 0 10px;
  width: 1.7px;
  height: 16px;
  background: #717174;
}

#footer .footer-bottom {
  display: flex;
  padding: 50px 20px;
  justify-content: space-between;
}

#footer .footer-info {
  color: #eee;
  font-size: 14px;
}

#footer .footer-bottom .footer-info .br {
  display: block;
}

#footer .footer-img {
  color: #eee;
  font-size: 14px;
}

#footer .footer-bottom .footer-customer {
  display: flex;
  flex-direction: column;
}

#footer .footer-bottom .footer-customer .customer-tel {
  color: #eee;
  font-size: 18px;
  margin-bottom: 20px;
}

#footer .footer-bottom .footer-customer .customer-info {
  color: #eee;
  font-size: 16px;
}

@media screen and (max-width: 1024px) {
  #footer .footer-customer {
    display: none !important;
  }
}

@media screen and (max-width: 438px) {
  #footer .footer-bottom .footer-info .moblie-br {
    display: block;
  }
}

/** Footer END **/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Classroom Header
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#classroom-header {
  position: -webkit-sticky;
  position: sticky;
  min-width: 280px;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  z-index: 50;
}

#classroom-header.fixed {
  position: fixed;
  background-color: var(--bg-white);
}

#classroom-header .nav {
  position: relative;
  align-items: stretch;
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

#classroom-header .nav .nav-container {
  margin: 0 auto;
  height: 100%;
  max-width: var(--container-classroom);
  flex-grow: 1;
}

.nav-classroom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
}

.nav-classroom-right .room-out {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-classroom-right .room-out i {
  font-size: var(--fs-lg);
  margin-right: 10px;
}
