@charset "utf-8";
/* =============================================================================
   울산광역시 남구 · 남구청장실 — 서브페이지 레이아웃 (Sub Layout)
   sub.css — 서브페이지 공통 영역 스타일
   · 비주얼 배너 / 탭+브레드크럼 바 / 페이지 헤더 / 공통 검색바 / 본문 컨테이너
   · 게시판 목록 전용 스타일은 board.css 참조
   · 로드 순서: common.css → base.css → layout.css → sub.css → board.css
   · 반응형 기준점: PC(≥1080) / Tablet(768~1079) / Mobile(≤767)
   ============================================================================= */

.ngm-sub { width: 100%; }


/* 비주얼 배너 - 시작 */
.ngm-sub__visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #123a82;
  background-image: linear-gradient(118deg, #760f0f 0%, #302a93 55%, #2a74e0 100%);
}
.ngm-sub__visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/layout/sub_top_bg.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: hard-light;
}
.ngm-sub__visual::before {
    content: "";
    position: absolute;
    inset: 0;
background-image: radial-gradient(120% 90% at 78% 8%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 55%), 
    linear-gradient(0deg, rgba(8, 24, 58, .45), rgba(8, 24, 58, 0) 60%), 
    
    /* 1. 새로 추가한 가로줄 (0deg) */
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, rgba(255, 255, 255, 0) 1px 64px),
    
    /* 2. 기존 세로줄 (90deg) */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, rgba(255, 255, 255, 0) 1px 64px);
    
    pointer-events: none;
}
.ngm-sub__visual-inner {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
}
.ngm-sub__title {
  margin: 0;
  font-size: 4.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  font-family: 'esamanru';
  padding-top:10px;
}
.ngm-sub__desc {
  margin: 14px 0 0;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.82);
}
/* 비주얼 배너 - 끝 */


/* 탭 + 브레드크럼 바 - 시작 */
/* 탭이 넘칠 경우 JS(.ngm-sub__tab-select-wrap)가 자동 전환 */
.ngm-sub__bar {
  background: #1a1b2b;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ngm-sub__bar-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  max-width: var(--ngm-maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* 탭 목록 — flex:1로 남은 공간 차지, overflow:hidden으로 JS 감지 */
.ngm-sub__tabs {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.ngm-sub__tab {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 30px;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(255,255,255,.7);
  transition: background .15s ease, color .15s ease;
}
.ngm-sub__tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.ngm-sub__tab.is-active {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 -3px 0 0 var(--ngm-orange);
}

/* 탭 오버플로 시 자동 표시되는 셀렉트 래퍼 */
.ngm-sub__tab-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  min-width: 160px;
  max-width: 320px;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 -3px 0 0 var(--ngm-orange);
  cursor: pointer;
}
.ngm-sub__tab-select-label {
  display: block;
  padding: 0 44px 0 26px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ngm-sub__tab-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.8);
  pointer-events: none;
}

/* 투명 <select>: 네이티브 드롭다운 기능 제공, 비주얼은 래퍼가 담당 */
.ngm-sub__tab-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1.6rem;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* 브레드크럼 — 항상 우측 고정 */
.ngm-sub__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  flex: none;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.13);
}
.ngm-sub__crumb a { color: rgba(255,255,255,.72); transition: color .15s ease; }
.ngm-sub__crumb a:hover { color: #fff; }
.ngm-sub__crumb .ngm-sub__crumb-sep {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255,255,255,.45);
  border-top:   1.5px solid rgba(255,255,255,.45);
  transform: rotate(45deg);
}
.ngm-sub__crumb-home svg { width: 16px; height: 16px; display: block; }
.ngm-sub__crumb-current { color: #fff; font-weight: 600; }
/* 탭 + 브레드크럼 바 - 끝 */


/* 페이지 헤더 - 시작 */
/* 제목 + URL 복사 / 인쇄 버튼, 각 서브페이지 콘텐츠 최상단에 위치 */
.ngm-sub__page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 2px solid #dddddd;
}
.ngm-sub__page-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ngm-ink);
}
.ngm-sub__page-utils {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 유틸 버튼 (URL 복사, 인쇄 등) */
.ngm-page-util-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ngm-line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ngm-faint);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ngm-page-util-btn:hover {
  border-color: var(--ngm-sub);
  color: var(--ngm-ink);
  background: var(--ngm-soft);
}
.ngm-page-util-btn svg { width: 17px; height: 17px; }

/* URL 복사 완료 토스트 */
.ngm-copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(26,29,33,.88);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
  white-space: nowrap;
}
.ngm-copy-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 페이지 헤더 - 끝 */


/* 공통 검색바 - 시작 */
/* 여러 게시판에서 공용으로 사용. 래퍼 div 없이 독립 컴포넌트로 동작. */
.ngm-search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: var(--ngm-soft);
  border: 1px solid var(--ngm-line);
  border-radius: var(--ngm-r);
  margin-bottom: 40px;
}
.ngm-search-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.ngm-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ngm-blue-dark);
  color: #fff;
  flex-shrink: 0;
}
.ngm-search-icon svg { width: 20px; height: 20px; }
.ngm-search-count {
  font-weight: 500;
  color: var(--ngm-text);
  white-space: nowrap;
}
.ngm-search-count strong {
  font-weight: 700;
  color: var(--ngm-blue-dark);
}
.ngm-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ngm-search-select {
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--ngm-line-strong);
  border-radius: var(--ngm-r-sm);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E747E' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--ngm-text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ngm-search-input {
  height: 42px;
  width: 280px;
  padding: 0 16px;
  border: 1px solid var(--ngm-line-strong);
  border-radius: var(--ngm-r-sm);
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--ngm-ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ngm-search-input:focus {
  border-color: var(--ngm-blue);
  box-shadow: 0 0 0 3px rgba(30,95,204,.12);
}
.ngm-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--ngm-r-sm);
  background: var(--ngm-blue-dark);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.ngm-search-submit:hover { background: var(--ngm-blue); }
.ngm-search-submit svg { width: 18px; height: 18px; }
/* 공통 검색바 - 끝 */


/* 본문 컨테이너 - 시작 */
.ngm-sub__body { background:white; }
.ngm-sub__content {
  max-width: var(--ngm-maxw);
  margin: 0 auto;
  padding: 56px 32px 88px;
}
.ngm-sub__heading {
  margin: 0 0 28px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ngm-ink);
}
/* 본문 컨테이너 - 끝 */


/* 반응형 - 시작 */
	/* 미디어쿼리 시작 */
	@media (max-width: 1079px) {
		.ngm-sub__bar-inner { padding: 0 24px; }
		.ngm-sub__content   { padding: 44px 24px 72px; }
	}

	@media (max-width: 767px) {
		/* 비주얼 배너 */
		.ngm-sub__visual        { min-height: 180px; }
		.ngm-sub__visual-inner  { padding: 28px 18px; }
		.ngm-sub__title         { font-size: 2.8rem; }
		.ngm-sub__desc          { font-size: 1.5rem; margin-top: 10px; }

		/* 탭바: 2단 스택 — 크럼 위 / 탭 아래 */
		.ngm-sub__bar-inner {
			flex-direction: column;
			align-items: stretch;
			padding: 0;
		}
		.ngm-sub__tabs {
			overflow-x: auto;
			-ms-overflow-style: none;
			scrollbar-width: none;
			padding: 0 6px;
		}
		.ngm-sub__tabs::-webkit-scrollbar { display: none; }
		.ngm-sub__tab { height: 48px; padding: 0 18px; font-size: 1.5rem; }
		.ngm-sub__tab-select-wrap  { max-width: none; height: 48px; }
		.ngm-sub__tab-select-label { font-size: 1.5rem; }
		.ngm-sub__crumb {
			order: -1;
			margin-left: 0;
			padding: 9px 18px;
			font-size: 1.5rem;
			border-left: none;
			border-bottom: 1px solid rgba(255,255,255,.08);
			background: rgba(0,0,0,.14);
		}

		/* 페이지 헤더 */
		.ngm-sub__page-header { padding-bottom: 16px; margin-bottom: 24px; }
		.ngm-sub__page-title  { font-size: 2.2rem; }

		/* 본문 */
		.ngm-sub__content { padding: 28px 18px 56px; }
		.ngm-sub__heading { font-size: 2.6rem; margin-bottom: 18px; }

		/* 공통 검색바 */
		.ngm-search-box {
			flex-direction: column;
			align-items: stretch;
			gap: 12px;
			padding: 16px;
		}
		.ngm-search-head  { gap: 10px; }
		.ngm-search-icon  { width: 36px; height: 36px; }
		.ngm-search-icon svg { width: 16px; height: 16px; }
		/* 검색 폼: 한 줄 유지 (select + input + button) */
		.ngm-search-form   { flex-wrap: nowrap; gap: 6px; }
		.ngm-search-select { flex: 0 0 80px; padding-right: 22px; font-size: 1.4rem; height: 40px; }
		.ngm-search-input  { width: auto; flex: 1 1 auto; min-width: 0; font-size: 1.4rem; padding: 0 12px; height: 40px; }
		.ngm-search-submit { width: 40px; height: 40px; }
	}
	/* 미디어쿼리 끝 */
/* 반응형 - 끝 */
