/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/*
@import url(http://fonts.googleapis.com/earlyaccess/nanumgothic.css);
body , #primary-menu ul li > a { font-family: "Nanum Gothic","Apple SD Gothic Neo","Malgun Gothic", Sans-serif;    box-sizing: border-box; }
*/

/*
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR&display=swap');
body , #primary-menu ul li > a { font-family: "Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic", Sans-serif;    box-sizing: border-box; }
*/

/*
@import url('https://fonts.googleapis.com/css?family=Stylish&display=swap');
body , #primary-menu ul li > a { font-family: "Stylish","Apple SD Gothic Neo","Malgun Gothic", Sans-serif;    box-sizing: border-box; }
*/

/*
@import url('https://fonts.googleapis.com/css?family=Noto+Serif+KR&display=swap');
body , #primary-menu ul li > a { font-family: "Noto Serif KR","Apple SD Gothic Neo","Malgun Gothic", Sans-serif;    box-sizing: border-box; }
*/

/*
 ************ 눈누 사이트에서 코드를 가져온 후에 적용할 때 참고 ****************
@font-face { font-family: 'Cafe24Dangdanghae'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.2/Cafe24Dangdanghae.woff') format('woff'); font-weight: normal; font-style: normal; }
body , #primary-menu ul li > a { font-family: "Cafe24Dangdanghae","Apple SD Gothic Neo","Malgun Gothic", Sans-serif;    box-sizing: border-box; }
*/

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

/* 전체 사이트에 Noto Sans KR 적용 */
*,
body,
h1,
h2,
h3,
h4,
h5,
h6,
#primary-menu ul li > a,
.entry-title,
.widget-title,
input,
textarea,
select,
button,
.btn,
label {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif !important;
  box-sizing: border-box;
}

body {
  padding-top: 75px;
}

.product-title h3 {
  font-size: 16px;
}

.product-price {
  font-size: 16px;
}

#footer {
  border-top: 0px;
}

#copyrights {
  padding: 20px 0px;
}

footer address span:before {
  content: "\00B7";
  padding: 0px 4px;
}

footer address span:first-child:before {
  content: "";
  padding: 0px;
}

footer address {
  margin-top: 40px;
}

@media (max-width: 767px) {
  address span {
    display: block;
  }

  footer address span:before {
    content: "";
    padding: 0px;
  }

  footer address {
    margin-top: 0px;
  }
}

#header,
#header-wrap {
  height: auto;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 한 줄 헤더 스타일 */
/* 기본 헤더 스타일 복원 */

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

.user-link {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.user-link:hover {
  color: #007cba;
}

.user-info {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* 반응형 디자인 */
/* 데스크탑에서 모바일 스타일 무효화 */
@media (min-width: 992px) {
  #primary-menu-trigger {
    display: none !important;
  }

  #primary-menu {
    display: flex !important;
  }

  #extra-menu {
    display: flex;
  }

  .mobile-menu-overlay {
    display: none !important;
  }

  /* 데스크탑에서 모바일 사용자 메뉴 숨김 */
  .mobile-user-menu {
    display: none !important;
  }

  #primary-menu > ul,
  #primary-menu > div > ul {
    position: static !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    z-index: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
  }

  #primary-menu > ul > li,
  #primary-menu > div > ul > li {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    border: none !important;
  }

  #primary-menu .mobile-only {
    display: none !important;
  }

  #primary-menu > ul > li > a,
  #primary-menu > div > ul > li > a,
  #extra-menu a {
    font-size: 13px !important;
    color: #444 !important;
    text-align: center !important;
    border: none !important;
    background: none !important;
  }
}

@media (max-width: 1200px) {
  #primary-menu > ul {
    gap: 15px;
  }

  .header-extras {
    gap: 15px;
  }

  .user-menu {
    gap: 10px;
  }
}

@media (max-width: 991px) {
  /* 모바일 메뉴 트리거 버튼 표시 */
  #primary-menu-trigger {
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 50px !important;
    height: 50px !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  #primary-menu-trigger svg {
    width: 24px !important;
    height: 24px !important;
    color: #333 !important;
  }

  #primary-menu-trigger:hover svg {
    color: #0e2c55 !important;
  }

  /* 메뉴가 열렸을 때 트리거 버튼 스타일 */
  .primary-menu-open #primary-menu-trigger {
    z-index: 1002 !important;
  }

  .primary-menu-open #primary-menu-trigger .hamburger-icon {
    display: none !important;
  }

  .primary-menu-open #primary-menu-trigger .close-icon {
    display: block !important;
    color: #0e2c55 !important;
  }

  /* 기본 close-icon은 숨김 */
  #primary-menu-trigger .close-icon {
    display: none !important;
  }

  /* 모바일 메뉴 오버레이 - drawer보다 낮은 z-index */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 997;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .primary-menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  /* 오버레이 클릭 시 drawer 영역 제외 */
  @media (min-width: 768px) {
    .primary-menu-open .mobile-menu-overlay {
      right: 300px;
      width: 100%;
      z-index: 0;
    }
  }

  @media (max-width: 767px) {
    .primary-menu-open .mobile-menu-overlay {
      right: 280px;
      width: 100%;
      z-index: 0;
    }
  }

  /* Drawer 메뉴 기본 상태 (숨김) */
  #primary-menu > ul,
  #primary-menu > div > ul {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    pointer-events: auto;
  }

  #primary-menu .mobile-only {
    display: none;
  }

  /* Drawer 메뉴가 d-block 클래스를 가질 때만 표시 */
  #primary-menu > ul,
  #primary-menu > div > ul {
    display: block !important;
  }

  /* Drawer가 열렸을 때 */
  .primary-menu-open #primary-menu > ul,
  .primary-menu-open #primary-menu > div > ul {
    right: 0;
  }

  .primary-menu-open #primary-menu .mobile-only {
    display: block;
  }

  .primary-menu-open #primary-menu .mobile-only:first {
    margin-top: 2rem;
  }

  /* Drawer 헤더 */
  #primary-menu > ul::before,
  #primary-menu > div > ul::before {
    content: "";
    display: block;
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  /* 메뉴 아이템 스타일 */
  #primary-menu > ul > li,
  #primary-menu > div > ul > li {
    display: block;
    width: 100%;
    margin: 0;
  }

  #primary-menu > ul > li > a,
  #primary-menu > div > ul > li > a {
    display: block;
    padding: 18px 24px !important;
    font-size: 16px;
    color: #333;
    text-align: left;
    border: none;
    background: none;
    font-weight: 400;
    transition: all 0.2s ease !important;
    position: relative;
  }

  #primary-menu > ul > li > a:hover,
  #primary-menu > div > ul > li > a:hover {
    color: #0e2c55;
    background: #f8f9fa;
    padding-left: 32px;
  }

  #primary-menu > ul > li > a::before,
  #primary-menu > div > ul > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #0e2c55;
    transition: width 0.2s ease;
  }

  #primary-menu > ul > li > a:hover::before,
  #primary-menu > div > ul > li > a:hover::before {
    width: 4px;
  }

  /* 모바일에서 헤더 extras(사용자 메뉴) 숨김 */
  .header-extras {
    display: none;
  }

  /* 모바일 사용자 메뉴 스타일링 */
  .mobile-user-menu {
    display: block !important;
    background: #f8f9fa;
  }

  .mobile-user-menu:first-of-type {
    border-top: 2px solid #0e2c55 !important;
    margin-top: 0 !important;
    position: relative;
  }

  .mobile-user-menu:first-of-type::before {
    content: "사용자 메뉴";
    display: block;
    padding: 12px 24px;
    background: #0e2c55;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-user-menu a {
    color: #666 !important;
    font-weight: 500 !important;
    background: #f8f9fa !important;
  }

  .mobile-user-menu a:hover {
    background: #e9ecef !important;
    color: #0e2c55 !important;
    padding-left: 32px !important;
  }
}

@media (max-width: 767px) {
  /* 작은 화면에서 drawer 너비 조정 */
  #primary-menu > ul,
  #primary-menu > div > ul {
    width: 280px;
    right: -280px;
  }

  .primary-menu-open #primary-menu > ul,
  .primary-menu-open #primary-menu > div > ul {
    right: 0;
  }

  #primary-menu > ul > li > a,
  #primary-menu > div > ul > li > a {
    padding: 16px 20px;
    font-size: 15px;
  }

  #primary-menu > ul > li > a:hover,
  #primary-menu > div > ul > li > a:hover {
    padding-left: 28px;
  }
}

#primary-menu > ul {
  font-size: 0;
  text-align: center;
}

#primary-menu ul li > a,
#extra-menu a {
  padding: 10px;
  line-height: 1;
  font-weight: 400;
}

#primary-menu ul li > a:hover {
  color: #0e2c55;
}

#top-cart {
  display: none;
}

.mainwrapper {
  font-size: 0;
}

.mainwrapper > div {
  display: inline-block;
  vertical-align: top;
  width: 50%;
  box-sizing: border-box;
  padding: 30px;
}

.mainwrapper .edubox {
  background: #9acc6d;
}

.mainwrapper .shop .product {
  float: none;
  padding: 0;
  width: auto;
  display: inline-block;
  margin-right: 30px;
  vertical-align: top;
}

.mainwrapper .product-desc {
  padding: 10px 0;
  line-height: 1;
}

.mainwrapper .shop,
.mainwrapper .product-title {
  margin: 0;
}

.mainwrapper .product-image,
.mainwrapper .product-title:nth-of-type(2),
.mainwrapper .product-price,
.mainwrapper .product-rating {
  display: none;
}

h3.mainbox-title {
  text-align: left;
  color: #fff;
  margin-bottom: 10px;
}

.mainwrapper .shop {
  padding: 0 20px;
}

.mainwrapper .product-title h3 a {
  color: #fff;
  font-weight: 400;
  transition: 0.3s;
}

.mainwrapper .product-title h3 a:hover {
  color: #1a242e;
  font-weight: 700;
}

.edubox-top,
.news-top {
  position: relative;
}

.mainwrapper .viewmore {
  display: block;
  font-size: 0;
  line-height: 0;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mainwrapper .viewmore:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  transition: 0.3s;
}

.mainwrapper .viewmore:hover:before {
  transform: translateX(-50%) rotate(90deg);
}

.mainwrapper .viewmore:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
  transition: 0.3s;
}

.mainwrapper .viewmore:hover:after {
  transform: translateY(-50%) rotate(90deg);
}

.mainwrapper > div.eventbox {
  background: #f5f5f5;
  padding: 0;
}

.mainwrapper .eventwrap {
  position: relative;
}

.mainwrapper .eventwrap:after {
  content: "";
  position: absolute;
  width: calc(100% - 60px);
  height: 1px;
  background: #fff;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.mainwrapper .eventwrap:last-child:after {
  display: none;
}

.mainwrapper > div.myclassroom {
  padding: 0;
  overflow: hidden;
}

.mainwrapper > div.myclassroom img {
  transition: 0.3s;
}

.mainwrapper > div.myclassroom:hover img {
  transform: scale(1.2);
}

.mainwrapper .newsbox {
  background: #434343;
}

.mainwrapper .newsbox .post-grid {
  margin: 0;
}

.mainwrapper .newsbox .post-grid .entry {
  float: none;
  width: 100%;
  display: block;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px dashed #666;
}

.mainwrapper .newsbox .post-grid .entry:last-child {
  margin: 0;
  border: 0;
}

.mainwrapper .newsbox .entry-image {
  display: inline-block;
  width: 80px;
  vertical-align: middle;
  margin: 0 10px 0 0;
  line-height: 0;
}

.mainwrapper .newsbox .entry-title {
  display: inline-block;
  width: calc(100% - 90px);
  vertical-align: middle;
  text-align: left;
}

.mainwrapper .newsbox .post-grid .entry-title > h2 > a {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  height: 1em;
  line-height: 1;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  transition: 0.3s;
}

.mainwrapper .newsbox .post-grid .entry-title > h2 > a:hover {
  color: #999;
}

.mainwrapper .newsbox #posts .entry-content {
  display: none;
}

.bottomlink {
  margin-top: 50px;
  font-size: 0;
}

.bottomlink .col_one_fourth {
  margin: 0 0 0 0;
  width: 25%;
  float: none;
  display: inline-block;
  vertical-align: top;
}

.bottomlink .feature-box.media-box.fbox-bg .fbox-desc {
  border: 0;
  margin-top: 20px;
}

.bottomlink .feature-box.media-box .fbox-media a {
  text-align: center;
}

.bottomlink .feature-box.media-box .fbox-media img {
  width: auto;
  margin: 0 auto;
}

.bottomlink .feature-box h3 {
  font-size: 18px;
}

.bottomlink .feature-box h3 span.subtitle {
  margin-top: 0;
  font-size: 16px;
}

.nav-item .leed-tab {
  font-size: 0.75rem;
}

@media (min-width: 992px) {
  .mainwrapper .eventwrap img {
    height: 119px;
  }

  .mainwrapper > div.myclassroom img {
    height: 365px;
  }
}

@media (max-width: 992px) {
  #header #header-wrap .container:after,
  #header:after {
    display: none;
  }

  #primary-menu ul li > a {
    color: #444;
  }

  .mainwrapper .eventwrap img {
    height: 171px;
  }

  .mainwrapper > div.myclassroom img {
    height: 365px;
  }
}

@media (max-width: 768px) {
  .mainwrapper > div {
    width: 100%;
    display: block;
  }

  .mainwrapper .eventwrap img {
    height: auto;
  }

  .mainwrapper > div.myclassroom img {
    height: auto;
  }

  .bottomlink .col_one_fourth {
    width: 50%;
    margin: 0 0 40px 0 !important;
  }

  .bottomlink .col_one_fourth:nth-of-type(3),
  .bottomlink .col_one_fourth:nth-of-type(4) {
    margin: 0 !important;
  }
}

@media (max-width: 576px) {
  .mainwrapper .shop .product {
    margin: 0 20px 0 0;
  }

  .bottomlink .feature-box.media-box .fbox-media img {
    width: 50px;
  }
}
