/* 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{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
@media (max-width: 1024px){
  /* 모바일/태블릿에선 고정 배치 없이 자연 흐름 */
  #mainVisual .main_view{ position:relative !important; }
}

#shSubBnr .tit {
  white-space: nowrap;      /* 줄바꿈 방지 → 한 줄로 */
  text-align: center;       /* 텍스트 가운데 정렬 */
  display: block;           /* 블록 요소 그대로 */
  width: 100%;              /* 부모 너비 기준 */
  font-size: 40px;          /* 필요시 폰트 크기 조절 */
  overflow: hidden;         /* 혹시 너무 길면 넘침 방지 */
}


/* =========================
   Vars & Base
========================= */
:root {
  --brand: #005a9a;
  --tbl-line: #e4eaf3;   /* 일반 가로선 */
  --tbl-strong: #b7c3d6; /* 상/하단 진한선 */
  --tile-h: 112px;       /* 사이드 버튼 높이 (PC 기본) */
  --side-start-gap: 50px;      /* 테이블 시작 여백 */
  --table-vs-list-gap: 50px;   /* 테이블 vs 사이드 리스트 시작선 차이 */
}

#sh_content {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* =========================
   Layout
========================= */
.sh_content .container { max-width: 1680px; }

@media (min-width: 1200px) {
  /* 첫 섹션만 가로 한 줄 + 8:2 비율 */
  .sh_content section:first-of-type .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .sh_content section:first-of-type .col-lg-9 { flex: 0 0 100%; max-width: 100%; margin-top:50px; }
}

/* =========================
   Table (full width, only horizontal lines)
========================= */
.custom-table{
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-top: 2px solid var(--tbl-strong);
  border-bottom: 2px solid var(--tbl-strong);
  border-left: none; border-right: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  font-size: 20px;
  margin-top: var(--side-start-gap) !important;
}
.custom-table thead th{
  background:#fff;
  color:#1f2d3d;
  font-weight:700;
  padding:30px 30px;
  border-bottom:2px solid var(--tbl-strong);
  border-left:none; border-right:none;
  white-space:nowrap;
}
.custom-table tbody td{
  background:#fff;
  color:#2b3748;
  padding:25px 28px;
  vertical-align:middle;
  border-bottom:1px solid var(--tbl-line);
  border-left:none; border-right:none;
}
.custom-table tbody tr:last-child td{ border-bottom:none; }
.custom-table tbody tr:hover td{ background:#f8fbff; }
.custom-table .text-center{ text-align:center; }

/* =========================
   Pagination (horizontal number buttons)
========================= */
.pagination{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  list-style:none;
  padding:0; margin:0;
}
.pagination li{ display:flex; }
.pagination li a,
.pagination li span{
  display:inline-flex;
  min-width:42px; height:42px;
  padding:0 14px;
  align-items:center; justify-content:center;
  border-radius:8px;
  font-size:14px; font-weight:600;
  text-decoration:none;
  color:var(--brand);
  background:#fff;
  border:1px solid #9bc3df;
  transition:background-color .2s,color .2s,transform .2s,box-shadow .2s;
}
.pagination li a:hover{
  background:#e3f0fb;
  color:#0a4f85;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,90,154,.18);
}
.pagination li.active a,
.pagination li.active span{
  background:var(--brand);
  color:#fff !important;
  border-color:var(--brand);
  box-shadow:0 6px 14px rgba(0,90,154,.22);
}
.pagination li:first-child a,
.pagination li:last-child a { min-width:42px; padding:0; }

/* =========================
   Sidebar category: outline capsule + 80% content
========================= */
.sidebar .widget-categories ul{ width:100%; margin:0; padding:0; }
.widget-categories li.cat-item{ margin-bottom:16px; font-size:20px; }

/* 캡슐(테두리만, 내부 비움) */
.widget-categories li.cat-item a{
  position:relative; display:flex; overflow:hidden;
  align-items:center; justify-content:center;
  min-height:var(--tile-h);
  padding:12px;
  text-decoration:none;
  background: transparent;
  color: var(--brand);
  border: 3px solid var(--brand);
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

/* 내용(텍스트/이미지) 80% 제한 */
.widget-categories li.cat-item a > *{
  max-width: 80%;
  width: 80%;
  margin: 0 auto;
}
.widget-categories .cat-name{
  display:block; text-align:center;
  font-weight:700; line-height:1.5;
  letter-spacing:.1px; color: var(--brand);
}
.widget-categories li.cat-item a img{
  display:block; width:80%; height:auto; margin:0 auto;
}
.widget-categories li.cat-item a:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* 사이드 리스트 시작 위치 = 테이블보다 50px 아래 */
.sidebar .widget-categories{ margin-top: calc(var(--side-start-gap) + var(--table-vs-list-gap)); }

/* 버튼 높이 반응형 */
@media (max-width: 1199.98px){
  :root{ --tile-h: 100px; }
}
@media (max-width: 767.98px){
  :root{ --tile-h: 90px; }
  .widget-categories li.cat-item a{ padding:10px; border-width:2px; }
  .widget-categories li.cat-item a > *{ width:86%; max-width:86%; }
}

/* =========================
   Search form: align right of table + clean UI
========================= */
.my-search{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: calc(var(--side-start-gap) - 10px) 0 8px;
}
.my-search .ss{
  display: flex;
  align-items: center;
  gap: 10px;
}
.my-search select,
.my-search .ser{
  height: 44px;
  font-size: 14px;
}
.my-search select{
  padding: 0 38px 0 14px;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  background: #fff;
  color: #2b3748;
  line-height: 44px;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23005a9a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.my-search select:focus{
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,90,154,.12);
}
.my-search .ser{
  display: flex; align-items: center;
  border: 1px solid #d0d7e2;
  border-radius: 10px; overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.my-search .ser:focus-within{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,90,154,.12);
}
.my-search .ser input{
  flex: 1 1 auto; height: 100%;
  border: none; background: transparent;
  padding: 0 12px; font-size: 14px;
  color: #2b3748; outline: none;
}
.my-search .ser input::placeholder{ color: #98a2b3; }
.my-search .ser button{
  height: 100%; border: none;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 0 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,.25);
  transition: filter .2s ease, transform .02s ease;
}
.my-search .ser button:hover{ filter: brightness(.93); }
.my-search .ser button:active{ transform: translateY(1px); }
@media (max-width: 1199.98px){
  .my-search{ margin-top: 36px; }
}
@media (max-width: 767.98px){
  .my-search{ margin-top: 20px; }
  .my-search .ss{
    flex-wrap: wrap; gap: 8px; justify-content: flex-end; width: 100%;
  }
  .my-search select{ width: 42%; min-width: 150px; }
  .my-search .ser{ width: 100%; }
}

/* =========================
   Brand buttons
========================= */
.btn-detail,
a.btn-detail{
  display:inline-block;
  padding:6px 14px;
  background-color:var(--brand);
  color:#fff !important;
  font-size:13px; font-weight:600;
  border-radius:6px;
  text-decoration:none !important;
  border:1px solid var(--brand);
  transition:background-color .2s, transform .2s;
}
.btn-detail:hover,
a.btn-detail:hover{
  filter:brightness(.92);
  transform:translateY(-2px);
}

/* =========================
   Bottom overlay (Full-bleed, darker bg, no scroll)
========================= */
/* =========================
   Bottom overlay (풀블리드, 더 진한 배경, 푸터 겹침/가로스크롤 방지)
========================= */
/* === Process Overlay: Full-bleed, grid, theme-consistent === */
.process-overlay{
  position: relative !important;   /* absolute 강제 해제 + 의도한 기준 상자 */
  isolation: isolate;     /* ✅ 추가: 이 요소 안에서만 쌓이게 고립 */
  z-index: 0;             /* ✅ 추가: 새 스택 컨텍스트 생성 */
  top:auto !important; right:auto !important; bottom:auto !important; left:auto !important;
  width:100% !important;
  background: transparent !important;  /* 인라인 배경 무력화 */
  overflow: visible !important;        /* 배경 잘림 방지 */
}

/* 배경은 ::before로 풀블리드 처리 (브랜드톤 약간 진하게) */
.process-overlay::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width:100vw;             /* 뷰포트 가로 전체 */
  height:100%;             /* 섹션 높이만큼 */
  background: rgba(0, 90, 154, 0.30); /* #005a9a 계열 */
  z-index:-1;              /* 내용 뒤에만 깔리도록 */
}

html, body { overflow-x: clip; }  /* 또는 overflow-x:hidden */

/* 안쪽 여백 */
.process-overlay .container{
  padding-top:32px;
  padding-bottom:32px;
}

/* 레이아웃: 1→2→3열 반응형 그리드 */
.process-overlay .row{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media (min-width:768px){
  .process-overlay .row{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:992px){
  .process-overlay .row{ grid-template-columns:repeat(3,1fr); }
  /* 데스크톱에서만 중앙 카드 양옆 구분선 */
  .process-overlay .row > *:nth-child(2){
    border-left:2px solid rgba(255,255,255,0.2);
    border-right:2px solid rgba(255,255,255,0.2);
  }
}

/* 카드/텍스트/아이콘 톤 통일 */
.process-overlay .card{ background:transparent; border:0; }
.process-overlay h4.h5{
  font-size:20px; line-height:1.4; margin-bottom:8px; color:#fff;
}
.process-overlay p.mb-0{
  font-size:16px; line-height:1.7; color:#fff;
}
.process-overlay .img-box img{ display:block; max-width:48px; height:auto; }



/* =========================
   Responsive gaps for top offsets
========================= */
@media (max-width: 1199.98px){
  :root{ --side-start-gap: 36px; --table-vs-list-gap: 50px; }
}
@media (max-width: 767.98px){
  :root{ --side-start-gap: 20px; --table-vs-list-gap: 50px; }
}

:root { --section-gap: 100px; }

/* sh_content 안에서 인접한 section들 사이에만 간격 부여 */
#sh_content > .sh_content > section + section,
#sh_content > section + section,
.sh_content > section + section {
  margin-top: var(--section-gap);
}

@media (max-width: 767.98px){
  :root { --section-gap: 32px; }
}

/* 1) 카드 안의 아이콘 영역 + 텍스트 영역을 가로 배치로 고정 */
.process-overlay .card-body{
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 12px;                /* 아이콘-텍스트 간격 */
}
.process-overlay .icon-holder{
  flex: 0 0 auto;           /* 아이콘 크기만큼만 */
  display: flex;
  align-items: center;       /* 세로 가운데 정렬 */
}
.process-overlay .flex-grow-1{
  flex: 1 1 auto;            /* 텍스트 영역은 남은 폭 사용 */
  min-width: 0;              /* 긴 텍스트 줄바꿈 허용 */
}

/* 2) 오버레이 배경을 #005a9a 계열의 진한 톤으로 */
:root { --overlay-alpha: .68; }  /* 진하기 조절: 0.55 ~ 0.80 권장 */
.process-overlay{
  isolation: isolate;        /* 배경 누수 방지(스택 고립) */
  z-index: 0;
}
.process-overlay::before{
  background: rgba(0, 90, 154, var(--overlay-alpha)) !important;
  /* 대안(더 진하게): 
  background: linear-gradient(0deg, rgba(0,90,154,.75), rgba(0,90,154,.75)) !important;
  */
}

.section-head{
  text-align: left;
  margin: 0 0 16px;
}
.section-head .eyebrow{
  display: inline-block;
  color: var(--brand);      /* #005a9a 계열 */
  font-weight: 700;
  font-size: 14pt;          /* 요청 크기 */
  line-height: 1.2;
}
.section-head .title{
  font-size: 35pt;          /* 기존 값 유지 */
  color: #000;
  margin: 6px 0 4px;
  font-weight: 800;
  line-height: 1.2;
}
.section-head .subcopy{
  color: #6b7280;           /* 회색 계열 */
  font-size: 14pt;          /* 요청 크기 */
  margin: 10;
  line-height: 1.6;
}

/* 1) 데스크톱에서도 행이 줄바꿈 되도록 (세 블록이 위→아래로 순서대로) */
@media (min-width: 1200px){
  .sh_content section:first-of-type .row{
    flex-wrap: wrap !important; /* 기존 nowrap 덮어쓰기 */
  }
  .sh_content section:first-of-type .row > .col-lg-9{
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 2) 블록들 사이 간격 100px 확보 (공지사항 → 자료실 → 자주하는질문) */
.sh_content section:first-of-type .row > .col-lg-9 + .col-lg-9{
  margin-top: 100px !important;
}

#sh_content{
  margin-bottom:150px;   /* footer 위로 150px 간격 */
}

@media (max-width: 767.98px){
  #sh_content{ margin-bottom:80px; } /* 또는 padding-bottom:80px; */
}



