/* ============================================================
 * sub-page.css — 서브페이지 레이아웃, 서브헤드, 브레드크럼
 * camel_theme_01 v1.0.0
 * ============================================================ */

/* ── 1. 서브헤드 ──────────────────────────────────────────── */

.sub-header {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--subheader-min-height);
	background-color: var(--color-primary);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.sub-header--has-bg .sub-header__overlay {
	display: block;
}

/* 배경이미지 위 오버레이 */
.sub-header__overlay {
	display: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(30, 58, 95, 0.75) 0%,
		rgba(46, 134, 171, 0.55) 100%
	);
}

.sub-header__inner {
	position: relative;
	z-index: 1;
	padding-top: var(--subheader-padding);
	padding-bottom: var(--subheader-padding);
}

.sub-header__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 900;
	color: #ffffff;
	margin-bottom: 0.5rem;
	word-break: keep-all;
}

.sub-header__desc {
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 1.5rem;
}

/* 모달 유형 서브헤드 (단일 포스트) */
.sub-header--post {
	min-height: 220px;
}

.post-meta {
	display: flex;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

/* ── 2. 브레드크럼 ────────────────────────────────────────── */

.breadcrumb {
	/* nav */
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumb__item {
	display: flex;
	align-items: center;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
}

/* 구분자 "/" */
.breadcrumb__item:not(:last-child)::after {
	content: '/';
	margin-left: 0.375rem;
	color: rgba(255, 255, 255, 0.4);
}

.breadcrumb__item a {
	color: rgba(255, 255, 255, 0.8);
	transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
	color: #ffffff;
}

.breadcrumb__item.is-current {
	color: #ffffff;
	font-weight: 600;
}

/* ── 3. 서브페이지 본문 레이아웃 ─────────────────────────── */

.sub-page-content {
	padding: var(--section-padding);
}

/* 사이드바 레이아웃 */
.sub-page-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2.5rem;
	align-items: start;
	padding: 3rem 0;
}

.sub-page-layout__main {
	min-width: 0;
}

/* ── 4. 사이드바 ──────────────────────────────────────────── */

.sidebar-widget-area {
	position: sticky;
	top: calc(var(--header-height) + 1.5rem);
}

.widget {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-accent);
	margin-bottom: 1rem;
}

/* ── 5. 페이지 네비게이션 ────────────────────────────────── */

.posts-navigation,
.post-navigation {
	padding: 2rem 0;
}

.page-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 0;
}
