/* Modern Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
	line-height: 1.7;
	color: #2c2c2c;
	background-color: #ffffff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-weight: 400;
	word-break: keep-all;
}

main {
	flex-grow: 1;
}

a {
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
}

/* Clean Header */
header {
	background: #ffffff;
	border-bottom: 1px solid #e8e8e8;
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	position: relative; /* mega-menu 기준 */
}

.logo h1 {
	font-size: clamp(1.2rem, 1.2vw + 1rem, 1.6rem);
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: -0.3px;
}

.logo a:hover {
	opacity: 0.7;
}

/* Minimal Navigation */
:root { --mega-top: 80px; }
nav ul {
	list-style: none;
	display: flex;
	gap: 4rem;
}
nav { position: relative; }

nav ul li {
	position: relative;
	/* 메뉴 항목 전체를 호버 영역으로 만들기 */
	display: flex;
	align-items: center; /* 다시 중앙 정렬로 복원 */
	/* 헤더 정렬을 위해 로고와 중앙 정렬되도록 조정 */
	margin-top: 0.75rem;
}

nav ul li > a {
	font-weight: 500;
	font-size: clamp(0.88rem, 0.6vw + 0.6rem, 0.98rem);
	color: #4a4a4a;
	padding: 1.5rem 0.75rem 2rem 0.75rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
	position: relative;
	letter-spacing: -0.2px;
	display: block; /* 호버 영역 확장 */
	/* 상하 패딩 영역에서도 호버가 작동하도록 */
	height: 100%;
	box-sizing: border-box;
}

nav ul li > a:hover {
	color: #1a1a1a;
}

nav ul li > a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 1px;
	bottom: 0;
	left: 50%;
	background-color: #1a1a1a;
	transition: all 0.3s ease;
	transform: translateX(-50%);
	pointer-events: none; /* 가상 요소가 호버를 방해하지 않도록 */
}

nav ul li > a:hover::after {
	width: 100%;
}

/* Clean Dropdown (legacy) */
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	min-width: 200px;
	border: 1px solid #e8e8e8;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	z-index: 1001;
	list-style: none;
	padding: 0.5rem 0;
	margin-top: 0.5rem;
}

.dropdown-content li a {
	color: #4a4a4a;
	padding: 0.8rem 1.5rem;
	display: block;
	font-weight: 400;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	letter-spacing: -0.1px;
}

.dropdown-content li a:hover {
	background-color: #f8f9fa;
	color: #1a1a1a;
}

.dropdown:hover .dropdown-content {
	display: block;
	animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mega Menu */
.mega-menu {
	display: grid; /* 항상 계산 가능한 상태로 두고 시각/포인터만 토글 */
	position: fixed; /* 뷰포트 기준으로 정렬 문제 해결 */
	top: var(--mega-top);
	left: 0;
	right: 0;
	width: 100vw; /* 전체 화면 너비 */
	background: #ffffff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
	padding: 2rem clamp(16px, 4vw, 48px); /* 좌우 여백 추가 */
	z-index: 1002;
	grid-template-columns: repeat(4, minmax(200px, 1fr));
	gap: 2rem 3rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* 메가메뉴 위쪽에 보이지 않는 호버 영역 추가 (메뉴 항목과 메가메뉴 사이 갭 해결) */
.mega-menu::before {
	content: '';
	position: absolute;
	top: -20px; /* 메뉴 항목과 메가메뉴 사이 갭을 덮는 영역 */
	left: 0;
	right: 0;
	height: 20px;
	background: transparent;
	pointer-events: auto;
}

/* 개별 메뉴 항목에 호버했을 때 메가메뉴 표시 */
nav ul li.has-mega:hover .mega-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* nav 전체에 호버했을 때도 메가메뉴 표시 (기존 호환성 유지) */
nav:hover .mega-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* 메뉴 항목의 링크에 호버했을 때도 메가메뉴 표시 (nav:hover로 처리됨) */

/* 메가메뉴 영역에 마우스를 올려도 열린 상태 유지 (대각선 이동 시 닫힘 방지) */
.mega-menu:hover {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Header height approximation for mega menu top offset */
@media (max-width: 1200px) { :root { --mega-top: 85px; } }
@media (max-width: 1024px) { :root { --mega-top: 95px; } }

.mega-section h4 {
	font-size: clamp(0.95rem, 0.6vw + 0.6rem, 1.05rem);
	font-weight: 600;
	margin-bottom: 1rem;
	color: #1a1a1a;
}

.mega-section ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.mega-section ul li a {
	display: block;
	padding: 0.5rem 0;
	color: #4a4a4a;
	font-size: clamp(0.88rem, 0.5vw + 0.6rem, 0.98rem);
	white-space: nowrap;
}

.mega-section ul li a:hover {
	color: #1a1a1a;
}

/* Auth Section */
.auth {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-weight: 400;
	font-size: clamp(0.85rem, 0.4vw + 0.6rem, 0.95rem);
}

/* (요청에 따라) 슬라이딩 사이드바 관련 스타일 제거 */

.auth span {
	color: #6a6a6a;
	font-weight: 500;
}

.auth a {
	color: #4a4a4a;
	padding: 0.5rem 1.2rem;
	border: 1px solid #e0e0e0;
	transition: all 0.2s ease;
	font-weight: 500;
	letter-spacing: -0.1px;
}

.auth a:hover {
	background: #f8f9fa;
	border-color: #d0d0d0;
	color: #1a1a1a;
}

/* Spacious Main Banner */
.main-banner {
	background: #ffffff;
	padding: 8rem 0 10rem 0;
	text-align: center;
}

.banner-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 2rem;
}

.main-banner h2 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 300;
	color: #1a1a1a;
	margin-bottom: 2rem;
	letter-spacing: -1px;
	line-height: 1.35;
	white-space: nowrap;
}

.main-banner p {
	font-size: clamp(0.9rem, 1vw, 1rem);
	color: #6a6a6a;
	line-height: 1.9;
	font-weight: 400;
	letter-spacing: -0.2px;
	white-space: nowrap;
}

/* Helper for optional manual line breaks */
.br-md { display: none; }
.br-lg { display: none; }

/* Footer Styles */
footer {
	background: #2c3e50;
	color: #ecf0f1;
	padding: 2rem 0;
	margin-top: 4rem;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-info {
	margin-bottom: 1.5rem;
}

.footer-info p {
	margin: 0.5rem 0;
	font-size: 0.9rem;
	line-height: 1.6;
}

.footer-info .address {
	font-weight: 500;
}

.footer-info .contact {
	color: #bdc3c7;
}

.footer-info .business {
	color: #95a5a6;
	font-size: 0.8rem;
}

.footer-copyright {
	border-top: 1px solid #34495e;
	padding-top: 1rem;
	text-align: center;
}

.footer-copyright p {
	margin: 0;
	font-size: 0.85rem;
	color: #95a5a6;
}

/* Abstract readability enhancements */
.abstract-body {
	white-space: pre-wrap;
	line-height: 1.8;
	background: #fcfcfc;
	padding: 1rem 1.25rem;
	border-radius: 6px;
	max-height: 420px;
	overflow: auto;
	width: 100%;
	box-sizing: border-box;
}

.abstract-body::-webkit-scrollbar {
	height: 10px;
	width: 10px;
}
.abstract-body::-webkit-scrollbar-thumb {
	background: #c7d2fe;
	border-radius: 8px;
}
.abstract-body::-webkit-scrollbar-track {
	background: #eef2ff;
}

.abstract-details .detail-item .label {
	min-width: 70px;
	display: inline-block;
}

/* Registration page additions */
.program-images {
	display: grid;
	grid-template-columns: 1fr; /* 한 열로 크게 표시 */
	gap: 0.75rem;
}
.program-image-item {
	border: none; /* 테두리 제거로 콘텐츠에 몰입 */
	border-radius: 6px;
	background: transparent;
	padding: 0; /* 안쪽 여백 제거로 꽉 차게 */
}
.program-image-item img {
	display: block;
	width: 100%; /* 카드 폭에 맞춰 꽉 차게 */
	height: auto; /* 비율 유지 */
	object-fit: contain; /* 잘리지 않게 */
}
.directions-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
}
.directions-table th, .directions-table td {
	border: 1px solid #ececec;
	padding: 0.6rem 0.7rem;
	text-align: left;
}
.directions-table thead th {
	background: #f8fafc;
	font-weight: 600;
}

/* Main Image Section */
.main-image-section {
	padding: 0;
	background: #ffffff;
}

.image-placeholder {
	width: 100%;
	height: 100vh;
	background: url('/images/home/3.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed; /* Add this line for parallax effect */
	border: none;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;

}

.image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.overlay-content {
	text-align: center;
	color: #ffffff;
	max-width: 1200px;
	padding: 0 2rem;
}

.overlay-content h2 {
	font-size: clamp(1.5rem, 4vw, 3.5rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
	line-height: 1.2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	white-space: normal;
	word-wrap: break-word;
}

.overlay-content p {
	font-size: clamp(0.9rem, 2.5vw, 1.2rem);
	line-height: 1.6;
	font-weight: 400;
	letter-spacing: -0.2px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	opacity: 0.9;
	white-space: normal;
	word-wrap: break-word;
}

.placeholder-content {
	text-align: center;
	color: #546e7a;
	opacity: 0.3;
	z-index: 1;
}

.placeholder-content i {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.6;
}

.placeholder-content p {
	font-size: 1.1rem;
	font-weight: 500;
	margin: 0;
}

/* Latest Content Section */
.latest-content {
	padding: 4rem 0;
	background: #ffffff;
}

.latest-content {
	padding: 4rem 2rem;
	background: #ffffff;
}

.content-grid {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
}

.latest-notices,
.latest-photo-news {
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.latest-notices h3,
.latest-photo-news h3 {
	margin: 0 0 1.5rem 0;
	font-size: 1.3rem;
	font-weight: 600;
	color: #000000;
	border-bottom: 2px solid #000000;
	padding-bottom: 0.5rem;
	position: relative;
	padding-right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Notice List Styles */
.notice-list {
	flex: 1;
	min-width: 0;
}

.notice-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f3f4;
	min-width: 0;
}

.notice-item:last-child {
	border-bottom: none;
}

.notice-item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	color: #212529;
	transition: color 0.2s ease;
	min-width: 0;
}

.notice-item a:hover {
	color: #0d6efd;
}

.notice-title {
	font-weight: 500;
	flex: 1;
	margin-right: 1rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	max-width: 100%;
}

.notice-date {
	font-size: 0.85rem;
	color: #6c757d;
	white-space: nowrap;
}

/* Photo News Slider Styles */
.photo-slider {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Photo Gallery Styles */
.photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.photo-item {
	text-align: center;
}

.photo-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	object-fit: contain;
}

.slider-container {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	height: auto;
	min-height: 300px;
	min-width: 0;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none; /* 보이지 않을 때는 클릭 이벤트를 받지 않도록 설정 */
}

.slide.active {
	opacity: 1;
	pointer-events: auto; /* 보일 때만 다시 클릭 이벤트를 받도록 설정 */
}

.photo-placeholder {
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #f8f9fa;
	border: 1px dashed #666666;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #666666;
	margin-bottom: 1rem;
}

.photo-placeholder i {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	opacity: 0.6;
}

.photo-placeholder p {
	font-size: 0.9rem;
	margin: 0;
}

.photo-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0;
	margin-bottom: 1rem;
	display: block;
	background: #f0f0f0;
}

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

.photo-item {
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 1rem;
	background: #ffffff;
}

.slide-image-container {
	position: relative;
}

.slide-overlay-controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 0.5rem;
	pointer-events: none;
}

.overlay-prev-btn,
.overlay-next-btn {
	background: none;
	color: rgba(255, 255, 255, 0.4);
	border: none;
	width: auto;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	pointer-events: auto;
	font-size: 2rem;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	padding: 0.5rem;
}

.overlay-prev-btn:hover,
.overlay-next-btn:hover {
	color: rgba(255, 255, 255, 1);
	transform: scale(1.2);
}

.slide-indicator {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	pointer-events: none;
}

.indicator-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
	pointer-events: auto;
}

.indicator-dot.active {
	background: rgba(255, 255, 255, 1);
	transform: scale(1.2);
}

.indicator-dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.photo-info { min-width: 0; }

.photo-info h4 {
	margin: 0 0 0.25rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: #212529;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.photo-info h4 a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.photo-date {
	margin: 0;
	font-size: 0.8rem;
	color: #6c757d;
}

.slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
}

.prev-btn,
.next-btn {
	background: #ffffff;
	border: 1px solid #000000;
	border-radius: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #000000;
}

.prev-btn:hover,
.next-btn:hover {
	background: #000000;
	color: #ffffff;
	border-color: #000000;
}

.slider-dots {
	display: flex;
	gap: 0.5rem;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: #cccccc;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dot.active {
	background: #000000;
}

.view-more {
	display: inline;
}

.more-link {
	color: #000000;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: 300;
	transition: all 0.2s ease;
	line-height: 1;
}

.more-link:hover {
	color: #666666;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.content-grid {
		grid-template-columns: 1fr 350px;
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.content-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.latest-content {
		padding: 2rem 1rem;
	}
	
	.latest-notices,
	.latest-photo-news {
		padding: 1.5rem;
	}
	
	.image-placeholder {
		height: 70vh;
	}
	
	.placeholder-content i {
		font-size: 3rem;
	}
	
	.placeholder-content p {
		font-size: 1rem;
	}
}

/* Clean Container */
.container {
	max-width: 560px;
	margin: 6rem auto;
	padding: 4rem;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

/* Editor Create Page - wider container */
.container.editor-container {
	max-width: 1100px;
	margin: 4rem auto;
	padding: 2.5rem 3rem;
}

/* Notice Options Section - 완전히 새롭게 디자인 */
.notice-options {
	margin: 2rem 0;
	padding: 1.5rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

.notice-options::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #0d6efd, #6f42c1);
}

.notice-options h3 {
	margin: 0 0 1.5rem 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #212529;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.notice-options h3::before {
	content: none;
	display: none;
}

.options-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.option-item {
	position: relative;
}

.option-item:first-child {
	background: #ffffff;
	padding: 1.25rem;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-item:last-child {
	background: #ffffff;
	padding: 1.25rem;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.option-label {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	cursor: pointer;
	font-weight: 500;
	color: #495057;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.option-label:hover {
	color: #0d6efd;
}

.option-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0d6efd;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.option-checkbox:checked {
	transform: scale(1.1);
}

.option-text {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	flex: 1;
}

.option-title {
	font-weight: 700;
	color: #212529;
	font-size: 0.95rem;
	letter-spacing: -0.01em;
}

.option-desc {
	font-size: 0.8rem;
	color: #6c757d;
	font-weight: 400;
	line-height: 1.4;
}

.option-select {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 2px solid #e9ecef;
	border-radius: 6px;
	background: #ffffff;
	font-size: 0.875rem;
	color: #495057;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
}

.option-select:focus {
	outline: none;
	border-color: #0d6efd;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.option-select:hover {
	border-color: #0d6efd;
}

/* 옵션 아이템별 아이콘 추가 */
.option-item:first-child .option-title::before {
	content: none;
	display: none;
}

.option-item:last-child .option-title::before {
	content: none;
	display: none;
}

/* Button variants (primary/secondary/danger) */
.btn {
	border-radius: 8px;
	font-weight: 600;
}

.btn-primary {
	background: #0d6efd;
	color: #fff;
}

.btn-primary:hover { background: #0b5ed7; }

.btn-secondary { background: #e9ecef; color: #343a40; }
.btn-secondary:hover { background: #dde2e6; }

.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }

/* EasyMDE width fix inside grid form */
.editor-container .EasyMDEContainer {
	grid-column: 1 / -1;
}

/* Page with left sidebar layout */
.page-with-sidebar {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 3rem;
	max-width: 1200px;
	margin: 4rem auto;
	padding: 0 2rem;
}

.sidebar-left {
	position: sticky;
	top: 90px; /* 헤더 높이만큼 */
	align-self: start;
	border: 1px solid #e8e8e8;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: 8px;
	height: fit-content;
}

.sidebar-left h4 { margin-bottom: 0.75rem; }
.sidebar-left ul { list-style: none; }
.sidebar-left ul li a { display:block; padding: 0.4rem 0; color:#4a4a4a; }
.sidebar-left ul li a:hover { color:#1a1a1a; }

/* Notice content area */
.notice-content {
	width: 100%;
	min-width: 0; /* Prevent grid item from overflowing its container */
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #343a40;
}

.notice-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.notice-header .actions {
    display: flex;
    gap: 0.5rem;
}

/* Notice table styling */
.notice-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
}

.notice-table th {
	background: #f8f9fa;
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: #495057;
	border-bottom: 1px solid #e8e8e8;
}

.notice-table th:nth-child(1) { width: 50% !important; text-align: left !important; }   /* 제목 */
.notice-table th:nth-child(2) { width: 80px !important; text-align: center !important; }  /* 공개 */
.notice-table th:nth-child(3) { width: 80px !important; text-align: center !important; }  /* 조회 */
.notice-table th:nth-child(4) { width: 120px !important; text-align: center !important; } /* 게시일 */

.notice-table td {
	padding: 1rem;
	border-bottom: 1px solid #f0f0f0;
	color: #495057;
}

.notice-table td:nth-child(1) { width: 50% !important; }   /* 제목 */
.notice-table td:nth-child(2) { width: 80px !important; text-align: center; }  /* 공개 */
.notice-table td:nth-child(3) { width: 80px !important; text-align: center; }  /* 조회 */
.notice-table td:nth-child(4) { width: 120px !important; text-align: center; } /* 게시일 */

.notice-table tr:last-child td {
	border-bottom: none;
}

.notice-table tr:hover {
	background: #f8f9fa;
}

.text-center {
	text-align: center;
}

.notice-link {
	color: #1a1a1a;
	text-decoration: none;
	font-weight: 500;
}

.notice-link:hover {
	color: #0d6efd;
}

.badge.pinned {
	background: #0d6efd;
	color: #fff;
	border-radius: 4px;
	padding: 2px 8px;
	margin-right: 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Small button variant */
.btn-sm {
	padding: 0.375rem 0.75rem;
	font-size: 0.8rem;
	height: auto;
	border-radius: 4px;
}

/* Extra small button variant */
.btn-xs {
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	height: auto;
	border-radius: 3px;
}

/* Register Form Container - 더 넓게 */
.register-container {
	max-width: 800px;
	margin: 4rem auto;
	padding: 3rem 4rem;
	background: #ffffff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.register-container h2 {
    margin-bottom: 2rem; /* h2와 다음 요소 사이의 간격을 늘림 */
}

/* Clean Form Styles */
.form-group {
	margin-bottom: 2rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.6rem;
	font-weight: 500;
	color: #4a4a4a;
	font-size: 0.9rem;
	letter-spacing: -0.1px;
}

.form-group input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	font-size: 1rem;
	transition: all 0.2s ease;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 54px; /* 모든 input 동일한 높이 */
	box-sizing: border-box;
}

.form-group input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.form-group-agree input[type="checkbox"] {
	width: auto;
	margin-right: 0.8rem;
}

.form-group-agree label {
	margin-bottom: 0;
	font-weight: 400;
}

/* Register Form Grid Layout */
.register-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2.5rem;
}

.full-width {
	grid-column: 1 / -1;
}

/* Agreement Section - grid gap 영향 제거 */
.agreement-section {
	grid-column: 1 / -1;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.form-group-agree {
	display: flex;
	align-items: center;
	margin-bottom: 0.3rem;
}

.form-group-agree:last-of-type {
	margin-bottom: 0;
}

/* Error Message Styles */
.error-message {
	background-color: #ffebee;
	color: #c62828;
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 2rem;
	border-left: 4px solid #c62828;
	font-size: 0.9rem;
}

.field-error {
	display: none;
	color: #c62828;
	font-size: 0.8rem;
	margin-top: 0.3rem;
	font-weight: 400;
}

/* Clean Button */
.btn {
	width: 100%;
	padding: 1rem 2rem;
	background: #1a1a1a;
	color: #ffffff;
	border: none;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	display: inline-block;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 54px; /* 일관된 높이 */
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn:hover {
	background: #2a2a2a;
}

.btn:active {
	background: #0a0a0a;
}

.sub-links {
	margin-top: 2rem;
	text-align: center;
	font-size: 0.9rem;
}

.sub-links a {
	color: #6a6a6a;
	transition: color 0.2s ease;
}

.sub-links a:hover {
	color: #1a1a1a;
}

.sub-links .divider {
	margin: 0 1rem;
	color: #d0d0d0;
}

.btn-secondary {
	background: #e8e8e8;
	color: #4a4a4a;
	margin-bottom: 2rem;
}

.btn-secondary:hover {
	background: #d8d8d8;
}

/* Action buttons in detail view */
.btn-danger {
	background: #dc3545;
	color: #ffffff;
}

.btn-danger:hover {
	background: #c82333;
}

.or-separator {
	text-align: center;
	margin-bottom: 2rem;
	position: relative;
	color: #aaa;
}

.or-separator span {
	background: #fff;
	padding: 0 1rem;
	position: relative;
	z-index: 1;
}

.or-separator::before {
	content: '';
	position: absolute;
	width: 100%;
	height: 1px;
	background: #e8e8e8;
	top: 50%;
	left: 0;
	z-index: 0;
}

/* MyPage Styles */
.mypage-section {
	margin-bottom: 3rem;
}

.mypage-section h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e8e8e8;
}

.mypage-section p {
	margin-bottom: 0.8rem;
	color: #4a4a4a;
}

.payment-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 0.9rem;
}

.payment-table th, .payment-table td {
	padding: 1rem;
	border-bottom: 1px solid #e8e8e8;
}

.payment-table th {
	font-weight: 500;
	background-color: #f8f9fa;
	color: #1a1a1a;
}

.payment-table td {
	color: #4a4a4a;
}


/* Payment Info Box */
.payment-info {
	margin-bottom: 3rem;
	padding: 2rem;
	background: #f8f9fa;
	border: 1px solid #e8e8e8;
	text-align: center;
}

.payment-info p {
	font-size: 1rem;
	color: #4a4a4a;
	line-height: 1.8;
}

.payment-info strong {
	font-weight: 600;
	color: #1a1a1a;
}

.payment-info .description {
	font-size: 0.9rem;
	color: #6a6a6a;
	margin-top: 1.5rem;
}

/* Clean Footer */
footer {
	background: #f8f9fa;
	border-top: 1px solid #e8e8e8;
	padding: 3rem 0;
	text-align: center;
	margin-top: auto;
}

footer p {
	font-size: 0.85rem;
	color: #6a6a6a;
	font-weight: 400;
	letter-spacing: -0.1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.header-container {
		height: auto;
		padding: 0.75rem 3rem; /* 상하 여백 추가 */
	}
	nav ul { gap: 3rem; }
}

@media (max-width: 1024px) {
	.header-container {
		height: auto;
		padding: 1.25rem 2rem; /* 상하 여백 확장 */
	}
	nav ul { 
		gap: 2.25rem; /* 메뉴 간격 약간 확대 */
		align-items: center; /* 다시 중앙 정렬로 복원 */
	}
	
	/* 1024px에서 메뉴 정렬 조정 */
	nav ul li {
		margin-top: 0.5rem; /* 1024px에서 메뉴 정렬 조정 */
	}
	/* 네비 링크 패딩 확장으로 호버 영역 확보 */
	nav ul li > a { 
		padding: 1.25rem 0.75rem 1.5rem 0.75rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
		display: block; /* 호버 영역 확장 */
		position: relative; /* 호버 영역 확장을 위한 포지셔닝 */
		/* 상하 패딩 영역에서도 호버가 작동하도록 */
		height: 100%;
		box-sizing: border-box;
	}
	.mega-menu {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
		padding: 1.5rem 2rem;
		display: none; /* 모바일에서는 메가메뉴 비활성화 */
	}
	
	/* 1024px에서 메가메뉴 섹션 내부 레이아웃 개선 */
	.mega-section ul {
		display: flex;
		flex-wrap: wrap; /* 부족하면 2줄로 넘어가도록 */
		gap: 1rem 2rem; /* 세로 1rem, 가로 2rem 간격 */
	}
	
	.mega-section ul li {
		width: calc(50% - 0.5rem); /* 2개씩 배치되도록 너비 설정 */
	}
	
	.mega-section ul li a {
		padding: 0.5rem 0; /* 세부메뉴 패딩 유지 */
		font-size: 0.9rem; /* 폰트 크기 축소 */
		white-space: nowrap; /* 텍스트 줄바꿈 방지 */
	}
	
	/* 학회소개 메뉴의 세부메뉴를 강제로 2줄 배치 */
	.mega-section:first-child ul li:nth-child(odd) {
		order: 1; /* 홀수 번째 항목을 첫 번째 줄에 */
	}
	
	.mega-section:first-child ul li:nth-child(even) {
		order: 2; /* 짝수 번째 항목을 두 번째 줄에 */
	}
}

@media (max-width: 768px) {
	.header-container {
		height: auto;
		padding: 1rem 1.25rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 1.25rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		text-align: center;
	}

	.logo h1 {
		font-size: 1.2rem;
		margin: 0;
	}
	nav ul {
		gap: 0.75rem 1rem; /* 메뉴 간격 축소 */
		flex-wrap: wrap;
	}
	/* 모바일에서는 메가메뉴 기본 비노출로 헤더 높이 급증 방지 */
	nav:hover .mega-menu { display: none; }
	.mega-menu { display: none; }
	.mega-section + .mega-section { margin-top: 0.75rem; }
	/* 네비 링크 패딩으로 호버 영역 확보 */
	nav ul li > a { 
		padding: 0.75rem 0.5rem 1rem 0.5rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
		display: block; /* 호버 영역 확장 */
	}
	.br-md { display: inline; }
	
	/* Notice options responsive */
	.options-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.notice-options {
		padding: 1rem;
		margin: 1.5rem 0;
	}
	
	.option-item:first-child,
	.option-item:last-child {
		padding: 1rem;
	}
	
	/* Mobile sidebar layout */
	.page-with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}
	
	.sidebar-left {
		display: none;
	}
	
	.notice-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.notice-header h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	nav ul {
		flex-wrap: wrap;
		gap: 1rem 1.2rem;
	}
	.br-lg { display: inline; }
}

@media (max-width: 768px) {
	.history-table {
		min-width: 600px;
	}
	.plan-table {
		min-width: 800px;
	}
	.events-table {
		min-width: 800px;
	}

	.notice-table {
		font-size: 0.9rem;
	}

	.notice-table .notice-link {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
	}
}

/* Google Fonts Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css');

/* Registration Success Page Styles */
.registration-success-container {
	max-width: 700px;
	margin: 0 auto;
	padding: 3rem 2rem;
	text-align: center;
}

.success-icon {
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.success-content {
	animation: slideUp 0.8s ease-out 0.3s both;
}

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

.success-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.success-subtitle {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 3rem;
	line-height: 1.6;
}

.success-steps {
	text-align: left;
	margin-bottom: 3rem;
}

.step-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	border-left: 4px solid #0066cc;
	transition: all 0.3s ease;
}

.step-item:hover {
	background: #f0f7ff;
	transform: translateX(5px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.step-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.step-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
}

.step-content p {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.success-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 3rem;
	align-items: center;
}

.btn-large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 250px;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-large:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-large svg {
	transition: transform 0.3s ease;
}

.btn-large:hover svg {
	transform: translateX(3px);
}

.contact-info {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-info p {
	margin-bottom: 0.5rem;
	color: #666;
}

.contact-info p:first-child {
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.contact-info a {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.contact-info a:hover {
	text-decoration: underline;
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
	.registration-success-container {
		padding: 2rem 1rem;
	}
	
	.success-title {
		font-size: 1.6rem;
	}
	
	.success-subtitle {
		font-size: 1rem;
	}
	
	.step-item {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.step-content {
		text-align: center;
	}
	
	.success-actions {
		gap: 0.75rem;
	}
	
	.btn-large {
		min-width: 100%;
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
	
	.contact-info {
		padding: 1.5rem;
	}
}

.input-with-button {
	display: flex;
	gap: 1rem;
}

.input-with-button input {
	flex-grow: 1;
	height: 54px; /* 모든 input 동일한 높이 */
	box-sizing: border-box;
}

.input-with-button button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 모든 버튼 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Input Container */
.email-input-container {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.email-parts {
	display: flex;
	align-items: stretch;
	flex-grow: 1;
	border: none; /* 전체 테두리 제거 */
	border-radius: 0;
	padding: 0;
	background: #ffffff;
	transition: all 0.2s ease;
	height: 54px; /* 다른 input과 동일한 높이 */
	gap: 0; /* 요소 간 간격 제거 */
}

/* 전체 컨테이너 포커스 효과 제거 */
/* .email-parts:focus-within 스타일 제거 */

.email-local-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-right: none; /* 오른쪽 테두리 제거하여 @ 기호와 연결 */
	outline: none;
	padding: 1rem;
	flex: 1;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-local-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-local-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.email-at {
	color: #6a6a6a;
	font-weight: 500;
	padding: 0 0.5rem;
	user-select: none;
	display: flex;
	align-items: center;
	font-size: 1rem;
	border-top: 1px solid #d0d0d0; /* @ 기호 영역에도 테두리 */
	border-bottom: 1px solid #d0d0d0;
	background: #ffffff;
	height: 100%;
	box-sizing: border-box;
}

.email-domain-container {
	display: flex;
	align-items: stretch;
	position: relative;
}

.email-domain-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 @ 기호와 연결 */
	border-right: none; /* 오른쪽 테두리 제거하여 select와 연결 */
	outline: none;
	padding: 1rem;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-domain-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-domain-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.domain-select {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 input과 연결 */
	outline: none;
	background: #ffffff;
	padding: 1rem 0.5rem;
	font-size: 0.9rem;
	color: #6a6a6a;
	cursor: pointer;
	height: 100%;
	box-sizing: border-box;
}

.domain-select:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.domain-select:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.email-input-container .btn {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	margin: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Verification Section */
.email-verification-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e8e8e8;
}

.verification-section {
	margin-top: 1rem;
}

.verification-input-group {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.verification-input-group input {
	flex-grow: 1;
	padding: 1rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	font-size: 1rem;
	transition: all 0.2s ease;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 54px; /* 다른 input과 동일한 높이 */
	box-sizing: border-box;
}

.verification-input-group input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.verification-input-group button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

.verification-help {
	margin-top: 0.5rem;
}

.verification-help small {
	color: #6a6a6a;
	font-size: 0.8rem;
}

.email-verified-message {
	margin-top: 1rem;
	padding: 1rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
}

.success-message {
	display: flex;
	align-items: center;
	color: #155724;
	font-weight: 500;
}

.icon-check {
	margin-right: 0.5rem;
	font-size: 1.2rem;
	color: #28a745;
}

/* Enhanced Timer */
.timer {
	margin-top: 0.5rem;
	color: #28a745;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Success Toast */
.success-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #28a745;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Input Enhancements */
.input-with-button input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.verification-input-group input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.btn:disabled:hover {
	background-color: #ccc;
}

.btn.btn-secondary {
	background: #e8e8e8;
	color: #4a4a4a;
}

.btn.btn-secondary:hover {
	background: #d8d8d8;
}

.btn.btn-secondary:disabled {
	background-color: #ccc;
	color: #999;
}

/* Responsive Design for Email Verification */
@media (max-width: 768px) {
	.input-with-button {
		flex-direction: column;
	}
	
	.input-with-button button {
		width: 100%;
	}
	
	.email-input-container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.email-input-container .btn {
		width: 100%;
		height: 54px; /* 높이 유지 */
		padding: 0;
	}
	
	.email-parts {
		flex-wrap: wrap;
		height: auto; /* 모바일에서는 자동 높이 */
	}
	
	.email-local-input, .email-domain-input {
		min-width: 100px;
		height: 54px; /* 높이 유지 */
	}
	
	.verification-input-group {
		flex-direction: column;
	}
	
	.verification-input-group button {
		width: 100%;
	}
} 

/* Compact buttons override (prevent full-width) */
.btn-sm, .btn-xs {
	width: auto !important;
	height: auto;
}

/* Ensure form action buttons in editor forms don't stretch full width */
.editor-container .btn,
.register-form .btn {
	width: auto;
}

/* Normalize extra-small button heights in editor forms */
.editor-container .btn.btn-xs,
.register-form .btn.btn-xs {
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 10px !important;
	font-size: 13px !important;
	line-height: 30px !important;
	border-radius: 4px !important;
}

/* Align sibling buttons inside the same action row */
.editor-container .form-group .btn.btn-xs + .btn.btn-xs,
.register-form .form-group .btn.btn-xs + .btn.btn-xs {
	margin-left: 8px;
}

/* Notice detail header with right-aligned actions */
.notice-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.notice-detail-header h2 { margin: 0; }

.notice-actions {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

.notice-actions form { display: inline-block; }

.notice-actions .btn { width: auto; height: auto; }

.notice-meta {
	margin: 0.25rem 0 1rem;
	color: #666;
	font-size: 14px;
}

/* Markdown-rendered content (notice/photo-news detail) */
#notice-body, #photo-news-body {
	line-height: 1.7;
	color: #222;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* Simplified Notice Options (no fancy styles) */
.notice-options {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 1rem;
	margin: 1rem 0 1.5rem;
	box-shadow: none;
}

.notice-options::before { display: none; content: none; }

/* Make options in one row, naturally wrapping */
.options-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
}

.option-item { flex: 1 1 360px; display: flex; align-items: center; gap: 0.75rem; }
.option-item .option-select { margin-left: auto; }

/* Place descriptions on the next line and align visually */
.option-item .option-desc { flex-basis: 100%; margin-left: 28px; white-space: normal; }
.option-item:nth-child(2) .option-desc { margin-left: 0; }

/* Keep select clean */
.option-select { border-width: 1px; } 

/* Photo Gallery Styles */
.photo-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 1rem 0;
}

.photo-item {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photo-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.photo-caption {
	padding: 1rem;
	margin: 0;
	font-size: 0.9rem;
	color: #495057;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

/* Image Upload Styles */
.image-upload-area {
	border: 2px dashed #ced4da;
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

.image-upload-area:hover {
	border-color: #0d6efd;
	background: #f0f8ff;
}

.image-input {
	width: 100%;
	margin-bottom: 1rem;
}

.upload-hint {
	color: #6c757d;
	font-size: 0.875rem;
}

.upload-hint p {
	margin: 0.25rem 0;
}

/* Current Images Display */
.current-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.current-image-item {
	text-align: center;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 0.5rem;
	background: #fff;
}

.current-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.image-name {
	font-size: 0.8rem;
	color: #6c757d;
	word-break: break-all;
}

/* Photo News Table Column Widths */
.photo-news-table th:nth-child(1), /* 제목 */
.photo-news-table td:nth-child(1) {
	width: 45%;
}

.photo-news-table th:nth-child(2), /* 공개 */
.photo-news-table td:nth-child(2) {
	width: 10%;
}

.photo-news-table th:nth-child(3), /* 조회 */
.photo-news-table td:nth-child(3) {
	width: 10%;
}

.photo-news-table th:nth-child(4), /* 게시일 */
.photo-news-table td:nth-child(4) {
	width: 35%;
}

/* Content Area for non-table pages */
.content-area {
	background: #fff;
	padding: 2rem;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
} 

/* 연혁 표 스타일 */
.history-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	table-layout: fixed;
}

.history-table th {
	background: #f8f9fa;
	padding: 1rem 1.25rem;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.history-table th:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table th:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table th:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.history-table td:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table td:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table td:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table tr:hover {
	background-color: #f8f9fa;
}

.history-number {
	width: 60px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.history-date {
	width: 120px !important;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: nowrap;
}

.history-content {
	width: calc(100% - 180px) !important;
	text-align: left;
	color: #212529;
	line-height: 1.5;
}

/* 페이지네이션 스타일 */
.pagination {
	margin-top: 2rem;
	padding: 1rem 0;
	border-top: 1px solid #e9ecef;
}

.pagination-info {
	text-align: center;
	margin-bottom: 1rem;
	color: #6c757d;
	font-size: 0.9rem;
}

.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination-btn {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	background: white;
	color: #007bff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.pagination-btn:hover {
	background: #007bff;
	color: white;
	border-color: #007bff;
	text-decoration: none;
}

.pagination-btn.current {
	background: #007bff;
	color: white;
	border-color: #007bff;
	font-weight: 600;
}

.pagination-btn:disabled {
	background: #f8f9fa;
	color: #6c757d;
	border-color: #dee2e6;
	cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.history-table {
		font-size: 0.9rem;
	}
	
	.history-table th,
	.history-table td {
		padding: 8px 12px;
	}
	
	.history-number {
		width: 60px;
	}
	
	.history-date {
		width: 100px;
	}
	
	.pagination-controls {
		gap: 0.25rem;
	}
	
	.pagination-btn {
		padding: 6px 10px;
		font-size: 0.8rem;
	}
} 

/* 추진계획 표 스타일 */
.plan-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.plan-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.plan-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.plan-table th:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table th:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table th:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table th:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: top;
}

.plan-table td:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table td:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table td:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table td:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table tr:hover {
	background-color: #f8f9fa;
}

.plan-year {
	width: 80px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
	vertical-align: middle;
}

.plan-title {
	width: 180px !important;
	text-align: left;
	color: #212529;
	font-weight: 500;
	vertical-align: middle;
}

.plan-details {
	width: 50% !important;
	text-align: left;
	color: #212529;
	line-height: 1.6;
}

.detail-item {
	margin-bottom: 8px;
	padding-left: 8px;
	border-left: 3px solid #007bff;
}

.detail-item:last-child {
	margin-bottom: 0;
}

.plan-direction {
	width: 30%;
	text-align: left;
	color: #495057;
	line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.plan-table {
		font-size: 0.9rem;
	}
	
	.plan-table th,
	.plan-table td {
		padding: 8px 12px;
	}
}

/* 개최현황 표 스타일 */
.events-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.events-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.events-table th:nth-child(1) { width: 60px; }   /* 번호 */
.events-table th:nth-child(2) { width: 40%; }   /* 학술행사명 */
.events-table th:nth-child(3) { width: 25%; }   /* 개최장소 */
.events-table th:nth-child(4) { width: 15%; }   /* 개최기간 */
.events-table th:nth-child(5) { width: 15%; }   /* 전화번호 */

.events-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.events-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.events-table tr:hover {
	background-color: #f8f9fa;
}

.events-number {
	width: 60px;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.events-name {
	width: 40%;
	text-align: left;
	color: #212529;
	font-weight: 500;
}

.events-location {
	width: 25%;
	text-align: left;
	color: #212529;
	line-height: 1.4;
}

.events-period {
	width: 15%;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.85rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.events-phone {
	width: 15%;
	text-align: center;
	color: #6c757d;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.8rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.events-table {
		font-size: 0.8rem;
	}
	
	.events-table th,
	.events-table td {
		padding: 8px 10px;
	}
	
	.events-number {
		width: 50px;
	}
	
	.events-name {
		width: 38%;
	}
	
	.events-location {
		width: 25%;
	}
	
	.events-period {
		width: 17%;
		font-size: 0.75rem;
	}
	
	.events-phone {
		width: 15%;
		font-size: 0.75rem;
	}
} 

/* Markdown editor (CodeMirror) heading visualization to match preview */
.toastui-editor-md-container .cm-header { font-weight: 700; line-height: 1.4; }
.toastui-editor-md-container .cm-header-1 { font-size: 1.8rem; }
.toastui-editor-md-container .cm-header-2 { font-size: 1.5rem; }
.toastui-editor-md-container .cm-header-3 { font-size: 1.25rem; }
.toastui-editor-md-container .cm-header-4 { font-size: 1.1rem; }
/* Fallback if level-specific classes are unavailable */
.toastui-editor-md-container .cm-quote .cm-header,
.toastui-editor-md-container .cm-quote.cm-header { font-size: 1.25rem; }
/* Slightly increase base font-size for better readability in MD pane (optional) */
/* .toastui-editor-md-container .CodeMirror { font-size: 0.98rem; } */

/* WYSIWYG visual decorator for quoted headings (display only) */
.toastui-editor-ww-container .ProseMirror blockquote p.md-h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin: 1.25rem 0 0.75rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin: 1.1rem 0 0.6rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 1rem 0 0.5rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.45; margin: 0.9rem 0 0.5rem; }

/* Tiptap Editor Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.btn-tiptap {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-tiptap:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.ProseMirror h1, .ProseMirror h2, .ProseMirror h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ProseMirror p {
    margin-bottom: 1em;
}

.ProseMirror ul, .ProseMirror ol {
    padding-left: 2em;
}

.ProseMirror blockquote {
    border-left: 3px solid #ddd;
    margin-left: 1em;
    padding-left: 1em;
    font-style: italic;
}

.ProseMirror pre {
    background: #f4f4f4;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
}

.ProseMirror code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.editor-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    /* Inherit the global line-height from the body */
    line-height: inherit; 
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tiptap Editor & Prose Content Common Styles */
.prose-content {
    line-height: 1.7;
}

.prose-content h1,
.prose-content h2,
.prose-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
    text-align: left; /* 명시적으로 좌측 정렬 지정 */
}
.prose-content h1 { font-size: 1.8rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }

.prose-content p {
    margin-bottom: 1em;
}

.prose-content ul,
.prose-content ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

.prose-content blockquote {
    border-left: 3px solid #ddd;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1em;
    font-style: italic;
    color: #555;
}

.prose-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}

.prose-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Article container on detail pages */
.post-article {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Tiptap Editor Specific Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom Radio Button Styles */
.radio-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.radio-button-label {
    margin-bottom: 0;
}

.radio-button-label input[type="radio"] {
    display: none; /* Hide default radio button */
}

.radio-button-custom {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px; /* pill shape */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.radio-button-label input[type="radio"]:checked + .radio-button-custom {
    background-color: #343a40; /* Dark theme color */
    color: white;
    border-color: #343a40;
}

.radio-button-label:hover .radio-button-custom {
    background-color: #f0f0f0;
}

.radio-button-label input[type="radio"]:checked:hover + .radio-button-custom {
    background-color: #23272b;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Registration Page Layout */
.registration-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-column {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
    min-width: 280px;
}

.form-column {
    flex: 2 1 500px;
}

.info-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #343a40;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.25rem 0;
}

/* Directions section: show bullet dots for taxi notes */
.directions .info-list {
    list-style: disc;
    padding-left: 1.1rem;
}

.important-notice {
    font-size: 0.9rem;
    color: #c44;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .registration-page-container {
        flex-direction: column;
    }
}

.checkbox-group {
    margin-bottom: 1.5rem; /* form-group과 동일한 마진 */
}

.checkbox-label {
    display: inline-flex; /* 너비를 컨텐츠만큼만 차지하도록 변경 */
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #f0f0f0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Checkbox specific styles */
.form-group-checkbox {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 1rem;
    padding: 0.75rem 0; /* 다른 form-control과 높이를 맞추기 위한 패딩 */
}

.form-group-checkbox label {
    margin-bottom: 0; /* form-group의 label 기본 마진 제거 */
    flex-shrink: 0; /* 라벨 너비가 줄어들지 않도록 */
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;  /* 체크박스 크기 키우기 */
    height: 20px;
    cursor: pointer;
}

/* Auth Page Specific Styles */
.email-verification-section .btn {
    padding: 0.5rem 0.75rem; /* 버튼 내부 여백 추가 */
    font-size: 0.85rem; /* 버튼 글씨 크기 축소 */
    flex-shrink: 0; /* 버튼이 줄어들지 않도록 */
}

.auth-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-notice a {
    font-weight: bold;
    color: #856404;
}

/* Simple Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-close-btn {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hamburger Menu (Mobile) */
.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 10001;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #333;
	margin: 3px 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* Hamburger animation when active */
.hamburger.is-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: #fff;
	z-index: 10000;
	padding: 5rem 2rem 2rem;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.is-active {
	transform: translateX(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu nav > ul > li {
	display: block;
	width: 100%;
}

.mobile-menu nav > ul > li > a {
	display: block;
	padding: 1rem 0;
	font-size: 1.1rem;
	font-weight: 500;
	border-bottom: 1px solid #f0f0f0;
	color: #333;
	transition: color 0.2s ease;
	width: 100%;
}

.mobile-menu nav > ul > li > a:hover {
	color: #0066cc;
}

.mobile-menu nav > ul > li > a.is-active {
	color: #0066cc;
	font-weight: 600;
}

.mobile-menu .submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	background: #f5f5f5;
	transition: max-height 0.3s ease-in-out;
	width: 100%;
	display: block;
}

.mobile-menu .submenu.is-open {
	max-height: 300px;
}

.mobile-menu .submenu li {
	display: block;
	width: 100%;
}

.mobile-menu .submenu li a {
	display: block;
	font-size: 0.9rem;
	font-weight: 400;
	color: #666;
	padding: 0.7rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.mobile-menu .submenu li:last-child a {
	border-bottom: none;
}

.mobile-menu .submenu li a:hover {
	background: #e9ecef;
	color: #333;
}

.mobile-auth {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.mobile-auth span { 
	font-weight: 500;
	color: #333;
	margin-bottom: 0.5rem;
}

.mobile-auth a { 
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	border-radius: 6px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mobile-auth a[href="/login"] {
	background: #f8f9fa;
	color: #333;
	border: 1px solid #dee2e6;
}

.mobile-auth a[href="/login"]:hover {
	background: #e9ecef;
}

.mobile-auth a[href="/register"] {
	background: #333;
	color: #fff;
	border: 1px solid #333;
}

.mobile-auth a[href="/register"]:hover {
	background: #555;
}

.mobile-auth a[href="/logout"],
.mobile-auth a[href="/mypage"] {
	background: transparent;
	color: #333;
	border: 1px solid #e0e0e0;
}

.mobile-auth a[href="/logout"]:hover,
.mobile-auth a[href="/mypage"]:hover {
	background: #f0f0f0;
	border-color: #d0d0d0;
}

@media (max-width: 1024px) {
	/* 데스크톱 네비게이션 완전히 숨기기 */
	.desktop-nav, .desktop-auth {
		display: none !important;
	}
	
	/* 햄버거 메뉴와 모바일 메뉴 활성화 */
	.hamburger {
		display: flex;
	}
	.mobile-menu, .mobile-menu-overlay {
		display: block;
	}

	/* 헤더 레이아웃 조정 */
	.header-container {
		height: auto;
		padding: 1rem 2rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 2rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		flex: 1;
		text-align: center;
		margin: 0;
	}

	.logo h1 {
		font-size: 1.3rem;
		margin: 0;
	}
	
	/* 데스크톱 네비게이션 스타일 완전히 무효화 */
	nav ul { 
		display: none !important;
	}
	
	/* 메가메뉴 완전히 숨기기 */
	.mega-menu {
		display: none !important;
	}
	
	/* 모바일 메뉴가 올바르게 작동하도록 보장 */
	.mobile-menu nav ul {
		display: flex !important;
		flex-direction: column !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		gap: 0 !important; /* 데스크톱 네비게이션의 큰 gap 제거 */
	}
	
	/* 1024px에서 세부메뉴 간격을 768px와 동일하게 조정 */
	.mobile-menu .submenu li a {
		padding: 0.7rem 1.5rem !important;
	}
	
	.mobile-menu .submenu.is-open {
		padding: 0.5rem 0 !important;
	}
}

@media (max-width: 768px) {
	.header-container {
		height: auto;
		padding: 1rem 1.25rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 1.25rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		text-align: center;
	}

	.logo h1 {
		font-size: 1.2rem;
		margin: 0;
	}
	nav ul {
		gap: 0.75rem 1rem; /* 메뉴 간격 축소 */
		flex-wrap: wrap;
	}
	/* 모바일에서는 메가메뉴 기본 비노출로 헤더 높이 급증 방지 */
	nav:hover .mega-menu { display: none; }
	.mega-menu { display: none; }
	.mega-section + .mega-section { margin-top: 0.75rem; }
	/* 네비 링크 패딩으로 호버 영역 확보 */
	nav ul li > a { 
		padding: 0.75rem 0.5rem 1rem 0.5rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
		display: block; /* 호버 영역 확장 */
	}
	.br-md { display: inline; }
	
	/* Notice options responsive */
	.options-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.notice-options {
		padding: 1rem;
		margin: 1.5rem 0;
	}
	
	.option-item:first-child,
	.option-item:last-child {
		padding: 1rem;
	}
	
	/* Mobile sidebar layout */
	.page-with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}
	
	.sidebar-left {
		display: none;
	}
	
	.notice-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.notice-header h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	nav ul {
		flex-wrap: wrap;
		gap: 1rem 1.2rem;
	}
	.br-lg { display: inline; }
}

@media (max-width: 768px) {
	.history-table {
		min-width: 600px;
	}
	.plan-table {
		min-width: 800px;
	}
	.events-table {
		min-width: 800px;
	}

	.notice-table {
		font-size: 0.9rem;
	}

	.notice-table .notice-link {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
	}
}

/* Google Fonts Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css');

/* Registration Success Page Styles */
.registration-success-container {
	max-width: 700px;
	margin: 0 auto;
	padding: 3rem 2rem;
	text-align: center;
}

.success-icon {
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.success-content {
	animation: slideUp 0.8s ease-out 0.3s both;
}

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

.success-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.success-subtitle {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 3rem;
	line-height: 1.6;
}

.success-steps {
	text-align: left;
	margin-bottom: 3rem;
}

.step-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	border-left: 4px solid #0066cc;
	transition: all 0.3s ease;
}

.step-item:hover {
	background: #f0f7ff;
	transform: translateX(5px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.step-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.step-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
}

.step-content p {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.success-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 3rem;
	align-items: center;
}

.btn-large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 250px;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-large:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-large svg {
	transition: transform 0.3s ease;
}

.btn-large:hover svg {
	transform: translateX(3px);
}

.contact-info {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-info p {
	margin-bottom: 0.5rem;
	color: #666;
}

.contact-info p:first-child {
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.contact-info a {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.contact-info a:hover {
	text-decoration: underline;
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
	.registration-success-container {
		padding: 2rem 1rem;
	}
	
	.success-title {
		font-size: 1.6rem;
	}
	
	.success-subtitle {
		font-size: 1rem;
	}
	
	.step-item {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.step-content {
		text-align: center;
	}
	
	.success-actions {
		gap: 0.75rem;
	}
	
	.btn-large {
		min-width: 100%;
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
	
	.contact-info {
		padding: 1.5rem;
	}
}

.input-with-button {
	display: flex;
	gap: 1rem;
}

.input-with-button input {
	flex-grow: 1;
	height: 54px; /* 모든 input 동일한 높이 */
	box-sizing: border-box;
}

.input-with-button button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 모든 버튼 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Input Container */
.email-input-container {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.email-parts {
	display: flex;
	align-items: stretch;
	flex-grow: 1;
	border: none; /* 전체 테두리 제거 */
	border-radius: 0;
	padding: 0;
	background: #ffffff;
	transition: all 0.2s ease;
	height: 54px; /* 다른 input과 동일한 높이 */
	gap: 0; /* 요소 간 간격 제거 */
}

/* 전체 컨테이너 포커스 효과 제거 */
/* .email-parts:focus-within 스타일 제거 */

.email-local-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-right: none; /* 오른쪽 테두리 제거하여 @ 기호와 연결 */
	outline: none;
	padding: 1rem;
	flex: 1;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-local-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-local-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.email-at {
	color: #6a6a6a;
	font-weight: 500;
	padding: 0 0.5rem;
	user-select: none;
	display: flex;
	align-items: center;
	font-size: 1rem;
	border-top: 1px solid #d0d0d0; /* @ 기호 영역에도 테두리 */
	border-bottom: 1px solid #d0d0d0;
	background: #ffffff;
	height: 100%;
	box-sizing: border-box;
}

.email-domain-container {
	display: flex;
	align-items: stretch;
	position: relative;
}

.email-domain-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 @ 기호와 연결 */
	border-right: none; /* 오른쪽 테두리 제거하여 select와 연결 */
	outline: none;
	padding: 1rem;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-domain-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-domain-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.domain-select {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 input과 연결 */
	outline: none;
	background: #ffffff;
	padding: 1rem 0.5rem;
	font-size: 0.9rem;
	color: #6a6a6a;
	cursor: pointer;
	height: 100%;
	box-sizing: border-box;
}

.domain-select:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.domain-select:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.email-input-container .btn {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	margin: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Verification Section */
.email-verification-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e8e8e8;
}

.verification-section {
	margin-top: 1rem;
}

.verification-input-group {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.verification-input-group input {
	flex-grow: 1;
	padding: 1rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	font-size: 1rem;
	transition: all 0.2s ease;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 54px; /* 다른 input과 동일한 높이 */
	box-sizing: border-box;
}

.verification-input-group input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.verification-input-group button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

.verification-help {
	margin-top: 0.5rem;
}

.verification-help small {
	color: #6a6a6a;
	font-size: 0.8rem;
}

.email-verified-message {
	margin-top: 1rem;
	padding: 1rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
}

.success-message {
	display: flex;
	align-items: center;
	color: #155724;
	font-weight: 500;
}

.icon-check {
	margin-right: 0.5rem;
	font-size: 1.2rem;
	color: #28a745;
}

/* Enhanced Timer */
.timer {
	margin-top: 0.5rem;
	color: #28a745;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Success Toast */
.success-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #28a745;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Input Enhancements */
.input-with-button input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.verification-input-group input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.btn:disabled:hover {
	background-color: #ccc;
}

.btn.btn-secondary {
	background: #e8e8e8;
	color: #4a4a4a;
}

.btn.btn-secondary:hover {
	background: #d8d8d8;
}

.btn.btn-secondary:disabled {
	background-color: #ccc;
	color: #999;
}

/* Responsive Design for Email Verification */
@media (max-width: 768px) {
	.input-with-button {
		flex-direction: column;
	}
	
	.input-with-button button {
		width: 100%;
	}
	
	.email-input-container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.email-input-container .btn {
		width: 100%;
		height: 54px; /* 높이 유지 */
		padding: 0;
	}
	
	.email-parts {
		flex-wrap: wrap;
		height: auto; /* 모바일에서는 자동 높이 */
	}
	
	.email-local-input, .email-domain-input {
		min-width: 100px;
		height: 54px; /* 높이 유지 */
	}
	
	.verification-input-group {
		flex-direction: column;
	}
	
	.verification-input-group button {
		width: 100%;
	}
} 

/* Compact buttons override (prevent full-width) */
.btn-sm, .btn-xs {
	width: auto !important;
	height: auto;
}

/* Ensure form action buttons in editor forms don't stretch full width */
.editor-container .btn,
.register-form .btn {
	width: auto;
}

/* Normalize extra-small button heights in editor forms */
.editor-container .btn.btn-xs,
.register-form .btn.btn-xs {
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 10px !important;
	font-size: 13px !important;
	line-height: 30px !important;
	border-radius: 4px !important;
}

/* Align sibling buttons inside the same action row */
.editor-container .form-group .btn.btn-xs + .btn.btn-xs,
.register-form .form-group .btn.btn-xs + .btn.btn-xs {
	margin-left: 8px;
}

/* Notice detail header with right-aligned actions */
.notice-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.notice-detail-header h2 { margin: 0; }

.notice-actions {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

.notice-actions form { display: inline-block; }

.notice-actions .btn { width: auto; height: auto; }

.notice-meta {
	margin: 0.25rem 0 1rem;
	color: #666;
	font-size: 14px;
}

/* Markdown-rendered content (notice/photo-news detail) */
#notice-body, #photo-news-body {
	line-height: 1.7;
	color: #222;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* Simplified Notice Options (no fancy styles) */
.notice-options {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 1rem;
	margin: 1rem 0 1.5rem;
	box-shadow: none;
}

.notice-options::before { display: none; content: none; }

/* Make options in one row, naturally wrapping */
.options-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
}

.option-item { flex: 1 1 360px; display: flex; align-items: center; gap: 0.75rem; }
.option-item .option-select { margin-left: auto; }

/* Place descriptions on the next line and align visually */
.option-item .option-desc { flex-basis: 100%; margin-left: 28px; white-space: normal; }
.option-item:nth-child(2) .option-desc { margin-left: 0; }

/* Keep select clean */
.option-select { border-width: 1px; } 

/* Photo Gallery Styles */
.photo-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 1rem 0;
}

.photo-item {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photo-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.photo-caption {
	padding: 1rem;
	margin: 0;
	font-size: 0.9rem;
	color: #495057;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

/* Image Upload Styles */
.image-upload-area {
	border: 2px dashed #ced4da;
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

.image-upload-area:hover {
	border-color: #0d6efd;
	background: #f0f8ff;
}

.image-input {
	width: 100%;
	margin-bottom: 1rem;
}

.upload-hint {
	color: #6c757d;
	font-size: 0.875rem;
}

.upload-hint p {
	margin: 0.25rem 0;
}

/* Current Images Display */
.current-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.current-image-item {
	text-align: center;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 0.5rem;
	background: #fff;
}

.current-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.image-name {
	font-size: 0.8rem;
	color: #6c757d;
	word-break: break-all;
}

/* Photo News Table Column Widths */
.photo-news-table th:nth-child(1), /* 제목 */
.photo-news-table td:nth-child(1) {
	width: 45%;
}

.photo-news-table th:nth-child(2), /* 공개 */
.photo-news-table td:nth-child(2) {
	width: 10%;
}

.photo-news-table th:nth-child(3), /* 조회 */
.photo-news-table td:nth-child(3) {
	width: 10%;
}

.photo-news-table th:nth-child(4), /* 게시일 */
.photo-news-table td:nth-child(4) {
	width: 35%;
}

/* Content Area for non-table pages */
.content-area {
	background: #fff;
	padding: 2rem;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
} 

/* 연혁 표 스타일 */
.history-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	table-layout: fixed;
}

.history-table th {
	background: #f8f9fa;
	padding: 1rem 1.25rem;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.history-table th:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table th:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table th:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.history-table td:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table td:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table td:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table tr:hover {
	background-color: #f8f9fa;
}

.history-number {
	width: 60px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.history-date {
	width: 120px !important;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: nowrap;
}

.history-content {
	width: calc(100% - 180px) !important;
	text-align: left;
	color: #212529;
	line-height: 1.5;
}

/* 페이지네이션 스타일 */
.pagination {
	margin-top: 2rem;
	padding: 1rem 0;
	border-top: 1px solid #e9ecef;
}

.pagination-info {
	text-align: center;
	margin-bottom: 1rem;
	color: #6c757d;
	font-size: 0.9rem;
}

.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination-btn {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	background: white;
	color: #007bff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.pagination-btn:hover {
	background: #007bff;
	color: white;
	border-color: #007bff;
	text-decoration: none;
}

.pagination-btn.current {
	background: #007bff;
	color: white;
	border-color: #007bff;
	font-weight: 600;
}

.pagination-btn:disabled {
	background: #f8f9fa;
	color: #6c757d;
	border-color: #dee2e6;
	cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.history-table {
		font-size: 0.9rem;
	}
	
	.history-table th,
	.history-table td {
		padding: 8px 12px;
	}
	
	.history-number {
		width: 60px;
	}
	
	.history-date {
		width: 100px;
	}
	
	.pagination-controls {
		gap: 0.25rem;
	}
	
	.pagination-btn {
		padding: 6px 10px;
		font-size: 0.8rem;
	}
} 

/* 추진계획 표 스타일 */
.plan-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.plan-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.plan-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.plan-table th:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table th:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table th:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table th:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: top;
}

.plan-table td:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table td:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table td:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table td:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table tr:hover {
	background-color: #f8f9fa;
}

.plan-year {
	width: 80px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
	vertical-align: middle;
}

.plan-title {
	width: 180px !important;
	text-align: left;
	color: #212529;
	font-weight: 500;
	vertical-align: middle;
}

.plan-details {
	width: 50% !important;
	text-align: left;
	color: #212529;
	line-height: 1.6;
}

.detail-item {
	margin-bottom: 8px;
	padding-left: 8px;
	border-left: 3px solid #007bff;
}

.detail-item:last-child {
	margin-bottom: 0;
}

.plan-direction {
	width: 30%;
	text-align: left;
	color: #495057;
	line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.plan-table {
		font-size: 0.9rem;
	}
	
	.plan-table th,
	.plan-table td {
		padding: 8px 12px;
	}
}

/* 개최현황 표 스타일 */
.events-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.events-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.events-table th:nth-child(1) { width: 60px; }   /* 번호 */
.events-table th:nth-child(2) { width: 40%; }   /* 학술행사명 */
.events-table th:nth-child(3) { width: 25%; }   /* 개최장소 */
.events-table th:nth-child(4) { width: 15%; }   /* 개최기간 */
.events-table th:nth-child(5) { width: 15%; }   /* 전화번호 */

.events-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.events-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.events-table tr:hover {
	background-color: #f8f9fa;
}

.events-number {
	width: 60px;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.events-name {
	width: 40%;
	text-align: left;
	color: #212529;
	font-weight: 500;
}

.events-location {
	width: 25%;
	text-align: left;
	color: #212529;
	line-height: 1.4;
}

.events-period {
	width: 15%;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.85rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.events-phone {
	width: 15%;
	text-align: center;
	color: #6c757d;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.8rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.events-table {
		font-size: 0.8rem;
	}
	
	.events-table th,
	.events-table td {
		padding: 8px 10px;
	}
	
	.events-number {
		width: 50px;
	}
	
	.events-name {
		width: 38%;
	}
	
	.events-location {
		width: 25%;
	}
	
	.events-period {
		width: 17%;
		font-size: 0.75rem;
	}
	
	.events-phone {
		width: 15%;
		font-size: 0.75rem;
	}
} 

/* Markdown editor (CodeMirror) heading visualization to match preview */
.toastui-editor-md-container .cm-header { font-weight: 700; line-height: 1.4; }
.toastui-editor-md-container .cm-header-1 { font-size: 1.8rem; }
.toastui-editor-md-container .cm-header-2 { font-size: 1.5rem; }
.toastui-editor-md-container .cm-header-3 { font-size: 1.25rem; }
.toastui-editor-md-container .cm-header-4 { font-size: 1.1rem; }
/* Fallback if level-specific classes are unavailable */
.toastui-editor-md-container .cm-quote .cm-header,
.toastui-editor-md-container .cm-quote.cm-header { font-size: 1.25rem; }
/* Slightly increase base font-size for better readability in MD pane (optional) */
/* .toastui-editor-md-container .CodeMirror { font-size: 0.98rem; } */

/* WYSIWYG visual decorator for quoted headings (display only) */
.toastui-editor-ww-container .ProseMirror blockquote p.md-h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin: 1.25rem 0 0.75rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin: 1.1rem 0 0.6rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 1rem 0 0.5rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.45; margin: 0.9rem 0 0.5rem; }

/* Tiptap Editor Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.btn-tiptap {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-tiptap:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.ProseMirror h1, .ProseMirror h2, .ProseMirror h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ProseMirror p {
    margin-bottom: 1em;
}

.ProseMirror ul, .ProseMirror ol {
    padding-left: 2em;
}

.ProseMirror blockquote {
    border-left: 3px solid #ddd;
    margin-left: 1em;
    padding-left: 1em;
    font-style: italic;
}

.ProseMirror pre {
    background: #f4f4f4;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
}

.ProseMirror code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.editor-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    /* Inherit the global line-height from the body */
    line-height: inherit; 
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tiptap Editor & Prose Content Common Styles */
.prose-content {
    line-height: 1.7;
}

.prose-content h1,
.prose-content h2,
.prose-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
    text-align: left; /* 명시적으로 좌측 정렬 지정 */
}
.prose-content h1 { font-size: 1.8rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }

.prose-content p {
    margin-bottom: 1em;
}

.prose-content ul,
.prose-content ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

.prose-content blockquote {
    border-left: 3px solid #ddd;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1em;
    font-style: italic;
    color: #555;
}

.prose-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}

.prose-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Article container on detail pages */
.post-article {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Tiptap Editor Specific Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom Radio Button Styles */
.radio-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.radio-button-label {
    margin-bottom: 0;
}

.radio-button-label input[type="radio"] {
    display: none; /* Hide default radio button */
}

.radio-button-custom {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px; /* pill shape */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.radio-button-label input[type="radio"]:checked + .radio-button-custom {
    background-color: #343a40; /* Dark theme color */
    color: white;
    border-color: #343a40;
}

.radio-button-label:hover .radio-button-custom {
    background-color: #f0f0f0;
}

.radio-button-label input[type="radio"]:checked:hover + .radio-button-custom {
    background-color: #23272b;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Registration Page Layout */
.registration-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-column {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
    min-width: 280px;
}

.form-column {
    flex: 2 1 500px;
}

.info-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #343a40;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.25rem 0;
}

.important-notice {
    font-size: 0.9rem;
    color: #c44;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .registration-page-container {
        flex-direction: column;
    }
}

.checkbox-group {
    margin-bottom: 1.5rem; /* form-group과 동일한 마진 */
}

.checkbox-label {
    display: inline-flex; /* 너비를 컨텐츠만큼만 차지하도록 변경 */
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #f0f0f0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Checkbox specific styles */
.form-group-checkbox {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 1rem;
    padding: 0.75rem 0; /* 다른 form-control과 높이를 맞추기 위한 패딩 */
}

.form-group-checkbox label {
    margin-bottom: 0; /* form-group의 label 기본 마진 제거 */
    flex-shrink: 0; /* 라벨 너비가 줄어들지 않도록 */
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;  /* 체크박스 크기 키우기 */
    height: 20px;
    cursor: pointer;
}

/* Auth Page Specific Styles */
.email-verification-section .btn {
    padding: 0.5rem 0.75rem; /* 버튼 내부 여백 추가 */
    font-size: 0.85rem; /* 버튼 글씨 크기 축소 */
    flex-shrink: 0; /* 버튼이 줄어들지 않도록 */
}

.auth-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-notice a {
    font-weight: bold;
    color: #856404;
}

/* Simple Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-close-btn {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hamburger Menu (Mobile) */
.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 10001;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #333;
	margin: 3px 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* Hamburger animation when active */
.hamburger.is-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: #fff;
	z-index: 10000;
	padding: 5rem 2rem 2rem;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.is-active {
	transform: translateX(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu nav > ul > li {
	display: block;
	width: 100%;
}

.mobile-menu nav > ul > li > a {
	display: block;
	padding: 1rem 0;
	font-size: 1.1rem;
	font-weight: 500;
	border-bottom: 1px solid #f0f0f0;
	color: #333;
	transition: color 0.2s ease;
	width: 100%;
}

.mobile-menu nav > ul > li > a:hover {
	color: #0066cc;
}

.mobile-menu nav > ul > li > a.is-active {
	color: #0066cc;
	font-weight: 600;
}

.mobile-menu .submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	background: #f5f5f5;
	transition: max-height 0.3s ease-in-out;
	width: 100%;
	display: block;
}

.mobile-menu .submenu.is-open {
	max-height: 300px;
}

.mobile-menu .submenu li {
	display: block;
	width: 100%;
}

.mobile-menu .submenu li a {
	display: block;
	font-size: 0.9rem;
	font-weight: 400;
	color: #666;
	padding: 0.7rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.mobile-menu .submenu li:last-child a {
	border-bottom: none;
}

.mobile-menu .submenu li a:hover {
	background: #e9ecef;
	color: #333;
}

.mobile-auth {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.mobile-auth span { 
	font-weight: 500;
	color: #333;
	margin-bottom: 0.5rem;
}

.mobile-auth a { 
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	border-radius: 6px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mobile-auth a[href="/login"] {
	background: #f8f9fa;
	color: #333;
	border: 1px solid #dee2e6;
}

.mobile-auth a[href="/login"]:hover {
	background: #e9ecef;
}

.mobile-auth a[href="/register"] {
	background: #333;
	color: #fff;
	border: 1px solid #333;
}

.mobile-auth a[href="/register"]:hover {
	background: #555;
}

.mobile-auth a[href="/logout"],
.mobile-auth a[href="/mypage"] {
	background: transparent;
	color: #333;
	border: 1px solid #e0e0e0;
}

.mobile-auth a[href="/logout"]:hover,
.mobile-auth a[href="/mypage"]:hover {
	background: #f0f0f0;
	border-color: #d0d0d0;
}

@media (max-width: 1024px) {
	/* 데스크톱 네비게이션 완전히 숨기기 */
	.desktop-nav, .desktop-auth {
		display: none !important;
	}
	
	/* 햄버거 메뉴와 모바일 메뉴 활성화 */
	.hamburger {
		display: flex;
	}
	.mobile-menu, .mobile-menu-overlay {
		display: block;
	}

	/* 헤더 레이아웃 조정 */
	.header-container {
		height: auto;
		padding: 1rem 2rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 2rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		flex: 1;
		text-align: center;
		margin: 0;
	}

	.logo h1 {
		font-size: 1.3rem;
		margin: 0;
	}
	
	/* 데스크톱 네비게이션 스타일 완전히 무효화 */
	nav ul { 
		display: none !important;
	}
	
	/* 메가메뉴 완전히 숨기기 */
	.mega-menu {
		display: none !important;
	}
	
	/* 모바일 메뉴가 올바르게 작동하도록 보장 */
	.mobile-menu nav ul {
		display: flex !important;
		flex-direction: column !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		gap: 0 !important; /* 데스크톱 네비게이션의 큰 gap 제거 */
	}
	
	/* 1024px에서 세부메뉴 간격을 768px와 동일하게 조정 */
	.mobile-menu .submenu li a {
		padding: 0.7rem 1.5rem !important;
	}
	
	.mobile-menu .submenu.is-open {
		padding: 0.5rem 0 !important;
	}
}

@media (max-width: 768px) {
	.header-container {
		height: auto;
		padding: 1rem 1.25rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 1.25rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		text-align: center;
	}

	.logo h1 {
		font-size: 1.2rem;
		margin: 0;
	}
	nav ul {
		gap: 0.75rem 1rem; /* 메뉴 간격 축소 */
		flex-wrap: wrap;
	}
	/* 모바일에서는 메가메뉴 기본 비노출로 헤더 높이 급증 방지 */
	nav:hover .mega-menu { display: none; }
	.mega-menu { display: none; }
	.mega-section + .mega-section { margin-top: 0.75rem; }
	/* 네비 링크 패딩으로 호버 영역 확보 */
	nav ul li > a { 
		padding: 0.75rem 0.5rem 1rem 0.5rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
		display: block; /* 호버 영역 확장 */
	}
	.br-md { display: inline; }
	
	/* Notice options responsive */
	.options-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.notice-options {
		padding: 1rem;
		margin: 1.5rem 0;
	}
	
	.option-item:first-child,
	.option-item:last-child {
		padding: 1rem;
	}
	
	/* Mobile sidebar layout */
	.page-with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}
	
	.sidebar-left {
		display: none;
	}
	
	.notice-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.notice-header h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	nav ul {
		flex-wrap: wrap;
		gap: 1rem 1.2rem;
	}
	.br-lg { display: inline; }
}

@media (max-width: 768px) {
	.history-table {
		min-width: 600px;
	}
	.plan-table {
		min-width: 800px;
	}
	.events-table {
		min-width: 800px;
	}

	.notice-table {
		font-size: 0.9rem;
	}

	.notice-table .notice-link {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
	}
}

/* Google Fonts Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css');

/* Registration Success Page Styles */
.registration-success-container {
	max-width: 700px;
	margin: 0 auto;
	padding: 3rem 2rem;
	text-align: center;
}

.success-icon {
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
	0% {
		transform: scale(0.8);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.success-content {
	animation: slideUp 0.8s ease-out 0.3s both;
}

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

.success-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.success-subtitle {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 3rem;
	line-height: 1.6;
}

.success-steps {
	text-align: left;
	margin-bottom: 3rem;
}

.step-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 12px;
	border-left: 4px solid #0066cc;
	transition: all 0.3s ease;
}

.step-item:hover {
	background: #f0f7ff;
	transform: translateX(5px);
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.step-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.step-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
}

.step-content p {
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.success-actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 3rem;
	align-items: center;
}

.btn-large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 250px;
	justify-content: center;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-large:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-large svg {
	transition: transform 0.3s ease;
}

.btn-large:hover svg {
	transform: translateX(3px);
}

.contact-info {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-info p {
	margin-bottom: 0.5rem;
	color: #666;
}

.contact-info p:first-child {
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.contact-info a {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.contact-info a:hover {
	text-decoration: underline;
}

/* Responsive Design for Success Page */
@media (max-width: 768px) {
	.registration-success-container {
		padding: 2rem 1rem;
	}
	
	.success-title {
		font-size: 1.6rem;
	}
	
	.success-subtitle {
		font-size: 1rem;
	}
	
	.step-item {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	
	.step-content {
		text-align: center;
	}
	
	.success-actions {
		gap: 0.75rem;
	}
	
	.btn-large {
		min-width: 100%;
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
	
	.contact-info {
		padding: 1.5rem;
	}
}

.input-with-button {
	display: flex;
	gap: 1rem;
}

.input-with-button input {
	flex-grow: 1;
	height: 54px; /* 모든 input 동일한 높이 */
	box-sizing: border-box;
}

.input-with-button button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 모든 버튼 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Input Container */
.email-input-container {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.email-parts {
	display: flex;
	align-items: stretch;
	flex-grow: 1;
	border: none; /* 전체 테두리 제거 */
	border-radius: 0;
	padding: 0;
	background: #ffffff;
	transition: all 0.2s ease;
	height: 54px; /* 다른 input과 동일한 높이 */
	gap: 0; /* 요소 간 간격 제거 */
}

/* 전체 컨테이너 포커스 효과 제거 */
/* .email-parts:focus-within 스타일 제거 */

.email-local-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-right: none; /* 오른쪽 테두리 제거하여 @ 기호와 연결 */
	outline: none;
	padding: 1rem;
	flex: 1;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-local-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-local-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.email-at {
	color: #6a6a6a;
	font-weight: 500;
	padding: 0 0.5rem;
	user-select: none;
	display: flex;
	align-items: center;
	font-size: 1rem;
	border-top: 1px solid #d0d0d0; /* @ 기호 영역에도 테두리 */
	border-bottom: 1px solid #d0d0d0;
	background: #ffffff;
	height: 100%;
	box-sizing: border-box;
}

.email-domain-container {
	display: flex;
	align-items: stretch;
	position: relative;
}

.email-domain-input {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 @ 기호와 연결 */
	border-right: none; /* 오른쪽 테두리 제거하여 select와 연결 */
	outline: none;
	padding: 1rem;
	min-width: 120px;
	background: #ffffff;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 100%;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.email-domain-input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.email-domain-input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.domain-select {
	border: 1px solid #d0d0d0; /* 개별 테두리 추가 */
	border-left: none; /* 왼쪽 테두리 제거하여 input과 연결 */
	outline: none;
	background: #ffffff;
	padding: 1rem 0.5rem;
	font-size: 0.9rem;
	color: #6a6a6a;
	cursor: pointer;
	height: 100%;
	box-sizing: border-box;
}

.domain-select:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
	z-index: 1;
	position: relative;
}

.domain-select:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.email-input-container .btn {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	margin: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

/* Email Verification Section */
.email-verification-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e8e8e8;
}

.verification-section {
	margin-top: 1rem;
}

.verification-input-group {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.verification-input-group input {
	flex-grow: 1;
	padding: 1rem;
	border: 1px solid #d0d0d0;
	background: #ffffff;
	font-size: 1rem;
	transition: all 0.2s ease;
	font-family: inherit;
	letter-spacing: -0.1px;
	height: 54px; /* 다른 input과 동일한 높이 */
	box-sizing: border-box;
}

.verification-input-group input:focus {
	outline: none;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.verification-input-group button {
	flex-shrink: 0;
	width: 120px;
	height: 54px; /* 다른 input과 동일한 높이 */
	padding: 0;
	font-size: 0.9rem; /* 버튼 텍스트 크기 조정 */
}

.verification-help {
	margin-top: 0.5rem;
}

.verification-help small {
	color: #6a6a6a;
	font-size: 0.8rem;
}

.email-verified-message {
	margin-top: 1rem;
	padding: 1rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
}

.success-message {
	display: flex;
	align-items: center;
	color: #155724;
	font-weight: 500;
}

.icon-check {
	margin-right: 0.5rem;
	font-size: 1.2rem;
	color: #28a745;
}

/* Enhanced Timer */
.timer {
	margin-top: 0.5rem;
	color: #28a745;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Success Toast */
.success-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #28a745;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Input Enhancements */
.input-with-button input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.verification-input-group input:disabled {
	background-color: #f8f9fa;
	color: #6a6a6a;
	cursor: not-allowed;
}

.btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.btn:disabled:hover {
	background-color: #ccc;
}

.btn.btn-secondary {
	background: #e8e8e8;
	color: #4a4a4a;
}

.btn.btn-secondary:hover {
	background: #d8d8d8;
}

.btn.btn-secondary:disabled {
	background-color: #ccc;
	color: #999;
}

/* Responsive Design for Email Verification */
@media (max-width: 768px) {
	.input-with-button {
		flex-direction: column;
	}
	
	.input-with-button button {
		width: 100%;
	}
	
	.email-input-container {
		flex-direction: column;
		gap: 1rem;
	}
	
	.email-input-container .btn {
		width: 100%;
		height: 54px; /* 높이 유지 */
		padding: 0;
	}
	
	.email-parts {
		flex-wrap: wrap;
		height: auto; /* 모바일에서는 자동 높이 */
	}
	
	.email-local-input, .email-domain-input {
		min-width: 100px;
		height: 54px; /* 높이 유지 */
	}
	
	.verification-input-group {
		flex-direction: column;
	}
	
	.verification-input-group button {
		width: 100%;
	}
} 

/* Compact buttons override (prevent full-width) */
.btn-sm, .btn-xs {
	width: auto !important;
	height: auto;
}

/* Ensure form action buttons in editor forms don't stretch full width */
.editor-container .btn,
.register-form .btn {
	width: auto;
}

/* Normalize extra-small button heights in editor forms */
.editor-container .btn.btn-xs,
.register-form .btn.btn-xs {
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 10px !important;
	font-size: 13px !important;
	line-height: 30px !important;
	border-radius: 4px !important;
}

/* Align sibling buttons inside the same action row */
.editor-container .form-group .btn.btn-xs + .btn.btn-xs,
.register-form .form-group .btn.btn-xs + .btn.btn-xs {
	margin-left: 8px;
}

/* Notice detail header with right-aligned actions */
.notice-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.notice-detail-header h2 { margin: 0; }

.notice-actions {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
}

.notice-actions form { display: inline-block; }

.notice-actions .btn { width: auto; height: auto; }

.notice-meta {
	margin: 0.25rem 0 1rem;
	color: #666;
	font-size: 14px;
}

/* Markdown-rendered content (notice/photo-news detail) */
#notice-body, #photo-news-body {
	line-height: 1.7;
	color: #222;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

/* Simplified Notice Options (no fancy styles) */
.notice-options {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 1rem;
	margin: 1rem 0 1.5rem;
	box-shadow: none;
}

.notice-options::before { display: none; content: none; }

/* Make options in one row, naturally wrapping */
.options-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
}

.option-item { flex: 1 1 360px; display: flex; align-items: center; gap: 0.75rem; }
.option-item .option-select { margin-left: auto; }

/* Place descriptions on the next line and align visually */
.option-item .option-desc { flex-basis: 100%; margin-left: 28px; white-space: normal; }
.option-item:nth-child(2) .option-desc { margin-left: 0; }

/* Keep select clean */
.option-select { border-width: 1px; } 

/* Photo Gallery Styles */
.photo-gallery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 1rem 0;
}

.photo-item {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.photo-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.photo-caption {
	padding: 1rem;
	margin: 0;
	font-size: 0.9rem;
	color: #495057;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

/* Image Upload Styles */
.image-upload-area {
	border: 2px dashed #ced4da;
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	background: #f8f9fa;
	transition: all 0.2s ease;
}

.image-upload-area:hover {
	border-color: #0d6efd;
	background: #f0f8ff;
}

.image-input {
	width: 100%;
	margin-bottom: 1rem;
}

.upload-hint {
	color: #6c757d;
	font-size: 0.875rem;
}

.upload-hint p {
	margin: 0.25rem 0;
}

/* Current Images Display */
.current-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

.current-image-item {
	text-align: center;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 0.5rem;
	background: #fff;
}

.current-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.image-name {
	font-size: 0.8rem;
	color: #6c757d;
	word-break: break-all;
}

/* Photo News Table Column Widths */
.photo-news-table th:nth-child(1), /* 제목 */
.photo-news-table td:nth-child(1) {
	width: 45%;
}

.photo-news-table th:nth-child(2), /* 공개 */
.photo-news-table td:nth-child(2) {
	width: 10%;
}

.photo-news-table th:nth-child(3), /* 조회 */
.photo-news-table td:nth-child(3) {
	width: 10%;
}

.photo-news-table th:nth-child(4), /* 게시일 */
.photo-news-table td:nth-child(4) {
	width: 35%;
}

/* Content Area for non-table pages */
.content-area {
	background: #fff;
	padding: 2rem;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
} 

/* 연혁 표 스타일 */
.history-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	table-layout: fixed;
}

.history-table th {
	background: #f8f9fa;
	padding: 1rem 1.25rem;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.history-table th:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table th:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table th:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.history-table td:nth-child(1) { width: 60px !important; }   /* 번호 */
.history-table td:nth-child(2) { width: 120px !important; } /* 날짜 */
.history-table td:nth-child(3) { width: calc(100% - 180px) !important; } /* 내용 */

.history-table tr:hover {
	background-color: #f8f9fa;
}

.history-number {
	width: 60px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.history-date {
	width: 120px !important;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: nowrap;
}

.history-content {
	width: calc(100% - 180px) !important;
	text-align: left;
	color: #212529;
	line-height: 1.5;
}

/* 페이지네이션 스타일 */
.pagination {
	margin-top: 2rem;
	padding: 1rem 0;
	border-top: 1px solid #e9ecef;
}

.pagination-info {
	text-align: center;
	margin-bottom: 1rem;
	color: #6c757d;
	font-size: 0.9rem;
}

.pagination-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination-btn {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid #dee2e6;
	background: white;
	color: #007bff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.pagination-btn:hover {
	background: #007bff;
	color: white;
	border-color: #007bff;
	text-decoration: none;
}

.pagination-btn.current {
	background: #007bff;
	color: white;
	border-color: #007bff;
	font-weight: 600;
}

.pagination-btn:disabled {
	background: #f8f9fa;
	color: #6c757d;
	border-color: #dee2e6;
	cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.history-table {
		font-size: 0.9rem;
	}
	
	.history-table th,
	.history-table td {
		padding: 8px 12px;
	}
	
	.history-number {
		width: 60px;
	}
	
	.history-date {
		width: 100px;
	}
	
	.pagination-controls {
		gap: 0.25rem;
	}
	
	.pagination-btn {
		padding: 6px 10px;
		font-size: 0.8rem;
	}
} 

/* 추진계획 표 스타일 */
.plan-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.plan-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.plan-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.plan-table th:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table th:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table th:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table th:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: top;
}

.plan-table td:nth-child(1) { width: 80px !important; }   /* 년도 */
.plan-table td:nth-child(2) { width: 180px !important; } /* 추진사업제목 */
.plan-table td:nth-child(3) { width: 50% !important; }   /* 세부추진계획 */
.plan-table td:nth-child(4) { width: 30% !important; }   /* 사업의 추진방향 */

.plan-table tr:hover {
	background-color: #f8f9fa;
}

.plan-year {
	width: 80px !important;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
	vertical-align: middle;
}

.plan-title {
	width: 180px !important;
	text-align: left;
	color: #212529;
	font-weight: 500;
	vertical-align: middle;
}

.plan-details {
	width: 50% !important;
	text-align: left;
	color: #212529;
	line-height: 1.6;
}

.detail-item {
	margin-bottom: 8px;
	padding-left: 8px;
	border-left: 3px solid #007bff;
}

.detail-item:last-child {
	margin-bottom: 0;
}

.plan-direction {
	width: 30%;
	text-align: left;
	color: #495057;
	line-height: 1.5;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.plan-table {
		font-size: 0.9rem;
	}
	
	.plan-table th,
	.plan-table td {
		padding: 8px 12px;
	}
}

/* 개최현황 표 스타일 */
.events-table-container {
	margin-bottom: 2rem;
	overflow-x: auto;
}

.events-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e0e0e0;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
	table-layout: fixed;
}

.events-table th:nth-child(1) { width: 60px; }   /* 번호 */
.events-table th:nth-child(2) { width: 40%; }   /* 학술행사명 */
.events-table th:nth-child(3) { width: 25%; }   /* 개최장소 */
.events-table th:nth-child(4) { width: 15%; }   /* 개최기간 */
.events-table th:nth-child(5) { width: 15%; }   /* 전화번호 */

.events-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
	color: #495057;
}

.events-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	vertical-align: middle;
}

.events-table tr:hover {
	background-color: #f8f9fa;
}

.events-number {
	width: 60px;
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.events-name {
	width: 40%;
	text-align: left;
	color: #212529;
	font-weight: 500;
}

.events-location {
	width: 25%;
	text-align: left;
	color: #212529;
	line-height: 1.4;
}

.events-period {
	width: 15%;
	text-align: center;
	color: #495057;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.85rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.events-phone {
	width: 15%;
	text-align: center;
	color: #6c757d;
	font-family: 'Courier New', monospace;
	white-space: normal;
	font-size: 0.8rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.events-table {
		font-size: 0.8rem;
	}
	
	.events-table th,
	.events-table td {
		padding: 8px 10px;
	}
	
	.events-number {
		width: 50px;
	}
	
	.events-name {
		width: 38%;
	}
	
	.events-location {
		width: 25%;
	}
	
	.events-period {
		width: 17%;
		font-size: 0.75rem;
	}
	
	.events-phone {
		width: 15%;
		font-size: 0.75rem;
	}
} 

/* Markdown editor (CodeMirror) heading visualization to match preview */
.toastui-editor-md-container .cm-header { font-weight: 700; line-height: 1.4; }
.toastui-editor-md-container .cm-header-1 { font-size: 1.8rem; }
.toastui-editor-md-container .cm-header-2 { font-size: 1.5rem; }
.toastui-editor-md-container .cm-header-3 { font-size: 1.25rem; }
.toastui-editor-md-container .cm-header-4 { font-size: 1.1rem; }
/* Fallback if level-specific classes are unavailable */
.toastui-editor-md-container .cm-quote .cm-header,
.toastui-editor-md-container .cm-quote.cm-header { font-size: 1.25rem; }
/* Slightly increase base font-size for better readability in MD pane (optional) */
/* .toastui-editor-md-container .CodeMirror { font-size: 0.98rem; } */

/* WYSIWYG visual decorator for quoted headings (display only) */
.toastui-editor-ww-container .ProseMirror blockquote p.md-h1 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; margin: 1.25rem 0 0.75rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin: 1.1rem 0 0.6rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 1rem 0 0.5rem; }
.toastui-editor-ww-container .ProseMirror blockquote p.md-h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.45; margin: 0.9rem 0 0.5rem; }

/* Tiptap Editor Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.btn-tiptap {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-tiptap:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.ProseMirror h1, .ProseMirror h2, .ProseMirror h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.ProseMirror p {
    margin-bottom: 1em;
}

.ProseMirror ul, .ProseMirror ol {
    padding-left: 2em;
}

.ProseMirror blockquote {
    border-left: 3px solid #ddd;
    margin-left: 1em;
    padding-left: 1em;
    font-style: italic;
}

.ProseMirror pre {
    background: #f4f4f4;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
}

.ProseMirror code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
}

.btn-tiptap.is-active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.editor-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    /* Inherit the global line-height from the body */
    line-height: inherit; 
}

.tiptap-editor {
    border: 1px solid #ced4da;
    padding: 1rem;
    min-height: 300px;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.tiptap-editor:focus-within {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tiptap Editor & Prose Content Common Styles */
.prose-content {
    line-height: 1.7;
}

.prose-content h1,
.prose-content h2,
.prose-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
    text-align: left; /* 명시적으로 좌측 정렬 지정 */
}
.prose-content h1 { font-size: 1.8rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }

.prose-content p {
    margin-bottom: 1em;
}

.prose-content ul,
.prose-content ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

.prose-content blockquote {
    border-left: 3px solid #ddd;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1em;
    font-style: italic;
    color: #555;
}

.prose-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content code {
    background: rgba(0, 0, 0, 0.05);
    color: #c7254e;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}

.prose-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* Article container on detail pages */
.post-article {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Tiptap Editor Specific Styles */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ProseMirror {
    outline: none;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom Radio Button Styles */
.radio-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.radio-button-label {
    margin-bottom: 0;
}

.radio-button-label input[type="radio"] {
    display: none; /* Hide default radio button */
}

.radio-button-custom {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px; /* pill shape */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 0.9rem;
}

.radio-button-label input[type="radio"]:checked + .radio-button-custom {
    background-color: #343a40; /* Dark theme color */
    color: white;
    border-color: #343a40;
}

.radio-button-label:hover .radio-button-custom {
    background-color: #f0f0f0;
}

.radio-button-label input[type="radio"]:checked:hover + .radio-button-custom {
    background-color: #23272b;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Registration Page Layout */
.registration-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-column {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
    min-width: 280px;
}

.form-column {
    flex: 2 1 500px;
}

.info-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-top: 0;
    border-bottom: 2px solid #343a40;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.25rem 0;
}

.important-notice {
    font-size: 0.9rem;
    color: #c44;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .registration-page-container {
        flex-direction: column;
    }
}

.checkbox-group {
    margin-bottom: 1.5rem; /* form-group과 동일한 마진 */
}

.checkbox-label {
    display: inline-flex; /* 너비를 컨텐츠만큼만 차지하도록 변경 */
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #f0f0f0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Checkbox specific styles */
.form-group-checkbox {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 1rem;
    padding: 0.75rem 0; /* 다른 form-control과 높이를 맞추기 위한 패딩 */
}

.form-group-checkbox label {
    margin-bottom: 0; /* form-group의 label 기본 마진 제거 */
    flex-shrink: 0; /* 라벨 너비가 줄어들지 않도록 */
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;  /* 체크박스 크기 키우기 */
    height: 20px;
    cursor: pointer;
}

/* Auth Page Specific Styles */
.email-verification-section .btn {
    padding: 0.5rem 0.75rem; /* 버튼 내부 여백 추가 */
    font-size: 0.85rem; /* 버튼 글씨 크기 축소 */
    flex-shrink: 0; /* 버튼이 줄어들지 않도록 */
}

.auth-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-notice a {
    font-weight: bold;
    color: #856404;
}

/* Simple Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-close-btn {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Hamburger Menu (Mobile) */
.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 10001;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
}

.hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #333;
	margin: 3px 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

/* Hamburger animation when active */
.hamburger.is-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
	opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: #fff;
	z-index: 10000;
	padding: 5rem 2rem 2rem;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.is-active {
	transform: translateX(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu nav > ul > li {
	display: block;
	width: 100%;
}

.mobile-menu nav > ul > li > a {
	display: block;
	padding: 1rem 0;
	font-size: 1.1rem;
	font-weight: 500;
	border-bottom: 1px solid #f0f0f0;
	color: #333;
	transition: color 0.2s ease;
	width: 100%;
}

.mobile-menu nav > ul > li > a:hover {
	color: #0066cc;
}

.mobile-menu nav > ul > li > a.is-active {
	color: #0066cc;
	font-weight: 600;
}

.mobile-menu .submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	background: #f5f5f5;
	transition: max-height 0.3s ease-in-out;
	width: 100%;
	display: block;
}

.mobile-menu .submenu.is-open {
	max-height: 300px;
}

.mobile-menu .submenu li {
	display: block;
	width: 100%;
}

.mobile-menu .submenu li a {
	display: block;
	font-size: 0.9rem;
	font-weight: 400;
	color: #666;
	padding: 0.7rem 1.5rem;
	border-bottom: 1px solid #e9ecef;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.mobile-menu .submenu li:last-child a {
	border-bottom: none;
}

.mobile-menu .submenu li a:hover {
	background: #e9ecef;
	color: #333;
}

.mobile-auth {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.mobile-auth span { 
	font-weight: 500;
	color: #333;
	margin-bottom: 0.5rem;
}

.mobile-auth a { 
	display: block;
	padding: 0.75rem 1rem;
	text-align: center;
	border-radius: 6px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.mobile-auth a[href="/login"] {
	background: #f8f9fa;
	color: #333;
	border: 1px solid #dee2e6;
}

.mobile-auth a[href="/login"]:hover {
	background: #e9ecef;
}

.mobile-auth a[href="/register"] {
	background: #333;
	color: #fff;
	border: 1px solid #333;
}

.mobile-auth a[href="/register"]:hover {
	background: #555;
}

.mobile-auth a[href="/logout"],
.mobile-auth a[href="/mypage"] {
	background: transparent;
	color: #333;
	border: 1px solid #e0e0e0;
}

.mobile-auth a[href="/logout"]:hover,
.mobile-auth a[href="/mypage"]:hover {
	background: #f0f0f0;
	border-color: #d0d0d0;
}

@media (max-width: 1024px) {
	/* 데스크톱 네비게이션 완전히 숨기기 */
	.desktop-nav, .desktop-auth {
		display: none !important;
	}
	
	/* 햄버거 메뉴와 모바일 메뉴 활성화 */
	.hamburger {
		display: flex;
	}
	.mobile-menu, .mobile-menu-overlay {
		display: block;
	}

	/* 헤더 레이아웃 조정 */
	.header-container {
		height: auto;
		padding: 1rem 2rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 2rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		flex: 1;
		text-align: center;
		margin: 0;
	}

	.logo h1 {
		font-size: 1.3rem;
		margin: 0;
	}
	
	/* 데스크톱 네비게이션 스타일 완전히 무효화 */
	nav ul { 
		display: none !important;
	}
	
	/* 메가메뉴 완전히 숨기기 */
	.mega-menu {
		display: none !important;
	}
	
	/* 모바일 메뉴가 올바르게 작동하도록 보장 */
	.mobile-menu nav ul {
		display: flex !important;
		flex-direction: column !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
		gap: 0 !important; /* 데스크톱 네비게이션의 큰 gap 제거 */
	}
	
	/* 1024px에서 세부메뉴 간격을 768px와 동일하게 조정 */
	.mobile-menu .submenu li a {
		padding: 0.7rem 1.5rem !important;
	}
	
	.mobile-menu .submenu.is-open {
		padding: 0.5rem 0 !important;
	}
}

@media (max-width: 768px) {
	.header-container {
		height: auto;
		padding: 1rem 1.25rem;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.hamburger {
		position: absolute;
		left: 1.25rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.logo {
		text-align: center;
	}

	.logo h1 {
		font-size: 1.2rem;
		margin: 0;
	}
	nav ul {
		gap: 0.75rem 1rem; /* 메뉴 간격 축소 */
		flex-wrap: wrap;
	}
	/* 모바일에서는 메가메뉴 기본 비노출로 헤더 높이 급증 방지 */
	nav:hover .mega-menu { display: none; }
	.mega-menu { display: none; }
	.mega-section + .mega-section { margin-top: 0.75rem; }
	/* 네비 링크 패딩으로 호버 영역 확보 */
	nav ul li > a { 
		padding: 0.75rem 0.5rem 1rem 0.5rem; /* 하단 패딩 추가로 메가메뉴와의 갭 해결 */
		display: block; /* 호버 영역 확장 */
	}
	.br-md { display: inline; }
	
	/* Notice options responsive */
	.options-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.notice-options {
		padding: 1rem;
		margin: 1.5rem 0;
	}
	
	.option-item:first-child,
	.option-item:last-child {
		padding: 1rem;
	}
	
	/* Mobile sidebar layout */
	.page-with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}
	
	.sidebar-left {
		display: none;
	}
	
	.notice-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.notice-header h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	nav ul {
		flex-wrap: wrap;
		gap: 1rem 1.2rem;
	}
	.br-lg { display: inline; }
}

/* --- Abstract Body Styles --- */
.abstract-body {
  white-space: pre-wrap; /* 줄바꿈과 공백 유지 */
  line-height: 1.6; /* 가독성을 위한 줄 간격 */
  word-wrap: break-word; /* 긴 단어 줄바꿈 */
  max-width: 100%; /* 컨테이너 너비 초과 방지 */
  padding: 1rem; /* 내부 여백 */
  background-color: #f8f9fa; /* 배경색으로 구분 */ /* 색만 제거 (두께/레이아웃 유지) */
  border-radius: 4px; /* 모서리 둥글게 */
  margin-top: 0.5rem; /* 상단 여백 */
}

/* --- Popup Styles --- */
.popup-window {
  position: fixed;
  z-index: 10000;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  cursor: move; /* 드래그 가능하도록 커서 변경 */
}

/* 반응형 팝업 크기 조정 */
@media (max-width: 768px) {
  .popup-window {
    width: 90vw !important;
    height: auto !important;
    max-width: 350px !important;
    max-height: 80vh !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

@media (max-width: 480px) {
  .popup-window {
    width: 95vw !important;
    height: auto !important;
    max-width: 300px !important;
    max-height: 70vh !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

.popup-content {
  flex-grow: 1;
  padding: 0;
  overflow: hidden; /* 이미지가 밖으로 나가지 않도록 */
}

.popup-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* 이미지가 비율을 유지하며 꽉 차게 */
}

/* 모바일에서 이미지 최적화 */
@media (max-width: 768px) {
  .popup-content img {
    object-fit: contain; /* 모바일에서는 이미지 전체가 보이도록 */
    max-height: 60vh; /* 최대 높이 제한 */
  }
  
  .popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.popup-footer {
  padding: 8px 12px;
  background-color: #f1f1f1;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.popup-footer label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.popup-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 5px;
}
