/* 뉴스 리스트 페이지 스타일 */

/* 컬러 변수 정의 */
:root {
	--primary-color: rgb(71, 85, 105);
	--primary-light: rgba(71, 85, 105, 0.1);
	--secondary-color: rgb(100, 116, 139);
	--accent-blue: rgb(148, 163, 184);
	--text-primary: rgb(30, 41, 59);
	--text-secondary: rgb(100, 116, 139);
	--border-light: rgb(226, 232, 240);
	--background-subtle: rgb(248, 250, 252);
}

/* 최적화된 콘텐츠 렌더링 */
.optimized-content {
    width: 100%;
}

.optimized-content .content-html {
    line-height: 1.56;
    word-break: break-word;
    font-size: 16px;
    letter-spacing: -0.3px;
    word-wrap: break-word;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html h1,
.optimized-content .content-html h2,
.optimized-content .content-html h3,
.optimized-content .content-html h4,
.optimized-content .content-html h5,
.optimized-content .content-html h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    line-height: inherit;
}

.optimized-content .content-html h1 {
    font-size: 1.5em;
}

.optimized-content .content-html h2 {
    font-size: 1.3em;
}

.optimized-content .content-html h3 {
    font-size: 1.1em;
}

.optimized-content .content-html h4 {
    font-size: 1.0em;
}

.optimized-content .content-html h5 {
    font-size: 0.95em;
}

.optimized-content .content-html h6 {
    font-size: 0.9em;
}

.optimized-content .content-html p {
    margin: 8px 0;
}

.optimized-content .content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.optimized-content .content-html ul,
.optimized-content .content-html ol {
    margin: 8px 0;
    padding-left: 20px;
}

.optimized-content .content-html ul {
    list-style-type: disc;
}

.optimized-content .content-html ol {
    list-style-type: decimal;
}

.optimized-content .content-html li {
    margin: 4px 0;
    list-style-position: outside;
    display: list-item;
}

.optimized-content .content-html strong {
    font-weight: 600;
}

.optimized-content .content-html em {
    font-style: italic;
}

.optimized-content .content-html u {
    text-decoration: underline;
}

.optimized-content .content-html s {
    text-decoration: line-through;
}

/* 폰트 크기 클래스들 - 에디터와 동일하게 우선순위 높임 */
.optimized-content .content-html .ql-size-10px {
    font-size: 10px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-12px {
    font-size: 12px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-14px {
    font-size: 14px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-16px {
    font-size: 16px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-18px {
    font-size: 18px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-20px {
    font-size: 20px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-24px {
    font-size: 24px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-28px {
    font-size: 28px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.optimized-content .content-html .ql-size-32px {
    font-size: 32px !important;
    font-family: 'Noto Sans KR', sans-serif;
}



/* 모든 콘텐츠에 NotoSansKR 강제 적용 */
.optimized-content .content-html * {
    font-family: 'Noto Sans KR', sans-serif;
}

/* 기본 블록 요소들이 폰트 크기와 줄간격을 상속하도록 설정 */
.optimized-content .content-html p,
.optimized-content .content-html div,
.optimized-content .content-html span,
.optimized-content .content-html li,
.optimized-content .content-html ol,
.optimized-content .content-html ul {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-wrap: inherit;
}

/* p 태그 기본 마진 제거 */
.optimized-content .content-html p {
    margin: 0;
}

/* 폰트 변경 시도 방지 */
.optimized-content .content-html [class*="ql-font-"] {
    font-family: 'Noto Sans KR', sans-serif ;
}

/* 줄 간격 클래스들 - 에디터와 동일하게 우선순위 높임 */
.optimized-content .content-html .ql-lineheight-1\.0 {
    line-height: 1.0 !important;
}

.optimized-content .content-html .ql-lineheight-1\.1 {
    line-height: 1.1 !important;
}

.optimized-content .content-html .ql-lineheight-1\.2 {
    line-height: 1.2 !important;
}

.optimized-content .content-html .ql-lineheight-1\.3 {
    line-height: 1.3 !important;
}

.optimized-content .content-html .ql-lineheight-1\.4 {
    line-height: 1.4 !important;
}

.optimized-content .content-html .ql-lineheight-1\.5 {
    line-height: 1.5 !important;
}

.optimized-content .content-html .ql-lineheight-1\.56 {
    line-height: 1.56 !important;
}

.optimized-content .content-html .ql-lineheight-1\.6 {
    line-height: 1.6 !important;
}

.optimized-content .content-html .ql-lineheight-1\.8 {
    line-height: 1.8 !important;
}

.optimized-content .content-html .ql-lineheight-2\.0 {
    line-height: 2.0 !important;
}

.optimized-content .content-html .ql-lineheight-2\.5 {
    line-height: 2.5 !important;
}



/* 상하첨자 */
.optimized-content .content-html sub {
    vertical-align: sub;
    font-size: smaller;
}

.optimized-content .content-html sup {
    vertical-align: super;
    font-size: smaller;
}

/* 텍스트 정렬 */
.optimized-content .content-html .ql-align-center {
    text-align: center;
}

.optimized-content .content-html .ql-align-right {
    text-align: right;
}

.optimized-content .content-html .ql-align-justify {
    text-align: justify;
}

/* 들여쓰기 */
.optimized-content .content-html .ql-indent-1 {
    padding-left: 3em;
}

.optimized-content .content-html .ql-indent-2 {
    padding-left: 6em;
}

.optimized-content .content-html .ql-indent-3 {
    padding-left: 9em;
}

.optimized-content .content-html .ql-indent-4 {
    padding-left: 12em;
}

.optimized-content .content-html .ql-indent-5 {
    padding-left: 15em;
}

.optimized-content .content-html .ql-indent-6 {
    padding-left: 18em;
}

.optimized-content .content-html .ql-indent-7 {
    padding-left: 21em;
}

.optimized-content .content-html .ql-indent-8 {
    padding-left: 24em;
}

/* 인용구 */
.optimized-content .content-html blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(71, 85, 105, 0.05);
    padding: 12px 16px;
    border-radius: 4px;
}

/* 코드 블록 */
.optimized-content .content-html .ql-code-block-container {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
}

.optimized-content .content-html pre {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* 인라인 코드 */
.optimized-content .content-html code {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 0.9em;
}

/* 링크 */
.optimized-content .content-html a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.optimized-content .content-html a:hover {
    color: var(--secondary-color);
}

.optimized-content .content-html a:visited {
    color: #6b46c1;
}

/* 색상 지원 (Quill 기본 색상들) - 인라인 스타일로 적용되는 색상은 그대로 유지 */

.optimized-content .content-html [style*="background-color:"] {
    /* 인라인 스타일로 적용되는 배경색은 그대로 유지 */
    padding: 2px 4px;
    border-radius: 3px;
}

/* 기본 설정 */
#news-container {
	width: 100%;
	min-height: 100vh;
	background: #f8fafc;
	position: relative;
	overflow-x: hidden;
}

.nav-wrapper {
	width: 960px;
	margin: 0 auto;
	position: relative;
	z-index: 10;
}

/* 네비게이션과 컨테이너 정렬 */
.news-container {
	width: 920px;
	max-width: none;
	margin: 0 auto;
	padding: 0;
	position: relative;
}

/* 메인 컨테이너 */
.news-main {
	width: 100%;
	position: relative;
	padding-top: 20px;
}



/* 페이지 설명 영역 */
.page-description {
	margin-bottom: 32px;
	padding: 0;
	position: relative;
	border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.page-description p {
	font-size: 1rem;
	color: #39291c;
	margin: 0;
	line-height: 1.6;
	font-weight: 400;
	padding: 8px 0 12px 0;
	position: relative;
	letter-spacing: -0.01em;
}

.page-description::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 32px;
	height: 2px;
	background: linear-gradient(90deg, var(--primary-color), rgba(71, 85, 105, 0.4));
	border-radius: 1px;
}



/* 뉴스 리스트 */
.news-list {
	padding-bottom: 80px;
}

.news-grid {
	display: grid;
	gap: 40px;
	max-width: 800px;
	margin: 0 auto;
}

/* 뉴스 카드 */
.news-card {
	background: #ffffff;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	cursor: default;
	animation: slideUp 0.6s ease-out forwards;
	animation-delay: calc(var(--index, 0) * 0.1s);
	opacity: 0;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateZ(0) translateY(40px) scale(1);
	}
	to {
		opacity: 1;
		transform: translateZ(0) translateY(0) scale(1);
	}
}



.card-content {
	position: relative;
	z-index: 2;
}



/* 헤더 섹션 - 강력한 스타일 적용 */
.news-card .news-header-section {
	margin-bottom: 24px ;
	position: relative ;
	display: block ;
}

.news-card .news-title-section {
	background: #3b82f6;
	padding: 10px 20px;
	border-radius: 8px 8px 0 0;
	position: relative ;
	margin-bottom: 0 ;
	order: 1 ;
	width: 100% ;
	box-sizing: border-box ;
}

/* 날짜 태그 스타일 - 사용자 요청 스타일 적용 */
.news-date-tag {
	display: flex ;
	align-items: center ;
	justify-content: flex-start ;
	gap: 8px ;
	width: 100% ;
	background: #f2f1ec ;
	color: #39291c ;
	padding: 10px 15px ;
	border-radius: 0 ;
	font-size: 1rem ;
	font-weight: 500 ;
	letter-spacing: -0.01em ;
	border-left: 1px solid #d5d3cd ;
	border-right: 1px solid #d5d3cd ;
	border-bottom: 1px solid #d5d3cd ;
	margin: 0 ;
	box-sizing: border-box ;
}

.news-date-tag .date-icon {
	flex-shrink: 0 ;
	width: 16px ;
	height: 16px ;
	opacity: 0.7 ;
	color: #39291c ;
	margin-right: 2px ;
}

.news-date-tag time {
	font-size: 14px ;
	color: #39291c ;
	font-weight: 400 ;
}

/* 콘텐츠 */
.news-content {
	padding: 0;
}

/* 본문 콘텐츠 영역 - news-meta와 분리되어 하단 테두리 제거 */
.news-body-content {
	padding: 15px;
	border-left: 1px solid #d5d3cd ;
	border-right: 1px solid #d5d3cd ;
	border-bottom: none ;
	border-radius: 0 ;
	box-sizing: border-box ;
}

.news-card .news-item-title {
	font-size: 1.35rem ;
	font-weight: 600 ;
	color: #ffffff ;
	margin: 0 ;
	line-height: 1.5 ;
	text-align: left ;
	letter-spacing: -0.02em ;
	word-break: keep-all ;
	overflow-wrap: break-word ;
	transition: color 0.2s ease ;
}



.image-container {
	position: relative;
	display: inline-block;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	background: var(--background-subtle);
}



.image-container img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s ease;
}

/* 이미지 로딩 상태 */
.image-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: #f8fafc;
}

.image-container:not(.loading) .image-loading {
	display: none;
}

.image-container.error .image-loading {
	display: none;
}

.loading-spinner-small {
	width: 32px;
	height: 32px;
	border: 3px solid #e2e8f0;
	border-top: 3px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* 이미지 에러 상태 */
.error-message {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: #9ca3af;
	font-size: 0.875rem;
	width: 100%;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
}

.error-message svg {
	margin-bottom: 12px;
	opacity: 0.6;
}

.error-message p {
	margin: 0;
	font-weight: 500;
}

/* 알려지지 않은 블록 타입 */
.unknown-block {
	padding: 24px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 12px;
	margin: 16px 0;
	text-align: center;
}

.unknown-block-message {
	color: #92400e;
	font-size: 0.875rem;
	margin: 0;
	font-weight: 500;
}

/* 콘텐츠 없음 */
.no-content {
	padding: 40px 24px;
	text-align: center;
	background: #f8fafc;
	border-radius: 12px;
	margin: 16px 0;
}

.no-content-message {
	color: #64748b;
	font-size: 1rem;
	margin: 0;
	font-style: italic;
}

/* 메타 정보 - news-body-content와 분리된 독립적인 영역 */
.news-meta {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	background: #f2f1ec;
	color: #39291c;
	padding: 10px 15px;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	border-left: 1px solid #d5d3cd;
	border-right: 1px solid #d5d3cd;
	border-bottom: 1px solid #d5d3cd;
	border-top: none;
	border-radius: 0 0 4px 4px;
	margin: 0;
	box-sizing: border-box;
	min-height: auto;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

/* news-meta를 독립적으로 표시 - collapsed 상태와 관계없이 항상 표시 */
.news-meta.show {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}



/* 조회수, 좋아요 영역 - news-meta 레이아웃에 맞게 조정 */
.view-like-stats {
	display: flex;
	gap: 12px;
	align-items: center;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s ease;
	cursor: default;
	font-size: 14px;
	font-weight: 400;
	color: #39291c;
	padding: 0;
	border-radius: 0;
	opacity: 0.8;
}

.stat-item svg {
	width: 14px;
	height: 14px;
	opacity: 0.6;
}

.stat-item span {
	font-size: 14px;
	color: #39291c;
}

.like-stat {
	cursor: pointer;
}

.like-stat:hover {
	opacity: 1;
	transform: scale(1.05);
}

.like-stat:hover svg {
	opacity: 1;
	transform: scale(1.05);
}

/* Error State */
.error-state {
	text-align: center;
	padding: 80px 20px;
	max-width: 500px;
	margin: 0 auto;
	background: white;
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-icon {
	margin-bottom: 24px;
	opacity: 0.8;
}

.error-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #ef4444;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.error-description {
	font-size: 1rem;
	color: #dc2626;
	margin: 0 0 32px;
	line-height: 1.6;
}

.retry-button {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.retry-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 80px 20px;
	max-width: 500px;
	margin: 0 auto;
}

.empty-icon {
	margin-bottom: 24px;
	opacity: 0.6;
}

.empty-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 12px;
}

.empty-description {
	font-size: 1rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.6;
}

/* 로딩 상태 */
.loading-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e8f0;
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* 무한 스크롤 트리거 */
.scroll-trigger {
	height: 1px;
	margin: 40px 0;
}

/* 뉴스 목록 높이 제한 */
.news-list-container {
	position: relative;
	transition: max-height 0.4s ease-out;
}

.news-list-container.collapsed {
	max-height: 600px;
	overflow: hidden;
}

.news-list-container.collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(transparent, rgba(248, 250, 252, 0.8) 40%, rgba(248, 250, 252, 0.95) 80%, #f8fafc);
	backdrop-filter: blur(2px);
	pointer-events: none;
	z-index: 100;
	isolation: isolate;
}

.comment-count-text {
	color: var(--text-secondary);
	font-weight: 400;
}

/* 댓글 작성 폼 */
.comment-form-container {
	margin-bottom: 24px;
	padding: 20px;
	background: var(--background-subtle);
	border-radius: 12px;
}

.comment-form .form-group {
	margin-bottom: 12px;
}

.comment-form textarea {
	width: 100%;
	min-height: 80px;
	padding: 12px 16px;
	border: 2px solid var(--border-light);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	transition: border-color 0.2s ease;
}

.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.comment-form .form-actions {
	display: flex;
	justify-content: flex-end;
}

.comment-form .submit-btn {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.comment-form .submit-btn:hover {
	background: var(--secondary-color);
}

/* 댓글 목록 - 댓글 간격은 개별 comment-item margin으로 처리 */

.comment-item {
	margin-bottom: 20px;
}

.comment-main {
	background: white;
	border: 1px solid var(--border-light);
	border-radius: 12px;
	padding: 16px;
}

.comment-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 14px;
}

.comment-author {
	font-weight: 600;
	color: var(--text-primary);
}

.comment-date {
	color: var(--text-secondary);
}

.comment-updated {
	color: var(--accent-blue);
	font-size: 12px;
}

.comment-content {
	color: var(--text-primary);
	line-height: 1.6;
	margin-bottom: 12px;
}

.comment-actions {
	display: flex;
	gap: 12px;
}

.comment-actions button {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 12px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.2s ease;
}

.comment-actions button:hover {
	color: var(--primary-color);
}

/* 대댓글 */
.comment-replies {
	margin-top: 16px;
	padding-left: 20px;
	border-left: 2px solid var(--border-light);
}

.comment-reply {
	background: var(--background-subtle);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
}

.comment-reply:last-child {
	margin-bottom: 0;
}

/* 답글 폼 */
.reply-form-container {
	margin-top: 12px;
	padding: 16px;
	background: var(--background-subtle);
	border-radius: 8px;
}

.reply-form textarea {
	width: 100%;
	min-height: 60px;
	padding: 8px 12px;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	font-size: 14px;
	resize: vertical;
}

.reply-form .form-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.reply-form .submit-btn,
.reply-form .cancel-btn {
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.reply-form .submit-btn {
	background: var(--primary-color);
	color: white;
	border: none;
}

.reply-form .cancel-btn {
	background: var(--border-light);
	color: var(--text-secondary);
	border: none;
}

.reply-form .cancel-btn:hover {
	background: var(--text-secondary);
	color: white;
}

/* 빈 댓글 상태 */
.no-comments {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-secondary);
}



/* ===================== 개별 뉴스 카드 전체보기 기능 ===================== */

/* 뉴스 콘텐츠 컨테이너 */
.news-body-content {
	position: relative;
}

/* 접힌 상태의 뉴스 콘텐츠 */
.news-body-content.collapsed {
	max-height: 600px;
	overflow: hidden;
	cursor: default;
	position: relative;
}



/* 그라데이션 오버레이 - 전체보기 버튼 높이에 맞춤 */
.news-expand-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 70px;
	background: linear-gradient(
		transparent,
		rgba(255, 255, 255, 0.92) 18%,
		rgba(255, 255, 255, 1) 60%,
		#ffffff 85%,
		#ffffff 100%
	);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 12px;
	opacity: 1;
	transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: default;
}

/* 펼쳐진 상태에서는 오버레이 숨김 */
.news-body-content.expanded .news-expand-overlay {
	opacity: 0;
	pointer-events: none;
}

/* 전체보기 버튼 - 사용자 요청 스타일 적용 */
.news-expand-btn {
	border: 1px solid rgba(96, 165, 250, 0.3);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.9rem;
	display: inline-block;
	-webkit-transition: .15s ease;
	transition: .15s ease;
	color: #3b82f6;
	background: rgba(96, 165, 250, 0.08);
	line-height: 1;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	backdrop-filter: blur(12px);
	white-space: nowrap;
	box-shadow: 
		0 2px 8px rgba(96, 165, 250, 0.1),
		0 1px 3px rgba(96, 165, 250, 0.15);
	position: relative;
	overflow: hidden;
	min-height: 36px;
	z-index: 10;
}

.news-expand-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s ease;
}

.news-expand-btn:hover::before {
	left: 100%;
}

.news-expand-btn:hover {
	background: rgba(96, 165, 250, 0.15);
	border-color: #60a5fa;
	color: #2563eb;
	transform: translateY(-1px);
	box-shadow: 
		0 4px 12px rgba(96, 165, 250, 0.2),
		0 2px 6px rgba(96, 165, 250, 0.25);
}

.news-expand-btn:active {
	transform: translateY(0);
	transition: all 0.1s ease;
}

.news-expand-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 펼쳐진 상태의 버튼 */
.news-body-content.expanded .news-expand-btn {
	background: rgba(96, 165, 250, 0.12);
	border-color: #60a5fa;
}

.news-body-content.expanded .news-expand-btn svg {
	transform: rotate(180deg);
}

/* 뉴스 콘텐츠 애니메이션 */
.news-body-content {
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* 접힌 상태에서만 그라데이션이 필요한 경우 체크 */
.news-body-content:not(.collapsed) .news-expand-overlay {
	display: none;
}

/* 카드 호버 시 전체보기 버튼 강조 */
.news-card:hover .news-expand-btn {
	background: rgba(71, 85, 105, 0.1);
	border-color: rgba(71, 85, 105, 0.2);
}

/* ===================== 좋아요 & 댓글 버튼 스타일 ===================== */

/* 좋아요 버튼 */
.like-btn-card {
	background: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	color: var(--text-secondary);
	padding: 4px;
	border-radius: 6px;
}

.like-btn-card:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.like-btn-card.liked {
	color: #ef4444;
}

.like-btn-card.liked svg path {
	fill: currentColor;
}

.like-btn-card:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.comment-main,
.comment-reply {
	display: flex;
	gap: 10px;
	margin-bottom: 6px;
}

.comment-reply {
	margin-left: 32px;
	padding: 8px 12px;
	background: rgba(248, 250, 252, 0.7);
	border-radius: 8px;
	border: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
}

.comment-reply::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 12px;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-right: 8px solid rgba(248, 250, 252, 0.7);
}

.comment-reply::after {
	content: '';
	position: absolute;
	left: -9px;
	top: 12px;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-right: 8px solid rgba(226, 232, 240, 0.8);
	z-index: -1;
}

/* 댓글 아바타 */
.comment-avatar {
	flex-shrink: 0;
}

.avatar-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary-color);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
}

/* 댓글 내용 */
.comment-content-wrapper {
	flex: 1;
	min-width: 0;
}

.comment-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 13px;
}

.comment-author {
	font-weight: 600;
	color: var(--text-primary);
}

.comment-date {
	color: var(--text-secondary);
}

.comment-updated {
	color: var(--accent-blue);
}

.comment-content {
	color: var(--text-primary);
	line-height: 1.4;
	margin-bottom: 6px;
	word-wrap: break-word;
	font-size: 14px;
}

/* 댓글 액션 */
.comment-actions {
	display: flex;
	gap: 12px;
}

.comment-actions button {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 12px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.comment-actions button:hover {
	background: var(--background-subtle);
	color: var(--primary-color);
}

/* 답글 폼 */
.reply-form-container {
	margin-top: 8px;
	margin-left: 32px;
	background: white;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reply-form textarea {
	width: 100%;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	resize: vertical;
	min-height: 50px;
	outline: none;
	box-sizing: border-box;
	max-width: 100%;
}

.reply-form textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.1);
}

.reply-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.reply-form-actions button {
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.reply-form-actions .comment-submit-btn {
	background: var(--primary-color);
	color: white;
	border: none;
}

.reply-form-actions .cancel-reply-btn {
	background: var(--background-subtle);
	color: var(--text-secondary);
	border: 1px solid var(--border-light);
}

.reply-form-actions .cancel-reply-btn:hover {
	background: var(--border-light);
}

/* 댓글 더보기 */
.comments-pagination {
	text-align: center;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border-light);
}

.load-more-comments {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
	border: 1px solid rgba(71, 85, 105, 0.15);
	color: var(--text-secondary);
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 4px rgba(71, 85, 105, 0.08);
	position: relative;
	overflow: hidden;
}

.load-more-comments::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: left 0.5s ease;
}

.load-more-comments:hover::before {
	left: 100%;
}

.load-more-comments:hover {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 1));
	border-color: var(--primary-color);
	color: var(--primary-color);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(71, 85, 105, 0.12);
}

.load-more-comments:active {
	transform: translateY(0);
	transition: all 0.1s ease;
}

.load-more-comments:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.load-more-comments:disabled:hover {
	transform: none;
	box-shadow: 0 2px 4px rgba(71, 85, 105, 0.08);
}

/* AuthToast 스타일 */
.auth-toast {
	box-sizing: border-box;
	display: flex;
	position: fixed;
	right: 60px;
	bottom: 40px;
	width: 390px;
	height: 78px;
	align-items: center;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.16);
	z-index: 9000;
	padding-left: 25px;
	padding-right: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.auth-toast.modal-exist {
	top: auto;
	right: 60px;
	bottom: 700px;
}

.auth-toast.show {
	opacity: 1;
	visibility: visible;
}

.auth-toast .toast-completed-image {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.auth-toast span {
	margin-left: 20px;
	flex-grow: 1;
	color: #202020;
	font-family: 'Noto Sans KR';
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	letter-spacing: -0.8px;
}

.auth-toast .toast-close-btn {
	width: 16px;
	height: 16px;
	align-self: center;
	vertical-align: middle;
	background: none;
	border: none;
	cursor: pointer;
}

.auth-toast .toast-close-btn img {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	flex-shrink: 0;
}

/* QR 로그인 모달 애니메이션 오버라이드 - 바로 중앙에 표시 */
.QRLogin__Popup .Login__Popup__Content {
	animation: none ;
	transform: translate(-50%, -50%) ;
}

.QRLogin__Popup .Login__Popup__Content.slide-up {
	animation: none ;
	transform: translate(-50%, -50%) ;
}

.QRLogin__Popup .Login__Popup__Overlay {
	animation: fadeInDirect 0.3s ease-in-out ;
	opacity: 1;
}

@keyframes fadeInDirect {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* 관리자 편집 버튼 스타일 */
.admin-edit-button-container {
	text-align: right;
	margin-bottom: 20px ;
}

.admin-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(59, 130, 246, 0.1);
	color: rgb(59, 130, 246);
	border: 1px solid rgba(59, 130, 246, 0.2);
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.admin-edit-btn:hover {
	background: rgba(59, 130, 246, 0.15) ;
	border-color: rgba(59, 130, 246, 0.3) ;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.admin-edit-btn svg {
	width: 18px;
	height: 18px;
}

/* 개선된 댓글 액션 버튼 스타일 */
.comment-actions button {
	display: flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 12px;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.comment-actions button:hover {
	color: var(--primary-color);
	background: rgba(71, 85, 105, 0.05);
}

.comment-actions button svg {
	width: 16px;
	height: 16px;
}

.reply-btn {
	color: rgb(34, 197, 94) ;
}

.reply-btn:hover {
	color: rgb(22, 163, 74) ;
	background: rgba(34, 197, 94, 0.1) ;
}

.edit-comment-btn {
	color: rgb(59, 130, 246) ;
}

.edit-comment-btn:hover {
	color: rgb(37, 99, 235) ;
	background: rgba(59, 130, 246, 0.1) ;
}

.delete-comment-btn {
	color: rgb(239, 68, 68) ;
}

.delete-comment-btn:hover {
	color: rgb(220, 38, 38) ;
	background: rgba(239, 68, 68, 0.1) ;
}

/* 개선된 답글 폼 스타일 */
.reply-form-container {
	margin-top: 12px;
	padding: 12px;
	background: rgba(248, 250, 252, 0.7);
	border-radius: 8px;
	border: 1px solid var(--border-light);
}

.reply-input-wrapper {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 12px;
}

.reply-avatar .avatar-circle {
	width: 32px;
	height: 32px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.reply-input-wrapper textarea {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--border-light);
	border-radius: 6px;
	resize: vertical;
	min-height: 40px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	background: white;
	transition: border-color 0.2s ease;
}

.reply-input-wrapper textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.reply-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.reply-form-actions button {
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cancel-reply-btn {
	background: white;
	border: 1px solid var(--border-light);
	color: var(--text-secondary);
}

.cancel-reply-btn:hover {
	background: var(--background-subtle);
	border-color: var(--secondary-color);
}

.comment-submit-btn {
	background: var(--primary-color);
	border: 1px solid var(--primary-color);
	color: white;
}

.comment-submit-btn:hover {
	background: rgb(51, 65, 85);
	border-color: rgb(51, 65, 85);
}