

/* 메인 컨테이너 */
#content .content_area {
	width: 1700px;
	margin: 100px auto;
}


.content_area #event_list {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

.ongoing_event_list_container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-top: 50px;
	margin-left: 20px;
}

/* 이벤트 카드 기본 스타일 */
.event_card {
	width: 380px;
	height: 600px;
	background: #fffef7;
	border-radius: 15px;
	border: 2px solid #f5f5f0;
	box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	overflow: hidden;
}

.event_card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
	border-color: #dc143c;
}

.event_image {
	width: 100%;
	height: 400px;
	padding: 20px 20px 0 20px;
	box-sizing: border-box;
}

.event_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.event_card dl {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	margin: 0;
}


.event_card dl dt {
	background: #dc143c;
	color: white;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	padding: 12px 0;
	border-radius: 8px;
	margin-bottom: 15px;
	letter-spacing: 0.5px;
}


.event_card dl dd {
	background: white;
	border: 2px solid #f0f0f0;
	border-radius: 8px;
	padding: 15px;
	margin: 0;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	word-break: keep-all;
	transition: all 0.3s ease;
}


.event_card:hover dl dd {
	border-color: #ff8c00;
	background: #fff8f0;
}

/* 종료된 이벤트 스타일 (선택사항) */
.finished_event_list_container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin-top: 50px;
	margin-left: 20px;
}


.finished_event_list_container .event_card {
	opacity: 0.8;
}

.finished_event_list_container .event_card dl dt {
	background: #6c757d;
	/* 회색으로 변경 */
}

.finished_event_list_container .event_card::after {
	content: '종료';
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 6px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
}

.finished_event_list_container .event_card {
	position: relative;
}



/* 팝업 기본 스타일 */
.popup_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	padding: 20px;
	box-sizing: border-box;
}

.popup_overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 팝업 컨테이너 */
.popup_container {
	background: #fffef7;
	/* 아이보리 배경 */
	border-radius: 15px;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(30px);
	transition: transform 0.3s ease;
	box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
	/* 레드 그림자 */
	border: 2px solid #f5f5f0;
}

.popup_overlay.active .popup_container {
	transform: translateY(0);
}


.popup_header {
	background: #dc143c;

	color: white;
	padding: 20px;
	border-radius: 13px 13px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popup_header strong {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

/* 닫기 버튼 */
.close_btn {
	background: none;
	border: none;
	color: inherit;
	font-size: 24px;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.popup_header .close_btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* 팝업 컨텐츠 */
.popup_content {
	padding: 0;
}

/* 팝업 이미지 */
.popup_image {
	width: 100%;
	height: 690px;
	overflow: hidden;
}

.popup_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 이벤트 정보 리스트 */
.event_info {
	padding: 20px;
	margin: 0;
	list-style: none;
}

.event_info li {
	margin-bottom: 20px;
}

.event_info li:last-child {
	margin-bottom: 0;
}

/* dl 스타일 */
.event_info dl {
	background: white;
	border: 2px solid #f0f0f0;
	border-radius: 10px;
	padding: 15px;
	margin: 0;
	transition: border-color 0.3s ease;
}

.event_info dl:hover {
	border-color: #ff8c00;
	/* 포인트 주황 */
}

/* dt 스타일 */
.event_info dt {
	font-size: 14px;
	font-weight: 600;
	color: #dc143c;
	/* 메인 레드 */
	margin-bottom: 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid #f0f0f0;
}

/* dd 스타일 */
.event_info dd {
	font-size: 14px;
	color: #333;
	line-height: 2.1rem;
	margin: 0 0 5px 0;
}

.event_info dd:last-child {
	margin-bottom: 0;
}

/* 링크 스타일 */
.event_info a {
	background: #ff8c00;
	/* 포인트 주황 */
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	display: inline-block;
	transition: background 0.3s ease;
}

.event_info a:hover {
	background: #e67300;
}

/* 팝업 푸터 */
.popup_footer {
	background: #f8f9fa;
	padding: 15px 20px;
	text-align: center;
	border-radius: 0 0 13px 13px;
	border-top: 1px solid #f0f0f0;
}

.popup_footer .close_btn {
	background: #6c757d;
	color: white;
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 14px;
	width: auto;
	height: auto;
	font-weight: 500;
}

.popup_container footer .close_btn:hover {
	background: #545b62;
}

/* body 스크롤 방지 */
body.popup_open {
	overflow: hidden;
}