/* 1) GNB를 플렉스로 깔끔 정리 (float/absolute 영향 제거) */
#shGnb {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px;             /* 로고-메뉴 간 기본 간격 */
  margin: 0 !important;
  padding: 0 !important; /* GNB 자체 패딩 제거 */
}

/* 2) 로고: 왼쪽으로 딱 붙도록 */
#shGnb .sh_logo {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
#shGnb .sh_logo img { display: block; }

/* 3) 메뉴: 가로 배치, li 간격은 gap/패딩으로만 관리 */
#shGnb .sh_nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;      /* li 간격 (더 줄이려면 4~6px) */
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#shGnb .sh_nav > li { margin: 0 !important; padding: 0 !important; }
#shGnb .sh_nav > li > a { display:block; padding:4px 8px !important; font-size:20px !important; line-height:1.2 }

/* 4) ★ 핵심: 부모 컨테이너의 왼쪽 패딩 제거 (Gnuboard/테마에서 흔한 클래스들) */
#shGnb,
#shGnb .inner,
#shGnb .wrap,
#shGnb .container,
#hd,
#hd_wr,
#gnb,
header .container {
  padding-left: 0 !important;
}

/* 5) 그래도 왼쪽에 15~30px 정도 남는다? 
      → 부모 패딩을 뚫기 위해 GNB 자체를 살짝 왼쪽으로 당김(음수 마진) */
#shGnb {
  margin-left: -15px !important;   /* 필요시 -20px, -24px 등으로 조정 */
}


#shGnb .sh_tip{
  margin-left: auto !important;   /* 핵심 */
  display: flex !important;
  gap: 10px;                       /* li 간격 */
  list-style: none;
  margin: 0;
  padding: 0;
  float: none !important;          /* 기존 float 무력화 */
  position: static !important;     /* 기존 absolute 무력화 */
}

/* li/a 기본 정리 */
#shGnb .sh_tip > li{ margin: 0; padding: 0; }
#shGnb .sh_tip > li > a{ display:block; padding:4px 8px; }

/* (옵션) 로고만 더 당기고 싶으면 아래 한 줄만 조정
#shGnb .sh_logo { margin-left: -15px !important; }
*/
.btn-custom {
  display: inline-block;
  background-color: #005a9a;   /* 기본 배경색 */
  color: #fff;                 /* 글자색 흰색 */
  padding: 10px 20px;          /* 버튼 안 여백 */
  border-radius: 6px;          /* 둥근 모서리 */
  text-decoration: none;       /* 밑줄 제거 */
  font-weight: 600;            /* 글자 굵기 */
  transition: all 0.3s ease;   /* hover 시 부드러운 전환 */
}

.btn-custom:hover {
  background-color: #0074cc;   /* hover 시 조금 더 밝은 파랑 */
  color: #fff;
}


/* 모바일 전용 */
@media (max-width: 768px){
  /* 데스크톱 로고 숨기기 */
  #shGnb .sh_logo{
    display:none !important;
  }

  /* 모바일 로고 크기 70%로 */
  #topmenuM #m_logo{
    text-align:center;              /* 가운데 정렬 */
  }
  #topmenuM #m_logo img{
    width:80% !important;           /* 70%로 축소 */
    height:auto !important;         /* 비율 유지 */
    max-width: none !important;     /* 테마의 max-width 제한 무력화 */
  }

  /* (선택) 상단 메뉴 간격 살짝 줄이기 */
  #shGnb{ gap:8px !important; }
}

/* 모바일 전용 */
@media (max-width: 1024px){
  /* GNB 전체 숨김 */
  #shGnb{
    display:none !important;
  }

  /* 모바일 헤더 보이기(혹시 테마가 데스크톱만 보이게 했다면 대비) */
  #topmenuM{
    display:block !important;
  }

  /* 모바일 로고 왼쪽 정렬 */
  #topmenuM #m_logo{
    text-align:left !important;
    padding-left:12px;      /* 필요시 여백 조정 */
  }
  #topmenuM #m_logo img{
    display:inline-block;   /* 왼쪽 정렬 유지에 도움 */
    height:auto;
  }

  .sh_lnb_bg{ display:none !important; }

}

#mainVisual { background:#000; overflow:hidden; }
#mainVisual video {
    width: 100%;
    background: transparent !important;
    opacity: 0;
    transition: opacity .8s ease;
}

#mainVisual video.loaded {
    opacity: 1;
}

@media (max-width: 1024px){
  /* 모바일/태블릿에선 고정 배치 없이 자연 흐름 */
  #mainVisual .main_view{ position:relative !important; }
}


/* 리스트 형태 정돈 + 각 li 안 텍스트 가운데 */

.section-title{
   margin-left:-70px;
  text-align:center;
  background:rgba(0,90,154,.9);     /* 005a9a 계열 */
  color:#fff;
  padding:6px 12px;
  border-radius:10px;
}

ul[data-aos="fade-up"] li a{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* li 중앙 오버레이 텍스트(배지) */
.center-flag{
   
  position:absolute;
  inset:0;                          /* 상하좌우 꽉 채우고 */
  display:flex;
  align-items:center;               /* 수직 가운데 */
  justify-content:center;           /* 수평 가운데 */
  pointer-events:none;              /* 배지 위에서도 링크 클릭 가능 */
}
.center-flag span{
  background:rgba(0,90,154,.9);     /* 005a9a 계열 */
  color:#fff;
  padding:6px 12px;
  border-radius:10px;
  font-size:25px;
  white-space:nowrap;
}

/* atc01 전용: 모바일에서 오버레이(center-flag) 숨기기 + 타이틀 가운데 정렬 */
@media (max-width: 768px){
  #atc01 .center-flag{
    display:none !important;
  }
  #atc01 .section-title{
    /* 기존 margin-left 등 초기화 */
    margin: 8px auto 0 !important;  /* 가운데 배치 */
    text-align: center !important;
    display: block;                  /* 블록으로 두고 */
    width: fit-content;              /* 내용 너비만큼만 */
  }

	  /* 데스크톱/공통에서 혹시 남아있는 왼쪽 밀림 제거 */
	#atc01 .section-title{
	  margin-left: 0 !important;
	}

	
	#atc01 ul[data-aos="fade-up"] li a{
	  /* 이미 쓰고 계신 가운데 정렬 보강 */
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  justify-content: center;
	  text-align:center;
	  
	}
}

/* center-flag 배지 배경을 연회색으로 */
#atc01 .center-flag span{
  
  background: rgba(243, 244, 246, 0.45);
  color: #111;               /* 가독성 좋은 진한 글자색 */
 
}


body.fullmenu-open { overflow: hidden; }                           /* 패널 열릴 때 바디 스크롤 잠금 */
#fullmenu-panel .fullmenu-head { color: var(--accent-color); }     /* 칼럼 헤드 색상 강조 */


/* === Full-down panel base === */
#fullmenu-panel{
  position: fixed;
  top: var(--header-h, 72px);
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #eef2f7;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: transform .18s ease, opacity .18s ease, visibility .18s;
  z-index: 1000;
}
#fullmenu-panel.show{
  transform: translateY(0);
  opacity: 1; visibility: visible;
}

/* 내부 폭/여백 */
#fullmenu-panel .fullmenu-inner{
  max-width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 20px 28px 28px;
}

/* 그리드 */
#fullmenu-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
}
#fullmenu-grid .fullmenu-col h6{
  margin: 0 0 8px 0;
  font-size: 20px; font-weight: 800; letter-spacing: .2px;
}
#fullmenu-grid .fullmenu-head{
  color: #005a9a; text-decoration: none;
}
#fullmenu-grid ul{ margin: 0; padding: 0; list-style: none; }
#fullmenu-grid li a{
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2a3950; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
#fullmenu-grid li a:hover{
  background: #f6f9fc; color: #005a9a; padding-left: 14px;
}

/* 배경(기존 .sh_lnb_bg 재사용 또는 #fullmenu-backdrop) */
#fullmenu-backdrop,
.sh_lnb_bg.fullmenu-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(3, 18, 33, .35);
  opacity: 0; visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 999;
}
#fullmenu-backdrop.show,
.sh_lnb_bg.fullmenu-backdrop.show{
  opacity: 1; visibility: visible;
}

/* 스크롤 잠금 */
body.fullmenu-open{ overflow: hidden; }

/* 반응형: 태블릿 이하에선 패널 숨김(모바일 전용 메뉴 사용) */
@media (max-width: 1024px){
  #fullmenu-panel{ display: none !important; }
}


@media (min-width: 1025px){
  /* 풀다운 사용 시, 기존 2차 드롭다운은 숨김 */
  #shGnb .sh_nav > li > ul.sh_lnb_s{ display: none !important; }
}


/* 풀다운 패널 텍스트 가로 가운데 정렬 */
#fullmenu-grid .fullmenu-col { text-align: center; }

#fullmenu-grid .fullmenu-col h6{
  display: flex;
  justify-content: center;   /* 헤드 링크도 가운데 */
  margin: 0 0 10px 0;
}

#fullmenu-grid .fullmenu-head{
  display: inline-block;     /* 가운데 정렬 유지 */
}

/* 서브 링크들(2차 메뉴) */
#fullmenu-grid ul{ margin:0; padding:0; list-style:none; }
#fullmenu-grid li a{
  display: block;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #2a3950;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;       /* 줄바꿈 원하면 이 줄 삭제 */
}

/* hover 효과: 좌우 이동 없이 색상/살짝 부각만 */
#fullmenu-grid li a:hover{
  background: #f6f9fc;
  color: #005a9a;
  transform: translateY(-1px);
}


/* === 레거시 호버 드롭다운 완전 비활성화 === */
.use-fulldown #shGnb .sh_nav > li { position: static !important; }

/* 2차메뉴 통째로 숨김 + 클릭/호버 불가(스크립트 inline 스타일도 무력화) */
.use-fulldown #shGnb .sh_nav > li > ul.sh_lnb_s{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important; top: auto !important;
}

/* :hover 규칙이 있어도 강제로 숨김 유지 */
.use-fulldown #shGnb .sh_nav > li:hover > ul.sh_lnb_s{
  display: none !important;
}

/* 테마가 쓰던 배경 레이어는 기본 비표시(풀다운 백드롭으로 재활용 시에는 show로 제어) */
.use-fulldown #sh_hd_wrapper .sh_lnb_bg:not(.fullmenu-backdrop){
  display: none !important;
}



/* (선택) 패널 열고 닫을 때 Y이동 제거해 겹침 최소화 */
#fullmenu-panel { transform: none; }
#fullmenu-panel.show { transform: none; }


/* 풀다운 패널 제목(기관소개 등) */
#fullmenu-grid .fullmenu-head{
  font-size: 20px !important;
  font-weight: 800;           /* 필요 없으면 지워도 됨 */
  line-height: 1.3;
}

/* 풀다운 패널 하위 항목(기술교육원소개 등) */
#fullmenu-grid li a{
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.45;
}


/* 인라인 font-size를 덮어쓰는 반응형(인라인보다 강하게) */
.sec_page h2{
  /* 모바일~데스크톱까지 유동 폰트 */
  font-size: clamp(26px, 3.5vw + 8px, 64px) !important;
  line-height: 1.2;
}

.sec_page .count dt{
  font-size: clamp(13px, 1.2vw + 8px, 18px) !important;
  line-height: 1.35;
}

.sec_page .count .num{
  font-size: clamp(32px, 6vw + 6px, 64px) !important;
  line-height: 1.1;
}

/* (선택) 초대형 화면에서 50pt(≈66.7px) 근사치 유지하고 싶으면 */
@media (min-width: 1600px){
  .sec_page h2,
  .sec_page .count .num{ font-size: 66px !important; }
  .sec_page .count dt{ font-size: 20px !important; }
}


/* 노트북(레티나 15" = CSS 1440px) 이하에서 로고만 축소 */
@media (max-width: 1440px){
  #shGnb .sh_logo img{
    height: 25px !important;   /* 필요시 36~42px 사이로 조정 */
    width: auto !important;    /* 비율 유지 */
  }
}



