/* 화면 전체 높이를 위한 설정 */
html,
body {
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	flex-direction: column;
	background-color: #fffefa;
	font-family: sans-serif;
}

.sidebar {
	width: 180px;
	background-color: #D6CCC2;
	border-right: 1px solid #D5BDAF;
	border-left: 1px solid #D5BDAF;
	display: flex;
	flex-direction: column;
	/* 좌우와 하단 패딩은 유지하고, 상단 패딩은 0으로 설정 */
	padding: 0 10px 10px;
}

/* 기존 sidebar-title 스타일 그대로 사용 */
.sidebar-title {
	margin: 0 -10px 10px;
	width: calc(100% + 20px);
	box-sizing: border-box;
	cursor: pointer;
	padding: 12px 10px;
	text-align: center;
	background-color: #F5EBE0;
	border-bottom: 1px solid #D5BDAF;
	font-size: 18px;
	font-weight: bold;
	color: #333;
}

.menu-button {
	margin: 0 -10px;
	width: calc(100% + 20px);
	padding: 12px;
	text-align: center;
	background-color: #F5EBE0;
	border: none;
	border-bottom: 1px solid #D5BDAF;
	font-size: 16px;
	cursor: pointer;
	color: #333;
	transition: background-color 0.3s;
	 word-break: keep-all;

}

/* 본문 영역 */

.container {
	display: flex;
	flex: 1;
	
	padding-left: 7%;
	padding-right: 7%;
	gap: 20px;
}

.info-modal-content {
	background: white;
	border-radius: 10px;
	width: 90%;
	max-width: 700px;
	height: 380px;
	padding: 20px;
	box-sizing: border-box;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.info-modal-input {
	width: 60%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
	font-family: 'Pretendard', 'Arial', sans-serif;
	box-sizing: border-box;
	color: #333;
	display: block;
}

.infoModalButton {
	display: block;
	width: 10%;
	padding: 12px;
	text-align: center;
	background-color: #F5EBE0;
	border: none;

	font-size: 16px;
	cursor: pointer;
	color: #333;
	border-radius: 10%;
	margin-bottom: 5px;
}

/* 프로그램 이미지 (정사각형) */
.program-image {
	flex: 1 1 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.program-image img {
	width: 600px;
	object-fit: cover;
	border-radius: 12px;
}

/* 프로그램 정보 */
.program-info {
	display: flex;
	width: 600px;
	flex-direction: column;
	justify-content: center;
}

.program-info h2 {
	margin-bottom: 16px;
	color: #333;
}

.program-info ul {
	list-style: none;
	padding: 0;
	margin-bottom: 20px;
}

.program-info li {
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.4;
}

.program-info li::before {
	content: '– ';
	color: #555;
}

/* 신청 정보 및 버튼 영역 */
.program-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #ddd;
	padding-top: 15px;
	margin-top: auto;
}

.content {
	flex: 1;
	padding: 3%;
	background-color: #FFFFFF;
	display: flex;
	flex-direction: column;
	align-items: center;

}

.capacity {
	font-size: 14px;
	color: #888;
}

.apply-btn {
	background-color: #F5EBE0;
	color: #333;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
}

.apply-btn:disabled {
	background-color: #ddd;
	color: #aaa;
	cursor: not-allowed;
}

/* 개인정보 동의 모달 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 9999;
	display: none;
}

.modal-overlay.show {
	display: flex;
}

.modal-content {
	background: white;
	border-radius: 10px;
	width: 90%;
	max-width: 700px;
	height: 600px;
	padding: 20px;
	box-sizing: border-box;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

/* 스크롤 가능한 영역 */
.scroll-box {
	height: calc(100% - 150px);
	overflow-y: auto;
	border: 1px solid #ccc;
	padding: 10px;
	margin: 10px 0;
	font-size: 14px;
	background: #fafafa;

}

/* 버튼 */
#confirmApplyBtn,
#cancelApplyBtn {
	padding: 12px;
	font-size: 16px;
	cursor: pointer;
	background-color: #F5EBE0;
	color: #333;
	border: none;
	border-radius: 8px;
	width: 100px;
}

/* 스피너 오버레이 */
.spinner-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: none;
}

.spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border: 6px solid #f3f3f3;
	border-top: 6px solid #f5cc00;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

	100% {
		transform: rotate(360deg);
	}
}

/* 반응형 대응 */
@media (max-width: 768px) {
	.program-detail-container {
		flex-direction: column;
	}
}

/* 푸터 하단 고정 */
footer,
.footer {
	flex-shrink: 0;
	margin-top: auto;
}