/* 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; }
}


/* =========================
   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 80%; max-width: 80%; margin-top:50px; }
  .sh_content section:first-of-type .col-lg-3 { flex: 0 0 20%; max-width: 20%; margin-top:180px; }
}

/* =========================
   Table (full width, only horizontal lines)
========================= */
.custom-table{
  width: 99%;
  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:56px; 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 여백/폭 최소화 */
.process-overlay .container {
  max-width: 1680px !important;   /* 필요 없으면 100%로 바꿔도 됨 */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 부트스트랩 row의 음수 마진 제거 + grid 강제 */
.process-overlay .row {
  margin-left: 0 !important;
  margin-right: 0 !important;

  display: grid !important;
  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);
  }
}

/* col- 클래스들이 grid 안에서 너비를 제한하지 않도록 */
.process-overlay .row > [class^="col-"],
.process-overlay .row > [class*=" col-"] {
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
}
/* 안쪽 여백 */
.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;
}

/* ===== Search Form Card (brand light background) ===== */
:root{
  --brand-r: 0; --brand-g: 90; --brand-b: 154;
  --brand-weak: rgba(0, 90, 154, .06);    /* 아주 옅은 폼 배경 */
  --brand-weak-border: rgba(0, 90, 154, .18);
  --ink-strong: #0b2e4a;
  --ink-subtle: #5b6b79;
}

/* 폼 전체를 카드처럼 */
.my-search.center{
  justify-content: center;               /* 가운데 정렬 */
  margin-top: 24px;
}
.my-search.center .edu_date_search{
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;    /* 좌: 기간, 우: 검색 */
  gap: 16px;
  width: 98%;
  background: var(--brand-weak);         /* ✅ 005a9a 계열의 얕은색 */
  border: 1px solid var(--brand-weak-border);
  border-radius: 1px;
  padding: 50px 150px;   /* ← 이 값만 키우면 폼 안 전체 여백이 늘어남 */
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* 섹션 캡션 */
.my-search.center .name{
  margin: 0 0 8px 2px;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: .02em;
  color: color-mix(in oklab, rgb(var(--brand-r),var(--brand-g),var(--brand-b)) 72%, #fff);
}

/* ===== Date range ===== */
.my-search.center .calendar > div{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.my-search.center .calendar .di{
  position: relative;
  width: 200px;
  max-width: 100%;
}
.my-search.center .calendar .di input{
  height: 44px;
  width: 100%;
  padding: 0 12px 0 38px;               /* 아이콘 자리 */
  background: #fff;
  border: 1px solid #cfe0ea;
  border-radius: 1px;
  font-size: 14px;
  color: #2b3748;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.my-search.center .calendar .di input:focus{
  border-color: rgb(var(--brand-r),var(--brand-g),var(--brand-b));
  box-shadow: 0 0 0 3px rgba(0,90,154,.12);
}
.my-search.center .calendar .di::before{
  content:"";
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; opacity:.7;
  background-repeat:no-repeat; background-size:contain;
  /* 달력 아이콘 (SVG) */
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23005a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
}
.my-search.center .calendar .mul{
  margin: 0 6px;
  font-weight: 700;
  color: rgb(var(--brand-r),var(--brand-g),var(--brand-b));
}

/* ===== Keyword search ===== */
.my-search.center .search{ display:flex; flex-direction: column; }
.my-search.center .search .ser.full_width{
  display: flex;
  align-items: stretch;
  background:#fff;
  border: 1px solid #cfe0ea;
  border-radius: 1px;
  overflow: hidden;
  transition:border-color .2s, box-shadow .2s;
}
.my-search.center .search .ser.full_width:focus-within{
  border-color: rgb(var(--brand-r),var(--brand-g),var(--brand-b));
  box-shadow: 0 0 0 3px rgba(0,90,154,.12);
}
.my-search.center .search .ser input{
  flex: 1 1 auto;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  color: #2b3748;
  outline: none;
}
.my-search.center .search .ser input::placeholder{ color: #98a2b3; }

.my-search.center .search .ser button{
  border: none;
  padding: 0 16px;
  min-width: 104px;
  font-weight: 700;
  font-size: 14px;
  background: rgb(var(--brand-r),var(--brand-g),var(--brand-b)); /* 브랜드 버튼 */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: filter .2s, transform .02s;
  border-left: 1px solid rgba(255,255,255,.28);
}
.my-search.center .search .ser button:hover{ filter: brightness(.95); }
.my-search.center .search .ser button:active{ transform: translateY(1px); }
.my-search.center .search .ser button .img-mid{
  width: 16px; height: 16px; display: inline-block;
  filter: invert(1); /* 아이콘이 어두울 때 흰색화 */
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px){
  .my-search.center .edu_date_search{ grid-template-columns: 1fr; }
  .my-search.center .calendar > div{ gap: 8px 12px; }
  .my-search.center .calendar .di{ width: 100%; }
}

/* 입력+버튼 박스 자체를 좁게 */
.my-search.center .search .ser.full_width{
  max-width: 550px;   /* 원하는 값으로 */
}

.my-search.center .calendar .di{
  width: 150px;         /* 추천: 260~320px에서 취향대로 */
}

/* (옵션) 좌우 여백 조정해서 더 넓어 보이게 */
.my-search.center .edu_date_search{
  gap: 20px;            /* 좌우 블록 사이 간격 약간 넓힘(선택) */
}

/* ① 폼 카드 전체를 가로 가운데 정렬 */
.my-search.center { 
  justify-content: center;         /* 부모 flex에서 가운데 정렬 */
}

:root { --head-form-gap: 80px; } /* 원하는 값으로 조절 */
.section-head + form {
  margin-top: var(--head-form-gap);
}

@media (max-width: 767.98px){
  :root { --head-form-gap: 24px; } /* 모바일은 조금 줄이기 */
}

/* 반응형: 좁을 땐 세로 쌓기 */
@media (max-width: 1199.98px){
  form[name="srcFrm"] .my-search.center .edu_date_search {
    grid-template-columns: 1fr;
  }
}

/* === 검색 폼 너비를 테이블(99%)과 동일하게 === */
form[name="srcFrm"] .my-search.center{
  width: 99%;
  margin: -1 auto;              /* 가운데 배치 */
}

form[name="srcFrm"] .my-search.center .edu_date_search{
  width: 100% !important;      /* fit-content/98% 오버라이드 */
  max-width: none;
  box-sizing: border-box;       /* 패딩 포함해서 100% 유지 */
  /* padding은 현재 값 유지하거나 필요시 조정 */
  /* padding: 50px 32px; */
}

/* === 사이드바 이미지 리스트: 세로 간격만 깔끔하게 관리 === */
:root { --side-item-gap: 24px; }  /* ← 여기 숫자만 바꿔서 간격 조절 */

.sidebar .widget-categories ul{
  display: flex;
  flex-direction: column;
  gap: var(--side-item-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 기존 margin-bottom 무력화 */
.sidebar .widget-categories li.cat-item{
  margin: 0 !important;
}

/* 이미지가 꽉 차게 + 여백/틈 제거 */
.sidebar .widget-categories li.cat-item a{
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar .widget-categories li.cat-item a img{
  display: block;
  width: 100%;
  height: auto;
}

/* 반응형에서 간격 조금 줄이기(옵션) */
@media (max-width: 991.98px){
  :root { --side-item-gap: 18px; }
}
@media (max-width: 575.98px){
  :root { --side-item-gap: 14px; }
}


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


/* =========================================
   모바일 최적화 (<= 767.98px)
   - 대상: 이 페이지 첫 섹션의 검색 폼 + 테이블
   - HTML 수정 없이 적용
========================================= */
@media (max-width: 767.98px){

  .sh_content .custom-table{
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    margin-top: 16px !important;
  }

  .sh_content .custom-table thead{
    display: none !important;
  }

  .sh_content .custom-table tbody tr{
    display: block !important;
    margin: 12px 0 !important;
    border: 1px solid var(--tbl-line) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .sh_content .custom-table tbody td{
    display: grid !important;
    grid-template-columns: 42% 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--tbl-line) !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .sh_content .custom-table tbody tr td:last-child{
    border-bottom: 0 !important;
  }

  /* 현재 실제 9열 기준 라벨 */
  .sh_content .custom-table tbody td:nth-child(1)::before{ content: "분류"; }
  .sh_content .custom-table tbody td:nth-child(2)::before{ content: "실시지역"; }
  .sh_content .custom-table tbody td:nth-child(3)::before{ content: "과정명"; }
  .sh_content .custom-table tbody td:nth-child(4)::before{ content: "교육기간"; }
  .sh_content .custom-table tbody td:nth-child(5)::before{ content: "교육시간"; }
  .sh_content .custom-table tbody td:nth-child(6)::before{ content: "정원"; }
  .sh_content .custom-table tbody td:nth-child(7)::before{ content: "고용보험 정원"; }
  .sh_content .custom-table tbody td:nth-child(8)::before{ content: "대표자 정원"; }
  .sh_content .custom-table tbody td:nth-child(9)::before{ content: "상세보기"; }

  .sh_content .custom-table tbody td::before{
    display: block;
    text-align: left;
    font-weight: 700;
    color: #41536b;
  }

  .sh_content .custom-table tbody td:last-child{
    text-align: center !important;
  }

  .sh_content .custom-table tbody td:last-child .btn-detail{
    width: 100%;
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 767.98px){
  .sh_content section:first-of-type .section-head{
    margin-top: 24px !important;   /* 필요 시 16~32px로 조정 */
    padding-top: 50px;              /* margin-collapsing 방지용 소량 패딩 */
  }
}

@media (min-width: 1200px){
  .sh_content section:first-of-type .col-lg-3 .kf-info{
    margin-top: 316px !important;  /* 컬럼은 그대로 두고 내부만 추가로 내리기 */
  }
}


/* ≥1200px(PC)에서만 Information 왼쪽 여백 추가 */
@media (min-width: 1200px){
  .sh_content section:first-of-type .col-lg-3 .kf-info{
    margin-left: 32px !important;  /* 원하는 값으로 16~64px 사이 조절 */
  }
}


.btn-brand {
  background-color: #005a9a;
  border-color: #005a9a;
  color: #fff;
}
.btn-brand:hover,
.btn-brand:focus {
  background-color: #004a80;  /* hover 색 */
  border-color: #004476;
  color: #fff;
}
.btn-brand:active,
.btn-brand.active {
  background-color: #004476;
  border-color: #003b66;
  color: #fff;
}
.btn-brand:disabled,
.btn-brand.disabled {
  background-color: #005a9a;
  border-color: #005a9a;
  color: #fff;
  opacity: .65;
}
.btn-brand:focus {
  box-shadow: 0 0 0 .25rem rgba(0, 90, 154, .25); /* 포커스 링 */
}


 /* 네임스페이스 루트 & 브랜드 컬러 */
  #hrdAttendPage { --ag-brand: #005a9a; --ag-brand-rgb: 0,90,154; }

  /* Hero */
  #hrdAttendPage .ag-hero{
    background: linear-gradient(135deg, rgba(var(--ag-brand-rgb),0.95), rgba(var(--ag-brand-rgb),0.75));
    color:#fff; padding: 56px 0 44px;
    border-radius: 0;
  }
  #hrdAttendPage .ag-hero .ag-lead{ opacity:.95; }

  /* Section spacing */
  #hrdAttendPage .ag-section{ padding: 48px 0; }
  #hrdAttendPage .ag-bgWhite{ background:#fff; }

  /* Card styling */
  #hrdAttendPage .ag-stepCard{
    border:0; border-radius:1rem; box-shadow:0 10px 24px rgba(0,0,0,.06);
  }
  #hrdAttendPage .ag-stepBadge{
    width:40px; height:40px; border-radius:50%;
    background: rgba(var(--ag-brand-rgb), .12);
    color: var(--ag-brand);
    display:inline-flex; align-items:center; justify-content:center;
    font-weight:700; margin-right:.5rem;
  }

  /* Buttons */
  #hrdAttendPage .ag-btnBrand{
    background-color: var(--ag-brand); border-color: var(--ag-brand); color:#fff;
    padding:.9rem 1.25rem; font-weight:600;
  }
  #hrdAttendPage .ag-btnBrand:hover,
  #hrdAttendPage .ag-btnBrand:focus{
    background-color:#004a80; border-color:#004476; color:#fff;
    box-shadow:0 0 0 .25rem rgba(var(--ag-brand-rgb), .2);
  }
  #hrdAttendPage .ag-btnStore{
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.85rem 1.25rem; border-radius:.75rem; font-weight:600;
  }

  /* Icon list */
  #hrdAttendPage .ag-iconList{ list-style:none; padding-left:0; margin:0; }
  #hrdAttendPage .ag-iconList li{
    display:flex; gap:.5rem; align-items:flex-start; margin-bottom:.4rem;
  }
  #hrdAttendPage .ag-iconList li i{
    margin-top:.15rem; color: var(--ag-brand);
  }

  /* Ordered-list spacing */
  #hrdAttendPage .ag-ol{ padding-left:1.2rem; }
  #hrdAttendPage .ag-ol li{ margin-bottom:.5rem; }

  /* Image placeholder */
  #hrdAttendPage .ag-imgPlaceholder{
    border:2px dashed #cfd8e3; border-radius:.75rem; height:240px;
    background:#fff; color:#6b7280; display:flex; align-items:center; justify-content:center; font-weight:500;
  }

/* 공통 가독성 */
#consortium-training .rwd-table th,
#consortium-training .rwd-table td{
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ✅ 모바일(<=575.98px)에서 표 → 카드형 스택 레이아웃 */
@media (max-width: 575.98px){
  #consortium-training .rwd-table colgroup{ display:none; } /* colgroup 고정폭 무시 */
  #consortium-training .rwd-table thead{ display:none; }    /* 헤더 숨김 */

  #consortium-training .rwd-table,
  #consortium-training .rwd-table tbody,
  #consortium-training .rwd-table tr,
  #consortium-training .rwd-table td{
    display:block; width:100%;
  }

  /* 각 행을 카드처럼 */
  #consortium-training .rwd-table tbody tr{
    border:1px solid var(--bs-border-color, #dee2e6);
    border-radius:.75rem;
    margin-bottom:1rem;
    overflow:hidden;
    background:#fff;
  }

  /* 각 셀을 라인으로 */
  #consortium-training .rwd-table tbody td{
    border:0;
    border-bottom:1px solid var(--bs-border-color, #dee2e6);
    padding:.75rem .9rem;
    font-size:.95rem;
  }
  #consortium-training .rwd-table tbody td:last-child{
    border-bottom:0;
  }

  /* 헤더 라벨을 앞에 표시 */
  #consortium-training .rwd-table tbody td::before{
    content: attr(data-th);
    display:block;
    font-weight:700;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom:.25rem;
  }

  /* 2열(교육과정명)은 내용이 길어 세로 배치 여백 확장 */
  #consortium-training .rwd-table tbody td:nth-child(2){
    padding-top: .9rem;
    padding-bottom: .9rem;
    line-height: 1.6;
  }

  /* 테이블 외곽선/스트라이프 느낌은 모바일에서 과감히 제거(선택) */
  #consortium-training .rwd-table.table-striped > tbody > tr:nth-of-type(odd){ background-color:transparent; }
  #consortium-training .rwd-table.table-bordered{ border:0; }
}


