@charset "utf-8";

/* ==================================================
	공지사항
================================================== */
/* 상단 검색 바 */
.board_top_bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 2.4rem;
}

.board_search_inline {
	display: flex;
	align-items: center;
	gap: 0;
	background: #F8FAFC;
	border-radius: 10rem;
	border: 0.15rem solid #E2E8F0;
	width: 34rem;
	padding: 0.6rem 0.6rem 0.6rem 2rem;
	transition: all 0.3s;
}

.board_search_inline:focus-within {
	background: var(--color-white);
	border-color: var(--brand-color-main);
	box-shadow: 0 0.8rem 2.4rem rgba(0, 120, 255, 0.12);
}

.board_search_inline .search_icon_lead {
	color: #CBD5E1;
	font-size: 1.4rem;
	margin-right: 1rem;
	flex-shrink: 0;
	transition: color 0.3s;
}

.board_search_inline:focus-within .search_icon_lead {
	color: var(--brand-color-main);
}

.board_search_inline input {
	border: none;
	background: none;
	flex-grow: 1;
	font-size: 1.4rem;
	color: #334155;
	outline: none;
	min-width: 0;
}

.board_search_inline input::placeholder {
	color: #CBD5E1;
}

.btn_inline_search {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--brand-color-main);
	color: var(--color-white);
	height: 3.6rem;
	padding: 0 1.8rem;
	border-radius: 10rem;
	border: none;
	cursor: pointer;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: all 0.25s;
	white-space: nowrap;
}

.btn_inline_search:hover {
	background: #005FCC;
	transform: scale(1.04);
}

/* 게시판 View */
.notice-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.4rem;
	margin-bottom: 6rem;
}

.pinned-card,
.pinned-card:active,
.pinned-card:visited {
	background: var(--color-white);
	border: 0.1rem solid var(--border);
	border-radius: 3.2rem;
	padding: 3.1rem 4.1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 22rem;
	box-sizing: border-box;
	cursor: pointer;
	/* reveal-up 진입 애니메이션 + hover 인터랙션 분리 */
	transition:
		opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
		visibility 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	will-change: transform;
}

.pinned-card:hover {
	border-color: var(--brand-color-main);
	transform: translateY(-1rem);
	border-radius: 3.2rem;
	box-shadow: 0 1.4rem 2.8rem rgba(16, 28, 61, 0.06);
}

.pinned-card:hover .pin-badge {
	background: var(--brand-color-main);
}

.pinned-card:hover .pin-badge img {
	filter: brightness(0) invert(1);
}

/* 상단 영역 - 좌측 본문 / 우측 고정핀 아이콘 */
.card-main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.6rem;
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

/* 고정핀 배지 (Figma 디자인 기준 56x56 / 라운드 24 / 핀 아이콘 14x23) */
.pin-badge {
	flex-shrink: 0;
	width: 5.6rem;
	height: 5.6rem;
	border-radius: 2.4rem;
	background: var(--bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease;
}

.pin-badge img {
	width: 1.4rem;
	height: 2.3rem;
	display: block;
	transition: filter 0.25s ease;
}

.tag-key,
.list-tag-key {
	display: inline-block;
	box-sizing: border-box;
	background: var(--brand-color-main);
	color: var(--color-white);
	font-family: var(--font-Paperlogy);
	font-size: 0.9rem;
	padding: 0.2rem 0.8rem;
	border-radius: 0.2rem;
	font-weight: 600;
	letter-spacing: 0.1rem;
	line-height: 1.25;
	vertical-align: middle;
	text-transform: uppercase;
}

/* column flex(.list-content) 직계 자식만 가로 stretch → 배경 풀폭 방지 */
.list-content > .list-tag-key {
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
}


.card-date {
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--text-muted);
	margin-left: 1.2rem;
}

.card-title {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--text-main);
	line-height: 3rem;
	margin: 1.6rem 0 1rem;
}

.card-desc {
	font-size: 1.4rem;
	font-weight: 500;
	color: var(--text-sub);
	line-height: 2.275rem;
	margin: 0;
}

.view-detail {
	font-family: var(--font-Paperlogy);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--brand-color-main);
	letter-spacing: 0.18rem;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 3.2rem;
	text-transform: uppercase;
}

.view-detail img {
	width: 1.2rem;
	height: 1.2rem;
	display: block;
}

/* notice-list 컨테이너 - feed_list 스타일 */
.notice-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.notice-list-item,
.notice-list-item:active,
.notice-list-item:visited {
	display: flex;
	align-items: center;
	gap: 4rem;
	background: var(--color-white);
	border: 0.1rem solid #F1F5F9;
	padding: 4rem;
	border-radius: 2.4rem;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.notice-list-item.reveal-up {
	transition:
		opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
		visibility 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.notice-list-item:hover {
	border-color: var(--brand-color-main);
	transform: translateX(1rem);
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.05);
	border-radius: 2.4rem;
}

.notice-list-item .list-arrow {
	width: 1.6rem;
	height: 1.6rem;
	display: block;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.notice-list-item:hover .list-arrow {
	transform: translateX(0.4rem);
}

.list-date {
	min-width: 12rem;
	color: var(--text-muted);
	font-size: 1.4rem;
	font-weight: 500;
}

.list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.list-title {
	font-size: 2.4rem;
	font-weight: 600;
	color: var(--text-main);
	line-height: 3rem;
	margin: 0;
}

.list-desc {
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--text-sub);
	line-height: 2.4rem;
	margin: 0;
}

/* 페이징 영역 */
.feed_pagination {
	margin-top: 8rem;
	display: flex;
	justify-content: center;
	gap: 1rem;
}

.page_node {
	width: 5rem;
	height: 5rem;
	border-radius: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.7rem;
	font-weight: 700;
	color: #475569;
	background: var(--color-white);
	border: 0.1rem solid #E2E8F0;
	text-decoration: none;
}

.page_node.active {
	background: #101C3D;
	color: var(--color-white);
	border-color: #101C3D;
	box-shadow: 0 1rem 2rem rgba(16, 28, 61, 0.2);
}

/* ==================================================
	반응형
================================================== */
@media screen and (max-width: 1024px) {
	.notice-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		margin-bottom: 5rem;
	}

	.pinned-card {
		padding: 2.8rem 3.2rem;
		min-height: auto;
	}

	.card-title {
		font-size: 2.1rem;
		line-height: 2.8rem;
	}

	.notice-list-item {
		padding: 3.2rem;
		gap: 3rem;
	}

	.list-title {
		font-size: 2rem;
		line-height: 2.8rem;
	}

	.list-desc {
		font-size: 1.5rem;
		line-height: 2.2rem;
	}
}

@media screen and (max-width: 768px) {
	.pinned-card {
		padding: 2.4rem 2.8rem;
		border-radius: 2.4rem;
	}

	.pin-badge {
		width: 4.8rem;
		height: 4.8rem;
		border-radius: 2rem;
	}

	.card-title {
		font-size: 1.9rem;
		line-height: 2.6rem;
		margin: 1.4rem 0 0.8rem;
	}

	.card-desc {
		font-size: 1.3rem;
		line-height: 2rem;
	}

	.view-detail {
		margin-top: 2.4rem;
	}

	.notice-list-item {
		padding: 2.8rem;
		gap: 2.4rem;
		border-radius: 2rem;
	}

	.list-date {
		min-width: auto;
		font-size: 1.3rem;
	}

	.list-title {
		font-size: 1.8rem;
		line-height: 2.6rem;
	}

	.list-desc {
		font-size: 1.4rem;
		line-height: 2.1rem;
	}

	.feed_pagination {
		margin-top: 6rem;
		gap: 0.6rem;
	}

	.page_node {
		width: 4.2rem;
		height: 4.2rem;
		border-radius: 1.2rem;
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 640px) {
	.board_top_bar {
		margin-top: 2rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.6rem;
		padding-bottom: 2rem;
	}

	.board_search_inline {
		width: 100%;
	}

	.notice-grid {
		gap: 1.6rem;
		margin-bottom: 4rem;
	}

	.pinned-card {
		padding: 2.2rem 2.4rem;
	}

	.card-main {
		gap: 1.2rem;
	}

	.pin-badge {
		width: 4.2rem;
		height: 4.2rem;
		border-radius: 1.6rem;
	}

	.pin-badge img {
		width: 1.2rem;
		height: 2rem;
	}

	.tag-key,
	.list-tag-key {
		font-size: 0.8rem;
		padding: 0.2rem 0.6rem;
	}

	.card-date {
		font-size: 1.1rem;
		margin-left: 0.8rem;
	}

	.card-title {
		font-size: 1.7rem;
		line-height: 2.4rem;
	}

	.view-detail {
		font-size: 1.1rem;
		margin-top: 2rem;
	}

	.notice-list {
		gap: 1.6rem;
	}

	.notice-list-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.2rem;
		padding: 2.2rem 2.4rem;
		border-radius: 1.8rem;
	}

	.notice-list-item:hover {
		transform: translateX(0.4rem);
	}

	.notice-list-item .list-arrow {
		align-self: flex-end;
	}

	.list-title {
		font-size: 1.7rem;
		line-height: 2.4rem;
	}

	.list-desc {
		font-size: 1.3rem;
	}

	.page_node {
		width: 3.8rem;
		height: 3.8rem;
		font-size: 1.4rem;
	}
}
