/*
Theme Name:     colormag-child
Description:    현대해상 직영론센터 교육 홈페이지 입니다.
Author:         강신민
Template:       colormag
(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/
/* 폰트추가 */
body, nav, h1, h2, h3, h4, h5, h6, li, a, p{
  font-family: 'Nanum Gothic', sans-serif;
}
/*@font-face {
    font-family: 'HI MAUM';
    src: url('HIMaumL.woff2');
    font-weight: 300;
    font-style: normal;
    font-display: fallback;
}

body, nav, h1, h2, h3, h4, h5, h6, li, a, p{
  font-family: 'HI MAUM';
} */
/* 헤드여백 482
/* =HEADER
----------------------------------------------- */
#header-text-nav-wrap {
  padding: 1px 0 1px;
}

/* 본문상단 여백 911
/* =CONTENT
----------------------------------------------- */
#main {
  padding-top: 1px;
  padding-bottom: 1px;
  background-color: #ffffff;
}
/* 본문페이지 상단여백 2054
/* =FRONT PAGE MAIN CONTENT SECTION
----------------------------------------------- */
#main > div > div.main-content-section.clearfix {
    padding-top: 1px;
    padding-bottom: 1px;
}


/* 푸터작업 1313
/* =FOOTER WIDGET AREA
----------------------------------------------- */
#colophon > div.footer-widgets-wrapper > div > div {
  border-top: 1px solid #F2F2F2;
  background-color: #303440;
}

/*푸터여백 1319 */
.footer-widgets-area {
  padding-top: 15px;
  padding-bottom: 1px;
  color: #ff9e1b;
}

/*푸터 크기 1325 */
.tg-footer-main-widget {
   width: 39.473684%;
   float: left;
   margin-right: 2.631579%
}
.tg-footer-other-widgets {
   float: right;
   width: 57.894737%;
}

.tg-first-footer-widget {
}
.tg-second-footer-widget {
   width: 30.303030%;
   float: left;
   margin-right: 4.545454%
}

.tg-third-footer-widget {
   width: 30.303030%;
   float: left;
   margin-right: 4.545454%
}
.tg-fourth-footer-widget {
   width: 30.303030%;
   float: right;
   margin-right: 0;
}

/*푸터타이틀 1351*/
.footer-widgets-area .widget-title {
   border-bottom: 2px solid #ff9e1b;
   font-size: 18px;
   margin-bottom: 15px;
   padding-bottom: 0;
}
.footer-widgets-area .widget-title span {
   background-color: #ff9e1b;
   color: #fff;
   padding: 6px 12px;
   display: inline-block;
}
.footer-widgets-area p {
  text-align: left;
  color: #ff9e1b;
}
.footer-widgets-area a {
  color: #FFFFFF;
}
.footer-widgets-area a:hover {
  color: #289dcc;
}

/* 푸터하단 여백 */
#colophon .widget {
  margin-bottom: 1px;
}
#colophon, #colophon p {
  font-size: 14px;
  line-height: 1.4;
}

/* 푸터하단여백 1401
/* =FOOTER SOCKET AREA
----------------------------------------------- */
#colophon > div.footer-socket-wrapper.clearfix {
   padding: 1px 0px 1px;
   background-color: #303440;
}

#colophon > div.footer-socket-wrapper.clearfix {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* =NAVIGATION
----------------------------------------------- */
#site-navigation {
   box-shadow: 0 0 2px rgba(0, 0, 0, 0.1) inset;
   position: relative;
   background-color: #ff9e1b;
   border-top: 4px solid #F807FB;
}
.home-icon.front_page_on {
   background-color: #ff9e1b;
}

.main-navigation a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current-menu-item a:after,
.main-navigation ul li.current_page_ancestor a,
.main-navigation ul li.current-menu-ancestor a,
.main-navigation ul li.current_page_item a,
.main-navigation ul li:hover > a,
.main-navigation li.menu-item-has-children:hover > a:after {
  color: #ffffff;
}
.main-navigation a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_ancestor > a,
.main-navigation ul li.current-menu-ancestor > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li:hover > a {
   background-color: #00205b;
}

/* 하부메뉴 816 ------------------- */
.main-navigation ul li ul li a:hover,
.main-navigation ul li ul li:hover > a,
.main-navigation ul li.current-menu-item ul li a:hover {
   color: #ffffff;
   background-color: #ff9e1b;
}
/* DROP DOWN -----------------------*/
.main-navigation .sub-menu,
.main-navigation .children {
  background-color: #ff9e1b;
}

/* post CSS적용 ----------------- */
.left {
    float: left;
    width: 300px;
    border: 3px solid #73AD21;
    padding: 10px;
}

/* 태그숨기기 */
#content .post .article-content .below-entry-meta .tag-links{
       display:none;
}

/*업그레이드 이후버전*/
#cm-primary-nav {
    background-color: #FF9E1B;
}
.cm-footer-bar {
    background-color: #FF9E1B;
}
.cm-primary-nav .sub-menu, .cm-primary-nav .children {
    background-color: #FF9E1B;
}

/* =========================================================
 * ColorMag 4.x 업데이트 대응
 * 1) 사이드바 미사용인데 본문/푸터가 헤더보다 좁아 좌측으로 밀리는 문제
 *    - 4.x 기본: .cm-primary = 70% (우측 사이드바 자리 확보)
 *    - no-sidebar 클래스가 있을 때만 100%
 * 2) 모바일 하위메뉴 미표시
 *    - 하위메뉴는 기본 display:none, .cm-submenu-toggle 클릭으로 열림
 * ========================================================= */

/* --- 1. 본문/푸터 전체폭 (사이드바 미사용) --- */
@media screen and (min-width: 62em) {
  body.cm-no-sidebar .cm-primary,
  body.cm-full-width-container .cm-primary,
  body:not(.cm-right-sidebar):not(.cm-left-sidebar):not(.cm-two-sidebars) .cm-primary {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}

body.cm-no-sidebar .cm-secondary,
body:not(.cm-right-sidebar):not(.cm-left-sidebar):not(.cm-two-sidebars) .cm-secondary {
  display: none;
}

/* 헤더/본문/푸터 컨테이너 폭 맞춤 */
.cm-header .cm-container,
.cm-content .cm-container,
#cm-footer .cm-container,
.cm-footer-bar .cm-container {
  max-width: 1140px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 구버전 푸터 클래스 → 4.x에서도 폭이 깨지지 않도록 */
#cm-footer,
.cm-footer-bar,
.footer-socket-wrapper,
.footer-widgets-wrapper {
  width: 100%;
}

/* --- 2. 데스크톱: 하위메뉴 토글 숨김 (호버로 열림) ---
 * 토글이 보이면 메뉴 폭이 늘어 2줄로 감쌈
 */
@media screen and (min-width: 769px) {
  .cm-primary-nav .cm-submenu-toggle,
  #cm-primary-nav .cm-submenu-toggle {
    display: none !important;
  }
  .cm-primary-nav .cm-menu-primary-container > ul,
  #cm-primary-nav .cm-menu-primary-container > ul,
  .cm-primary-nav ul.menu {
    flex-wrap: nowrap;
  }
  .cm-primary-nav li.menu-item-has-children,
  .cm-primary-nav li.page_item_has_children {
    flex-wrap: nowrap;
  }
}

/* --- 3. 모바일 하위메뉴 --- */
@media screen and (max-width: 768px) {
  /* 하위메뉴가 있는 항목: 링크 + 토글 가로 배치 */
  .cm-mobile-nav li.menu-item-has-children,
  .cm-mobile-nav li.page_item_has_children,
  .cm-primary-nav.cm-mobile-nav li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
  }
  .cm-mobile-nav li.menu-item-has-children > a,
  .cm-mobile-nav li.page_item_has_children > a {
    flex: 1 1 auto;
  }

  /* 하위메뉴 토글 버튼 보이게 */
  .cm-mobile-nav .cm-submenu-toggle,
  .cm-primary-nav.cm-mobile-nav .cm-submenu-toggle,
  .cm-header-builder .cm-mobile-nav .cm-submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    z-index: 2;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  .cm-mobile-nav .cm-submenu-toggle .cm-icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
  }

  /* 기본은 숨김 (토글 JS가 slideToggle / display:block 로 표시) */
  .cm-mobile-nav .sub-menu,
  .cm-mobile-nav .children,
  .cm-menu-primary-container .sub-menu,
  .cm-header-builder .cm-mobile-menu .sub-menu {
    display: none;
  }

  /* 포커스/오픈 시 하위메뉴 표시 */
  .cm-mobile-nav li.focus > .sub-menu,
  .cm-mobile-nav li.focus > .children,
  .cm-mobile-nav li.menu-item-has-children.focus > ul,
  .cm-mobile-nav .sub-menu.toggled-on,
  .cm-header-builder .cm-mobile-menu .sub-menu.toggled-on {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    box-shadow: none !important;
  }

  /* 모바일에서 absolute 드롭다운이 화면 밖으로 나가지 않도록 */
  .cm-mobile-nav ul li ul,
  .cm-mobile-nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}