@charset "utf-8";

/* 위젯 + 설정버튼 래퍼 */
.notice-widget-wrap {
	position: relative;
	width: 100%;
}
.notice-widget-wrap > .nw-wset.btn-wset {
	position: absolute;
	top: 2px;
	right: 4px;
	left: auto;
	z-index: 20;
	margin: 0;
	padding: 2px 6px;
	text-align: right;
	background: rgba(255,255,255,0.92);
	border: 1px solid #e5eaf0;
	border-radius: 4px;
	line-height: 1.3;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.notice-widget-wrap > .nw-wset.btn-wset a {
	display: inline-block;
	white-space: nowrap;
	text-decoration: none;
}
.notice-widget-wrap > .nw-wset.btn-wset .text-muted {
	font-size: 11px;
	color: #888 !important;
}
.notice-widget-wrap > .nw-wset.btn-wset:hover {
	background: #fff;
	border-color: #c5d0da;
}

/* 헤더 영역: 설정 버튼을 헤더 오른쪽 상단에 */
.ib-hd-container {
	position: relative;
}
.ib-hd-verse .notice-widget-wrap,
.ib-hd-zone .notice-widget-wrap {
	position: static;
}
.ib-hd-row .notice-widget-wrap > .nw-wset.btn-wset,
.ib-hd-verse .notice-widget-wrap > .nw-wset.btn-wset,
.ib-hd-zone .notice-widget-wrap > .nw-wset.btn-wset {
	position: absolute;
	top: 8px;
	right: 12px;
	left: auto;
	z-index: 30;
}

/* Notice Widget — 동천교회 스타일 게시판 리스트 */
.notice-widget {
	font-family: var(--nw-font, 'Malgun Gothic','맑은 고딕',Dotum,sans-serif);
	font-size: var(--nw-fsize, 13px);
	color: var(--nw-text, #333);
	background: var(--nw-bg, #fff);
	border: 1px solid var(--nw-border, #d5dde5);
	border-radius: var(--nw-radius, 2px);
	overflow: hidden;
	box-sizing: border-box;
	line-height: 1.45;
}

/* 보디 박스(테두리·배경) 숨김 — 헤더 말씀 영역용 */
.notice-widget.is-no-box {
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: visible;
}
.notice-widget.is-no-box .nw-head {
	background: transparent;
	border-bottom: none;
	padding-left: 0;
	padding-right: 0;
}
.notice-widget.is-no-box .nw-body {
	background: transparent;
}
.notice-widget.is-no-box .nw-list > li {
	border-bottom: none;
}
.notice-widget.is-no-box .nw-list > li > a {
	padding-left: 0;
	padding-right: 0;
}
.notice-widget.is-no-box .nw-list > li > a:hover {
	background: transparent;
}

/* 보디 영역 숨김 */
.notice-widget.is-hide-body .nw-body {
	display: none;
}

/* 정렬 */
.notice-widget.is-align-left .nw-list > li > a {
	justify-content: flex-start;
	text-align: left;
}
.notice-widget.is-align-center {
	text-align: center;
}
.notice-widget.is-align-center .nw-list > li > a {
	justify-content: center;
	text-align: center;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.notice-widget.is-align-center .nw-date {
	width: auto;
}
.notice-widget.is-align-center .nw-subject {
	flex: 0 1 auto;
	width: 100%;
	text-align: center;
}
.notice-widget.is-align-right {
	text-align: right;
}
.notice-widget.is-align-right .nw-list > li > a {
	justify-content: flex-end;
	text-align: right;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}
.notice-widget.is-align-right .nw-date {
	width: auto;
}
.notice-widget.is-align-right .nw-subject {
	flex: 0 1 auto;
	width: 100%;
	text-align: right;
}
.notice-widget.is-align-center .nw-none { text-align: center; }
.notice-widget.is-align-right .nw-none { text-align: right; }

/* 헤더 전체(로고~로그인 포함) 기준 절대 가운데 */
.ib-hd-row {
	position: relative;
}
.ib-hd-verse:has(.notice-widget.is-header-center),
.ib-hd-zone:has(.notice-widget.is-header-center) {
	/* 절대배치 위젯이 레이아웃 공간을 비우지 않도록 최소 높이 유지 */
	min-height: 1px;
}
.notice-widget.is-header-center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 6;
	box-sizing: border-box;
	max-width: min(70%, 720px);
}
.notice-widget.is-header-center.is-align-center .nw-list > li > a {
	align-items: center;
}

.notice-widget .nw-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	background: linear-gradient(180deg, var(--nw-hbg1, #e8f0f7) 0%, var(--nw-hbg2, #f8fbfd) 100%);
	border-bottom: 1px solid var(--nw-border, #d5dde5);
	min-height: 36px;
	box-sizing: border-box;
}

.notice-widget .nw-title {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	color: var(--nw-hcolor, #222);
	font-size: var(--nw-tsize, 14px);
}

.notice-widget .nw-title strong {
	font-weight: 700;
	letter-spacing: -0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.notice-widget .nw-arrow {
	flex-shrink: 0;
	color: var(--nw-arrow, #3a7ab5);
	font-size: 10px;
	line-height: 1;
	transform: scale(0.85);
}

.notice-widget .nw-more {
	flex-shrink: 0;
	color: var(--nw-more, #888);
	font-size: 12px;
	text-decoration: none;
	letter-spacing: -0.4px;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.notice-widget .nw-more:hover {
	color: var(--nw-arrow, #3a7ab5);
	text-decoration: none;
}

.notice-widget .nw-body {
	background: var(--nw-bg, #fff);
	padding: 2px 0;
}

.notice-widget .nw-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.notice-widget .nw-list > li {
	border-bottom: 1px solid var(--nw-line, #eceff3);
	margin: 0;
	padding: 0;
}

.notice-widget .nw-list > li:last-child {
	border-bottom: none;
}

.notice-widget .nw-list > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	color: var(--nw-text, #333);
	text-decoration: none;
	transition: background 0.12s ease;
}

.notice-widget .nw-list > li > a:hover {
	background: rgba(58, 122, 181, 0.05);
	text-decoration: none;
}

.notice-widget .nw-list > li > a:hover .nw-subject {
	color: var(--nw-arrow, #3a7ab5);
}

.notice-widget .nw-date {
	flex-shrink: 0;
	width: 42px;
	color: var(--nw-date, #3a7ab5);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: -0.2px;
	font-variant-numeric: tabular-nums;
}

.notice-widget .nw-subject {
	flex: 1;
	min-width: 0;
	letter-spacing: -0.3px;
}

/* 기본: 줄바꿈으로 전체 내용 표시 (생략 안 함) */
.notice-widget.is-wrap .nw-subject,
.notice-widget.is-content-view .nw-subject {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	word-break: keep-all;
	overflow-wrap: break-word;
	line-height: 1.55;
}

/* 한줄생략 옵션 */
.notice-widget:not(.is-wrap) .nw-subject {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 내용(본문) · 성경약자(괄호) — 별도 스타일 */
.notice-widget .nw-verse-title {
	font-family: var(--nw-sfont, var(--nw-cfont, var(--nw-font, inherit)));
	font-size: var(--nw-ssize, var(--nw-csize, 13px));
	font-weight: var(--nw-sweight, 700);
	font-style: var(--nw-sstyle, normal);
	color: var(--nw-scolor, #c62828);
	letter-spacing: -0.3px;
}
.notice-widget .nw-verse-sep {
	font-family: var(--nw-cfont, var(--nw-font, inherit));
	font-size: var(--nw-csize, var(--nw-fsize, 13px));
	font-weight: var(--nw-cweight, 400);
	color: var(--nw-ccolor, var(--nw-text, #333));
	margin: 0 1px;
}
.notice-widget .nw-verse-text {
	font-family: var(--nw-cfont, var(--nw-font, inherit));
	font-size: var(--nw-csize, var(--nw-fsize, 13px));
	font-weight: var(--nw-cweight, 400);
	font-style: var(--nw-cstyle, normal);
	color: var(--nw-ccolor, var(--nw-text, #333));
	letter-spacing: -0.3px;
}
.notice-widget .nw-verse-ref {
	font-family: var(--nw-rfont, var(--nw-font, inherit));
	font-size: var(--nw-rsize, 11px);
	font-weight: var(--nw-rweight, 400);
	font-style: var(--nw-rstyle, normal);
	color: var(--nw-rcolor, #8a9bab);
	margin-left: 3px;
	letter-spacing: -0.4px;
	white-space: nowrap;
}

.notice-widget .nw-name {
	color: var(--nw-name, #6b7a9a);
	font-size: 0.92em;
	margin-left: 4px;
	letter-spacing: -0.5px;
}

.notice-widget .nw-cmt {
	color: var(--nw-cmt, #e53935);
	font-size: 0.92em;
	font-weight: 600;
	margin-left: 3px;
	letter-spacing: -0.5px;
}

.notice-widget .nw-fa {
	color: #aaa;
	margin-right: 3px;
	font-size: 0.9em;
}

.notice-widget .nw-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 4px;
	line-height: 1;
}

.notice-widget .nw-badge.nw-new {
	background: #e53935;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	font-family: Arial, sans-serif;
	padding: 1px 3px;
	border-radius: 2px;
	letter-spacing: 0;
}

.notice-widget .nw-badge.nw-type {
	color: #3a7ab5;
	font-size: 10px;
}

.notice-widget .nw-badge.nw-secret {
	font-size: 10px;
	opacity: 0.7;
}

.notice-widget .nw-none {
	padding: 28px 12px;
	text-align: center;
	color: #999;
	font-size: 13px;
}

/* 내용 표시 모드 */
.notice-widget.is-content-view .nw-list > li > a {
	align-items: flex-start;
}
.notice-widget.is-content-view.is-align-center .nw-list > li > a {
	align-items: center;
}
.notice-widget.is-content-view.is-align-right .nw-list > li > a {
	align-items: flex-end;
}

.notice-widget.is-content-view .nw-verse-text {
	display: inline;
}

.notice-widget.is-no-box.is-content-view .nw-list > li > a {
	padding-top: 4px;
	padding-bottom: 4px;
}

/* 헤더 말씀 영역에서 줄바꿈 보장 */
.ib-hd-verse .notice-widget.is-wrap .nw-subject,
.ib-hd-verse .notice-widget.is-content-view .nw-subject {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: unset !important;
	display: block;
	word-break: keep-all;
	overflow-wrap: break-word;
}
.ib-hd-verse .notice-widget {
	overflow: visible;
}

/* 좁은 영역(헤더 배치) 대응 */
@media (max-width: 767px) {
	.notice-widget .nw-head {
		padding: 7px 10px;
		min-height: 32px;
	}
	.notice-widget .nw-list > li > a {
		padding: 7px 10px;
		gap: 8px;
	}
	.notice-widget .nw-date {
		width: 38px;
		font-size: 11px;
	}
}
